launchdarkly-js-sdk-common 4.3.2 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,8 @@ repo:
6
6
 
7
7
  branches:
8
8
  - name: main
9
- description: 4.x
9
+ description: 5.x
10
+ - name: 4.x
10
11
  - name: 3.x
11
12
 
12
13
  publications:
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to the `launchdarkly-js-sdk-common` package will be documented in this file. Changes that affect the dependent SDKs such as `launchdarkly-js-client-sdk` should also be logged in those projects, in the next release that uses the updated version of this package. This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## [4.3.2] - 2022-10-20
6
+ ### Added:
7
+ - Implemented `jitter` and `backoff` for streaming connections. When a connection fails the retry will start at the `streamReconnectDelay` and will double on each unsuccessful consecutive connection attempt (`backoff`) to a max of 30 seconds. The delay will be adjusted from 50%-100% of the calculated delay to prevent many clients from attempting to reconnect at the same time (`jitter`).
8
+
9
+ ### Changed:
10
+ - Removed usage of `flatMap`. (Thanks [@mateuszsikora](https://github.com/launchdarkly/js-sdk-common/pull/77))
11
+
5
12
  ## [4.3.1] - 2022-10-17
6
13
  ### Fixed:
7
14
  - Fixed an issue that prevented the `flag-used` inspector from being called.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launchdarkly-js-sdk-common",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "LaunchDarkly SDK for JavaScript - common code",
5
5
  "author": "LaunchDarkly <team@launchdarkly.com>",
6
6
  "license": "Apache-2.0",
@@ -1,4 +1,4 @@
1
- const { messages } = require('.');
1
+ const messages = require('./messages');
2
2
  const SafeInspector = require('./SafeInspector');
3
3
  const { onNextTick } = require('./utils');
4
4
 
@@ -1,4 +1,4 @@
1
- const { messages } = require('.');
1
+ const messages = require('./messages');
2
2
 
3
3
  /**
4
4
  * Wrap an inspector ensuring that calling its methods are safe.