Skip to content

JasperFx 2.67.1

Choose a tag to compare

@jeremydmiller jeremydmiller released this 09 Sep 23:47
· 114 commits to main since this release

Fix release.

  • #807 — a partial EventModelDescriptor could not round-trip. System.Text.Json leaves any constructor parameter the JSON does not carry at its default, so an EventModelSliceDescriptor sent without emittedEvents / projectionTypes / readModelTypes arrived with those three null despite being declared non-nullable, and buildGraph() threw ArgumentNullException on the way back out, through the computed Elements getter.

    Partial descriptors are the intended shape — Merge folds several sources' slices together by name, and a source (Wolverine's host-side event-model export, or a Bobcat spec assembly) is by definition partial. These members are now normalized at construction the way the init-only collections already default. The same trap was fixed on EventModelDescriptor.Slices, AggregateDescriptor.AppliedEvents, SpecificationDescriptor.ResolvedTypes and HandlerRelationshipDescriptor.EmittedEvents.

    Source- and binary-compatible: the wire shape, the positional constructors and record equality are unchanged.

Full changelog: V2.67.0...V2.67.1