Skip to content

v13.0.0

Compare
Choose a tag to compare
@tdeekens tdeekens released this 14 Mar 13:09
· 164 commits to main since this release
45b7cc1

@flopflip/adapter-utilities@13.0.0

Patch Changes

  • Updated dependencies [3fc3012a]:
    • @flopflip/types@13.0.0

@flopflip/combine-adapters@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0

@flopflip/cypress-plugin@13.0.0

Patch Changes

  • Updated dependencies [3fc3012a]:
    • @flopflip/types@13.0.0

@flopflip/graphql-adapter@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0
    • @flopflip/localstorage-cache@13.0.0
    • @flopflip/sessionstorage-cache@13.0.0

@flopflip/http-adapter@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0
    • @flopflip/localstorage-cache@13.0.0
    • @flopflip/sessionstorage-cache@13.0.0

@flopflip/launchdarkly-adapter@13.0.0

Major Changes

  • #1742 3fc3012a Thanks @userContext,! - Refactor to support v3 of the LaunchDarkly JavaScript SDK. The offical migration guide can be found here.

    If you're using LaunchDarkly as your adapter, then the shape of the adapterArgs passed to ConfigureFlopflip has changed.

    Assuming you are currently only using a user context (please refer to LaunchDarkly's documentation for more) then your previous configuration was:

    <ConfigureFlopFlip
      adapter={adapter}
      adapterArgs={{ sdk: { clientSideId }, user }}
    >
      <App />
    </ConfigureFlopFlip>

    You will have to replace user with context

    <ConfigureFlopFlip
      adapter={adapter}
    -  adapterArgs={{ sdk: { clientSideId }, user }}
    +  adapterArgs={{ sdk: { clientSideId }, context }}
    >
      <App />
    </ConfigureFlopFlip>;

    The context itself which previously was a user of for instance

    const user = {
      key: user?.id,
      custom: {
         foo: 'bar'
      }
    },

    should now be

    const context = {
      kind: 'user',
      key: user?.id,
      foo: 'bar'
    },

    Please note that if you previously used a large user object with a lot of different information you might want to think about splitting it. This is the main purpose of the change on LaunchDarkly's side.

    const deviceContext = {
      kind: 'device',
      type: 'iPad',
      key: 'device-key-123abc',
    };
    
    const userContext = {
      kind: 'user',
      key: 'user-key-123abc',
      name: 'Sandy',
      role: 'doctor',
    };
    
    const multiContext = {
      kind: 'multi',
    
      device: deviceContext,
    };

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0

@flopflip/localstorage-adapter@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0
    • @flopflip/localstorage-cache@13.0.0

@flopflip/localstorage-cache@13.0.0

Patch Changes

  • Updated dependencies [3fc3012a]:
    • @flopflip/types@13.0.0

@flopflip/memory-adapter@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0

@flopflip/react@13.0.0

Patch Changes

@flopflip/react-broadcast@13.0.0

Patch Changes

@flopflip/react-redux@13.0.0

Patch Changes

@flopflip/sessionstorage-cache@13.0.0

Patch Changes

  • Updated dependencies [3fc3012a]:
    • @flopflip/types@13.0.0

@flopflip/splitio-adapter@13.0.0

Patch Changes

  • #1745 d5a25758 Thanks @renovate! - fix(deps): update all dependencies

  • Updated dependencies [3fc3012a]:

    • @flopflip/types@13.0.0
    • @flopflip/adapter-utilities@13.0.0

@flopflip/types@13.0.0

Major Changes

  • #1742 3fc3012a Thanks @userContext,! - Refactor to support v3 of the LaunchDarkly JavaScript SDK. The offical migration guide can be found here.

    If you're using LaunchDarkly as your adapter, then the shape of the adapterArgs passed to ConfigureFlopflip has changed.

    Assuming you are currently only using a user context (please refer to LaunchDarkly's documentation for more) then your previous configuration was:

    <ConfigureFlopFlip
      adapter={adapter}
      adapterArgs={{ sdk: { clientSideId }, user }}
    >
      <App />
    </ConfigureFlopFlip>

    You will have to replace user with context

    <ConfigureFlopFlip
      adapter={adapter}
    -  adapterArgs={{ sdk: { clientSideId }, user }}
    +  adapterArgs={{ sdk: { clientSideId }, context }}
    >
      <App />
    </ConfigureFlopFlip>;

    The context itself which previously was a user of for instance

    const user = {
      key: user?.id,
      custom: {
         foo: 'bar'
      }
    },

    should now be

    const context = {
      kind: 'user',
      key: user?.id,
      foo: 'bar'
    },

    Please note that if you previously used a large user object with a lot of different information you might want to think about splitting it. This is the main purpose of the change on LaunchDarkly's side.

    const deviceContext = {
      kind: 'device',
      type: 'iPad',
      key: 'device-key-123abc',
    };
    
    const userContext = {
      kind: 'user',
      key: 'user-key-123abc',
      name: 'Sandy',
      role: 'doctor',
    };
    
    const multiContext = {
      kind: 'multi',
    
      device: deviceContext,
    };