Skip to content

v1.1.0

Compare
Choose a tag to compare
@rlindner81 rlindner81 released this 01 Dec 14:07
· 89 commits to main since this release

⚠️ 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.

// 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/

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).