Skip to content

Releases: Flagsmith/flagsmith-js-client

2.0.0-beta.1

07 Mar 13:07
3c84d94
Compare
Choose a tag to compare

This release includes a rewrite to the build system of the SDK. It is now typescript-first and generates much better d.ts output.

This also includes a new react hooks library with easy to use nextjs support.

        <FlagsmithProvider flagsmith={flagsmith}
                           serverState={flagsmithState as IState}
                           options={{
                               environmentID,
                               cacheFlags: true
                           }}>
               <App/>
        </FlagsmithProvider>

...
  const flags = useFlags(["font_size"],["example_trait"]) // only causes re-render if specified flag values / traits change
...

      <div className="App">
        font_size: {flags.font_size?.value}
        example_trait: {flags.example_trait}
       </div>

1.7.4

20 Feb 09:10
Compare
Choose a tag to compare

Closes #99
Closes #98

Thank you @gf3 and @xrash 🚀

Release 1.7.3 - Remove Bullet Train instances, small type fixes

18 Jan 18:17
167b883
Compare
Choose a tag to compare

This non-breaking change release removes mentions of Bullet Train where possible, the release contains the following PR:
#94

1.7.2

16 Dec 09:16
Compare
Choose a tag to compare

Merged:
#90

1.7.1 - Added Identity type

06 Dec 11:18
Compare
Choose a tag to compare

This release adds the identity typescript type to flagsmith

    /**
     * The stored identity of the user
     */
    identity?:string

1.7.0 - resolve init promise for previously identified users

04 Nov 12:14
Compare
Choose a tag to compare

Prior to this release, if you identify a user before calling init then the promise would not resolve.

1.6.10 - trigger onChange with defaultFlags

11 Oct 20:03
Compare
Choose a tag to compare

Previously, if defaultFlags were set but preventFetch was true, flagsmith would never call onChange. As of this release onChange will callback with the defaultFlags.

1.6.7

22 Sep 11:03
Compare
Choose a tag to compare

Fixes #84

1.6.6

15 Sep 12:23
Compare
Choose a tag to compare

This release fixes an issue where flagsmith.init was not resolving if no flags previously existed in cache.

1.6.2 - update types

26 Jul 16:54
Compare
Choose a tag to compare

This release resolves #81, previously types indicated that getFlags,identify,setTrait and other calls would resolve with IFlags however this is not the case. These calls should be followed by getValue / hasFeature.