Skip to content

Marten 9.19.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 24 Jul 16:20
· 1117 commits to master since this release
d75224f

Marten 9.19.0 is a maintenance release adopting the coordinated JasperFx / JasperFx.Events 2.35.0 drop, with a new projection side-effect capability and a secondary-store fix.

Event sourcing

  • RaiseSideEffects slice-identity overload — JasperFx.Events 2.35.0 (#561) adds a backwards-compatible aggregation-projection overload RaiseSideEffects(IDocumentOperations operations, TId id, IEventSlice<TDoc> slice). The new id parameter hands you the slice identity even when slice.Snapshot is null because the aggregate was deleted in the same batch — so a MultiStreamProjection can recover the aggregate key to emit a follow-on event or publish a message on deletion. The original two-argument overload is unchanged, and the new one delegates to it by default. Documented with a compiled sample in Side Effects.

Fixes

  • #5039 — SecondaryStoreConfig.Build threw UriFormatException when a secondary store was registered with a generic marker interface (e.g. AddMartenStore<IMartenStoreMarker<MyContext>>()). A closed generic CLR type name contains a backtick + arity, which is not a valid URI host. The marten:// subject is now sanitized (arity stripped, generic argument names folded in so distinct closed generics still map to distinct subjects).

Dependencies

  • JasperFx / JasperFx.Events / JasperFx.Events.SourceGenerator / JasperFx.SourceGenerator → 2.35.0
  • Weasel.Postgresql / Weasel.Storage → 9.17.0 (unchanged)

Notes

  • The LINQ query-plan cache proposal (#5013 / #5018) is not in this release — review surfaced a correctness gap on null filter values; it remains open for a follow-up.
  • #5001 (running_on_node under managed distribution) is resolved on the Marten side and closed; the node-stamping half ships in the JasperFx 2.35.0 / Wolverine distribution layer.