Skip to content

Commit e73d97c

Browse files
committed
version 1.2.0, upgrade dependencies, update CHANGELOG
1 parent b55d650 commit e73d97c

File tree

3 files changed

+47
-11
lines changed

3 files changed

+47
-11
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,42 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
<!-- order is REMOVED, CHANGED, ADDED, FIXED -->
99

10+
## v1.2.0 - 2024-09-25
11+
12+
⚠️ This release contains two minor breaking changes.
13+
14+
### Changed
15+
16+
- The main class of the library is no longer explicitly exported. You can access it implicitly as constructor of the
17+
exported class instance.
18+
19+
```javascript
20+
// before
21+
const { FeatureToggles } = require("@cap-js-community/feature-toggle-library");
22+
const myToggles = new FeatureToggles({ uniqueName: "snowflake" });
23+
24+
// after
25+
const toggles = require("@cap-js-community/feature-toggle-library");
26+
const FeatureToggles = toggles.constructor;
27+
const myToggles = new FeatureToggles({ uniqueName: "snowflake" });
28+
```
29+
30+
- cds-plugin: rewrote `/rest/feature/redisRead` endpoint to show all Redis maintained toggle values, including those of
31+
toggles that are _not configured_. The endpoint no longer refreshes the server-local toggle state. Consequently, it
32+
will work with `read` access privileges, since it can no longer modify the server-local state (fixes #69).
33+
34+
### Added
35+
36+
- added `remoteOnly` option for `/rest/feature/redisUpdate` endpoint and the `changeFeatureValue()` API. With this
37+
option, you can clean up Redis maintained values that are no longer configured (fixes #69).
38+
- cds-plugin: better detection of serve mode following changes in [@sap/cds](https://www.npmjs.com/package/@sap/cds)
39+
v8.2.3
40+
41+
### Fixed
42+
43+
- multiple, even concurrent, calls of `initializeFeatures()` will only ever trigger one execution of the underlying
44+
initialization.
45+
1046
## v1.1.7 - 2024-09-17
1147

1248
### Fixed

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cap-js-community/feature-toggle-library",
3-
"version": "1.1.7",
3+
"version": "1.2.0",
44
"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.",
55
"main": "src/index.js",
66
"files": [

0 commit comments

Comments
 (0)