Release v22.0.0
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 oranyinstead of wrapping withCurrentState<>IProjectionStore.getAll(...)returns an array of the specified type oranyinstead of aMapof keys toCurrentState<>.