Skip to content

Releases: launchdarkly/js-client-sdk

2.2.0

22 Jun 21:24
e2253bc
Compare
Choose a tag to compare

[2.2.0] - 2018-06-22

Added:

  • New event goalsReady (and new method waitUntilGoalsReady, which returns a Promise based on that event) indicates when the client has loaded goals-- i.e. when it is possible for pageview events and click events to be triggered.

Fixed:

  • Fixed a bug where calling variation would throw an error if the client was bootstrapped from local storage and there were no flags in local storage yet, and the initial HTTP request for flags from LaunchDarkly had not yet completed. (thanks, mpcowan!)

2.1.2

08 Jun 20:18
Compare
Choose a tag to compare

Fixed:

  • Fix the TypeScript definitions to properly support the ES default export.

Changelog

2.1.1

06 Jun 00:48
63720af
Compare
Choose a tag to compare

[2.1.1] - 2018-06-05

Fixed:

  • Removed two function calls that are not supported in Internet Explorer: string.startsWith() and Object.assign().

2.1.0

01 Jun 00:10
Compare
Choose a tag to compare

[2.1.0] - 2018-05-31

Added:

  • The client now sends the current SDK version to LaunchDarkly in an HTTP header. This information will be visible in a future version of the LaunchDarkly UI.

Fixed:

  • Fixed a bug that caused summary events to combine the counts for flag evaluations that produced the flag's first variation (variation index 0) with the counts for flag evaluations that fell through to the default value.

2.0.0

26 May 01:06
84830ad
Compare
Choose a tag to compare

[2.0.0] - 2018-05-25

Changed

  • To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option inlineUsersInEvents. For more details, see Analytics Data Stream Reference.
  • In every function that takes an optional callback parameter, if you provide a callback, the function will not return a promise; a promise will be returned only if you omit the callback. Previously, it would always return a promise which would be resolved/rejected at the same time that the callback (if any) was called; this caused problems if you had not registered an error handler for the promise.
  • When sending analytics events, if there is a connection error or an HTTP 5xx response, the client will try to send the events again one more time after a one-second delay.
  • Analytics are now sent with an HTTP POST request if the browser supports CORS, or via image loading if it does not. Previously, they were always sent via image loading.

Added

  • The new configuration option sendEventsOnlyForVariation, if set to true, causes analytics events for feature flags to be sent only when you call variation. Otherwise, the default behavior is to also send events when you call allFlags, and whenever a changed flag value is detected in streaming mode.
  • The new configuration option allowFrequentDuplicateEvents, if set to true, turns off throttling for feature flag events. Otherwise, the default behavior is to block the sending of an analytics event if another event with the same flag key, flag value, and user key was generated within the last five minutes.

Fixed

  • If identify is called with a null user, or a user with no key, the function no longer tries to do an HTTP request to the server (which would always fail); instead, it just returns an error.

Deprecated

  • The configuration options all_attributes_private and private_attribute_names are deprecated. Use allAttributesPrivate and privateAttributeNames instead.

1.7.4

23 May 18:07
a6ae2c6
Compare
Choose a tag to compare

[1.7.4] - 2018-05-23

Fixed

  • Fixed a bug that caused events not to be sent if options.sendEvents was explicitly set to true.
  • HTTP requests will no longer fail if there is a charset specified in the response's Content-Type header. (#87)

1.7.3

08 May 18:22
Compare
Choose a tag to compare

[1.7.3] - 2018-05-08

Fixed

  • The client no longer creates an empty XMLHttpRequest at startup time (which could interfere with unit tests).

1.7.2

07 May 23:58
Compare
Choose a tag to compare
1.7.2 Pre-release
Pre-release

[1.7.2] - 2018-05-07

Fixed

  • The client no longer creates an empty XMLHttpRequest at startup time (which could interfere with unit tests).

1.7.0

27 Apr 19:56
13456be
Compare
Choose a tag to compare

Changed

  • The build now uses Rollup, Babel and Jest.

Fixed

  • Fixed a bug that caused a syntax error when running in Internet Explorer 11.
  • Fixed an IE 11 incompatibility in the example page index.html.
  • Fixed a bug that caused the SDK to send events on beforeunload even if it should not send events.

Changelog

1.6.2

05 Apr 13:25
5a0eebe
Compare
Choose a tag to compare

Fixed

  • LDClient.track properly sets the user for custom events.

Changelog