Releases: launchdarkly/react-client-sdk
Releases · launchdarkly/react-client-sdk
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.
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-sdk
version to 2.18.0, which adds thedisable-sync-event-post
option.
2.19.0
[2.19.0] - 2020-07-15
Added:
- Exposed
LDProvider
as a standalone component. (Thanks, nimi and morton!) - A new configuration option,
deferInitialization
, allowsLDClient
initialization to be deferred until the user object is defined. (Thanks, bezreyhan!)
Fixed:
- Removed uses of
String.startsWith
that caused errors in Internet Explorer unless a polyfill for that function was present.
2.18.2
2.18.1
[2.18.1] - 2020-05-19
Fixed:
2.18.0
[2.18.0] - 2020-02-19
Note: if you are using the LaunchDarkly Relay Proxy to forward events, update the Relay to version 5.10.0 or later before updating to this React SDK version.
Added:
- The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the architecture and version of the runtime platform, and performance statistics. No credentials, hostnames, or other identifiable values are included. This behavior can be disabled with the
diagnosticOptOut
option, or configured withdiagnosticRecordingInterval
.
Fixed:
- Updated JS SDK dependency version to 2.17.0, which includes a fix for streaming mode failing when used with secure mode. See release notes for JS SDK 2.17.0 fror details.
2.17.1
[2.17.1] - 2020-02-11
Fixed:
- Updated JS SDK dependency version from 2.16.0 to 2.16.3 for several recent fixes. See release notes for 2.16.1, 2.16.2, 2.16.3.
Note that while some transitive dependencies have been changed from exact versions to "best compatible" versions, the dependency on js-client-sdk
is still an exact version dependency so that each release of react-client-sdk
has well-defined behavior.
2.17.0
[2.17.0] - 2019-12-18
Added:
- The
camelCaseKeys
utility function is now exposed as part of the SDK API. This function can be called from customers' code to work around the fact thatldClient
functionality does not automatically camel-case keys in the same manner as the React SDK's props and hooks features.