Repository navigation
V2.44.0
Compliance wave 7 — the last two event sourcing suites in the cross-store compliance backlog.
JasperFx.Events.ComplianceTests goes to 26 suites / 216 tests, enrolled in both Marten and Polecat with zero capability gates on either store.
What's new in 2.44.0
RebuildAndCatchUpCompliance (11 tests) — projection rebuild and catch-up semantics. AsyncDaemonCompliance already smoke-tested catch-up and a basic rebuild, so this covers the parts that are easy to get subtly wrong: teardown-before-replay, idempotency, agreement between the by-view-type and by-name overloads, isolation from a second projection, catch-up without a full daemon run, and PrepareForRebuildsAsync.
The teardown assertion is the one that earns its keep. A rebuild that replays onto surviving rows looks correct for every stream whose events still exist, and is wrong only for rows the replay can no longer produce — so it passes any ordinary state assertion. That exact divergence was a real product gap found earlier by the flat-table suite, so the test plants a document the replay cannot possibly produce and requires the rebuild to remove it.
DeadLetterCompliance (6 tests) — the projection error path. A poison event whose Apply always throws, needing no store-specific hook. Pins that a skip policy actually skips — the shard survives and keeps projecting events after the fault, not just before it — and that the skipped event is recorded rather than lost, with enough on the dead-letter row to identify both the event and the failure.
Neither suite needed a seam addition. IProjectionDaemon already declared the entire rebuild surface, and the error policy and dead-letter reads were already on shared interfaces that both stores implement.
Also shipped since the last GitHub release
Versions 2.40.0 through 2.43.0 went to NuGet without a release here. Consolidated so upgrading from 2.39.5 doesn't hide anything:
- 2.43.0 — compliance wave 6:
StreamCompactingCompliance,EventDataMaskingCompliance, plus the seam they needed (ApplyEventDataMaskingAsyncon the fixture, twoAddMaskingRuleoverloads on the config). - 2.42.2 —
EventProjectionScenariowakes the high-water agent in process instead of polling. - 2.42.1 — the source generator registers an
EventProjection's published types via aPublishedTypes()override rather than a primary-constructor argument, fixing CS8862 on primary-ctor projections. - 2.42.0 —
StrongTypedIdentityCompliance, plusComplianceStoreConfig.RegisterValueType<T>(). - 2.41.0 —
⚠️ two lifts, and both can affect consuming code. See below. - 2.40.0 — compliance wave 5 part 2: flat tables, string stream identity, multi-stream projections, snapshot lifecycle, plus the
QueryTableAsyncfixture member.
⚠️ Upgrade note for 2.41.0, if you are coming from 2.39.x
CompactStreamAsync<T> moved onto JasperFx.Events.IEventStoreOperations as default-implemented members that throw, so a store without compacting stays source-compatible. If your event store also declares those overloads on its own operations interface while inheriting IEventStoreOperations, the signature becomes reachable through two paths and your call sites go ambiguous with CS0121. The library itself still compiles — the break surfaces in consuming code. The fix is to delete the local declarations, which is the point of the lift.
IEventDataMasking moved into JasperFx.Events.Protected. Code that names the interface explicitly needs its using updated. The common fluent usage — Advanced.ApplyEventDataMasking(x => x.IncludeStream(...)) — never names the type, so most consumers see nothing.
Both Marten and Polecat have already taken these lifts.