Skip to content

v1.2.0

Compare
Choose a tag to compare
@rlindner81 rlindner81 released this 25 Sep 12:39
· 21 commits to main since this release

⚠️ This release contains two minor breaking changes.

Changed

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

Added

  • added 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).
  • cds-plugin: better detection of serve mode following changes in @sap/cds
    v8.2.3

Fixed

  • multiple, even concurrent, calls of initializeFeatures() will only ever trigger one execution of the underlying
    initialization.