@objectstack/plugin-approvals 9.10.0 → 10.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-approvals@9.10.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
2
+ > @objectstack/plugin-approvals@10.0.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
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 119.79 KB
14
- ESM dist/index.mjs.map 215.17 KB
15
- ESM ⚡️ Build success in 314ms
16
- CJS dist/index.js 121.46 KB
17
- CJS dist/index.js.map 216.37 KB
18
- CJS ⚡️ Build success in 317ms
13
+ ESM dist/index.mjs 119.84 KB
14
+ ESM dist/index.mjs.map 215.22 KB
15
+ ESM ⚡️ Build success in 190ms
16
+ CJS dist/index.js 121.50 KB
17
+ CJS dist/index.js.map 216.42 KB
18
+ CJS ⚡️ Build success in 201ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 19129ms
21
- DTS dist/index.d.mts 338.33 KB
22
- DTS dist/index.d.ts 338.33 KB
20
+ DTS ⚡️ Build success in 24235ms
21
+ DTS dist/index.d.mts 368.13 KB
22
+ DTS dist/index.d.ts 368.13 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e16f2a8: **BREAKING:** the system object `sys_department` is renamed to `sys_business_unit`
8
+ — object + member table (`sys_department_member` → `sys_business_unit_member`),
9
+ fields, and i18n — with **no compatibility alias**. Any deployment holding
10
+ `sys_department` rows, or metadata that references the object by name (lookups,
11
+ list views, queries, sharing/approval scopes), must migrate to `sys_business_unit`.
12
+ A renamed shipped system object is a breaking change to the platform's public
13
+ data surface, so this lands as a **major**. Verified per ADR-0059's pre-publish
14
+ hotcrm gate: no published downstream consumer references the old name.
15
+
16
+ ADR-0057 — ERP authorization core. Adds permission-grant access DEPTH
17
+ (`own`/`own_and_reports`/`unit`/`unit_and_below`/`org`), renames `sys_department`
18
+ → `sys_business_unit` (no aliases — see BREAKING above), introduces the platform-owned
19
+ `sys_user_role` assignment, and seeds stack-declared `roles`/`sharingRules` into
20
+ `sys_role`/`sys_sharing_rule` at boot (closes #2077). Hierarchy-relative scopes are
21
+ delegated to a pluggable `IHierarchyScopeResolver` (open edition fails closed to
22
+ owner-only; `defineStack` errors without `requires: ['hierarchy-security']`). Also
23
+ fixes a latent over-grant where `engine.find({ filter })` was ignored (driver reads
24
+ `where`) — normalized `filter`→`where` in the engine.
25
+
26
+ - Updated dependencies [d7ff626]
27
+ - Updated dependencies [2a1b16b]
28
+ - Updated dependencies [2256e93]
29
+ - Updated dependencies [7108ff3]
30
+ - Updated dependencies [30c0313]
31
+ - Updated dependencies [e16f2a8]
32
+ - Updated dependencies [cfd86ce]
33
+ - Updated dependencies [e411a82]
34
+ - Updated dependencies [ae271d0]
35
+ - Updated dependencies [61ed5c7]
36
+ - Updated dependencies [a581385]
37
+ - Updated dependencies [d5f6d29]
38
+ - Updated dependencies [220ce5b]
39
+ - Updated dependencies [3efe334]
40
+ - Updated dependencies [0df063e]
41
+ - Updated dependencies [ce13bb8]
42
+ - Updated dependencies [feead7e]
43
+ - Updated dependencies [6ca20b3]
44
+ - Updated dependencies [5f875fe]
45
+ - Updated dependencies [b469950]
46
+ - Updated dependencies [47d978a]
47
+ - Updated dependencies [48a307a]
48
+ - Updated dependencies [25fc0e4]
49
+ - @objectstack/spec@10.0.0
50
+ - @objectstack/platform-objects@10.0.0
51
+ - @objectstack/formula@10.0.0
52
+ - @objectstack/core@10.0.0
53
+ - @objectstack/metadata-core@10.0.0
54
+
55
+ ## 9.11.0
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [e7f6539]
60
+ - Updated dependencies [2365d07]
61
+ - Updated dependencies [6595b53]
62
+ - Updated dependencies [fa8964d]
63
+ - Updated dependencies [36138c7]
64
+ - Updated dependencies [a8e4f3b]
65
+ - Updated dependencies [4c213c2]
66
+ - Updated dependencies [2afb612]
67
+ - @objectstack/spec@9.11.0
68
+ - @objectstack/core@9.11.0
69
+ - @objectstack/formula@9.11.0
70
+ - @objectstack/metadata-core@9.11.0
71
+ - @objectstack/platform-objects@9.11.0
72
+
3
73
  ## 9.10.0
4
74
 
5
75
  ### Patch Changes