Releases: lukaszb/cq
Releases · lukaszb/cq
replays and upcasting
It is now possible to call Storage.replay_events in order to run all the handlers again.
There were some breaking changes:
- handlers now require another argument:
replaying_events. It would normally be aFalseandTrueonly during events replay process. This is to make sure that projections updates are always run while all the other side effects can be omitted - It is now required to pass
aggregate_typetoStorage.get_eventsfunction. We've splitEvent.nameintoEvent.aggregate_typeandEvent.name. Example:{name: "User.Registered"}would become{aggregate_type: "User", name: "Registered"}
This release introduces main missing features. Next release would focus on
- nicer API
- events schema definition and validation
- events monitoring and/or better querying
v0.8: allow to replay events (fixes #22)
This is first public release