Skip to content

Release v22.0.0

Choose a tag to compare

@dolittle-build dolittle-build released this 25 Jan 11:33
2c4f818

Summary

Simplifies the IProjectionStore apis by removing the CurrentState<> wrapper around the returned types from get(...) and getAll(...) methods, and returns an array instead of a Map when getting multiple read models. And introduces a new getState(...) method that has the wrapped types for when it is interesting.

Added

  • IProjectionStore.getState(...) method that keeps the syntax of the previous .get(...) method.

Changed

  • IProjectionStore.get(...) returns the specified type or any instead of wrapping with CurrentState<>
  • IProjectionStore.getAll(...) returns an array of the specified type or any instead of a Map of keys to CurrentState<>.