Repository navigation
v8.0.0-preview.2
Pre-release
Pre-release
·
0 commits
to main
since this release
This is a pre-release of 8.0.0. Packages are published to NuGet with the
8.0.0-preview.2
version suffix, sodotnet add packageonly resolves them when a pre-release version is requested
explicitly or--prereleaseis passed.The notes below cover what changed since
8.0.0-preview.1. For everything landing in
8.0.0, see the 8.0.0 changelog.
Changes since v8.0.0-preview.1. The v8.0.0 section describes the whole 8.0.0 line.
Added
IExecutionContext.ParentandMessageType, mediation nesting rules (IMediationNestingRule), andCommandModuleBuilder.ForbidNestedCommands().- Authorization:
MessagePolicy.Public(),Tenant(),Condition<TCondition>(),SentBy<TParent>(),WithRefusal(code, reason),RecentSignIn(maxAge, claimType), theISignInInstantSourceport, and thePermissionLookupMissing,ConditionMissing,SignInInstantUnknownandNotSentByrefusal-code constants. HandlerPriorities.AuthorizationandHandlerPriorities.Tenancy.- Pluggable audit hash chain: mapper, segmenter, canonicalizer, link rule, hasher, hash scheme, checkpoint policy, signer, publisher and source ports;
IAuditChainwith verify, cut and expire; SHA-256 and HMAC-SHA-256 hashers;AuditChainVerifier<TDocument>. MessageCompletionContext.Identity.LiteBusExceptionHandlerandAddLiteBusExceptionHandler(),IRefusalProblemCatalog.TryResolve, and anerrorsextension on invalid results.MessageModuleBuilder.DeclareConvention<TValue>()andDeclarationEnforcement.ReportforRequireDeclaration.CommandMediationSettings.ForTenant,QueryMediationSettings.ForTenantandEventMediationSettings.ForTenant.- Recurring commands: identities, per-item batches,
AddRecurringForEachTenantwithIRecurringTenantSource, andIRecurringSchedulewithRecurringSchedules.Every,DailyAtandWeeklyOn. - The
LiteBus.Saga.Storage.Martenpackage. - Domain event harvesting:
IDomainEventHarvester,IHasDomainEvents,OutboxModuleBuilder.HarvestDomainEvents<TAggregate>(), andHarvestDomainEvents()on the Marten and EF Core outbox storage builders. - Analyzer LB1029.
Changed
AddAuthorizationPoliciesmerges repeated calls, and an unknown policy name fails composition.- The authorization policy guard skips events unless an event declares authorization.
- The authorization guard runs before the tenancy guard regardless of registration order.
- LB1003 allows
IQueryMediatorin query handlers; LB1008 and LB1009 check public messages in the handler assembly named byMessageContractsRegisteredIn; LB1023 also covers pre-handlers and post-handlers; the LB1025 message names the outbox interface for the resolved storage.
Fixed
RecentSignIncompares ages asTimeSpanrather than whole seconds.- Application module discovery skips private nested module types.
Breaking
AuditCheckpointandICheckpointPublishermove toLiteBus.Messaging.Abstractions.Auditing, andAuditCheckpointgains an id, a count, a hash scheme, a kind and a signature.MartenAuditTrailOptions.UseHashChaintakes a builder;SegmentOf,CheckpointPublisher,CheckpointIntervalandDefaultSegmentare removed;VerifyChainAsyncreturnsAuditChainVerification.RecurringCommandBatchholdsItemsinstead ofCommands.