@ti-engine/web-framework 1.24.2 → 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,15 @@
|
|
|
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
|
+
|
|
5
14
|
## Version 1.24.2
|
|
6
15
|
|
|
7
16
|
Dependency maintenance only — no framework 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.
|
|
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",
|
|
@@ -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
|
/**
|