From 7823826d55fbb04ced5023a99e3ab75c89064c4f Mon Sep 17 00:00:00 2001 From: Andrew Bell <115623869+andybharness@users.noreply.github.com> Date: Thu, 4 Dec 2025 11:17:18 +0000 Subject: [PATCH 1/2] fix: [FFM-12759]: Extend retry delay to avoid too many reconnects in a short space of time --- src/stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.ts b/src/stream.ts index 94fc528..571e26c 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -53,7 +53,7 @@ export class Streamer { const onDisconnect = () => { clearInterval(this.readTimeoutCheckerId) - const reconnectDelayMs = getRandom(1000, 10000) + const reconnectDelayMs = getRandom(1000, 30000) this.reconnectAttempts++ this.logDebugMessage('Stream disconnected, will reconnect in ' + reconnectDelayMs + 'ms') if (!this.disconnectEventEmitted) { From 734b29aab53776183b2ec6ea44d6c719b59e8330 Mon Sep 17 00:00:00 2001 From: Andrew Bell <115623869+andybharness@users.noreply.github.com> Date: Thu, 4 Dec 2025 11:23:11 +0000 Subject: [PATCH 2/2] bump versions --- examples/preact/package-lock.json | 2 +- examples/react-redux/package-lock.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/preact/package-lock.json b/examples/preact/package-lock.json index f529438..7ca119d 100644 --- a/examples/preact/package-lock.json +++ b/examples/preact/package-lock.json @@ -18,7 +18,7 @@ }, "../..": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/examples/react-redux/package-lock.json b/examples/react-redux/package-lock.json index 65a84cb..6b14dbe 100644 --- a/examples/react-redux/package-lock.json +++ b/examples/react-redux/package-lock.json @@ -27,7 +27,7 @@ }, "../..": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/package-lock.json b/package-lock.json index 4140bef..202ca0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/package.json b/package.json index aa8e1ee..0a49e7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "author": "Harness", "license": "Apache-2.0", "main": "dist/sdk.cjs.js", diff --git a/src/index.ts b/src/index.ts index 547e19b..3e37fdc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,7 @@ import { getVariation } from './variation' import Poller from './poller' import { createCacheIdSeed, getCache } from './cache' -const SDK_VERSION = '1.31.3' +const SDK_VERSION = '1.31.4' const SDK_INFO = `Javascript ${SDK_VERSION} Client` const METRICS_VALID_COUNT_INTERVAL = 500