From 57d5aacda0512ef6522b62d19fd133fbd2c38b03 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Fri, 14 Jun 2024 10:54:37 -0300 Subject: [PATCH 1/2] Update changelog entry --- CHANGES.txt | 1 + src/__tests__/offline/browser.spec.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index fda8ab2dd..e570145c6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ 10.26.1 (June 14, 2024) - 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. + - Updated eventsource dependency for NodeJS. The SDK now uses an inline adaptation of the eventsource library v1.1.2 to accept the same HTTP options as other HTTP(S) requests, such as an agent option. - Updated @splitsoftware/splitio-commons package to version 1.16.0 that includes some vulnerability and bug fixes. - 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. - 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). diff --git a/src/__tests__/offline/browser.spec.js b/src/__tests__/offline/browser.spec.js index 3abc25ea7..10ef846d5 100644 --- a/src/__tests__/offline/browser.spec.js +++ b/src/__tests__/offline/browser.spec.js @@ -87,7 +87,6 @@ tape('Browser offline mode', function (assert) { sharedUpdateCount++; }); - // Multiple factories must handle their own `features` mock, even if instantiated with the same config. const configs = [ { ...config, features: { ...config.features }, storage: { type: 'INVALID TYPE' } }, { ...config, storage: { type: 'LOCALSTORAGE' } }, From 88cdd170f6b7b3233350fef9a096684664197534 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Fri, 14 Jun 2024 11:01:40 -0300 Subject: [PATCH 2/2] Update changelog entry --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index e570145c6..980e6f096 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,6 @@ 10.26.1 (June 14, 2024) - 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. - - Updated eventsource dependency for NodeJS. The SDK now uses an inline adaptation of the eventsource library v1.1.2 to accept the same HTTP options as other HTTP(S) requests, such as an agent option. + - Updated eventsource dependency for NodeJS. The eventsource v1.1.2 dependency was removed, and the SDK now uses an embedded adaptation that can accept an HTTP(S) agent option, like other HTTP(S) requests. - Updated @splitsoftware/splitio-commons package to version 1.16.0 that includes some vulnerability and bug fixes. - 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. - 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).