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