All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updated dependencies to fix vulnerabilities
1.2.2 - 2022-10-17
- Fixed wrong database type for "date"
1.2.1 - 2022-09-06
- Fixed possibility of command scheduling failure due to invalid database type
1.2.0 - 2022-08-18
- Return values of a command handler that do not have a
type
property will be ignored
- Bug where event handler could not execute after Kafka retry mechanism kicked in
- Filtering duplicate events that will be replayed on startup to improve performance
- Emitting a
TOMBSTONE
event will delete the whole aggregate - Blackrik function
deleteAggregate
(also available in side effects)
1.1.3 - 2021-08-05
- Aggregate projections can now be async
- Bug where idempotency in read model store fails for multiple inserts/updates per event
- Bug where projections handle events in a wrong order during a replay
- New option
index
for ReadModelStore.defineTable scheme, to allow B-Tree and FULLTEXT indexing of fields - Database reconnect on connection loss for eventstore-mysql and readmodelstore-mysql
1.1.2 - 2021-05-05
- Renamed workflow property
currentEvent
toevent
- Renamed workflow function
transition
totrigger
- EventBus adapter interface and added function
stop
- EventStore adapter interface and added function
close
- ReadModelStore adapter interface and added function
close
- Bug where MySQL read model adapter may override an open database connection with a new one which results in closing only the latest connection
- Alternative HTTP route to execute commands
- New property
latestEventPosition
inside the context of commands - Blackrik function
stop
to stop a running application
1.1.1 - 2021-04-19
- MySQL read model schema types are now case insenitive
- Workflows no longer create a new state for every event in case of a replay
- Bug where MySQL read model did not add indices after a schema change
- Support for variable-length strings in MySQL read model schema
1.1.0 - 2021-04-14
- Renamed errors property
code
tostatus
to let Express handle status codes from thrown errors - Error handling for saving events to the event store
- MySQL event store adapter no longer rejects events without payload
- Wrapped route handlers and middleware to catch and handle errors as errors in async functions are only handled by Express 5 or higher (which is not production ready yet)
- A way to set the context for commands and queries with the config property
contextProvider
- Workflows for Sagas to use them as a state machine (this is optional)
1.0.3 - 2021-04-09
- MySQL read model store adapter now returns plain objects instead of BinaryRow objects
- Bug where it was possible that the public Blackrik functions (executeCommand, executeQuery, ...) lose their scope
1.0.2 - 2021-04-08
- Updated README.md
- MySQL read model store adapter now throws an error if a key was explicitly set to
undefined
inside query
- MySQL read model store adapter no longer throws an error if a primary-key field comes after a non-primary-key field inside scheme (defineTable)
- Keywords to package.json
1.0.1 - 2021-04-07
- Initial release