Skip to content

Release v2.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Aug 08:43
2ff1037

Fixed

  • A $context path in a produces mapping is rendered against what the enclosing artifact actually receives, so a rendered application compiles. A command handler receives Arc's CommandContext, which carries none of Occurred, Identity, Tenant, CausedBy or Causation — those belong to Screenplay's own context type — and rendering them as members of it produced 15 compilation errors on the language's own invoicing.play. The handler now asks the runtime for what the document reads: the tenant from ITenantIdAccessor, the caller from IIdentityProvider, roles and claims from ICurrentPrincipalAccessor, the cause from ICausationManager, and $context.occurred from the clock. (#32)
  • A context value the document maps onto a property that cannot hold it — the runtime's string tenant onto a Uuid concept — is dropped and reported instead of rendered into a conversion that does not exist. (#32)
  • A command handler reading $eventContext or $eventSourceId, which it runs too early to have, is reported rather than rendered. (#32)