Releases: launchdarkly/react-client-sdk
Releases · launchdarkly/react-client-sdk
2.22.3
[2.22.3] - 2021-06-09
Fixed:
- Events for the LaunchDarkly debugger are now properly pre-processed to omit private user attributes, as well as enforce only expected top level attributes are sent.
- Events for the LaunchDarkly debugger now include the index of the variation responsible for the evaluation result.
2.22.2
[2.22.2] - 2021-04-06
Changed:
- Updated the SDK's peer dependencies so that it can run in an application with React 17 (thanks, maclockard!)
2.22.1
[2.22.1] - 2021-04-02
Fixed:
- The property
LDOptions.inlineUsersInEventswas not included in the TypeScript definitions for the JavaScript SDK.
2.22.0
[2.22.0] - 2021-01-27
Added:
- Added the
aliasmethod toLDClient. This method can be used to associate two user objects for analytics purposes. When invoked, this method will queue a new alias event to be sent to LaunchDarkly. - Added the
autoAliasingOptOutconfiguration option. This can be used to control the new automatic aliasing behavior of theidentifymethod; by passingautoAliasingOptOut: true,identifywill not automatically generate alias events.
Changed:
LDClient'sidentifymethod will now automatically generate an alias event when switching from an anonymous to a known user. This event associates the two users for analytics purposes as they most likely represent a single person.
2.21.0
[2.21.0] - 2020-11-17
Fixed:
- The
camelCaseKeysutility function is now exported as a function instead of as an object containing acamelCaseKeysfunction.camelCaseKeys.camelCaseKeysremains for backwards compatibility. - Updated the
LDEvaluationDetail.reasontype definition to be nullable. This value will benullwhenLDOptions.evaluationReasonsisfalse.
Deprecated:
camelCaseKeys.camelCaseKeysis now deprecated-- see the note above.
2.20.2
[2.20.2] - 2020-09-14
Fixed:
- In streaming mode, when connecting to the Relay Proxy rather than directly to the LaunchDarkly streaming service, if the current user was changed twice within a short time it was possible for the SDK to revert to flag values from the previous user. (Fixed in JS SDK 2.18.1)
2.20.1
2.20.0
[2.20.0] - 2020-07-17
Changed:
- Updated
launchdarkly-js-client-sdkversion to 2.18.0, which adds thedisable-sync-event-postoption.
2.19.0
[2.19.0] - 2020-07-15
Added:
- Exposed
LDProvideras a standalone component. (Thanks, nimi and morton!) - A new configuration option,
deferInitialization, allowsLDClientinitialization to be deferred until the user object is defined. (Thanks, bezreyhan!)
Fixed:
- Removed uses of
String.startsWiththat caused errors in Internet Explorer unless a polyfill for that function was present.