v13.0.0
@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 toConfigureFlopflip
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
withcontext
<ConfigureFlopFlip adapter={adapter} - adapterArgs={{ sdk: { clientSideId }, user }} + adapterArgs={{ sdk: { clientSideId }, context }} > <App /> </ConfigureFlopFlip>;
The
context
itself which previously was auser
of for instanceconst 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
-
#1745
d5a25758
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
3fc3012a
]:- @flopflip/types@13.0.0
@flopflip/react-broadcast@13.0.0
Patch Changes
-
#1745
d5a25758
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
d5a25758
,3fc3012a
]:- @flopflip/react@13.0.0
- @flopflip/types@13.0.0
@flopflip/react-redux@13.0.0
Patch Changes
-
#1745
d5a25758
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
d5a25758
,3fc3012a
]:- @flopflip/react@13.0.0
- @flopflip/types@13.0.0
@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 toConfigureFlopflip
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
withcontext
<ConfigureFlopFlip adapter={adapter} - adapterArgs={{ sdk: { clientSideId }, user }} + adapterArgs={{ sdk: { clientSideId }, context }} > <App /> </ConfigureFlopFlip>;
The
context
itself which previously was auser
of for instanceconst 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, };