Skip to content

v0.10.1

Choose a tag to compare

@jilio jilio released this 30 Dec 11:43
· 140 commits to main since this release
554880e

What's New

State Protocol Support

Added optional state/ package implementing the Durable Streams State Protocol for database-style state synchronization.

Features:

  • Type-safe helpers using Go generics: Insert, Update, Delete, UpdateWithOldValue, DeleteWithOldValue
  • Options pattern for configurable messages: WithTxID, WithTimestamp, WithAutoTimestamp, WithEntityType
  • Materializer that processes state protocol messages and builds typed state from events
  • Store interface with in-memory implementation for materializing state
  • TypedCollection for type-safe access to entity collections
  • Full JSON interoperability with durable-streams ecosystem

See the State Protocol section in README for usage examples.