diff --git a/CHANGES.txt b/CHANGES.txt index 660656038..f940ecf71 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +10.24.1 (December XX, 2023) + - Updated SDK cache for browsers using localStorage, to clear cached feature flag definitions before initiating the synchronization process, if the cache was previously synchronized with a different SDK key (i.e., a different environment) or different Split Filter criteria. + - Updated @splitsoftware/splitio-commons package to version 1.12.1. + 10.24.0 (December 4, 2023) - Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation): - Added new variations of the get treatment methods to support evaluating flags in given flag set/s. diff --git a/package-lock.json b/package-lock.json index 94960a6e9..bb47feb5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "10.24.0", "license": "Apache-2.0", "dependencies": { - "@splitsoftware/splitio-commons": "1.12.1-rc.5", + "@splitsoftware/splitio-commons": "1.12.1-rc.6", "@types/google.analytics": "0.0.40", "@types/ioredis": "^4.28.0", "bloom-filters": "^3.0.0", @@ -874,9 +874,9 @@ "dev": true }, "node_modules/@splitsoftware/splitio-commons": { - "version": "1.12.1-rc.5", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.12.1-rc.5.tgz", - "integrity": "sha512-pM+08d98dnN2EtIQ+Eo3g5f7NEOktILYfYDiTjomVdIw9BmEfiwqE9lXCPbp0LXdf8fvyxZM93QM7RSFAikZsA==", + "version": "1.12.1-rc.6", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.12.1-rc.6.tgz", + "integrity": "sha512-cAfo6xpgWgxzzhItcJi33yf0RgNetKme0mi/t4RmCaCgv21l2JNOd+9cdjLXl7pfuRkXZs7XievRHP771di2Yg==", "dependencies": { "tslib": "^2.3.1" }, @@ -8446,9 +8446,9 @@ "dev": true }, "@splitsoftware/splitio-commons": { - "version": "1.12.1-rc.5", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.12.1-rc.5.tgz", - "integrity": "sha512-pM+08d98dnN2EtIQ+Eo3g5f7NEOktILYfYDiTjomVdIw9BmEfiwqE9lXCPbp0LXdf8fvyxZM93QM7RSFAikZsA==", + "version": "1.12.1-rc.6", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.12.1-rc.6.tgz", + "integrity": "sha512-cAfo6xpgWgxzzhItcJi33yf0RgNetKme0mi/t4RmCaCgv21l2JNOd+9cdjLXl7pfuRkXZs7XievRHP771di2Yg==", "requires": { "tslib": "^2.3.1" } diff --git a/package.json b/package.json index e33f02a12..a49e59240 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "node": ">=6" }, "dependencies": { - "@splitsoftware/splitio-commons": "1.12.1-rc.5", + "@splitsoftware/splitio-commons": "1.12.1-rc.6", "@types/google.analytics": "0.0.40", "@types/ioredis": "^4.28.0", "bloom-filters": "^3.0.0", diff --git a/src/__tests__/browserSuites/ready-from-cache.spec.js b/src/__tests__/browserSuites/ready-from-cache.spec.js index 83eec8841..567da23e0 100644 --- a/src/__tests__/browserSuites/ready-from-cache.spec.js +++ b/src/__tests__/browserSuites/ready-from-cache.spec.js @@ -139,7 +139,7 @@ export default function (fetchMock, assert) { }); - assert.test(t => { // Testing when we start with cached data but without lastUpdate item (previous version) + assert.test(t => { // Testing when we start with cached data but without lastUpdate item (JS SDK version 10.13.0 and below) const testUrls = { sdk: 'https://sdk.baseurl/readyFromCacheWithData', events: 'https://events.baseurl/readyFromCacheWithData' @@ -478,7 +478,7 @@ export default function (fetchMock, assert) { /** Fetch specific splits **/ - assert.test(t => { // Testing when we start with cached data without storage hash (previous version), and a valid split filter config + assert.test(t => { // Testing when we start with cached data but without storage hash (JS SDK version 10.24.0 and below), and a valid split filter config const testUrls = { sdk: 'https://sdk.baseurl/readyFromCache_5', events: 'https://events.baseurl/readyFromCache_5'