From e73d97c7ff79c5db3d30b92e363cc9fc99feb5d7 Mon Sep 17 00:00:00 2001 From: Richard Lindner Date: Wed, 25 Sep 2024 14:28:26 +0200 Subject: [PATCH] version 1.2.0, upgrade dependencies, update CHANGELOG --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ package-lock.json | 20 ++++++++++---------- package.json | 2 +- 3 files changed, 47 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49ad74b..03d306a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,42 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. +## v1.2.0 - 2024-09-25 + +⚠️ This release contains two minor breaking changes. + +### Changed + +- The main class of the library is no longer explicitly exported. You can access it implicitly as constructor of the + exported class instance. + + ```javascript + // before + const { FeatureToggles } = require("@cap-js-community/feature-toggle-library"); + const myToggles = new FeatureToggles({ uniqueName: "snowflake" }); + + // after + const toggles = require("@cap-js-community/feature-toggle-library"); + const FeatureToggles = toggles.constructor; + const myToggles = new FeatureToggles({ uniqueName: "snowflake" }); + ``` + +- cds-plugin: rewrote `/rest/feature/redisRead` endpoint to show all Redis maintained toggle values, including those of + toggles that are _not configured_. The endpoint no longer refreshes the server-local toggle state. Consequently, it + will work with `read` access privileges, since it can no longer modify the server-local state (fixes #69). + +### Added + +- added `remoteOnly` option for `/rest/feature/redisUpdate` endpoint and the `changeFeatureValue()` API. With this + option, you can clean up Redis maintained values that are no longer configured (fixes #69). +- cds-plugin: better detection of serve mode following changes in [@sap/cds](https://www.npmjs.com/package/@sap/cds) + v8.2.3 + +### Fixed + +- multiple, even concurrent, calls of `initializeFeatures()` will only ever trigger one execution of the underlying + initialization. + ## v1.1.7 - 2024-09-17 ### Fixed diff --git a/package-lock.json b/package-lock.json index 33f9b17..01c2a65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cap-js-community/feature-toggle-library", - "version": "1.1.7", + "version": "1.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cap-js-community/feature-toggle-library", - "version": "1.1.7", + "version": "1.2.0", "license": "Apache-2.0", "dependencies": { "redis": "^4.7.0", @@ -1549,9 +1549,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.6.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.6.1.tgz", - "integrity": "sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw==", + "version": "22.7.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.0.tgz", + "integrity": "sha512-MOdOibwBs6KW1vfqz2uKMlxq5xAfAZ98SZjO8e3XnAbFnTJtAspqhWk7hrdSAs9/Y14ZWMiy7/MxMUzAOadYEw==", "dev": true, "license": "MIT", "dependencies": { @@ -2099,9 +2099,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.0.tgz", + "integrity": "sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==", "dev": true, "funding": [ { @@ -2119,8 +2119,8 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", + "caniuse-lite": "^1.0.30001663", + "electron-to-chromium": "^1.5.28", "node-releases": "^2.0.18", "update-browserslist-db": "^1.1.0" }, diff --git a/package.json b/package.json index 60d1674..ca0748d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js-community/feature-toggle-library", - "version": "1.1.7", + "version": "1.2.0", "description": "SAP BTP feature toggle library enables Node.js applications using the SAP Cloud Application Programming Model to maintain live-updatable feature toggles via Redis.", "main": "src/index.js", "files": [