Skip to content

Releases: wesone/blackrik

v1.2.2

17 Oct 09:00
Compare
Choose a tag to compare

1.2.2 - 2022-10-17

Fixed

  • Fixed wrong database type for "date"

v1.2.1

06 Sep 07:07
Compare
Choose a tag to compare

1.2.1 - 2022-09-06

Fixed

  • Fixed possibility of command scheduling failure due to invalid database type

v1.2.0

18 Aug 09:40
Compare
Choose a tag to compare

1.2.0 - 2022-08-18

Changed

  • Return values of a command handler that do not have a type property will be ignored

Fixed

  • Bug where event handler could not execute after Kafka retry mechanism kicked in

Added

  • 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)

v1.1.3

05 Aug 06:20
Compare
Choose a tag to compare

1.1.3 - 2021-08-05

Changed

  • Aggregate projections can now be async

Fixed

  • 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

Added

  • 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

v1.1.2

05 May 15:00
Compare
Choose a tag to compare

1.1.2 - 2021-05-05

Changed

  • Renamed workflow property currentEvent to event
  • Renamed workflow function transition to trigger
  • EventBus adapter interface and added function stop
  • EventStore adapter interface and added function close
  • ReadModelStore adapter interface and added function close

Fixed

  • Bug where MySQL read model adapter may override an open database connection with a new one which results in closing only the latest connection

Added

  • Alternative HTTP route to execute commands
  • New property latestEventPosition inside the context of commands
  • Blackrik function stop to stop a running application

v1.1.1

19 Apr 06:40
Compare
Choose a tag to compare

1.1.1 - 2021-04-19

Changed

  • MySQL read model schema types are now case insenitive

Fixed

  • 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

Added

  • Support for variable-length strings in MySQL read model schema

v1.1.0

14 Apr 06:57
Compare
Choose a tag to compare

1.1.0 - 2021-04-14

Changed

  • Renamed errors property code to status to let Express handle status codes from thrown errors
  • Error handling for saving events to the event store

Fixed

  • MySQL event store adapter no longer rejects events without payload

Added

  • 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)

v1.0.3

09 Apr 07:56
Compare
Choose a tag to compare

1.0.3 - 2021-04-09

Changed

  • MySQL read model store adapter now returns plain objects instead of BinaryRow objects

Fixed

  • Bug where it was possible that the public Blackrik functions (executeCommand, executeQuery, ...) lose their scope