Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

prepare 5.0.0 release #91

Merged
merged 63 commits into from
May 11, 2018
Merged

prepare 5.0.0 release #91

merged 63 commits into from
May 11, 2018

Conversation

eli-darkly
Copy link
Contributor

@eli-darkly eli-darkly commented May 10, 2018

[5.0.0] - 2018-05-10

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.
  • Pending analytics events are now flushed if 1. the configured flush_interval elapses or 2. you explicitly call flush(). Previously, if the number of events exceeded the configured capacity it would also trigger a flush; now, the client will simply drop events until the next timed or explicit flush occurs. This makes the Node SDK consistent with the other SDKs, and prevents unbounded use of network resources if you are generating analytics events rapidly.
  • 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.
  • 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.

Fixed:

  • Removed a dependency on hoek v4.2.0, which had a security flaw; now uses 4.2.1 instead.

Deprecated:

  • All function and property names that used underscores are now deprecated; please use their camelCase equivalent instead (e.g. allFlags instead of all_flags). The deprecated names will still work for now, but will trigger a warning message in the log.

eli-darkly and others added 30 commits March 21, 2018 18:38
…se if the caller is using the callback interface
# Conflicts:
#	package-lock.json
#	package.json
…ack-util

[ch15352] Fix promise/callback utility…
# Conflicts:
#	evaluate_flag.js
#	index.js
#	test/LDClient-test.js
eli-darkly and others added 25 commits April 23, 2018 10:25
fix behavior of config defaults when a value is null
fix allFlags method and store initialization check
send as much of a feature event as possible even if user is invalid
allow a custom updateProcessor for testing
add variation index to feature events and summary counters
…ns-build

run two CI builds in parallel for different Node versions
# Conflicts:
#	package-lock.json
…pendency

fix transitive dependency on buggy version of "hoek"
move dependency constraint out of devDependencies
@ashanbrown ashanbrown self-requested a review May 10, 2018 23:08
@eli-darkly eli-darkly merged commit 52b5000 into master May 11, 2018
eli-darkly added a commit that referenced this pull request Aug 1, 2018
fix waitForInitialization to always resolve with a value
@eli-darkly eli-darkly deleted the 5.0.0 branch November 6, 2019 05:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants