From 231fb3ff1a5134f921e3cdacec0600be92435a22 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Mon, 25 Nov 2024 16:12:21 -0300 Subject: [PATCH] Validate bugfix with test, and prepare rc --- CHANGES.txt | 3 ++- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- .../nodeSuites/push-synchronization.spec.js | 4 +++- src/settings/defaults/version.js | 2 +- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index d8a72d08f..54b94a3b1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ -11.0.2 (November 22, 2024) +11.0.2 (November 25, 2024) - Updated bloom-filters, fetch-mock and other dependencies for vulnerability fixes. + - Bugfixing - Updated @splitsoftware/splitio-commons package to version 2.0.1 that fixes an issue with the SDK_UPDATE event on server-side, where it was not being emitted if there was an empty segment and the SDK received a feature flag update notification. 11.0.1 (November 11, 2024) - Bugfixing - Revert removal of TypeScript `SplitIO` namespace at `/types/splitio.d.ts` to allow explicit imports of types from the JavaScript SDK package. E.g., `import type { IBrowserSettings } from '@splitsoftware/splitio/types/splitio';`. diff --git a/package-lock.json b/package-lock.json index 1ba7d28f7..c4ffe166f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@splitsoftware/splitio", - "version": "11.0.2", + "version": "11.0.2-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@splitsoftware/splitio", - "version": "11.0.2", + "version": "11.0.2-rc.1", "license": "Apache-2.0", "dependencies": { - "@splitsoftware/splitio-commons": "2.0.0", + "@splitsoftware/splitio-commons": "2.0.1-rc.1", "bloom-filters": "^3.0.4", "ioredis": "^4.28.0", "js-yaml": "^3.13.1", @@ -351,9 +351,9 @@ "dev": true }, "node_modules/@splitsoftware/splitio-commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-2.0.0.tgz", - "integrity": "sha512-Sz4+vFacl29xw3451z9IUgB4zBFKUWZdCnmOB0DDXA803YKPqjXphdAwN6nV+1vsX9pXV/OS6UaNC4oUICa6PA==", + "version": "2.0.1-rc.1", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-2.0.1-rc.1.tgz", + "integrity": "sha512-RlAyvaY/f4nshjynbm4L5jcniISNhUsXmmdPBEMlN4O9mJdCj3kYe8a2C8bEAgv6AO5x4NF9vm6nJtHuuX1yGw==", "dependencies": { "@types/ioredis": "^4.28.0", "tslib": "^2.3.1" @@ -7537,9 +7537,9 @@ "dev": true }, "@splitsoftware/splitio-commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-2.0.0.tgz", - "integrity": "sha512-Sz4+vFacl29xw3451z9IUgB4zBFKUWZdCnmOB0DDXA803YKPqjXphdAwN6nV+1vsX9pXV/OS6UaNC4oUICa6PA==", + "version": "2.0.1-rc.1", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-2.0.1-rc.1.tgz", + "integrity": "sha512-RlAyvaY/f4nshjynbm4L5jcniISNhUsXmmdPBEMlN4O9mJdCj3kYe8a2C8bEAgv6AO5x4NF9vm6nJtHuuX1yGw==", "requires": { "@types/ioredis": "^4.28.0", "tslib": "^2.3.1" diff --git a/package.json b/package.json index 91a63b35a..3d6601b3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@splitsoftware/splitio", - "version": "11.0.2", + "version": "11.0.2-rc.1", "description": "Split SDK", "files": [ "README.md", @@ -38,7 +38,7 @@ "node": ">=14.0.0" }, "dependencies": { - "@splitsoftware/splitio-commons": "2.0.0", + "@splitsoftware/splitio-commons": "2.0.1-rc.1", "bloom-filters": "^3.0.4", "ioredis": "^4.28.0", "js-yaml": "^3.13.1", diff --git a/src/__tests__/nodeSuites/push-synchronization.spec.js b/src/__tests__/nodeSuites/push-synchronization.spec.js index 4ee3a20de..9f9cb9775 100644 --- a/src/__tests__/nodeSuites/push-synchronization.spec.js +++ b/src/__tests__/nodeSuites/push-synchronization.spec.js @@ -309,7 +309,9 @@ export function testSynchronization(fetchMock, assert) { return { status: 200, body: splitChangesMock9 }; }); - mockSegmentChanges(fetchMock, new RegExp(`${url(settings, '/segmentChanges')}/(employees|developers)`), [key]); + mockSegmentChanges(fetchMock, new RegExp(`${url(settings, '/segmentChanges')}/employees`), [key]); + // Special case: empty segment with -1 till + mockSegmentChanges(fetchMock, new RegExp(`${url(settings, '/segmentChanges')}/developers`), [], -1); mockSegmentChanges(fetchMock, { url: new RegExp(`${url(settings, '/segmentChanges')}/new_segment`), repeat: 2 }, [otherUserKey]); fetchMock.get(new RegExp('.*'), function (url) { diff --git a/src/settings/defaults/version.js b/src/settings/defaults/version.js index 2cbad8dd5..99343b056 100644 --- a/src/settings/defaults/version.js +++ b/src/settings/defaults/version.js @@ -1 +1 @@ -export const packageVersion = '11.0.2'; +export const packageVersion = '11.0.2-rc.1';