Releases: launchdarkly/react-client-sdk
Releases · launchdarkly/react-client-sdk
2.24.0
[2.24.0] - 2021-12-09
Added:
- When initializing the SDK, consumers can now optionally pass in a previously-initialized
ldClient
instance (thanks, TimboTambo!) - Introduced missing typedoc annotations for
AsyncProviderConfig
.
2.23.3
[2.23.3] - 2021-11-02
Added:
- The
AsyncProviderConfig
type was added. This type is a clone ofProviderConfig
except thatdeferInitialization
is marked as deprecated; see the "Deprecated" section below for more information.
Fixed:
- Fixed a bug where sourcemaps did not point to released files. (#66)
Deprecated:
- Deprecated the ability to specify
deferInitialization
in theconfig
object parameter forasyncWithLDProvider
. TheasyncWithLDProvider
function needs to be initialized at the app entry point prior to render to ensure flags and theldClient
are ready at the beginning of the app. As a result, initialization cannot be deferred when usingasyncWithLDProvider
. (#99)
2.23.2
2.23.1
[2.23.1] - 2021-09-03
Fixed:
- When using
asyncWithLDProvider
, components added to the DOM after client initialization now use the latest known flag values instead of the bootstrapped values.
2.23.0
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.inlineUsersInEvents
was not included in the TypeScript definitions for the JavaScript SDK.
2.22.0
[2.22.0] - 2021-01-27
Added:
- Added the
alias
method 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
autoAliasingOptOut
configuration option. This can be used to control the new automatic aliasing behavior of theidentify
method; by passingautoAliasingOptOut: true
,identify
will not automatically generate alias events.
Changed:
LDClient
'sidentify
method 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
camelCaseKeys
utility function is now exported as a function instead of as an object containing acamelCaseKeys
function.camelCaseKeys.camelCaseKeys
remains for backwards compatibility. - Updated the
LDEvaluationDetail.reason
type definition to be nullable. This value will benull
whenLDOptions.evaluationReasons
isfalse
.
Deprecated:
camelCaseKeys.camelCaseKeys
is now deprecated-- see the note above.