Tests and docs will come later. This is also a first step in implementing the pub/sub part of messaging.
Also, stuff like:
batching messages,
retry policies,
tracing,
etc.
Will need to be added later.
Added also event and command methods for handling event and command creation.
I added the DeepReadonly structure, which is unrelated, but I was too lazy to split it into separate pull requests. 🙃 Joke aside, I hoped to use it for the Event data, but it gives some weird edge cases for union types, so I left it for future use.
Tests and docs will come later. This is also a first step in implementing the pub/sub part of messaging.
Also, stuff like:
Will need to be added later.
Added also
event
andcommand
methods for handling event and command creation.I added the DeepReadonly structure, which is unrelated, but I was too lazy to split it into separate pull requests. 🙃 Joke aside, I hoped to use it for the Event data, but it gives some weird edge cases for union types, so I left it for future use.