Skip to content

Releases: Flagsmith/flagsmith-js-client

1.6.1 - Fix react native types

26 Jul 16:50
Compare
Choose a tag to compare

This release fixes an issue with react native types #82

1.6.0 - Use api.flagsmith.com

06 Jul 10:28
Compare
Choose a tag to compare

Prior to this release, API calls from the JS SDK went to https://api.bullet-train.io, now they go to https://api.flagsmith.com

1.5.0 Multiple flagsmith instances

15 Jun 11:03
92a7dcb
Compare
Choose a tag to compare

1.5.0

This release allows you to create multiple instances of flagsmith, this may be used when you wish to identify multiple users simultaneously within your app and retain access to getValue, hasFeature etc for each user.

Type:

    export function createFlagsmithInstance (): IFlagsmith<br class="Apple-interchange-newline">

Usage:

import { createFlagsmithInstance } from "flagsmith";
const flagsmith = createFlagsmithInstance();
const flagsmithB = createFlagsmithInstance();

// now you can use flagsmith as before but in its own instance

Added traits parameter to identify

20 May 12:22
Compare
Choose a tag to compare

As of this release you can now supply traits with the identify call, this combines setTraits and identify into 1 call.

    /**
     * Identify user, triggers a call to get flags if flagsmith.init has been called
     */
    identify:(userId:string, traits?: Record<string, string|number|boolean>,) => Promise<IFlags|undefined>