launchdarkly-react-client-sdk
Advanced tools
Changelog
[3.0.0] - 2022-12-07
The latest version of this SDK supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." For more information please read the JavaScript SDK's latest release notes.
For detailed information about this version, please refer to the list below. For information on how to upgrade from the previous version, please read the migration guide.
context
provider configuration option has been added.user
provider configuration option has been deprecated. Please use context
instead.Changelog
[2.29.2] - 2022-10-28
asyncWithLDProvider
that was causing flags to be empty on first render.Changelog
[2.29.1] - 2022-10-21
js-client-sdk
version 2.24.2
which includes implementations of jitter
and backoff
for streaming connections. When a connection fails the retry will start at the streamReconnectDelay
and will double on each unsuccessful consecutive connection attempt (backoff
) to a max of 30 seconds. The delay will be adjusted from 50%-100% of the calculated delay to prevent many clients from attempting to reconnect at the same time (jitter
).Changelog
[2.29.0] - 2022-10-18
js-client-sdk
to 2.24.0
which added support for Inspectors
that can be used for collecting information for monitoring, analytics, and debugging.Changelog
[2.28.0] - 2022-10-05
js-client-sdk
version which removed event de-duplication functionality which was made redundant by support of summary events. This will improve the default event behavior when using experimentation.Changelog
[2.27.0] - 2022-08-31
useFlags
hook is now generically typed, allowing you to assert what type your flag set will be.useLDClientError
hook for exposing client initialization failures.sendEventsOnlyForVariation
is now set to true
by default to prevent a flag evaluation event being generated for every flag on load.flags
object (that is either injected via props using LDConsumer
or returned from the useFlags
hook) will generate a flag evaluation event on flag read (using a JavaScript proxy). This can be disabled by setting reactOptions.sendEventsOnFlagRead: false
.