Skip to content

JasperFx 2.73.2

Choose a tag to compare

@jeremydmiller jeremydmiller released this 22 Sep 17:44
3fb8de4

Backfilled on 2026-09-22. 2.73.2 was published to NuGet on 2026-09-18 without a tag or a release entry. This tag and these notes were reconstructed afterwards from the commits between V2.73.1 and 3fb8de4, so that the version on NuGet has something to point at. The packages themselves are untouched and are the ones published on the 18th.

A single-fix patch over 2.73.1.

codegen test no longer fails on an app with message handlers (#867)

Fixes wolverine#4486.

codegen test compiles every ICodeFile into its own in-memory assembly. When an AotRoots companion rooted a sibling generated type by name (AttributeArg.TypeNamed), that name lived in a different assembly and the compile failed with CS0234. Since Wolverine 6.37, HandlerRegistryCodeFile roots every generated message handler this way — so codegen test failed for any app with message handlers, while codegen write plus a build worked fine.

The fix adds a GeneratedAssembly.CompiledInIsolation flag that only TryBuildAndCompileAll sets; when it is set, AddAotRoots drops the TypeNamed roots that do not resolve within the assembly being compiled. Roots to existing Types and to the file's own generated types are kept.

The write paths are deliberately untouched — codegen write and Auto-mode CompileAndAttach write what they compile, so they still emit every root into the file the trimmer sees. Verified against four real services on Wolverine 6.39 / Marten 9.37: codegen test went from 19 × CS0234 to passing, and codegen write output was byte-identical, all 20 generated-type roots present.

Wolverine needs no change of its own — only this version.

Not in the packages

Three other commits landed in this range and change nothing a NuGet consumer sees: the move of @jasperfx/event-model-vue into this repo (#864), and two documentation corrections to that package's publish workflow about npm trusted publishing (#865, #866 — the cause turned out to be the capitalisation of the GitHub owner in the npm binding).

Packages

Seven packages at 2.73.2: JasperFx, JasperFx.Events, JasperFx.Events.ComplianceTests, JasperFx.Events.SourceGenerator, JasperFx.SourceGenerator, JasperFx.Aspire, JasperFx.Events.MicrosoftExtensionsAI. JasperFx.RuntimeCompiler is versioned independently and stays at 5.0.0.