Skip to content

JasperFx 2.33.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 21 Jul 19:21

Advances the CritterWatch projection-stepthrough epic — the shared JasperFx.Events abstractions Marten and Polecat build on — plus a multi-host diagnosability fix ported from Wolverine.

What's new

Session-backed, step-instrumented aggregation fold (#544, #547)
The load-bearing capability the stepthrough epic depends on, in the shared aggregation base so Marten/Polecat inherit it rather than each re-implementing a reflection-Apply path. JasperFxAggregationProjectionBase.BuildTimelinesAsync runs the real slice → group → EnrichEventsAsync → fold path (per-event Create/Apply/ShouldDelete dispatch), capturing a before/after JSON timeline per event per identity into a MultiAggregateProjectionResult. Adds IProjectionStepObserver for live streaming and IEventStore.RunMultiStreamProjectionAsync.

Serializable rich EventTagQuery (#545, #548)
EventTagQuerySpec carries a full DCB EventTagQuery (OR conditions + AndEventsOfType event-type filters) across a message hop and resolves it back to CLR types against the registered tag/event graph — replacing the lossy AND-only Dictionary<string,string> form for sourcing a stepthrough / AggregateToMany from a real decision boundary.

IDcbAggregateRegistry — runtime discovery of DCB aggregates (#546, #549)
Discovers DCB aggregates used only inside a DCB operation (nested handler/endpoint code, no registered projection name) so they become steppable run targets identified by type. Thread-safe idempotent registry for lazy first-use population, plus a DcbAggregateDescriptor surfaced through EventStoreUsage.DiscoveredDcbAggregates.

Divergent process-pinned application assembly warning (#543)
Ports the wolverine#3521 diagnostic into JasperFx: AddJasperFx captures the registering assembly and records ApplicationAssemblyReuseWarning when a later host in a multi-host test process adopts a different host's process-pinned application assembly. Detection-only.

Downstream follow-ups (separate repos)

Marten/Polecat wire RunMultiStreamProjectionAsync over their query session, accept the serialized EventTagQuery on the DCB read path, and populate IDcbAggregateRegistry lazily from the DCB read entrypoints.

Full changelog: V2.32.0...V2.33.0