Releases: launchdarkly/js-sdk-common
Releases · launchdarkly/js-sdk-common
3.2.9
[3.2.9] - 2020-07-10
Fixed:
- Removed uses of
String.startsWith
that caused errors in Internet Explorer unless a polyfill for that function was present.
3.2.8
3.2.7
[3.2.7] - 2020-04-30
Fixed:
- Some diagnostic event data was being sent twice, resulting in extra HTTP requests. This did not affect analytics events, so customer data on the dashboard and in data export would still be correct.
3.2.6
[3.2.6] - 2020-03-31
Fixed:
- The default logging implementation (
createConsoleLogger
) could throw errors in Internet Explorer 11 if log output (of an enabled level) happened while the developer tools were not open. This is because in IE 11, theconsole
object does not exist unless the tools are open. This has been fixed so the logger does not try to useconsole
unless it currently has a value.
3.2.5
[3.2.5] - 2020-03-18
Fixed:
- Fixed incorrect usage of
Object.hasOwnProperty
which could have caused an error if a feature flag hadhasOwnProperty
as its flag key.
3.2.4
[3.2.4] - 2020-03-18
Fixed:
- Some users reported an error where the SDK said that the content type of a response was
"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"
.
3.2.3
[3.2.3] - 2020-03-06
Fixed:
- At client initialization time, if the initial flag polling request failed, it would cause an unhandled promise rejection unless the application had called
waitForInitialization()
and provided an error handler for the promise that was returned by that method. While that is correct behavior if the application did callwaitForInitialization()
(any promise that might be rejected should have an error handler attached), it is highly undesirable if the application did not callwaitForInitialization()
at all-- which is not mandatory, since the application could use events instead, orwaitUntilReady()
, 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 callswaitForInitialization()
; subsequent calls to the same method will return the same promise (since initialization can only happen once). - A bug in the event emitter made its behavior unpredictable if an event handler called
on
oroff
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.
3.2.2
[3.2.2] - 2020-02-13
Fixed:
- When sending stream connection statistics in diagnostic event data, always specify the
failed
property even if it is false. This only affects LaunchDarkly's internal analytics.
3.2.1
3.2.0
[3.2.0] - 2020-02-12
Added:
- The SDKs now periodically send diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the architecture and version of the runtime platform (provided by the platform-specific SDK packages), and performance statistics. No credentials, hostnames, or other identifiable values are included. This behavior can be disabled with the
diagnosticOptOut
option or configured withdiagnosticRecordingInterval
.