@inixiative/transitions 0.7.1 → 0.8.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/README.md +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -208,7 +208,8 @@ but not (`isSerializable(transition)` tells you which).
|
|
|
208
208
|
## Authoring validation
|
|
209
209
|
|
|
210
210
|
`validateTransition(t, { lens?, requireSerializable? })` validates predicates (via json-rules
|
|
211
|
-
`validateRule`, plus `validateRuleInLens` when a `lens` scopes referenceable fields
|
|
211
|
+
`validateRule`, plus `validateRuleInLens` when a `lens` scopes referenceable fields; a path past a
|
|
212
|
+
to-many relation is `not_in_lens`, read through an `arrayOperator` rule instead), merge
|
|
212
213
|
strategy, and permission shape (via `@inixiative/permissions`' `validateActionRule`: every `{ rule }` positive). Run it on
|
|
213
214
|
save before persisting a tenant config. It returns json-rules' `ValidationResult`,
|
|
214
215
|
`{ ok, errors: { path, message, code }[] }`, and never throws, even on malformed input. json-rules'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inixiative/transitions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@biomejs/biome": "2.5.2",
|
|
44
|
-
"@inixiative/config": "^0.5.
|
|
44
|
+
"@inixiative/config": "^0.5.227",
|
|
45
45
|
"@types/bun": "1.4.4",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
47
|
"lefthook": "2.1.9",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@inixiative/json-rules": "^
|
|
61
|
-
"@inixiative/permissions": "^0.
|
|
60
|
+
"@inixiative/json-rules": "^4.2.0",
|
|
61
|
+
"@inixiative/permissions": "^0.24.0",
|
|
62
62
|
"lodash-es": "^4.18.1",
|
|
63
63
|
"zod": "^4.4.3"
|
|
64
64
|
},
|