Repository navigation
JasperFx 2.96.1: required members on a missing aggregate (jasperfx#1087) - #5779
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 29, 2026
Closed
This was referenced Nov 5, 2026
This was referenced Nov 14, 2026
This was referenced Nov 22, 2026
Closed
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the JasperFx family from 2.96.0 to 2.96.1. No Marten code change.
#1087 (JasperFx/jasperfx#1088, JasperFx/jasperfx#1090), in the aggregate source generator that Marten bundles into
Marten.nupkg:Activator.CreateInstanceof atypeofliteral, which is trim and AOT safe). Before this, the generator emittednew T { Required = default!, ... }. That overwrote initializers such aspublic required List<string> Emails { get; set; } = [];with null, so an Apply-only event on a new stream or multi-stream document threw. Marten 8's runtime codegen ran the constructor, so this restores the old behaviour.[SetsRequiredMembers]is now called directly asnew T().Createthat takesobject, a supertype or an interface now owns the missing-aggregate case for the events it covers. Before, it failed to compile with CS8120.This was validated before the release against a local pack of JasperFx. A new
EventSourcingTestsbug test passed: an issue-shaped multi-stream projection, a[SetsRequiredMembers]single-stream aggregate, and aCreate(object) => nullprojection. The fullEventSourcingTestssuite was green apart from the fivetesting_projectionstests that hard-code port 5432.#1086 (Roslyn metadata-reference sharing) is in
JasperFx.RuntimeCompiler, which this bump does not move.WolverineFx 6.55.0, throughWolverineFx.Bobcat, still resolvesJasperFx.SourceGenerator 2.96.0transitively in a few test and sample projects. That is unchanged from before this bump and harmless.Locally:
src/Marten.slnxRelease build, 0 errors.🤖 Generated with Claude Code