You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
10.26.1 (June 14, 2024)
2
+
- Updated the internal imports of 'os' and 'ioredis' modules for NodeJS, to use EcmaScript 'import' rather than CommonJS 'require' for the ES modules build. This avoids runtime errors on some scenarios when bundling the SDK into a .mjs file or importing it from a .mjs file.
3
+
- Updated @splitsoftware/splitio-commons package to version 1.16.0 that includes some vulnerability and bug fixes.
4
+
- Bugfixing - Restored some input validation error logs that were removed in version 10.24.0. The logs inform the user when the `getTreatment(s)` methods are called with an invalid value as feature flag name or flag set name.
5
+
- Bugfixing - Fixed localhost mode to emit SDK_UPDATE when mocked feature flags are updated in the `features` object map of the config object (Related to issue https://github.com/splitio/javascript-browser-client/issues/119).
6
+
1
7
10.26.0 (May 6, 2024)
2
8
- Updated @splitsoftware/splitio-commons package to version 1.14.0 that includes minor updates:
3
9
- Added support for targeting rules based on semantic versions (https://semver.org/).
@@ -80,7 +86,7 @@
80
86
- Bugfixing - Moved js-yaml dependency from @splitsoftware/splitio-commons to avoid resolution to an incompatible version on certain npm versions when installing third-party dependencies that also define js-yaml as transitive dependency (Related to issue https://github.com/splitio/javascript-client/issues/662).
81
87
82
88
10.20.0 (June 29, 2022)
83
-
- Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config sync.enabled. Running online Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used.
89
+
- Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config `sync.enabled`. Running online Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used.
84
90
- Updated telemetry logic to track the anonymous config for user consent flag set to declined or unknown.
85
91
- Updated submitters logic, to avoid duplicating the post of impressions to Split cloud when the SDK is destroyed while its periodic post of impressions is running.
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/ready-from-cache.spec.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -588,7 +588,7 @@ export default function (fetchMock, assert) {
588
588
fetchMock.getOnce(testUrls.sdk+'/splitChanges?s=1.1&since=25&names=p2__split&prefixes=p1',{status: 200,body: {splits: [splitDeclarations.p1__split,splitDeclarations.p2__split],since: 25,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
@@ -639,7 +639,7 @@ export default function (fetchMock, assert) {
639
639
fetchMock.getOnce(testUrls.sdk+'/splitChanges?s=1.1&since=-1&prefixes=p1,p2',{status: 200,body: {splits: [splitDeclarations.p1__split,splitDeclarations.p2__split],since: -1,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
@@ -788,7 +788,7 @@ export default function (fetchMock, assert) {
788
788
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.splits.till'),'1457552620999','splits.till must correspond to the till of the last successfully fetched Splits');
789
789
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.split.p2__split'),JSON.stringify(splitDeclarations.p2__split),'feature flag declarations must be cached');
790
790
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.split.p3__split'),JSON.stringify(splitDeclarations.p3__split),'feature flag declarations must be cached');
791
-
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.hash'),getStorageHash({ ...baseConfig,sync: {__splitFiltersValidation: {queryString: '&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2'}}}),'Storage hash must correspond to the split filter query and SDK key');
791
+
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.hash'),getStorageHash({ ...baseConfig,sync: {__splitFiltersValidation: {queryString: '&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2'},flagSpecVersion: '1.1'}}),'Storage hash must correspond to the split filter query and SDK key');
0 commit comments