@cap-js-community/feature-toggle-library
Advanced tools
Changelog
v1.2.3 - 2025-02-05
FeatureService
.Changelog
v1.2.2 - 2024-11-14
Changelog
v1.2.1 - 2024-09-30
/rest/feature/redisRead
will return server in-memory changes in NO_REDIS mode in
order to be consistent with /rest/feature/redisUpdate
.cds.test()
basic request/response tests for service./rest/feature/redisRead
works without http errors in NO_REDIS mode.Changelog
v1.2.0 - 2024-09-25
⚠️ This release contains two minor breaking changes.
The main class of the library is no longer explicitly exported. You can access it implicitly as constructor of the exported class instance.
// before
const { FeatureToggles } = require("@cap-js-community/feature-toggle-library");
const myToggles = new FeatureToggles({ uniqueName: "snowflake" });
// after
const toggles = require("@cap-js-community/feature-toggle-library");
const FeatureToggles = toggles.constructor;
const myToggles = new FeatureToggles({ uniqueName: "snowflake" });
cds-plugin: rewrote /rest/feature/redisRead
endpoint to show all Redis maintained toggle values, including those of
toggles that are not configured. The endpoint no longer refreshes the server-local toggle state. Consequently, it
will work with read
access privileges, since it can no longer modify the server-local state (fixes #69).
remoteOnly
option for /rest/feature/redisUpdate
endpoint and the changeFeatureValue()
API. With this
option, you can clean up Redis maintained values that are no longer configured (fixes #69).initializeFeatures()
will only ever trigger one execution of the underlying
initialization.Changelog
v1.1.7 - 2024-09-17
{ clearSubScopes: true }
only deleted the root and scoped values, but did
not set the new root value.Changelog
v1.1.6 - 2024-07-23
uniqueName
configuration processingChangelog
v1.1.5 - 2024-06-06
null
is no longer allowed (fixes #62).null
as new values, they get the actual new value for the relevant scope instead
(fixes #64).context.error
and context.reject
for cds service.Changelog
v1.1.4 - 2024-04-08
Changelog
v1.1.2 - 2024-03-21