Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roadmap to v1.1.0 #39

Closed
3 tasks done
rlindner81 opened this issue Nov 29, 2023 · 0 comments · Fixed by #40
Closed
3 tasks done

Roadmap to v1.1.0 #39

rlindner81 opened this issue Nov 29, 2023 · 0 comments · Fixed by #40

Comments

@rlindner81
Copy link
Contributor

rlindner81 commented Nov 29, 2023

We will change the export require interface of the library to work as follows:

const toggles = require("cap-js-community/feature-toggle-library")


function someFunc() {
  toggles.getFeatureValue(...)
}

In other words, the library exports only a singleton instance directly. It will be the real singleton instance, which is not spreadable.

The underlying class will be exported as a static field on the singleton.

const { FeatureToggles } = require("cap-js-community/feature-toggle-library");

const customToggles = new FeatureToggles(...)
  • update code
  • update example-cap-server
  • update docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant