Skip to content

Release v6.25.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 23:18
d5f839d

A provide line adds a named value to $context, declared once at the application, a module, a feature or a slice and read as $context.<name> beneath it.

Added

  • provide <name> <Type> [optional] from query <Query> [by <expression>, ...], from host, from <literal or $context expression>, or a file reference or inline code block beneath it, at the application, module, feature and slice levels. The nearest declaration wins and an override keeps the type (#1300)
  • Diagnostics PLAY1119 to PLAY1129 for malformed, duplicate, reserved-name, mistyped, unknown-query, observable-query and cyclic provides
  • A Values property and ValuesAs<T>() on CommandContext, QueryContext, RuleContext, PolicyContext and the new ProvideContext, so code reads provided values by name
  • provide support in both compilers, the printer, Monaco (completion, hover, validation), the VS Code grammar and the MCP authoring index, with documentation and a multi-file fixture

Changed

  • Provided names and $context.audiences no longer raise PLAY0153 as unknown context paths
  • A model that uses provide in executable form reports PLAY0268 until a later release admits it; it is a preview construct