@clipboard-health/rules-engine
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,6 @@ # Changelog | ||
## [0.1.3](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.2...rules-engine-0.1.3) (2024-07-11) | ||
## [0.1.3](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.2...rules-engine-0.1.3) (2024-07-11) | ||
## [0.1.2](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.1...rules-engine-0.1.2) (2024-02-27) | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "@clipboard-health/rules-engine", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "./src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -19,7 +19,8 @@ import { type ReadonlyDeep } from "type-fest"; | ||
* Only the `input` and not the full `context` is passed to `runIf`. This prevents rules from | ||
* relying on `output`, which may be modified by previous rules by the time `run` is called. | ||
* relying on `output`, which may be appended to by previous rules by the time `run` is called. | ||
*/ | ||
runIf: (input: ReadonlyDeep<TInput>) => boolean; | ||
/** | ||
* Runs the actual rule and returns a new context by appending to the output array. | ||
* A pure function that runs rule logic and returns a new context by appending to the output | ||
* array. | ||
* | ||
@@ -26,0 +27,0 @@ * @see {@link appendOutput} |
Sorry, the diff of this file is not supported yet
12155
112