[2.15.0] - 2019-11-05
Changed:
- Changed the behavior of the warning message that is logged on failing to establish a streaming connection. Rather than the current behavior where the warning message appears upon each failed attempt, it will now only appear on the first failure in each series of attempts. Also, the message has been changed to mention that retries will occur. (#182)
- The source code for the
launchdarkly-js-sdk-common
package has been moved out of this repository intojs-sdk-common
, and will now be versioned separately. Applications should never refer to the common package directly; it is brought in automatically bylaunchdarkly-js-client-sdk
. Changes made in the common code that affect JS SDK functionality will be noted in the main changelog here. - There is a new, much fuller-featured demo application in the
example
directory, which may be useful for testing not only of the JS SDK but of feature flag evaluation in general.
Fixed:
- The
beforeunload
event handler no longer callsclose
on the client, which was causing the SDK to become unusable if the page did not actually close after this event fired (for instance if the browser navigated to a URL that launched an external application, or if anotherbeforeunload
handler cancelled leaving the page). Instead, it now only flushes events. There is also anunload
handler that flushes any additional events that might have been created by any code that ran during thebeforeunload
stage. (#181) - Removed uses of
Object.assign
that caused errors in Internet Explorer unless a polyfill for that function was present. These were removed earlier in the 2.1.1 release, but had been mistakenly added again.
Deprecated:
- The
samplingInterval
configuration property is deprecated and will be removed in a future version. The intended use case for thesamplingInterval
feature was to reduce analytics event network usage in high-traffic applications. This feature is being deprecated in favor of summary counters, which are meant to track all events.