@raws/es-toolkit
v0.0.2
Published
Event sourcing toolkit
Downloads
4
Readme
Raws event sourcing toolkit
WARNING
This library is at very early stage and under heavy development. It does not provide stable API. You shouldn't rely on it yet.
WARNING 2
One day after first version was published I've noticed there are downloads. This toolkit isn't ready yet, for today it's not yet usable and the repository is not yet public, it's published on NPM for testing purposes, please be patient, it will be awesome when it's ready :)
Usage
Here be usage
Interfaces and Base classes
IEvent
interfaceAny object implementing this interface will be accepted as a valid event.
Event
classBase class that can be extended to create a valid event. It handles few things for you (such as handling causation and correlation metadata).
CreationEvent
classExtend this class to create an event that constructs new Aggregate Root.
AggregateRoot
Extend this class to create event sourcing enabled aggregate root that registers and replays events.
Coming soon