Skip to content

Releases: Flagsmith/flagsmith-js-client

Version 4.1.3

17 Sep 16:35
2f4bbbb
Compare
Choose a tag to compare

Closes #250 - thank you @blackjid 🚀

Version 4.1.2

11 Sep 17:02
f2c2964
Compare
Choose a tag to compare

Closes #238

Fixes a race condition whereby flag state returns as {} if flagsmith.init resolves after flagsmith.identify

Version 4.1.1

10 Sep 10:33
a030d57
Compare
Choose a tag to compare

Solves #242. When calling flagsmith.init with traits they will now be merged with any cached traits.

Version 4.1.0

04 Sep 15:53
69209a3
Compare
Choose a tag to compare

Resolves #243

Adds a fallback for a feature flag when the flag doesn't exists.

flagsmith.hasFeature("deleted_feature",{fallback:true})

Version 4.0.3

03 Jul 21:31
6e9d037
Compare
Choose a tag to compare

Version 4.0.2

17 May 17:06
1a47754
Compare
Choose a tag to compare

What's Changed

  • fix: clear traits when identifying over previous identity by @kyle-ssg in #229

Full Changelog: 4.0.1...4.0.2

v4.0.1 Fix onChange Generic Types

24 Apr 10:27
b1aa273
Compare
Choose a tag to compare

v4.0.0 - add list of changed flags/traits, improve resolve/reject of init

08 Apr 07:55
6253e7e
Compare
Choose a tag to compare

This will be the first version compatible with OpenFeature. Merges #223

Breaking changes

  • Init will now reject if:
    • No environment ID is provider
    • Fetch fails and there's no cache (Init resolves on cache)
    • There's no cache/defaults and preventFetch is true
  • The boolean properties traitsChange and flagsChanged are now a string[] of changed keys or null. This reduces breaking changes since falsey and truthy checks will still behave as before.

Other changes

  • Init is (finally) async/await
  • Init code is reduced by pulling out isolated functions
  • Added tests around init promises
  • Organised util files

3.24.0 - Read cache synchronously

28 Mar 19:05
68fe0e8
Compare
Choose a tag to compare

Closes #222

The SDK will now synchronously read cache rather than fetching it asynchronously.

3.23.2 - Remove busy logs, fix onChange event

01 Mar 08:54
2a7e519
Compare
Choose a tag to compare