launchdarkly-js-sdk-common
Advanced tools
Changelog
[3.2.5] - 2020-03-18
Object.hasOwnProperty
which could have caused an error if a feature flag had hasOwnProperty
as its flag key.Changelog
[3.2.4] - 2020-03-18
"application/json, application/json; charset=utf8"
. It is invalid to have multiple Content-Type values in a response and the LaunchDarkly service does not do this, but an improperly configured proxy/gateway might add such a header. Now the SDK will tolerate a value like this as long as it starts with "application/json"
.Changelog
[3.2.3] - 2020-03-06
waitForInitialization()
and provided an error handler for the promise that was returned by that method. While that is correct behavior if the application did call waitForInitialization()
(any promise that might be rejected should have an error handler attached), it is highly undesirable if the application did not call waitForInitialization()
at all-- which is not mandatory, since the application could use events instead, or waitUntilReady()
, or might simply not care about waiting for initialization. This has been fixed so that no such promise is created until the first time the application calls waitForInitialization()
; subsequent calls to the same method will return the same promise (since initialization can only happen once).on
or off
while handling an event. This has been fixed so that all event handlers that were defined at the time the event was fired will be called; any changes made will not take effect until the next event.Changelog
[3.2.2] - 2020-02-13
failed
property even if it is false. This only affects LaunchDarkly's internal analytics.Changelog
[3.2.1] - 2020-02-13
hash
parameter while changing the current user with identify()
, the SDK was not using the new hash
value when recomputing the stream URL, causing the stream to fail. (#13)Changelog
[3.2.0] - 2020-02-12
diagnosticOptOut
option or configured with diagnosticRecordingInterval
.