Releases: Flagsmith/flagsmith-js-client
Releases · Flagsmith/flagsmith-js-client
Version 4.1.3
Version 4.1.2
Closes #238
Fixes a race condition whereby flag state returns as {}
if flagsmith.init
resolves after flagsmith.identify
Version 4.1.1
Solves #242. When calling flagsmith.init with traits they will now be merged with any cached traits.
Version 4.1.0
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
Closes #235
Version 4.0.2
What's Changed
Full Changelog: 4.0.1...4.0.2
v4.0.1 Fix onChange Generic Types
v4.0.0 - add list of changed flags/traits, improve resolve/reject of init
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
Closes #222
The SDK will now synchronously read cache rather than fetching it asynchronously.