Releases: Flagsmith/flagsmith-js-client
Releases · Flagsmith/flagsmith-js-client
v12.0.1
v12.0.0
12.0.0 (2026-04-21)
⚠ BREAKING CHANGES
- migrate npm packages to @Flagsmith organization scope (#367)
- re-add sdk version headers (#344)
- onError not called if cacheFlags is true and api is not reachable (#365)
Features
- migrate npm packages to @flagsmith organization scope (#367) (d0ecefb)
- re-add sdk version headers (#344) (47b610f)
Bug Fixes
- angularHttpClient fetch error (#359) (44e4b79)
- catch init error in useFlagsmith (#351) (5380dc3)
- cleanup event-emitter subscriptions in provider hooks (#392) (9b962c7)
- export FlagSource enum as runtime value (#349) (d480bb9)
- onError not called if cacheFlags is true and api is not reachable (#365) (1411b85)
- removed-react-native-publishing (#381) (a0894b9)
- revert User-Agent header again (#362) (53baaa9)
- types: loading state source unresolved any (#360) (30c35a3)
- update loadingState when hydrating via serverState (#393) (d543564)
CI
- add release please (#353) (353dbf7)
- fix trusted publishing (#355) (881c648)
- publish-internal-version-action-workflow (#378) (02b1892)
Other
- deps-dev: bump form-data from 4.0.0 to 4.0.4 (#331) (187feda)
- deps-dev: bump lodash from 4.17.21 to 4.18.1 (#388) (eddbb97)
- deps: bump @tootallnate/once and jest-environment-jsdom (#380) (0f8edc4)
- deps: bump flatted from 3.2.7 to 3.4.2 (#385) (189160e)
- deps: bump js-yaml from 3.14.1 to 3.14.2 (#361) (e15a0dc)
- deps: bump minimatch from 3.1.2 to 3.1.5 (#376) (39fa238)
- deps: bump minimatch from 3.1.2 to 3.1.5 in /lib/react-native-flagsmith (#375) (2b2caaf)
- deps: bump picomatch from 2.3.1 to 2.3.2 in /lib/react-native-flagsmith (#386) (fb18502)
- deps: bump yaml from 2.8.2 to 2.8.3 in /lib/react-native-flagsmith (#395) (4d94b9c)
- main: release 10.0.0 (#364) (9187900)
- main: release 9.3.3 (#354) (2832793)
- main: release 9.3.4 (#356) (9ef8c37)
- main: release 9.3.5 (#363) (563e590)
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