Repository navigation
v0.6.0
0.6.0 (2026-10-25)
⚠ BREAKING CHANGES
- the engine, the validator and
AddRuleLoomrun on a catalog. Build one withCatalogBuilder(orAddCataloginAddRuleLoom), and register actions in it.IActionFactory.Createnow receives the action's registration instead of a name (#110) - paths starting with
@or#are no longer property names:@reads a context, and#is reserved for functions (#99, #108)
The upgrading guide has before/after examples.
Features
- event schemas: describe events with
EventSchema<T>classes. Their fields come from your DTOs and are written as JSON Schema. They live in the newRuleLoom.Schemaspackage, which has no dependencies (#100) - contexts: rules read related data such as
@customer.Tier. It's declared by the event's schema and loaded by context providers, once per event and only when a rule uses it.ContextSchema<T>describes the data's fields (#99, #103, #105, #110) - validation against schemas:
RuleValidatorreports paths that aren't fields of the event or of its contexts, with their locations. Comparisons that can never match are warnings (#106, #108) - the catalog: one vocabulary of events, contexts, operators and actions, used by the engine, the validator and rule-authoring UIs.
catalog.ToJson()writes it as one document, and an optional catalog store keeps it outside the app (#110) - previous state from changed fields:
PreviousState.FromChanges(current, changes)rebuilds the previous state from the old values of the fields that changed (#97) - a schemas and contexts guide, and the ASP.NET Core sample shows contexts and the catalog document (#111)