Releases: Flagsmith/flagsmith-js-client
Releases · Flagsmith/flagsmith-js-client
v10.0.0
10.0.0 (2025-12-10)
⚠ BREAKING CHANGES
-
onError callback behavior change:
onErroris now properly called whencacheFlagsis enabled and the API is unreachable with no existing cache (#365)- Previous behavior:
init()would resolve successfully even when the API failed, silently swallowing the error - New behavior:
init()now rejects and triggersonError, matching the behavior whencacheFlags: false - Migration: Ensure your code handles errors from
init()or providedefaultFlagsas a fallback
- Previous behavior:
-
SDK User-Agent header: The SDK now sends a
Flagsmith-SDK-User-Agentheader with requests (#344)- Self-hosted users: Requires Flagsmith v2.196.0 or higher
- Alternative: If you cannot upgrade, add this environment variable to your Flagsmith server:
FLAGSMITH_CORS_EXTRA_ALLOW_HEADERS: Flagsmith-SDK-User-Agent
Features
Bug Fixes
Other
v9.3.5
v9.3.4
v9.3.3
9.3.2
9.3.1
What's Changed
- fix: typescript type generation when array of fields is passed. by @rushib1 in #325
- feat: send flagsmith sdk user agent by @Zaimwa9 in #332
- fix: renamed-sentry-client-interface by @Zaimwa9 in #335
- fix: make-id-optional-in-iflags by @Zaimwa9 in #336
- chore: bumped-react-native-version by @Zaimwa9 in #337
New Contributors
Full Changelog: 9.3.0...9.3.1
9.3.0
9.2.2
9.2.1
9.2.0
What's Changed
- feat: send client info to Flagsmith by @tiagoapolo in #293
- Fix: typo in type definition file by @benwilson34 in #308
- fix: added-key-of-generic-record-and-tests by @Zaimwa9 in #311
- chore: bump-version by @Zaimwa9 in #312
New Contributors
- @benwilson34 made their first contribution in #308
- @Zaimwa9 made their first contribution in #311
Full Changelog: 9.1.0...9.2.0