Skip to content

Release v22.90.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 23:21
1455539

Summary

Chronicle self-reducing read models (Chronicle 19.58.0 and later) now work in Arc applications with the read model, its Reduce methods and its queries on one record, without extra attributes.

Added

  • Arc.Chronicle recognizes Chronicle self-reducing read models, so injecting one into a command, validator or Provide() reads it through Chronicle, including personal-data release, instead of falling back to reading MongoDB directly. Requires Chronicle 19.58.0 or later in the application. (#3233)
  • Screenplay recognizes self-reducing read models as reducer-built, including reducers whose event parameter is an interface or base class, and reports when it cannot list every observed event. (#3233)

Changed

  • A static method on a [ReadModel] that takes the read model itself as a parameter, such as a self-reducing read model's Reduce(event, current), is no longer exposed as a query endpoint or generated proxy. The rule applies the same way to runtime discovery, the TypeScript proxy generator, query metadata, Screenplay and the analyzers; marking such a method [Query] is reported as an error. RequireQueryAttribute keeps working as before. (#3239)
  • ARCCHR0019 no longer warns that a self-parameter Reduce method would become a query endpoint. (#3239)