@statedelta-actions/rules 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Directive, RuleError, FrameCounters, HookFn, DirectiveResult } from '@statedelta-actions/core';
|
|
2
|
-
import {
|
|
1
|
+
import { Directive, RegisterWarning, RuleError, FrameCounters, HookFn, DirectiveResult } from '@statedelta-actions/core';
|
|
2
|
+
import { IActionEngine } from '@statedelta-actions/actions';
|
|
3
3
|
|
|
4
4
|
interface SubRuleDefinition<TCtx = unknown> {
|
|
5
5
|
readonly id: string;
|
|
@@ -15,6 +15,7 @@ interface RuleDefinition<TCtx = unknown> extends SubRuleDefinition<TCtx> {
|
|
|
15
15
|
readonly priority: number;
|
|
16
16
|
readonly rules?: readonly SubRuleDefinition<TCtx>[];
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
interface RuleRegisterError {
|
|
19
20
|
readonly ruleId: string;
|
|
20
21
|
readonly code: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Directive, RuleError, FrameCounters, HookFn, DirectiveResult } from '@statedelta-actions/core';
|
|
2
|
-
import {
|
|
1
|
+
import { Directive, RegisterWarning, RuleError, FrameCounters, HookFn, DirectiveResult } from '@statedelta-actions/core';
|
|
2
|
+
import { IActionEngine } from '@statedelta-actions/actions';
|
|
3
3
|
|
|
4
4
|
interface SubRuleDefinition<TCtx = unknown> {
|
|
5
5
|
readonly id: string;
|
|
@@ -15,6 +15,7 @@ interface RuleDefinition<TCtx = unknown> extends SubRuleDefinition<TCtx> {
|
|
|
15
15
|
readonly priority: number;
|
|
16
16
|
readonly rules?: readonly SubRuleDefinition<TCtx>[];
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
interface RuleRegisterError {
|
|
19
20
|
readonly ruleId: string;
|
|
20
21
|
readonly code: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statedelta-actions/rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Rule evaluation engine with JIT-optimized sequential evaluation and sub-rules",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@statedelta-actions/core": "0.
|
|
22
|
-
"@statedelta-actions/actions": "0.
|
|
21
|
+
"@statedelta-actions/core": "0.3.0",
|
|
22
|
+
"@statedelta-actions/actions": "0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"apex-store": "0.
|
|
25
|
+
"apex-store": "0.4.0"
|
|
26
26
|
},
|
|
27
27
|
"author": "Anderson D. Rosa <andersondrosa@outlook.com>",
|
|
28
28
|
"license": "MIT",
|