Repository navigation
Releases
Releases · STotev/RuleLoom
v0.8.1
v0.8.0
0.8.0 (2026-11-17)
⚠ BREAKING CHANGES
- dates are calendar days (#153)
- past due times run immediately; skip overdue actions with RuleEngineOptions (#151)
- event subjects and keyed scheduled actions (#149)
- TemporalRules and the catalog's time zone (#145)
Features
- dates are calendar days (#153) (35f7b33)
- event subjects and keyed scheduled actions (#149) (7eb61d2)
- OpenTelemetry traces and metrics, and ILogger logging (#152) (3a27154)
- past due times run immediately; skip overdue actions with RuleEngineOptions (#151) (2ee5e24)
- RuleEngine.ExecuteScheduledAsync re-checks and runs scheduled actions when due (#150) (584125f)
- sample: scheduled reminders checked against current data, and the dispatching guide (#156) (32db7fa)
- schedules count days as calendar days in the catalog's time zone (#154) (f5358ee)
- TemporalRules and the catalog's time zone (#145) (46b9b97)
- the RuleEvent envelope and $event paths (#146) (3296f4a)
Bug Fixes
v0.7.0
0.7.0 (2026-10-26)
⚠ BREAKING CHANGES
- validate typed actions' parameters against their schema (#124)
- paths in action parameters ({ "$path": ... }), resolved when parameters are read (#123)
Features
- context declarations always name their provider (#126) (0b78ce5)
- parse rule arrays rule by rule (RuleJsonParser.ParseEach) (#125) (f920700)
- paths in action parameters ({ "$path": ... }), resolved when parameters are read (#123) (9111e54)
- RuleLoom.AspNetCore with app.MapRuleLoom (catalog and validate endpoints) (#127) (fccab0d)
- sample: typed actions, $path parameters and MapRuleLoom in the ASP.NET Core sample (#128) (6682e77)
- typed actions with IAction<TParameters> and parameters in the catalog (#121) (20835c7)
- validate typed actions' parameters against their schema (#124) (a440c31)
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)
v0.5.0
0.5.0 (2026-10-15)
⚠ BREAKING CHANGES
- rename RuleForge to RuleLoom (#83)
- rename LogAction to ConsoleLogAction (console-log) (#80)
- require a rule id (#79)
- compare ISO date strings as instants and JSON values by content (#75)
Features
- compare ISO date strings as instants and JSON values by content (#75) (03c2b20)
- rename LogAction to ConsoleLogAction (console-log) (#80) (054f049)
- require a rule id (#79) (928d245)
- resolve paths on JSON state (#72) (3b2ca89)
Code Refactoring
v0.4.0
0.4.0 (2026-10-06)
⚠ BREAKING CHANGES
- rename IActionExecutor to IAction (#59)
- name actions by registration and reference them as "action" (#56)
Features
- add AddRuleForge dependency injection extensions (#54) (48401a3)
- name actions by registration and reference them as "action" (#56) (3eea391)
Code Refactoring
v0.3.0
0.3.0 (2026-10-06)
⚠ BREAKING CHANGES
- add RuleValidator for rules against registered operators and actions (#51)
- select state with $current and $previous path prefixes (#50)
- parse action parameters as CLR values and add GetParameter (#49)
- accept only ISO 8601 strings for schedule ReferencePath (#48)
- match operator, action, event and property names ignoring case (#47)
- replace the operator signature with OperatorContext (#45)
- return complete, structured results from RuleEngine (#44)
- validate rule JSON structure at parse time (#43)
Features
- accept only ISO 8601 strings for schedule ReferencePath (#48) (4ea5fd3)
- add gt, gte, lt and lte operators (#46) (06e8dd7)
- add RuleValidator for rules against registered operators and actions (#51) (60decb7)
- compare rule values by meaning across CLR types (#41) (b554e73)
- match operator, action, event and property names ignoring case (#47) (ae1f955)
- parse action parameters as CLR values and add GetParameter<T> (#49) (2f3af81)
- replace the operator signature with OperatorContext (#45) (9fa72c3)
- return complete, structured results from RuleEngine (#44) (436fe35)
- select state with $current and $previous path prefixes (#50) (72055de)
- validate rule JSON structure at parse time (#43) (cff6252)
v0.2.1
v0.2.0
0.2.0 (2026-10-02)
⚠ BREAKING CHANGES
- the library is renamed from BusinessRules to RuleForge: projects and namespaces
BusinessRules.Abstractions.*→RuleForge.Abstractions.*andBusinessRules.Core.*→RuleForge.*(e.g.RuleForge.Engine,RuleForge.Operators) (8f842b4, f53f86c) IActionExecutor.ExecuteAsyncnow returnsTask<ActionResult>and accepts aCancellationToken. Migration: add the token parameter and returnActionResult.Success()(#7)RuleEnginetakes anIActionExecutorFactoryinstead ofIEnumerable<IActionExecutor>. Migration: wrap existing actions innew DirectActionExecutorFactory(actions)(#9)RuleEngine.ExecuteAsyncreturnsTask<IReadOnlyList<RuleExecutionResult>>(one entry per matched rule) instead ofTask(#9)- actions whose
schedulehas modeDelayorAdvanceare no longer executed; they return anActionResultwith statusScheduledand the computedScheduledFor(#10) RuleEngineandLogActionare nowsealed(#7)
Features
- action results:
ActionResultandActionExecutionStatus(ExecutedImmediately,Scheduled,Skipped,Failed), aggregated per rule inRuleExecutionResult(#7, #9) - scheduling model: optional
ActionDefinition.Schedule(ScheduleMetadatawithImmediate/Delay/Advancemodes, seconds to days, optionalreferencePath), parsed from JSON (#7) - action factory:
IActionExecutorFactorywithDirectActionExecutorFactoryas the default implementation (#9) - schedule calculation:
RuleEnginecomputes UTCScheduledForfrom a reference path or an injectableTimeProvider; scheduling errors returnFailed(#10)