Skip to content

v8.0.0-preview.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 11:18
· 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, so dotnet add package only resolves them when a pre-release version is requested
explicitly or --prerelease is 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.Parent and MessageType, mediation nesting rules (IMediationNestingRule), and CommandModuleBuilder.ForbidNestedCommands().
  • Authorization: MessagePolicy.Public(), Tenant(), Condition<TCondition>(), SentBy<TParent>(), WithRefusal(code, reason), RecentSignIn(maxAge, claimType), the ISignInInstantSource port, and the PermissionLookupMissing, ConditionMissing, SignInInstantUnknown and NotSentBy refusal-code constants.
  • HandlerPriorities.Authorization and HandlerPriorities.Tenancy.
  • Pluggable audit hash chain: mapper, segmenter, canonicalizer, link rule, hasher, hash scheme, checkpoint policy, signer, publisher and source ports; IAuditChain with verify, cut and expire; SHA-256 and HMAC-SHA-256 hashers; AuditChainVerifier<TDocument>.
  • MessageCompletionContext.Identity.
  • LiteBusExceptionHandler and AddLiteBusExceptionHandler(), IRefusalProblemCatalog.TryResolve, and an errors extension on invalid results.
  • MessageModuleBuilder.DeclareConvention<TValue>() and DeclarationEnforcement.Report for RequireDeclaration.
  • CommandMediationSettings.ForTenant, QueryMediationSettings.ForTenant and EventMediationSettings.ForTenant.
  • Recurring commands: identities, per-item batches, AddRecurringForEachTenant with IRecurringTenantSource, and IRecurringSchedule with RecurringSchedules.Every, DailyAt and WeeklyOn.
  • The LiteBus.Saga.Storage.Marten package.
  • Domain event harvesting: IDomainEventHarvester, IHasDomainEvents, OutboxModuleBuilder.HarvestDomainEvents<TAggregate>(), and HarvestDomainEvents() on the Marten and EF Core outbox storage builders.
  • Analyzer LB1029.

Changed

  • AddAuthorizationPolicies merges 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 IQueryMediator in query handlers; LB1008 and LB1009 check public messages in the handler assembly named by MessageContractsRegisteredIn; LB1023 also covers pre-handlers and post-handlers; the LB1025 message names the outbox interface for the resolved storage.

Fixed

  • RecentSignIn compares ages as TimeSpan rather than whole seconds.
  • Application module discovery skips private nested module types.

Breaking

  • AuditCheckpoint and ICheckpointPublisher move to LiteBus.Messaging.Abstractions.Auditing, and AuditCheckpoint gains an id, a count, a hash scheme, a kind and a signature.
  • MartenAuditTrailOptions.UseHashChain takes a builder; SegmentOf, CheckpointPublisher, CheckpointInterval and DefaultSegment are removed; VerifyChainAsync returns AuditChainVerification.
  • RecurringCommandBatch holds Items instead of Commands.