This PR:
- brings react-sdk test coverage from 0% to ~95%
- adds DOM-based testing (tests based on asserting DOM entity states)
- tests for query-style, basic, and detailed evaluation APIs
- tests for suspense functionality and re-rendering on context change
- tests for some util functions and hooks
- `renderHook` tests for non suspending hooks
- fixes a bug where `useWhenProviderReady` didn't cause re-render after
the provider is ready if suspense wasn't used (leading to an out-of-date
return value for provider readiness)

---------
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
|
||
|---|---|---|
| .github | ||
| .vscode | ||
| packages | ||
| test-harness@48c56d1314 | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .gitmodules | ||
| .prettierrc | ||
| .release-please-manifest.json | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| jest.config.ts | ||
| package-lock.json | ||
| package.esm.json | ||
| package.json | ||
| release-please-config.json | ||
| renovate.json | ||
| rollup.config.mjs | ||
| tsconfig.json | ||
| tsconfig.rollup.json | ||
| typedoc.json | ||
README.md
OpenFeature JavaScript SDKs
👋 Hey there! Thanks for checking out the OpenFeature JavaScript SDKs
What is OpenFeature?
OpenFeature is an open standard that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool.
Why standardize feature flags?
Standardizing feature flags unifies tools and vendors behind a common interface which avoids vendor lock-in at the code level. Additionally, it offers a framework for building extensions and integrations and allows providers to focus on their unique value proposition.
🔧 Components
This repository contains both the server-side JS and web-browser SDKs. For details, including API documentation, see the respective README files.
- Server SDK, for use in Node.js and similar runtimes.
- Client SDK, for use in the web browser.
Each have slightly different APIs, but share many underlying types and components.
⭐️ Support the project
- Give this repo a ⭐️!
- Contribute to this repo
- Follow us social media:
- Twitter: @openfeature
- LinkedIn: OpenFeature
- Join us on Slack
- For more check out our community page
🤝 Contributing
Interested in contributing? Great, we'd love your help! To get started, take a look at the CONTRIBUTING guide.
Thanks to everyone that has already contributed
Made with contrib.rocks.