Skip to content

v0.15.0: entity-store enhancement (2020-07-08)

Compare
Choose a tag to compare
@mpareja mpareja released this 08 Jul 16:09
· 42 commits to master since this release

Highlights

  • BREAKING entity-store: fetchRecord now returns a version of -1 instead of undefined when the entity stream in question has no messages. Returning -1 (stream not initialized) is beneficial for handlers that support both initializing a new entity stream and appending to an existing entity stream. Such handlers can simply forward version as the expectedVersion for subsequent writes and rest assured that concurrency controls will be enforced for both initial stream writes and existing stream writes.

Commits

  • (e46f3df) entity-store: fetchRecord returns version -1 when stream is empty
  • (964b6e9) package: upgrade dependencies