@objectstack/plugin-approvals 11.9.0 → 11.10.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@11.9.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
2
+ > @objectstack/plugin-approvals@11.10.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.96 KB
14
- CJS dist/index.js.map 217.11 KB
15
- CJS ⚡️ Build success in 191ms
16
13
  ESM dist/index.mjs 120.29 KB
17
- ESM dist/index.mjs.map 215.91 KB
18
- ESM ⚡️ Build success in 219ms
14
+ ESM dist/index.mjs.map 215.92 KB
15
+ ESM ⚡️ Build success in 197ms
16
+ CJS dist/index.js 121.96 KB
17
+ CJS dist/index.js.map 217.12 KB
18
+ CJS ⚡️ Build success in 240ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 17406ms
21
- DTS dist/index.d.mts 368.19 KB
22
- DTS dist/index.d.ts 368.19 KB
20
+ DTS ⚡️ Build success in 27024ms
21
+ DTS dist/index.d.mts 368.08 KB
22
+ DTS dist/index.d.ts 368.08 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 11.10.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a9397e: Retire the deprecated `compactLayout` alias for `highlightFields` (framework#2536, closes the ADR-0085 deprecation window).
8
+
9
+ - `ObjectSchema` no longer declares `compactLayout`: `create()` rejects it like any unknown key; lenient `parse()` strips it (no silent aliasing).
10
+ - The parse-time alias AND the `highlightFields → compactLayout` back-fill transition mirror are removed from `normalizeSemanticRoleAliases`. Served metadata now carries the canonical key only.
11
+ - All remaining first-party authors (27 system objects across plugin-audit / approvals / security / sharing / webhooks / service-storage / automation / messaging / realtime — missed by the #2521 sweep, caught by the type gate) renamed to `highlightFields`.
12
+ - The downstream smoke pin moves to hotcrm v1.2.2 (hotcrm#424: same rename + deps ^11.7.0).
13
+ - Consumers were switched in objectui#2168 and shipped via the console pin bump (#2526); this closes the window scheduled there. The dogfood mirror assertion (#2528) flips to `compactLayout: undefined` in this same change, per the plan it carried.
14
+
15
+ Version note: minor, not major — the key was deprecated-with-alias for a full release window, all first-party consumers/authors are migrated, and the spec api-surface gate reports no export changes (same documented-exception path as the ADR-0085 removals in 11.7.0). External metadata still authoring `compactLayout` will now fail `create()` loudly with the standard unknown-key error naming the key.
16
+
17
+ - Updated dependencies [6a9397e]
18
+ - Updated dependencies [c0efe5d]
19
+ - @objectstack/spec@11.10.0
20
+ - @objectstack/core@11.10.0
21
+ - @objectstack/formula@11.10.0
22
+ - @objectstack/metadata-core@11.10.0
23
+ - @objectstack/platform-objects@11.10.0
24
+
3
25
  ## 11.9.0
4
26
 
5
27
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -347,7 +347,6 @@ declare const SysApprovalRequest: Omit<{
347
347
  } | undefined;
348
348
  } | undefined;
349
349
  highlightFields?: string[] | undefined;
350
- compactLayout?: string[] | undefined;
351
350
  stageField?: string | false | undefined;
352
351
  listViews?: Record<string, {
353
352
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -797,7 +796,7 @@ declare const SysApprovalRequest: Omit<{
797
796
  readonly displayNameField: "id";
798
797
  readonly nameField: "id";
799
798
  readonly titleFormat: "{process_name} · {record_id}";
800
- readonly compactLayout: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"];
799
+ readonly highlightFields: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"];
801
800
  readonly listViews: {
802
801
  readonly my_pending: {
803
802
  readonly type: "grid";
@@ -4370,7 +4369,6 @@ declare const SysApprovalAction: Omit<{
4370
4369
  } | undefined;
4371
4370
  } | undefined;
4372
4371
  highlightFields?: string[] | undefined;
4373
- compactLayout?: string[] | undefined;
4374
4372
  stageField?: string | false | undefined;
4375
4373
  listViews?: Record<string, {
4376
4374
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -4820,7 +4818,7 @@ declare const SysApprovalAction: Omit<{
4820
4818
  readonly displayNameField: "id";
4821
4819
  readonly nameField: "id";
4822
4820
  readonly titleFormat: "{action} · {step_name}";
4823
- readonly compactLayout: ["request_id", "step_name", "action", "actor_id", "created_at"];
4821
+ readonly highlightFields: ["request_id", "step_name", "action", "actor_id", "created_at"];
4824
4822
  readonly listViews: {
4825
4823
  readonly recent: {
4826
4824
  readonly type: "grid";
@@ -6808,7 +6806,6 @@ declare const SysApprovalApprover: Omit<{
6808
6806
  } | undefined;
6809
6807
  } | undefined;
6810
6808
  highlightFields?: string[] | undefined;
6811
- compactLayout?: string[] | undefined;
6812
6809
  stageField?: string | false | undefined;
6813
6810
  listViews?: Record<string, {
6814
6811
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -7258,7 +7255,7 @@ declare const SysApprovalApprover: Omit<{
7258
7255
  readonly displayNameField: "id";
7259
7256
  readonly nameField: "id";
7260
7257
  readonly titleFormat: "{approver} · {request_id}";
7261
- readonly compactLayout: ["request_id", "approver", "created_at"];
7258
+ readonly highlightFields: ["request_id", "approver", "created_at"];
7262
7259
  readonly fields: {
7263
7260
  readonly id: {
7264
7261
  readonly readonly?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -347,7 +347,6 @@ declare const SysApprovalRequest: Omit<{
347
347
  } | undefined;
348
348
  } | undefined;
349
349
  highlightFields?: string[] | undefined;
350
- compactLayout?: string[] | undefined;
351
350
  stageField?: string | false | undefined;
352
351
  listViews?: Record<string, {
353
352
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -797,7 +796,7 @@ declare const SysApprovalRequest: Omit<{
797
796
  readonly displayNameField: "id";
798
797
  readonly nameField: "id";
799
798
  readonly titleFormat: "{process_name} · {record_id}";
800
- readonly compactLayout: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"];
799
+ readonly highlightFields: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"];
801
800
  readonly listViews: {
802
801
  readonly my_pending: {
803
802
  readonly type: "grid";
@@ -4370,7 +4369,6 @@ declare const SysApprovalAction: Omit<{
4370
4369
  } | undefined;
4371
4370
  } | undefined;
4372
4371
  highlightFields?: string[] | undefined;
4373
- compactLayout?: string[] | undefined;
4374
4372
  stageField?: string | false | undefined;
4375
4373
  listViews?: Record<string, {
4376
4374
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -4820,7 +4818,7 @@ declare const SysApprovalAction: Omit<{
4820
4818
  readonly displayNameField: "id";
4821
4819
  readonly nameField: "id";
4822
4820
  readonly titleFormat: "{action} · {step_name}";
4823
- readonly compactLayout: ["request_id", "step_name", "action", "actor_id", "created_at"];
4821
+ readonly highlightFields: ["request_id", "step_name", "action", "actor_id", "created_at"];
4824
4822
  readonly listViews: {
4825
4823
  readonly recent: {
4826
4824
  readonly type: "grid";
@@ -6808,7 +6806,6 @@ declare const SysApprovalApprover: Omit<{
6808
6806
  } | undefined;
6809
6807
  } | undefined;
6810
6808
  highlightFields?: string[] | undefined;
6811
- compactLayout?: string[] | undefined;
6812
6809
  stageField?: string | false | undefined;
6813
6810
  listViews?: Record<string, {
6814
6811
  type: "tree" | "grid" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "chart" | "map";
@@ -7258,7 +7255,7 @@ declare const SysApprovalApprover: Omit<{
7258
7255
  readonly displayNameField: "id";
7259
7256
  readonly nameField: "id";
7260
7257
  readonly titleFormat: "{approver} · {request_id}";
7261
- readonly compactLayout: ["request_id", "approver", "created_at"];
7258
+ readonly highlightFields: ["request_id", "approver", "created_at"];
7262
7259
  readonly fields: {
7263
7260
  readonly id: {
7264
7261
  readonly readonly?: boolean | undefined;
package/dist/index.js CHANGED
@@ -689,7 +689,7 @@ var SysApprovalRequest = import_data.ObjectSchema.create({
689
689
  nameField: "id",
690
690
  // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
691
691
  titleFormat: "{process_name} \xB7 {record_id}",
692
- compactLayout: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"],
692
+ highlightFields: ["process_name", "object_name", "record_id", "status", "current_step", "submitter_id", "updated_at"],
693
693
  // Curated built-in list views — render as segmented tabs in the console.
694
694
  // Filters use {current_user_id} substitution wired by the console.
695
695
  listViews: {
@@ -881,7 +881,7 @@ var SysApprovalAction = import_data2.ObjectSchema.create({
881
881
  nameField: "id",
882
882
  // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
883
883
  titleFormat: "{action} \xB7 {step_name}",
884
- compactLayout: ["request_id", "step_name", "action", "actor_id", "created_at"],
884
+ highlightFields: ["request_id", "step_name", "action", "actor_id", "created_at"],
885
885
  listViews: {
886
886
  recent: {
887
887
  type: "grid",
@@ -984,7 +984,7 @@ var SysApprovalApprover = import_data3.ObjectSchema.create({
984
984
  nameField: "id",
985
985
  // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
986
986
  titleFormat: "{approver} \xB7 {request_id}",
987
- compactLayout: ["request_id", "approver", "created_at"],
987
+ highlightFields: ["request_id", "approver", "created_at"],
988
988
  fields: {
989
989
  id: import_data3.Field.text({ label: "Row ID", required: true, readonly: true, group: "System" }),
990
990
  organization_id: import_data3.Field.lookup("sys_organization", {