Skip to content

Commit

Permalink
prepare 1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rlindner81 committed Dec 1, 2023
1 parent f811441 commit e301aed
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 52 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v1.1.0 - 2023-12-01

⚠️ User action required! This release will be more disruptive than usual. We re-thought that main `require` API and
made it much leaner. These changes should have happened in 1.0, sorry for the inconvenience.

```javascript
// before
const {
singleton: { getFeatureValue },
} = require("@cap-js-community/feature-toggle-library");

function someFunc() {
getFeatureValue(key);
}

// after
const toggles = require("@cap-js-community/feature-toggle-library");

function someFunc() {
toggles.getFeatureValue(key);
}
```

For details see
[https://cap-js-community.github.io/feature-toggle-library/usage/](https://cap-js-community.github.io/feature-toggle-library/usage/)

### Changed

- the library now exports _only_ the singleton instance (fixes #39).
- cds-plugin: the request header features are only respected in development environments (fixes #41).

## v1.0.0 - 2023-11-27

We are releasing 1.0, after 2 years of continuous usage, testing, and small improvements.
Expand Down
102 changes: 51 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cap-js-community/feature-toggle-library",
"version": "1.0.0",
"version": "1.1.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": [
Expand Down

0 comments on commit e301aed

Please sign in to comment.