launchdarkly-js-client-sdk
Advanced tools
Changelog
[2.13.0] - 2019-08-15
jsdelivr
entry to package.json
to specify the primary build artifact and simplify the jsDelivr snippet URL.reactOptions
parameter to withLDProvider
provides React-specific options that do not affect the underlying JavaScript SDK. Currently, the only such option is useCamelCaseFlagKeys
, which is true by default but can be set to false to disable the automatic camel-casing of flag keys.user
parameter to withLDProvider
, an anonymous user will be created. This user will remain constant across browser sessions. Previously a new user was generated on each page load.Changelog
[2.12.5] - 2019-07-29
String.startsWith()
. (Thanks, cvetanov!)Changelog
[2.12.4] - 2019-07-10
useReport
property, which tells the SDK to use the REPORT method for HTTP requests so that user data will not appear in the URL path, was only actually using REPORT for requesting all flags at once— not for streaming updates, because streaming uses the EventSource API which normally can only use the GET method; so, to avoid exposing user data in the URL for the streaming connection, the SDK had to use a different and slower mechanism (in which all of the flags are reloaded whenever there is a change) if useReport
was true. That is still the case by default; but, if you load the specific EventSource polyfill implementation launchdarkly-eventsource
(v1.1.0 or later), the SDK can now use REPORT for streaming connections.homepage
attribute in the launchdarkly-react-client-sdk
and launchdarkly-react-client-sdk-example
packages has been updated to the correct value.Changelog
[2.12.3] - 2019-07-08
info
level when the stream connection is started or stopped. It also logs a message at warn
level if it detects that the stream had to be restarted due to a connection failure; however, in browsers that have native support for EventSource, connection restarts may be handled internally by the browser in which case there will be no log message.bootstrap
option, these values will now be immediately available as soon as initialize()
returns. That was already the behavior in earlier versions of the SDK, but ever since version 2.10.0 the values only became available once the client was officially ready (i.e. the ready
event had fired or the waitUntilInitialized()
promise had resolved), so they could not be used in non-asynchronous application code. The correct behavior had never been explicitly defined, so this had not been documented as a change. The behavior is now as it was prior to 2.10.0, and is now documented as such. (#162)Changelog
[2.12.1] - 2019-06-28
info
level when the stream connection is started or stopped. It also logs a message at warn
level if it detects that the stream had to be restarted due to a connection failure; however, in browsers that have native support for EventSource, connection restarts may be handled internally by the browser in which case there will be no log message.Changelog
[2.12.0] - 2019-06-18
eventUrlTransformer
allows application code to modify the URL that is sent in analytics events.Changelog
[2.11.0] - 2019-06-06
Changelog
[2.10.4] - 2019-05-22
unpkg
entry to package.json
to specify primary build artifact to simplify the unpkg snippet URL.useReport
was enabled, or if the SDK was connecting through the LaunchDarkly relay proxy. This bug was introduced in version 2.10.0.Changelog
[2.10.3] - 2019-05-08
ldclient-js
, ldclient-react
, and ldclient-js-common
to launchdarkly-js-client-sdk
, launchdarkly-react-client-sdk
, and launchdarkly-js-sdk-common
, respectively.There are no other changes in this release. Substituting ldclient-js
, ldclient-react
, and ldclient-js-common
version 2.10.2 with launchdarkly-js-client-sdk
, launchdarkly-react-client-sdk
, and launchdarkly-js-sdk-common
version 2.10.3 will not affect functionality.