@ultimat3/policy 21.0.0 → 22.0.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 +9 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -193,6 +193,15 @@ A missing policy is a **type** error, not a throw: `ActionDef.policy` is require
|
|
|
193
193
|
without one does not compile. `policyMissing()` stays for a declaration site that cannot say it
|
|
194
194
|
in a type — a config-driven route table, a policy resolved by name.
|
|
195
195
|
|
|
196
|
+
### Error classes
|
|
197
|
+
|
|
198
|
+
Every error class `src/index.ts` exports, for `instanceof` inside one process. Across a wire or
|
|
199
|
+
a job boundary the class is gone and the `code` is what survives — match on that.
|
|
200
|
+
|
|
201
|
+
| Class | Code | Declared in |
|
|
202
|
+
|---|---|---|
|
|
203
|
+
| `PolicyError` | any `PolicyErrorCode` — `POLICY_ERROR_CODES` | `src/errors.ts` |
|
|
204
|
+
|
|
196
205
|
## Boundaries
|
|
197
206
|
|
|
198
207
|
Tier 2. Imports `@ultimat3/core` only. Surface error shapes are declared structurally
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/policy",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"description": "The one authz rule, evaluated identically in every surface",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ultimat3/core": "
|
|
34
|
+
"@ultimat3/core": "22.0.0"
|
|
35
35
|
}
|
|
36
36
|
}
|