@rytass/bpm-core-shared 0.9.0 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## 0.10.0 (2026-08-18)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **form-data-source:** add read-only resolve queries and dependency-wait signals ([e8d9b78](https://github.com/Rytass/BPMCore/commit/e8d9b78))
6
+ - **template:** let hosts observe changes and refuse deactivated publishes ([3882dc2](https://github.com/Rytass/BPMCore/commit/3882dc2))
7
+ - **notification:** honour recipient preferences instead of dropping rows ([576b8c4](https://github.com/Rytass/BPMCore/commit/576b8c4))
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Chia Yu Pai @fantasywind
12
+
13
+ ## 0.9.1 (2026-08-18)
14
+
15
+ ### 🩹 Fixes
16
+
17
+ - **bpm-core-react:** keep moment a required dependency ([41dd5fa](https://github.com/Rytass/BPMCore/commit/41dd5fa))
18
+
19
+ ### ❤️ Thank You
20
+
21
+ - Chia Yu Pai @fantasywind
22
+ - Claude Opus 5
23
+
1
24
  ## 0.9.0 (2026-08-17)
2
25
 
3
26
  ### 🚀 Features
@@ -70,6 +93,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
70
93
  persisted label-snapshot contracts.
71
94
  - Added `autocomplete` fields plus pure option-field guards and legacy schema
72
95
  normalization.
96
+ - `FormDataSourceValueSnapshot` now carries an optional `revalidationPolicy`,
97
+ recording the policy the source declared when the snapshot was written. Once a
98
+ source leaves the host registry its descriptor is gone, so without this record
99
+ there is no way to tell whether reusing the snapshot would quietly skip an
100
+ `ALWAYS` revalidation. The field is optional so snapshots persisted before it
101
+ existed keep loading.
73
102
 
74
103
  Releases are managed by [`nx release`](https://nx.dev/recipes/nx-release) with
75
104
  Conventional Commits — see `nx.json` for the release config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rytass/bpm-core-shared",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Shared TypeScript contracts for the Rytass BPM approval workflow stack (workflow, form, condition, identity, organization, status types).",
5
5
  "keywords": [
6
6
  "bpm",
package/src/lib/form.d.ts CHANGED
@@ -69,6 +69,14 @@ export type FormDataSourceValueSnapshot = {
69
69
  readonly dataSourceKey: string;
70
70
  readonly dataSourceVersion: number;
71
71
  readonly options: readonly FormFieldOption[];
72
+ /**
73
+ * The policy the source declared when this snapshot was written. Once the
74
+ * source leaves the registry its descriptor is gone, so without this record
75
+ * there is no way to tell whether reusing the snapshot would quietly skip an
76
+ * `ALWAYS` revalidation. Optional because snapshots persisted before this
77
+ * field existed must keep loading.
78
+ */
79
+ readonly revalidationPolicy?: 'ALWAYS' | 'WHEN_VALUE_OR_BINDINGS_CHANGE';
72
80
  readonly validatedAt: string;
73
81
  };
74
82
  export type FormDataSourceValueSnapshots = Readonly<Record<string, FormDataSourceValueSnapshot>>;
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../libs/shared/src/lib/form.ts"],"names":[],"mappings":";;AAgJA,kEASC;AAED,0EAQC;AAED,8EAQC;AAED,gEAYC;AAED,sEAOC;AApDD,SAAgB,2BAA2B,CACzC,KAA0B;IAE1B,OAAO,CACL,KAAK,CAAC,IAAI,KAAK,QAAQ;QACvB,KAAK,CAAC,IAAI,KAAK,cAAc;QAC7B,KAAK,CAAC,IAAI,KAAK,OAAO;QACtB,KAAK,CAAC,IAAI,KAAK,UAAU,CAC1B,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,KAA0B;IAE1B,OAAO,CACL,2BAA2B,CAAC,KAAK,CAAC;QAClC,YAAY,IAAI,KAAK;QACrB,OAAO,KAAK,CAAC,UAAU,KAAK,WAAW,CACxC,CAAC;AACJ,CAAC;AAED,SAAgB,iCAAiC,CAC/C,KAA0B;IAE1B,OAAO,CACL,2BAA2B,CAAC,KAAK,CAAC;QA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