New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cap-js-community/feature-toggle-library

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js-community/feature-toggle-library - npm Package Versions

2

1.2.3

Diff

Changelog

Source

v1.2.3 - 2025-02-05

Added

  • cds-plugin: added explicit implementation for FeatureService.
  • enable node v22 voters.

Fixed

  • cds-plugin: allow feature toggles to initialize with no configured toggles.
  • use proper cds syntax to get service operations (by johannes-vogel).
rlindner81sap
published 1.2.2 •

Changelog

Source

v1.2.2 - 2024-11-14

Changed

  • the initialization log of the library will now show the unique name used. this name is used to derive both the redis storage key and pub/sub channel.

Fixed

  • internal naming cleanup and consistency work.
rlindner81sap
published 1.2.1 •

Changelog

Source

v1.2.1 - 2024-09-30

Changed

  • cds-plugin: service endpoint /rest/feature/redisRead will return server in-memory changes in NO_REDIS mode in order to be consistent with /rest/feature/redisUpdate.

Added

  • cds-plugin: added cds.test() basic request/response tests for service.

Fixed

  • cds-plugin: service endpoint /rest/feature/redisRead works without http errors in NO_REDIS mode.
rlindner81sap
published 1.2.0 •

Changelog

Source

v1.2.0 - 2024-09-25

⚠️ 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.
rlindner81sap
published 1.1.7 •

Changelog

Source

v1.1.7 - 2024-09-17

Fixed

  • setting a root value with the option { clearSubScopes: true } only deleted the root and scoped values, but did not set the new root value.
rlindner81sap
published 1.1.6 •

Changelog

Source

v1.1.6 - 2024-07-23

Fixed

  • cds-plugin: fix uniqueName configuration processing
  • more consistent scope preference order when 2 out of 4 scopes are set
rlindner81sap
published 1.1.5 •

Changelog

Source

v1.1.5 - 2024-06-06

Changed

  • fallback value null is no longer allowed (fixes #62).
  • change handlers no longer receive null as new values, they get the actual new value for the relevant scope instead (fixes #64).

Fixed

  • cds-plugin: unify and fix syntax of context.error and context.reject for cds service.
  • change processing is more resilient. for redis message with multiple changes, if one change fails, then subsequent changes will still be processed.
rlindner81sap
published 1.1.4 •

Changelog

Source

v1.1.4 - 2024-04-08

Added

  • docs: basic documentation for newest cds-plugin features.
  • cds-plugin: better access control (fixes #57).

Fixed

  • redis: better integration mode, will not log a connection error if redis is not present.
rlindner81sap
published 1.1.3 •

rlindner81sap
published 1.1.2 •

Changelog

Source

v1.1.2 - 2024-03-21

Added

  • cds-plugin: fts feature toggles are detected and configured automatically (fixes #50).
  • cds-plugin: allow custom scope map callback for fts feature toggles (fixes #51).
  • cds-plugin: can configure unique name, i.e. which apps store the same toggles in redis, as part of cds configuration.

Fixed

  • cds-plugin: feature toggles will not initialize during cds build.
  • redis: proper usage of redis-client built-in reconnect capabilities.
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc