v1.1.0
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/