Skip to content

v0.7.0

Choose a tag to compare

@ggoodman ggoodman released this 13 May 15:49
85af6f0

Highlights

  • Breaking: ledger.emit(...) now returns the durable event envelope for the winning event instead of void. When dedupeKey matches an existing event, Sledge returns that existing event envelope without replaying materialization.
  • Add durable work inspection and cancellation APIs: ledger.cancelWork(...), ledger.queryWork(...), and ledger.listWork(...).
  • Cancellation is terminal: cancelled work will not dispatch or retry after restart. If the cancelled work is leased by the active worker handle, Sledge also aborts the lease signal.
  • Add terminalWorkRetentionMs to ledger.startWorkers(...) options for shared dead and cancelled work retention.
  • Ensure work inspection APIs read committed work state only and do not expose rows staged by in-flight event materialization that may roll back.