Skip to content

Commit e301aed

Browse files
committed
prepare 1.1.0 release
1 parent f811441 commit e301aed

File tree

3 files changed

+83
-52
lines changed

3 files changed

+83
-52
lines changed

CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## v1.1.0 - 2023-12-01
9+
10+
⚠️ User action required! This release will be more disruptive than usual. We re-thought that main `require` API and
11+
made it much leaner. These changes should have happened in 1.0, sorry for the inconvenience.
12+
13+
```javascript
14+
// before
15+
const {
16+
singleton: { getFeatureValue },
17+
} = require("@cap-js-community/feature-toggle-library");
18+
19+
function someFunc() {
20+
getFeatureValue(key);
21+
}
22+
23+
// after
24+
const toggles = require("@cap-js-community/feature-toggle-library");
25+
26+
function someFunc() {
27+
toggles.getFeatureValue(key);
28+
}
29+
```
30+
31+
For details see
32+
[https://cap-js-community.github.io/feature-toggle-library/usage/](https://cap-js-community.github.io/feature-toggle-library/usage/)
33+
34+
### Changed
35+
36+
- the library now exports _only_ the singleton instance (fixes #39).
37+
- cds-plugin: the request header features are only respected in development environments (fixes #41).
38+
839
## v1.0.0 - 2023-11-27
940

1041
We are releasing 1.0, after 2 years of continuous usage, testing, and small improvements.

package-lock.json

+51-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cap-js-community/feature-toggle-library",
3-
"version": "1.0.0",
3+
"version": "1.1.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)