Skip to content

Commit efc84ef

Browse files
Update JS-commons
1 parent 8ad1de1 commit efc84ef

File tree

5 files changed

+32
-27
lines changed

5 files changed

+32
-27
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.3.1 (June 24, 2025)
2+
- Updated @splitsoftware/splitio-commons package to version 2.4.1, which improves the Proxy fallback to flag spec version 1.2 by handling the case when the Proxy does not return an end-of-stream marker in 400 status code responses.
3+
14
1.3.0 (May 28, 2025)
25
- Added support for rule-based segments. These segments determine membership at runtime by evaluating their configured rules against the user attributes provided to the SDK.
36
- Added support for feature flag prerequisites. This allows customers to define dependency conditions between flags, which are evaluated before any allowlists or targeting rules.

package-lock.json

Lines changed: 23 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-browserjs",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Split SDK for JavaScript on Browser",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -59,7 +59,7 @@
5959
"bugs": "https://github.com/splitio/javascript-browser-client/issues",
6060
"homepage": "https://github.com/splitio/javascript-browser-client#readme",
6161
"dependencies": {
62-
"@splitsoftware/splitio-commons": "2.4.0",
62+
"@splitsoftware/splitio-commons": "2.4.1",
6363
"tslib": "^2.3.1",
6464
"unfetch": "^4.2.0"
6565
},

src/__tests__/browserSuites/push-synchronization-retries.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ const MILLIS_THIRD_RETRY_FOR_SPLIT_KILL_EVENT = 2000;
6666
*
6767
* 0.5 secs: Unbounded MEMBERSHIPS_MS_UPDATE event -> /memberships/[email protected] OK, /memberships/[email protected]: network error
6868
* 0.6 secs: Unbounded MEMBERSHIPS_MS_UPDATE event -> /memberships/[email protected] retry: invalid JSON response
69-
* 0.8 secs: Unbounded MEMBERSHIPS_MS_UPDATE event -> /memberships/[email protected]: server error
69+
* 0.8 secs: Unbounded MEMBERSHIPS_MS_UPDATE event -> /memberships/[email protected]: 500 server error
7070
* 1.2 secs: Unbounded MEMBERSHIPS_MS_UPDATE event -> /memberships/[email protected] retry: success -> SDK_UPDATE triggered
7171
*
7272
* 1.3 secs: SPLIT_KILL event -> /splitChanges: outdated response -> SDK_UPDATE triggered although fetches fail
73-
* 1.4 secs: SPLIT_KILL event -> /splitChanges retry: network error
73+
* 1.4 secs: SPLIT_KILL event -> /splitChanges retry: 500 server error
7474
* 1.6 secs: SPLIT_KILL event -> /splitChanges retry: invalid JSON response
7575
* 2.0 secs: SPLIT_KILL event -> /splitChanges retry: 408 request timeout
7676
* (we destroy the client here, to assert that all scheduled tasks are clean)
@@ -184,7 +184,7 @@ export function testSynchronizationRetries(fetchMock, assert) {
184184
return { status: 200, body: { ff: { d: [], s: 1457552649999, t: 1457552649999 } } }; // returning old state
185185
});
186186
// first fetch retry for SPLIT_KILL event, due to previous unexpected response (response till minor than SPLIT_KILL changeNumber)
187-
fetchMock.getOnce(url(settings, '/splitChanges?s=1.3&since=1457552649999&rbSince=100'), { throws: new TypeError('Network error') });
187+
fetchMock.getOnce(url(settings, '/splitChanges?s=1.3&since=1457552649999&rbSince=100'), { status: 500, body: 'server error' });
188188
// second fetch retry for SPLIT_KILL event
189189
fetchMock.getOnce(url(settings, '/splitChanges?s=1.3&since=1457552649999&rbSince=100'), { status: 200, body: '{ "since": 1457552620999, "til' }); // invalid JSON response
190190
// third fetch retry for SPLIT_KILL event

src/settings/defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type SplitIO from '@splitsoftware/splitio-commons/types/splitio';
22
import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/src/logger/index';
33
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants';
44

5-
const packageVersion = '1.3.0';
5+
const packageVersion = '1.3.1';
66

77
/**
88
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.

0 commit comments

Comments
 (0)