Skip to content

chore(deps): Bump JasperFx.Events from 2.101.0 to 3.18.1 - #94

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/JasperFx.Events-3.18.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/JasperFx.Events-3.18.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Updated JasperFx.Events from 2.101.0 to 3.18.1.

Release notes

Sourced from JasperFx.Events's releases.

3.18.1

A patch over 3.18.0 with two thread-safety fixes. No API changes.

  • GeneratedParserRegistry is safe for concurrent module initializers (#​1303, #​1304). The command-line source generator emits a module initializer into every assembly with command inputs, and each one registers its parsers. The registry was a plain Dictionary written with no synchronisation, so two such assemblies loading on different threads could corrupt it. The failed initializer is cached by the runtime, and every later use of that assembly then fails with TypeInitializationException: The type initializer for '<Module>' threw, wrapping InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. This showed up as a whole test host failing at startup. The registry now swaps an immutable map under a lock; reads stay lock-free.
  • ProjectionExceptions is safe for concurrent registration and classification (#​1305, #​1306). RegisterTransientExceptionType<T>() wrote a static list that IsExceptionTransient enumerates from daemon threads; a registration during an enumeration could throw or misclassify an exception.

Both fixes come with stress tests that fail on 3.18.0. The @​jasperfx/event-model-vue renderer is unchanged at 0.19.0.

3.18.0

Specification bodies on the JasperFx.Events Event Model (#​1302, closes #​1300; epic #​1296):

  • SpecificationBody on SpecificationDescriptor and SpecificationBindingDescriptor: the example as the specification states it, in the same kinds as Bobcat's scenario model, so a canvas can draw a declared slice's examples before any spec file exists and an export of the model loses nothing a board said. Status, Rule, Note, GivenEvents, Context, Clock, Tenant, Actor, one Act (SpecificationActKind: message received or published, HTTP request, read model queried, time advances, foreign event received, scheduled messages execute) and Outcomes (SpecificationOutcomeKind: event emitted, read model, refusal, message caused, boundary expectation, nothing emitted). Additive and STJ-safe; an older viewer reads an unknown kind as a line it cannot draw.
  • Provenance: LinksToSpecification(identity, body) declares a body from an import on the Declared rung; EventModelSpecifications.Link carries a binding's body onto the Specified rung. Merge fills a body-less entry from the other side; a Specified body wins over a Declared one; bodies never raise a disagreement.
  • Docs: a "Specification bodies" section in descriptors.md, the fluent form in declaring.md, and the 3.17.0 review markers on the DCB derived rung, empty stub fields and the undeclared-refusal rule resolved.

Also publishes @​jasperfx/event-model-vue 0.19.0: an examples strip under a drawn, expanded slice's lanes (one block per bound spec with a body, scenario name over its given / when / then lines with field values inline), hidden at compact and overview; every body-less model renders coordinate-identical to 0.18.0.

3.17.0

Event Modeling round two on the JasperFx.Events Event Model (#​1301; epic #​1296):

  • DCB on the model (#​1297): a model-level tag catalogue, per-event tags, a command slice's declared reads with a derived boundary query, untagged projections, and rejection reasons (Refuses(...)), with merge and hotspot rules. The renderer draws a consistency-boundary table on command slice cards and tag chips on events.
  • Structural elements (#​1298): an actor on triggers, external consumed events, a schedule on automations, screen names, and descriptions on slices and elements.
  • Fields (#​1299): typed field descriptors (flat plus one level of nesting by reference) with [Generated]/[Pii], mapping, an IncompleteInformation hotspot, and field shapes emitted into the source-generated event-model manifest.

Also publishes @​jasperfx/event-model-vue 0.18.0 with the renderer support for the above.

3.16.0

What's Changed

Full Changelog: JasperFx/jasperfx@v3.14.0...v3.16.0

3.14.0

Natural keys

  • Only an explicit key source removes a key with null (#​1287, #​1288).
    • NaturalKeyEventMapping.RetiresKeyOnNull is true for an explicit source: a [NaturalKeySource] static method returning the key type, or NaturalKeyFor(x => x.SetBy...).
    • It's false for a source discovery inferred: a key-typed property read off the event, or an Apply run against a blank aggregate. A null from one of those now means "this event carried no key", so a conditional Apply can no longer free a key by accident and let FetchForWriting start a duplicate stream (JasperFx/marten#​6153).
    • Binary compatible: the existing constructor and AddOrReplaceMapping overloads keep meaning "explicit".
    • Stores: check RetiresKeyOnNull before retiring a key. NaturalKeyCompliance adds a_null_from_an_inferred_key_source_keeps_the_key and a_null_from_an_explicit_key_source_removes_the_key.
  • Refusal messages say what to do next:
    • two keys sharing a type, and JFXEVT011
    • a mapped key of the wrong type, and JFXEVT015
    • an unregistered mapped source
    • Discovery problems that already name their fix no longer get the general advice about deriving the key from the event alone. NaturalKeySourceProblem.HasOwnFix marks them.

3.13.0

Natural keys (#​1281)

The JasperFx half of the natural key work for Marten 10 (JasperFx/marten#​6150) and Wolverine 7 (JasperFx/wolverine#​5756), by Ben Edwards.

  • Mapped natural keys. [MappedNaturalKey<TSource>] or [NaturalKey(SourceProjection = typeof(TSource))] lets an aggregate fetch by a key whose lookup another projection owns. Marten 10 supports them; Polecat and Fisher don't yet (JasperFx/polecat#​1131, JasperFx/fisher#​679).
  • Nullable keys. TKey and TKey? are the same key on the aggregate, on a [NaturalKeySource] return type and on an event property.
  • Stricter registration checks. Projection registration throws InvalidProjectionException for:
    • two owned keys, or two keys of one type;
    • an owned key no event sets;
    • a non-public [NaturalKeySource], or conflicting sources;
    • an owned key inside a composite projection;
    • a mapped key without a valid source.
  • Build-time diagnostics JFXEVT010 to JFXEVT017 for the same rules, and for key types named in Wolverine's model attributes.
  • New store members, all with default implementations:
    • FetchForWriting<T, TId>(id, expectedVersion)
    • FetchManyForWriting<T, TId>(ids)
    • IAggregateProjection.MappedNaturalKeyDefinitions
    • AggregateWriteCacheSession.OnPublished(key, aggregate)
    • NaturalKeyDefinition.ReadValue()
  • Compliance suites MappedNaturalKeyCompliance and NaturalKeyRegistrationCompliance.

Aggregate stream stats (#​1282)

IEventStore.RegisteredAggregateTypes() and IEventDatabase.FetchAggregateStreamStatsAsync(), with the AggregateStreamStatsCompliance suite.

See the migration guide for details.

3.8.0

A source-generated Evolve dispatcher now also applies conventional Apply/Create/ShouldDelete methods inherited from a base class, and command line and TimeSpan parsing use the invariant culture.

  • Evolve dispatcher routes events to conventional methods inherited from a base class (#​1242, #​1241)
  • Command line numbers and TimeSpan fallbacks are read with the invariant culture; .nuke/temp untracked; Nuke telemetry off (#​1240)
  • TimeSpan quantities are parsed with the invariant culture (#​1236)

3.7.1

  • A stop that lands while an agent is loading a page no longer fails catch-up with "The channel has been closed" (#​1231)
  • A rebuild no longer misses an agent start that was still registering, which made the rebuild fail with a duplicate key on the progression row; a start that loses to a rebuild now throws ShardStartException with reason Rebuilding (#​1233)
  • IdentityRebuildCompliance: a document that loads as null counts as not live, whatever LoadExcludesSoftDeletedDocuments says (#​1232)

3.7.0

  • Event-range marks on IEventDatabase (FetchEventRangeMarkAsync, TrySetEventRangeMarkAsync, SetEventRangeMarkAsync), shared by stored-event rewrites and projection backfills (#​1215, #​1222)
  • Stored-event rewrite store seam: IEventStore.SupportsEventRewrites / RewriteStoredEventsAsync, EventRewriteDefinition, and named transforms through EventRegistry.AddRewriteTransform<T> (#​1215)
  • Projection backfill seam: AsyncOptions.SubscribeFromPriorVersionMark, IEventStore.SupportsBackfills / RunBackfillAsync, and EventRegistry.HasJobHost (#​1222)
  • New compliance suites: EventRangeMarkCompliance, EventRewriteCompliance and BackfillCompliance; IdentityRebuildCompliance fixes for conjoined schemas and soft-deleted loads (#​1227)
  • F# output of a C#-targeted assembly leaves the AotRoots companion out (#​1228)
  • StopAllAsync saves the Stopped status (#​1225, #​1226)

Stores that enrol the compliance suites must enrol or excuse the three new ones.

3.6.0

  • Per-identity rebuild for single-stream projections: IProjectionDaemon.RebuildIdentityAsync (#​1201, #​1216)
  • SequentialGuid: lock-free sequential Guids in PostgreSQL or SQL Server order, replacing COMB and Guid.CreateVersion7() (#​1217, #​1221), with a StreamIdGenerator hook for stores
  • IStorageOperations.LastAppendedPosition; LastAppendedSequence is now an obsolete forwarder (#​1218, #​1219)
  • projections --advance works again, StreamState.ColdVersion, and the Compacted<T> marker as a slice's last event (#​1210, #​1211, #​1214)
  • Aspire.Hosting 13.6.5 (GHSA-f7vh-h5g3-7jrh)

See the 3.6.0 section of the migration guide.

3.5.0

  • #​1206 / #​1204: RememberApplicationAssembly opt-out and ResetRememberedApplicationAssembly().
  • #​1207 / #​1203: an optional stream lane on emitted events, .Emits<T>().OnStream<TAggregate>().
  • #​1208 / #​1202: ForTenant on the shared document write operations.
  • #​1209 / #​1205: the projections floor command (show, pin-current, set, clear).
  • #​1212: read-your-writes: EventStorePosition, LastAppendedSequence and IEventStore.WaitForProjectionsAsync (marten#​6004).

3.4.0

Source generator: open generic aggregates and aggregates nested behind private/protected no longer get evolvers that fail to compile (CS0246 / CS0122); they are skipped with the new JFXEVT008 warning (#​1194, #​1195).

3.3.0

What's changed since 3.2.0

⚠️ Behaviour changes

  • #​1191 (closes #​1188): an aggregate whose only parameterless constructor is non-public now runs that constructor.
    • For a private, protected or internal parameterless constructor, the evolver source generator emitted RuntimeHelpers.GetUninitializedObject. The constructor body and every field and property initializer were skipped, so an aggregate written the way Marten 8 allowed could throw NullReferenceException in its own Apply at the first event.
    • The generated file now calls that constructor through a file-scoped [UnsafeAccessor(UnsafeAccessorKind.Constructor)], which runs the body and the initializers as Marten 8 did. It needs no reflection, so it stays trim and Native AOT safe.
    • This changes 3.0–3.2 behaviour: the body of private A() { ... } runs again.
    • GetUninitializedObject is still used for aggregates with no parameterless constructor at all, such as records with a primary constructor. It is also used for generic aggregates and for aggregates nested inside a private or protected type, because the generated code can't reach their constructors.
  • #​1192 (closes #​1189): non-string [FromKeyedServices] keys resolve the registration with that key.
    • Code generation turned the key into a string before looking it up. An enum key such as [FromKeyedServices(Kind.A)] therefore never matched the registration keyed by Kind.A, and codegen silently injected the last unkeyed registration of the same type.
    • Every codegen path now matches keys the same way: an exact object.Equals match first, as Microsoft.Extensions.DependencyInjection does, then the old ToString() comparison. The generated constructor attribute keeps the key's own type, for example [FromKeyedServices(MyApp.Kind.A)] instead of ("A"). ServiceContainer.QuickBuild resolves with the key as declared.
    • A [FromKeyedServices(key)] parameter with no registration for that key now fails during code generation with an error that names the parameter, the key and the service type. Before, it quietly took the unkeyed default. A null key is still resolved like any other parameter.
    • IServiceVariableSource gains TryFindKeyedService(Type, object key, out Variable?) as a default member. The default handles string keys and throws NotSupportedException for any other key.

Additions

  • #​1190 (closes #​1187): IEventBinarySerializer span and buffer-writer members, so stores can pool binary event buffers (JasperFx/marten#​5731).
    • Adds Serialize(Type, object, IBufferWriter<byte>) and Deserialize(Type, ReadOnlySpan<byte>).
    • Both are default members that fall back to the existing byte[] pair, so serializers written against 3.2 keep working unchanged.
    • Serializers built on System.Text.Json, MessagePack or MemoryPack can override them and stop allocating.
  • #​1186: UnArchiveStream on IEventStoreOperations (marten#​5476).
    • UnArchiveStream(Guid) and UnArchiveStream(string) are now on the shared operations interface, so store-agnostic code can call what ArchivedStreamException tells it to.
    • They are default members that throw NotSupportedException until a store implements them.
    • StreamArchivingCompliance gains unarchive facts. The EventStoreComplianceFixture.UnArchiveStream hook is [Obsolete].

Follow-ups for the stores

  • Marten:
    • Relax the 9.0 migration-guide row about private constructors and field initializers.
    • Drop the workaround in inline_aggregation_with_private_constructor (JasperFx/marten#​5907).
  • Polecat and Fisher: relax the same migration-guide rows if they have them.
  • Marten, Polecat and Fisher: switch the binary event column path to the new IEventBinarySerializer members.

Full Changelog: JasperFx/jasperfx@v3.2.0...v3.3.0

3.2.0

What's changed since 3.1.0

  • #​1185 (closes #​1184): a [BoundaryAggregate] with an Id member now works with FetchForWritingByTags<T>.
    • The source generator used to key such an aggregate's evolver only on its Id type, for example <T, Guid>. Marten fetches every boundary aggregate as SingleStreamProjection<T, string>, so the fetch threw "No source-generated dispatcher found".
    • The generator now also emits the string-keyed evolver. The Id-keyed one stays for single-stream use.
    • "No source-generated dispatcher found" now names the identity type it did find an evolver for. It no longer says the generator "declined" the type.
  • #​1183: DcbAppendConditionCompliance, a shared compliance suite for the DCB append condition under real concurrency (marten#​5887). Adds ComplianceStoreConfig.DisableWriteRetries. Every store's ComplianceSuiteInventory guard needs the new suite enrolled or excused.

Full Changelog: JasperFx/jasperfx@v3.1.0...v3.2.0

3.1.0

What's changed since 3.0.1

  • Runtime-async is on by default for net11.0 (#​1180, #​1182).
    • The net11.0 assemblies compile with runtime-async=on. Opt out with -p:JasperFxRuntimeAsync=false.
    • GenerationRules.UseRuntimeAsync defaults to true in the net11.0 build. Opt out with UseRuntimeAsync = false.
    • net10.0 is unchanged.
    • Watch for: stack traces, debugger stepping, and APM agents or profilers that hook async state machines.
  • AddJasperFx(services, configure, registeredFrom) (#​1179, #​1181): an entry point that defers AddJasperFx into Build() can hand over the assembly it captured, so ApplicationAssemblyReuseWarning no longer fires on a healthy host built by a helper in another assembly.
  • StreamLockedException.StreamIds (#​1172, #​1176): a store whose lock covers several streams can report every stream that lost it.
  • --log-level and --verbose win over configured log levels (#​1132, #​1177).

See "Key Changes in 3.1.0" in the migration guide.

3.0.1

What's Changed

Full Changelog: JasperFx/jasperfx@v2.102.0...v3.0.1

3.0.0-alpha.1

What's Changed

Full Changelog: JasperFx/jasperfx@v2.102.0...v3.0.0-alpha.1

2.102.0

JasperFx 2.102.0 is a minor release with one new IEventDatabase capability. It lets monitoring report projection lag as time rather than as a count of events.

  • IEventDatabase.FetchFirstEventTimestampsAfterAsync, the age of the oldest unprocessed event (#​1150 / #​1151).
    • Why: a backlog counted in events says little on a multi-tenant fleet. 40,000 events spread over 130 tenants is fine; 40,000 on one tenant for an hour is not. The age of the oldest event a shard hasn't processed tells those two apart, and it's the number an SLO is written against. CritterWatch reaches event stores only through the JasperFx.Events abstractions, so the question has to be answerable here.
    • What it answers: for each (TenantId, Sequence) position, it returns the store's timestamp of the first event with a higher sequence, or null when there is none (the shard is caught up). You get one PendingEventAge(TenantId, Sequence, Timestamp) per position, in the order asked. PendingEventAge also has IsCaughtUp and AgeAt(now), which never returns a negative age when clocks are skewed.
    • Tenants: a null tenant considers every event in the database. A non-null tenant considers only that tenant's events under conjoined tenancy or per-tenant partitioning.
    • Archived events don't count. The async daemon skips them, so a shard is never waiting on one.
    • Cost: stores answer the whole list in one round trip per database, with one sequence seek per position, never a scan or a count. Ask only about shards that are behind.
    • Default implementations: the batched member throws NotSupportedException on a store that hasn't implemented it. A null timestamp means "caught up", so that default can't answer without reporting a lagging shard as current. The single-position convenience FetchFirstEventTimestampAfterAsync(sequence, tenantId) calls the batched member by default. The in-memory prototyping store implements both.
  • Compliance: a new PendingEventAgeCompliance suite, gated by SupportsPendingEventAges (default false), with 12 facts. They cover the "strictly after" rule, ordering and duplicates, archived events and conjoined tenant scoping. A new SupportsStreamArchiving fixture flag (default true) gates the archived facts. Stores must enroll the new suite (or excuse it) or ComplianceSuiteInventory.AssertEnrolled fails.

Marten, Polecat and Fisher implement the method in their JasperFx 2.102.0 upgrades.

What's Changed

Full Changelog: JasperFx/jasperfx@v2.101.1...v2.102.0

2.101.1

JasperFx 2.101.1 is a patch release with one fix.

  • Overlapping StopAsync / PauseAsync calls on the projection coordinator no longer throw ObjectDisposedException (#​1148 / #​1149).
    • What was broken: ProjectionCoordinatorBase read, awaited across, then disposed and replaced its shared cancellation source and runner with nothing serializing callers. Two stops in flight at once could cancel a source the other had just disposed. Two starts in flight at once could each build a leadership loop, leaving one running that nothing would ever cancel.
    • When it happened: JasperFx's RunCommand stops the host again when ApplicationStopping fires, so tests hosting an app through WebApplicationFactory or Alba had two IHost.StopAsync calls racing at teardown.
    • How it works now: start, pause and stop are serialized, so overlapping calls behave like sequential ones: the first stop tears down and the rest find nothing left to do. Marten's and Polecat's ProjectionCoordinator pick this up from the base class. Marten's ExplicitProjectionCoordinator has its own fix in JasperFx/marten#​5843.
  • CI: concurrency stress tests now live in a separate StressTests project that runs its tests one at a time, so they can't starve timing-sensitive tests of thread-pool threads.

What's Changed

Full Changelog: JasperFx/jasperfx@v2.101.0...v2.101.1

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: JasperFx.Events
  dependency-version: 3.18.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants