@objectstack/plugin-sharing 7.3.0 → 7.4.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-sharing@7.3.0 build /home/runner/work/framework/framework/packages/plugins/plugin-sharing
2
+ > @objectstack/plugin-sharing@7.4.1 build /home/runner/work/framework/framework/packages/plugins/plugin-sharing
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.mjs 48.89 KB
14
- ESM dist/index.mjs.map 110.16 KB
15
- ESM ⚡️ Build success in 134ms
16
- CJS dist/index.js 50.56 KB
17
- CJS dist/index.js.map 110.16 KB
18
- CJS ⚡️ Build success in 157ms
13
+ CJS dist/index.js 111.70 KB
14
+ CJS dist/index.js.map 191.45 KB
15
+ CJS ⚡️ Build success in 282ms
16
+ ESM dist/index.mjs 109.73 KB
17
+ ESM dist/index.mjs.map 191.43 KB
18
+ ESM ⚡️ Build success in 286ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 21561ms
21
- DTS dist/index.d.mts 15.66 KB
22
- DTS dist/index.d.ts 15.66 KB
20
+ DTS ⚡️ Build success in 23276ms
21
+ DTS dist/index.d.mts 441.17 KB
22
+ DTS dist/index.d.ts 441.17 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,97 @@
1
1
  # @objectstack/plugin-sharing
2
2
 
3
+ ## 7.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @objectstack/spec@7.4.1
8
+ - @objectstack/core@7.4.1
9
+ - @objectstack/objectql@7.4.1
10
+ - @objectstack/platform-objects@7.4.1
11
+
12
+ ## 7.4.0
13
+
14
+ ### Minor Changes
15
+
16
+ - e478e0c: ADR-0029 K2 — security domain ownership (RBAC + sharing) + Setup nav contributions.
17
+
18
+ Moves the security objects out of the `@objectstack/platform-objects` monolith
19
+ into the two capability plugins that already register and operate them, split by
20
+ concern (the two are orthogonal — sharing objects never reference RBAC objects):
21
+
22
+ - **`@objectstack/plugin-security`** (RBAC) gains `sys_role`,
23
+ `sys_permission_set`, `sys_user_permission_set`, `sys_role_permission_set`,
24
+ and the `defaultPermissionSets` seed (which its `bootstrap-platform-admin`
25
+ already consumes). The RBAC + default-permission-set tests move with them.
26
+ - **`@objectstack/plugin-sharing`** gains `sys_record_share`,
27
+ `sys_sharing_rule`, `sys_share_link`.
28
+ - `@objectstack/platform-objects` no longer defines/exports any security
29
+ objects; the `/security` subpath is now an empty barrel. Runtime is unchanged
30
+ (both plugins already registered these objects at runtime).
31
+
32
+ **D7 navigation** — the Setup app's `group_access_control` is now assembled from
33
+ three sources: `plugin-security` contributes Roles / Permission Sets (priority
34
+ 100), `plugin-sharing` contributes Sharing Rules / Record Shares (priority 200),
35
+ and `platform-objects` keeps only API Keys (`sys_api_key`, an identity object,
36
+ priority 300) — preserving the original menu order.
37
+
38
+ **i18n (D8)** — the objects are removed from the `platform-objects` i18n extract
39
+ config; existing generated bundles keep working at runtime (object-name keyed).
40
+ Migrating the i18n extraction to the owning plugins remains the tracked
41
+ follow-up.
42
+
43
+ ### Patch Changes
44
+
45
+ - 4404572: ADR-0029 D8 — migrate i18n ownership for the moved domains to their plugins.
46
+
47
+ The object translations for the domains decomposed in K2.a/K2.b/K2 previously
48
+ lived in the `@objectstack/platform-objects` generated bundles even though the
49
+ objects now live in their capability plugins. This moves each domain's i18n
50
+ extraction + bundles to the owning plugin, preserving every hand-translated
51
+ string (zh-CN / ja-JP / es-ES):
52
+
53
+ - Each plugin gains a build-time `scripts/i18n-extract.config.ts` and a
54
+ `src/translations/` bundle (`{locale}.objects.generated.ts` + an `index.ts`
55
+ barrel), generated with `os i18n extract` and self-baselined so re-runs
56
+ preserve translations.
57
+ - Each plugin loads its bundle at runtime on `kernel:ready` via
58
+ `i18n.loadTranslations` (the i18n service is optional — load is best-effort).
59
+ - `plugin-webhooks` ← `sys_webhook`, `sys_webhook_delivery`
60
+ - `plugin-approvals` ← `sys_approval_request`, `sys_approval_action`
61
+ - `plugin-security` ← `sys_role`, `sys_permission_set`,
62
+ `sys_user_permission_set`, `sys_role_permission_set`
63
+ - `plugin-sharing` ← `sys_record_share`, `sys_sharing_rule`, `sys_share_link`
64
+ - `@objectstack/platform-objects` translation bundles are regenerated to drop
65
+ those objects' keys (its extract config already excluded them); all other
66
+ objects' translations and the metadata-form bundles are preserved.
67
+
68
+ Net runtime effect is unchanged (same translations load, now contributed by the
69
+ package that owns each object) — closing the D8 follow-up tracked since K2.a.
70
+
71
+ - Updated dependencies [23c7107]
72
+ - Updated dependencies [c72daad]
73
+ - Updated dependencies [4404572]
74
+ - Updated dependencies [eea3f1b]
75
+ - Updated dependencies [e478e0c]
76
+ - Updated dependencies [4cc2ced]
77
+ - Updated dependencies [13632b1]
78
+ - Updated dependencies [f115182]
79
+ - Updated dependencies [2faf9f2]
80
+ - Updated dependencies [2faf9f2]
81
+ - Updated dependencies [2faf9f2]
82
+ - Updated dependencies [2faf9f2]
83
+ - Updated dependencies [a6d4cbb]
84
+ - Updated dependencies [58b450b]
85
+ - Updated dependencies [82eb6cf]
86
+ - Updated dependencies [c381977]
87
+ - Updated dependencies [13d8653]
88
+ - Updated dependencies [ff3d006]
89
+ - Updated dependencies [5e831de]
90
+ - @objectstack/spec@7.4.0
91
+ - @objectstack/objectql@7.4.0
92
+ - @objectstack/platform-objects@7.4.0
93
+ - @objectstack/core@7.4.0
94
+
3
95
  ## 7.3.0
4
96
 
5
97
  ### Patch Changes