@mano8/astro-auth-m8 2.3.0 → 2.4.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/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
The major version tracks the supported `fa-auth-m8` **API contract**, not just
|
|
7
7
|
this package's own surface: a backend contract repoint is always a major.
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## 2.4.0
|
|
12
|
+
|
|
13
|
+
No code behaviour changes; the supported backend contract stays
|
|
14
|
+
`fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0`. This release exists to give the
|
|
15
|
+
fleet a published version to pin against, because what moves here is a
|
|
16
|
+
**commitment**, not an implementation: `./authorization` stops being an
|
|
17
|
+
internal module that siblings happen to be able to reach and becomes a
|
|
18
|
+
supported cross-plugin import surface, with a gate holding it to the purity
|
|
19
|
+
that promise depends on. A consumer that only reinstalls gets byte-identical
|
|
20
|
+
runtime behaviour — the point of the bump is that `^2.4.0` is now the range
|
|
21
|
+
that *means* "this package guarantees the shared hierarchy".
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **`./authorization` is now the fleet's shared role hierarchy** (remediation
|
|
26
|
+
`W7.7`, decision 4). Nothing in the published surface changes: the module,
|
|
27
|
+
its four exports and their behaviour are exactly as `2.3.0` shipped them.
|
|
28
|
+
What changes is its standing. The fleet's `no-cross-plugin-import` gate
|
|
29
|
+
(`C12`, `scripts/verify-fleet-gates.mjs`, carried byte-identically by all
|
|
30
|
+
four plugins) now exempts this one exact specifier, so a sibling plugin can
|
|
31
|
+
import the hierarchy instead of re-implementing it and pinning the copy with
|
|
32
|
+
an agreement test — which is how `RBAC-06`, one hierarchy, becomes literally
|
|
33
|
+
true again. Every other subpath of this package stays refused.
|
|
34
|
+
A new `authorization-purity` gate makes the exemption conditional rather than
|
|
35
|
+
a blanket trust: it resolves what this package publishes for
|
|
36
|
+
`./authorization`, walks its import closure, and fails on React, on any bare
|
|
37
|
+
dependency other than `zod`, or on any read of a runtime global. It runs here
|
|
38
|
+
against this repository's own build, so keeping the module framework-neutral
|
|
39
|
+
and effect-free is now a gated obligation of this repository — recorded in
|
|
40
|
+
`REPOSITORY_CONTEXT.md` and in the module's own header, so it survives the
|
|
41
|
+
next person who edits it.
|
|
42
|
+
|
|
9
43
|
## 2.3.0
|
|
10
44
|
|
|
11
45
|
Additive only; the supported backend contract stays `fa-auth-m8@2.0`, range
|
|
@@ -22,6 +22,17 @@
|
|
|
22
22
|
* These are client-side display predicates. The backend remains the authority;
|
|
23
23
|
* mirroring its rules here only stops the UI from showing privileged surfaces
|
|
24
24
|
* the server would refuse.
|
|
25
|
+
*
|
|
26
|
+
* **This module is shared with the rest of the plugin fleet.** `./authorization`
|
|
27
|
+
* is the one subpath of this package a sibling business plugin may import: the
|
|
28
|
+
* fleet's `no-cross-plugin-import` gate (`C12`) exempts that exact specifier so
|
|
29
|
+
* `RBAC-06` — one role hierarchy across the fleet — is met by an import rather
|
|
30
|
+
* than by a copy each plugin has to pin with a test. The exemption is
|
|
31
|
+
* conditional on this file staying pure, and the `authorization-purity` gate in
|
|
32
|
+
* `scripts/verify-fleet-gates.mjs` enforces it in all four plugins: it walks
|
|
33
|
+
* this module's import closure and fails on React, on any bare dependency other
|
|
34
|
+
* than `zod`, or on any read of a runtime global. Keep it framework-neutral and
|
|
35
|
+
* effect-free — anything else here breaks every sibling plugin's build.
|
|
25
36
|
*/
|
|
26
37
|
import { type RoleType } from "./schemas.js";
|
|
27
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,QAAQ,EAA2B,CAAC;AAiBzE;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,GAAG,OAAO,CAKrF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAI1F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAIpF"}
|
|
@@ -22,6 +22,17 @@
|
|
|
22
22
|
* These are client-side display predicates. The backend remains the authority;
|
|
23
23
|
* mirroring its rules here only stops the UI from showing privileged surfaces
|
|
24
24
|
* the server would refuse.
|
|
25
|
+
*
|
|
26
|
+
* **This module is shared with the rest of the plugin fleet.** `./authorization`
|
|
27
|
+
* is the one subpath of this package a sibling business plugin may import: the
|
|
28
|
+
* fleet's `no-cross-plugin-import` gate (`C12`) exempts that exact specifier so
|
|
29
|
+
* `RBAC-06` — one role hierarchy across the fleet — is met by an import rather
|
|
30
|
+
* than by a copy each plugin has to pin with a test. The exemption is
|
|
31
|
+
* conditional on this file staying pure, and the `authorization-purity` gate in
|
|
32
|
+
* `scripts/verify-fleet-gates.mjs` enforces it in all four plugins: it walks
|
|
33
|
+
* this module's import closure and fails on React, on any bare dependency other
|
|
34
|
+
* than `zod`, or on any read of a runtime global. Keep it framework-neutral and
|
|
35
|
+
* effect-free — anything else here breaks every sibling plugin's build.
|
|
25
36
|
*/
|
|
26
37
|
import { RoleTypeSchema } from "./schemas.js";
|
|
27
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,cAAc,EAAiB,MAAM,cAAc,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB,cAAc,CAAC,OAAO,CAAC;AAEzE,wDAAwD;AACxD,MAAM,eAAe,GAAa,YAAY,CAAC;AAE/C;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,IAAc;IACjC,OAAO,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,WAAqB,EAAE,YAAsB;IAC1E,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACrD,IAAI,OAAO,KAAK,CAAC,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACpD,OAAO,OAAO,IAAI,QAAQ,CAAC;AAC7B,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAAc,EAAE,WAAoB;IAC/E,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACrC,IAAI,IAAI,KAAK,eAAe;QAAE,OAAO,WAAW,KAAK,IAAI,CAAC;IAC1D,OAAO,WAAW,KAAK,KAAK,CAAC;AAC/B,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAc,EAAE,WAAoB;IACzE,OAAO,4BAA4B,CAAC,IAAI,EAAE,WAAW,CAAC;WACjD,IAAI,KAAK,eAAe;WACxB,WAAW,KAAK,IAAI,CAAC;AAC5B,CAAC"}
|