Repository navigation
chore(deps): Bump JasperFx.Events.SourceGenerator from 2.101.0 to 3.18.1 - #95
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: JasperFx.Events.SourceGenerator dependency-version: 3.18.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
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.
Updated JasperFx.Events.SourceGenerator from 2.101.0 to 3.18.1.
Release notes
Sourced from JasperFx.Events.SourceGenerator's releases.
3.18.1
A patch over 3.18.0 with two thread-safety fixes. No API changes.
GeneratedParserRegistryis 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 plainDictionarywritten 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 withTypeInitializationException: The type initializer for '<Module>' threw, wrappingInvalidOperationException: 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.ProjectionExceptionsis safe for concurrent registration and classification (#1305, #1306).RegisterTransientExceptionType<T>()wrote a static list thatIsExceptionTransientenumerates 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-vuerenderer is unchanged at 0.19.0.3.18.0
Specification bodies on the JasperFx.Events Event Model (#1302, closes #1300; epic #1296):
SpecificationBodyonSpecificationDescriptorandSpecificationBindingDescriptor: 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, oneAct(SpecificationActKind: message received or published, HTTP request, read model queried, time advances, foreign event received, scheduled messages execute) andOutcomes(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.LinksToSpecification(identity, body)declares a body from an import on the Declared rung;EventModelSpecifications.Linkcarries 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.descriptors.md, the fluent form indeclaring.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-vue0.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):
Refuses(...)), with merge and hotspot rules. The renderer draws a consistency-boundary table on command slice cards and tag chips on events.[Generated]/[Pii],mapping, anIncompleteInformationhotspot, and field shapes emitted into the source-generated event-model manifest.Also publishes
@jasperfx/event-model-vue0.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
NaturalKeyEventMapping.RetiresKeyOnNullis true for an explicit source: a[NaturalKeySource]static method returning the key type, orNaturalKeyFor(x => x.SetBy...).Applyrun against a blank aggregate. A null from one of those now means "this event carried no key", so a conditionalApplycan no longer free a key by accident and letFetchForWritingstart a duplicate stream (JasperFx/marten#6153).AddOrReplaceMappingoverloads keep meaning "explicit".RetiresKeyOnNullbefore retiring a key.NaturalKeyComplianceaddsa_null_from_an_inferred_key_source_keeps_the_keyanda_null_from_an_explicit_key_source_removes_the_key.JFXEVT011JFXEVT015NaturalKeySourceProblem.HasOwnFixmarks 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.
[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).TKeyandTKey?are the same key on the aggregate, on a[NaturalKeySource]return type and on an event property.InvalidProjectionExceptionfor:[NaturalKeySource], or conflicting sources;JFXEVT010toJFXEVT017for the same rules, and for key types named in Wolverine's model attributes.FetchForWriting<T, TId>(id, expectedVersion)FetchManyForWriting<T, TId>(ids)IAggregateProjection.MappedNaturalKeyDefinitionsAggregateWriteCacheSession.OnPublished(key, aggregate)NaturalKeyDefinition.ReadValue()MappedNaturalKeyComplianceandNaturalKeyRegistrationCompliance.Aggregate stream stats (#1282)
IEventStore.RegisteredAggregateTypes()andIEventDatabase.FetchAggregateStreamStatsAsync(), with theAggregateStreamStatsCompliancesuite.See the migration guide for details.
3.8.0
A source-generated
Evolvedispatcher now also applies conventional Apply/Create/ShouldDelete methods inherited from a base class, and command line and TimeSpan parsing use the invariant culture..nuke/tempuntracked; Nuke telemetry off (#1240)3.7.1
ShardStartExceptionwith reasonRebuilding(#1233)IdentityRebuildCompliance: a document that loads as null counts as not live, whateverLoadExcludesSoftDeletedDocumentssays (#1232)3.7.0
IEventDatabase(FetchEventRangeMarkAsync,TrySetEventRangeMarkAsync,SetEventRangeMarkAsync), shared by stored-event rewrites and projection backfills (#1215, #1222)IEventStore.SupportsEventRewrites/RewriteStoredEventsAsync,EventRewriteDefinition, and named transforms throughEventRegistry.AddRewriteTransform<T>(#1215)AsyncOptions.SubscribeFromPriorVersionMark,IEventStore.SupportsBackfills/RunBackfillAsync, andEventRegistry.HasJobHost(#1222)EventRangeMarkCompliance,EventRewriteComplianceandBackfillCompliance;IdentityRebuildCompliancefixes for conjoined schemas and soft-deleted loads (#1227)StopAllAsyncsaves the Stopped status (#1225, #1226)Stores that enrol the compliance suites must enrol or excuse the three new ones.
3.6.0
IProjectionDaemon.RebuildIdentityAsync(#1201, #1216)SequentialGuid: lock-free sequential Guids in PostgreSQL or SQL Server order, replacing COMB andGuid.CreateVersion7()(#1217, #1221), with aStreamIdGeneratorhook for storesIStorageOperations.LastAppendedPosition;LastAppendedSequenceis now an obsolete forwarder (#1218, #1219)projections --advanceworks again,StreamState.ColdVersion, and theCompacted<T>marker as a slice's last event (#1210, #1211, #1214)See the 3.6.0 section of the migration guide.
3.5.0
RememberApplicationAssemblyopt-out andResetRememberedApplicationAssembly()..Emits<T>().OnStream<TAggregate>().ForTenanton the shared document write operations.projections floorcommand (show, pin-current, set, clear).EventStorePosition,LastAppendedSequenceandIEventStore.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
private,protectedorinternalparameterless constructor, the evolver source generator emittedRuntimeHelpers.GetUninitializedObject. The constructor body and every field and property initializer were skipped, so an aggregate written the way Marten 8 allowed could throwNullReferenceExceptionin its ownApplyat the first event.[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.private A() { ... }runs again.GetUninitializedObjectis 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.[FromKeyedServices]keys resolve the registration with that key.[FromKeyedServices(Kind.A)]therefore never matched the registration keyed byKind.A, and codegen silently injected the last unkeyed registration of the same type.object.Equalsmatch first, as Microsoft.Extensions.DependencyInjection does, then the oldToString()comparison. The generated constructor attribute keeps the key's own type, for example[FromKeyedServices(MyApp.Kind.A)]instead of("A").ServiceContainer.QuickBuildresolves with the key as declared.[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.IServiceVariableSourcegainsTryFindKeyedService(Type, object key, out Variable?)as a default member. The default handles string keys and throwsNotSupportedExceptionfor any other key.Additions
IEventBinarySerializerspan and buffer-writer members, so stores can pool binary event buffers (JasperFx/marten#5731).Serialize(Type, object, IBufferWriter<byte>)andDeserialize(Type, ReadOnlySpan<byte>).byte[]pair, so serializers written against 3.2 keep working unchanged.UnArchiveStreamonIEventStoreOperations(marten#5476).UnArchiveStream(Guid)andUnArchiveStream(string)are now on the shared operations interface, so store-agnostic code can call whatArchivedStreamExceptiontells it to.NotSupportedExceptionuntil a store implements them.StreamArchivingCompliancegains unarchive facts. TheEventStoreComplianceFixture.UnArchiveStreamhook is[Obsolete].Follow-ups for the stores
inline_aggregation_with_private_constructor(JasperFx/marten#5907).IEventBinarySerializermembers.Full Changelog: JasperFx/jasperfx@v3.2.0...v3.3.0
3.2.0
What's changed since 3.1.0
[BoundaryAggregate]with anIdmember now works withFetchForWritingByTags<T>.Idtype, for example<T, Guid>. Marten fetches every boundary aggregate asSingleStreamProjection<T, string>, so the fetch threw "No source-generated dispatcher found".string-keyed evolver. TheId-keyed one stays for single-stream use.DcbAppendConditionCompliance, a shared compliance suite for the DCB append condition under real concurrency (marten#5887). AddsComplianceStoreConfig.DisableWriteRetries. Every store'sComplianceSuiteInventoryguard 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=on. Opt out with-p:JasperFxRuntimeAsync=false.GenerationRules.UseRuntimeAsyncdefaults totruein the net11.0 build. Opt out withUseRuntimeAsync = false.AddJasperFx(services, configure, registeredFrom)(#1179, #1181): an entry point that defersAddJasperFxintoBuild()can hand over the assembly it captured, soApplicationAssemblyReuseWarningno 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-leveland--verbosewin 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
IEventDatabasecapability. 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).(TenantId, Sequence)position, it returns the store's timestamp of the first event with a higher sequence, ornullwhen there is none (the shard is caught up). You get onePendingEventAge(TenantId, Sequence, Timestamp)per position, in the order asked.PendingEventAgealso hasIsCaughtUpandAgeAt(now), which never returns a negative age when clocks are skewed.NotSupportedExceptionon a store that hasn't implemented it. Anulltimestamp means "caught up", so that default can't answer without reporting a lagging shard as current. The single-position convenienceFetchFirstEventTimestampAfterAsync(sequence, tenantId)calls the batched member by default. The in-memory prototyping store implements both.PendingEventAgeCompliancesuite, gated bySupportsPendingEventAges(default false), with 12 facts. They cover the "strictly after" rule, ordering and duplicates, archived events and conjoined tenant scoping. A newSupportsStreamArchivingfixture flag (default true) gates the archived facts. Stores must enroll the new suite (or excuse it) orComplianceSuiteInventory.AssertEnrolledfails.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.
StopAsync/PauseAsynccalls on the projection coordinator no longer throwObjectDisposedException(#1148 / #1149).ProjectionCoordinatorBaseread, 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.RunCommandstops the host again whenApplicationStoppingfires, so tests hosting an app throughWebApplicationFactoryor Alba had twoIHost.StopAsynccalls racing at teardown.ProjectionCoordinatorpick this up from the base class. Marten'sExplicitProjectionCoordinatorhas its own fix in JasperFx/marten#5843.StressTestsproject 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 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)