Skip to content

Conversation

@flagsmithdev
Copy link
Contributor

@flagsmithdev flagsmithdev commented Dec 8, 2025

🤖 I have created a release beep boop

10.0.0 (2025-12-10)

⚠ BREAKING CHANGES

  • onError callback behavior change: onError is now properly called when cacheFlags is 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 triggers onError, matching the behavior when cacheFlags: false
    • Migration: Ensure your code handles errors from init() or provide defaultFlags as a fallback
  • SDK User-Agent header: The SDK now sends a Flagsmith-SDK-User-Agent header 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

  • onError not called if cacheFlags is true and api is not reachable (#365) (1411b85)

Other

  • deps: bump js-yaml from 3.14.1 to 3.14.2 (#361) (e15a0dc)

@flagsmithdev flagsmithdev requested a review from a team as a code owner December 8, 2025 10:29
@flagsmithdev flagsmithdev requested review from Zaimwa9 and removed request for a team December 8, 2025 10:29
@flagsmithdev flagsmithdev changed the title chore(main): release 9.3.6 chore(main): release 10.0.0 Dec 9, 2025
@flagsmithdev flagsmithdev force-pushed the release-please--branches--main branch from fed7347 to 709aaf9 Compare December 9, 2025 13:35
talissoncosta
talissoncosta previously approved these changes Dec 10, 2025
@talissoncosta talissoncosta merged commit 9187900 into main Dec 10, 2025
1 check passed
@talissoncosta talissoncosta deleted the release-please--branches--main branch December 10, 2025 17:26
@flagsmithdev
Copy link
Contributor Author

🤖 Created releases:

🌻

@@ -1,5 +1,27 @@
# Changelog

## [10.0.0](https://github.com/Flagsmith/flagsmith-js-client/compare/v9.3.5...v10.0.0) (2025-12-10)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release notes in the PR description look perfect, can we update them here in changelog.md too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants