Skip to content

JasperFx 2.85.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 12 Oct 13:04

Event Modeling

  • SlicePattern.Query (#1003). A read-only endpoint now gets its own slice instead of being folded into a View. A Query reads its read model, aggregate or document through ReadsFrom, and links to the View that produces it. A Query that emits events, starts a stream or publishes messages is flagged as a PatternViolation hotspot. Fluent API: Query<TReadModel>() and Query(name).
  • Aggregate identity types (#1004). AggregateDescriptor.IdentityType is derived from the aggregate's single-stream projection, or declared with model.Aggregate<Order>().IdentifiedBy<OrderId>(). A declared type that disagrees with the derived one is reported as a SourceDisagreement. The projection source now contributes one aggregate per single-stream projection.
  • PublisherOrigin.HttpRouteName: an HTTP trigger can carry its ASP.NET Core route name.
  • @jasperfx/event-model-vue 0.14.0 draws Query slices and pattern-violation hotspots, and adds SliceFilter.patterns.

Event store

  • IEventStore.FindDatabaseForTenantAsync(tenantId) (#1005). A store-agnostic way to look up a tenant's database, as a default interface member: it returns the single database when that's certain, and null otherwise. Marten, Polecat and Fisher are expected to override it.