@ti-engine/web-framework 1.24.1 → 1.25.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
@@ -2,6 +2,26 @@
2
2
 
3
3
  This document will contain the list of changes made to the framework. The format is based on the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
4
4
 
5
+ ## Version 1.25.0
6
+
7
+ * feat(config-management): surface a `driftTracked` flag on the `getDrift` / `listDrift` payloads, defaulting to
8
+ `true` and set to `false` by a document registering `metadata.driftTracked: false`. Drift compares a stored value
9
+ against the file default shipped in the image, which is meaningful for vendor-shipped product content and
10
+ meaningless for a document holding customer data — that always differs, forever, and would drown a signal that
11
+ otherwise means "a release changed something this deployment is not serving". Consumers now filter on data rather
12
+ than on a hardcoded key list (CA-107)
13
+
14
+ ## Version 1.24.2
15
+
16
+ Dependency maintenance only — no framework code changed.
17
+
18
+ * chore(deps): update `@alpinejs/csp` from `^3.15.12` to `^3.16.1`, and refresh the vendored
19
+ `bin/static/scripts/lib/alpinejs-csp.min.js` to the matching build. The vendored file is what the browser actually
20
+ loads, so it has to move with the dependency or the two silently disagree; it is byte-identical to
21
+ `node_modules/@alpinejs/csp/dist/cdn.min.js` at 3.16.1
22
+ * chore(deps): update `openid-client` from `^6.8.4` to `^6.8.5`
23
+ * chore(deps): update `@types/express-session` from `^1.18.2` to `^1.19.0` (type declarations only — no runtime code)
24
+
5
25
  ## Version 1.24.1
6
26
 
7
27
  License change only — no functional code changed.
@@ -326,7 +326,7 @@ class ConfigService {
326
326
  *
327
327
  * @method
328
328
  * @param {string} configKey
329
- * @returns {Promise<{configKey: string, status: string, counts: Object, entries: Array, storedVersion: number, editable: boolean, label: string}>}
329
+ * @returns {Promise<{configKey: string, status: string, counts: Object, entries: Array, storedVersion: number, editable: boolean, driftTracked: boolean, label: string}>}
330
330
  * @throws {TiException.E_WEB_INVALID_REQUEST_PARAMETERS} If the document is not registered.
331
331
  * @public
332
332
  */
@@ -344,6 +344,7 @@ class ConfigService {
344
344
  entries: diff.entries,
345
345
  storedVersion: current ? current.version : 0,
346
346
  editable: metadata.editable !== false,
347
+ driftTracked: metadata.driftTracked !== false,
347
348
  label: metadata.label || configKey
348
349
  };
349
350
  } );
@@ -367,6 +368,7 @@ class ConfigService {
367
368
  counts: drift.counts,
368
369
  storedVersion: drift.storedVersion,
369
370
  editable: drift.editable,
371
+ driftTracked: drift.driftTracked,
370
372
  label: drift.label
371
373
  } ) );
372
374
  } ) );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ti-engine/web-framework",
3
- "version": "1.24.1",
3
+ "version": "1.25.0",
4
4
  "description": "A web-framework based on the ti-engine. It provides a customizable ready-to-use web-server microservice and a set of tools for creating web applications. NOTICE: This is still a work in progress and the full architecture, design, and functionality are not available!",
5
5
  "keywords": [
6
6
  "ti-engine",
@@ -112,10 +112,10 @@
112
112
  "#web-server-config": "./bin/web-server.json"
113
113
  },
114
114
  "dependencies": {
115
- "@alpinejs/csp": "^3.15.12",
115
+ "@alpinejs/csp": "^3.16.1",
116
116
  "@ti-engine/core": "*",
117
117
  "@types/express": "^5.0.6",
118
- "@types/express-session": "^1.18.2",
118
+ "@types/express-session": "^1.19.0",
119
119
  "@types/node": "^26.2.0",
120
120
  "ajv": "^8.20.0",
121
121
  "cookie-parser": "^1.4.7",
@@ -124,7 +124,7 @@
124
124
  "helmet": "^8.3.0",
125
125
  "htmx.org": "^2.0.10",
126
126
  "lodash": "^4.18.1",
127
- "openid-client": "^6.8.4"
127
+ "openid-client": "^6.8.5"
128
128
  },
129
129
  "devDependencies": {
130
130
  "typescript": "^7.0.2"
@@ -198,7 +198,7 @@ declare class ConfigService {
198
198
  *
199
199
  * @method
200
200
  * @param {string} configKey
201
- * @returns {Promise<{configKey: string, status: string, counts: Object, entries: Array, storedVersion: number, editable: boolean, label: string}>}
201
+ * @returns {Promise<{configKey: string, status: string, counts: Object, entries: Array, storedVersion: number, editable: boolean, driftTracked: boolean, label: string}>}
202
202
  * @throws {TiException.E_WEB_INVALID_REQUEST_PARAMETERS} If the document is not registered.
203
203
  * @public
204
204
  */
@@ -209,6 +209,7 @@ declare class ConfigService {
209
209
  entries: any[];
210
210
  storedVersion: number;
211
211
  editable: boolean;
212
+ driftTracked: boolean;
212
213
  label: string;
213
214
  }>;
214
215
  /**