From 0782ac2b85161908235c4e2ca868f453d189893d Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Thu, 19 Oct 2023 16:13:04 -0300 Subject: [PATCH 1/2] prepare release v1.9.2 --- CHANGES.txt | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- src/sdkClient/sdkClientMethodCS.ts | 4 ++-- src/sdkClient/sdkClientMethodCSWithTT.ts | 2 +- src/utils/settingsValidation/index.ts | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index bf44af40..743981db 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +1.9.2 (October 20, 2023) + - Updated some transitive dependencies for vulnerability fixes. + 1.9.1 (September 21, 2023) - Updated browser listener to avoid registering a handler for 'unload' DOM events, that can prevent browsers from being able to put pages in the back/forward cache for faster back and forward loads (Related to issue https://github.com/splitio/javascript-client/issues/759). diff --git a/package-lock.json b/package-lock.json index 491766ef..4651ab50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@splitsoftware/splitio-commons", - "version": "1.9.2-rc.2", + "version": "1.9.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@splitsoftware/splitio-commons", - "version": "1.9.2-rc.2", + "version": "1.9.2", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.1" diff --git a/package.json b/package.json index edd98b5e..ffdac7e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@splitsoftware/splitio-commons", - "version": "1.9.2-rc.2", + "version": "1.9.2", "description": "Split Javascript SDK common components", "main": "cjs/index.js", "module": "esm/index.js", diff --git a/src/sdkClient/sdkClientMethodCS.ts b/src/sdkClient/sdkClientMethodCS.ts index 34c41f6c..724a5871 100644 --- a/src/sdkClient/sdkClientMethodCS.ts +++ b/src/sdkClient/sdkClientMethodCS.ts @@ -17,8 +17,8 @@ function buildInstanceId(key: SplitIO.SplitKey) { const method = 'Client instantiation'; /** - * Factory of client method for the client-side API variant where TT is ignored and thus - * clients don't have a binded TT for the track method. + * Factory of client method for the client-side API variant where TT is ignored. + * Therefore, clients don't have a bound TT for the track method. */ export function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey) => SplitIO.ICsClient { const { storage, syncManager, sdkReadinessManager, settings: { core: { key }, startup: { readyTimeout }, log } } = params; diff --git a/src/sdkClient/sdkClientMethodCSWithTT.ts b/src/sdkClient/sdkClientMethodCSWithTT.ts index 80ae7a74..78957ba8 100644 --- a/src/sdkClient/sdkClientMethodCSWithTT.ts +++ b/src/sdkClient/sdkClientMethodCSWithTT.ts @@ -19,7 +19,7 @@ const method = 'Client instantiation'; /** * Factory of client method for the client-side (browser) variant of the Isomorphic JS SDK, - * where clients can have a binded TT for the track method, which is provided via the settings + * where clients can have a bound TT for the track method, which is provided via the settings * (default client) or the client method (shared clients). */ export function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey, trafficType?: string) => SplitIO.ICsClient { diff --git a/src/utils/settingsValidation/index.ts b/src/utils/settingsValidation/index.ts index aeb4e4ea..700ada43 100644 --- a/src/utils/settingsValidation/index.ts +++ b/src/utils/settingsValidation/index.ts @@ -160,7 +160,7 @@ export function settingsValidation(config: unknown, validationParams: ISettingsV withDefaults.core.key = 'localhost_key'; } else { // Keeping same behaviour than JS SDK: if settings key or TT are invalid, - // `false` value is used as binded key/TT of the default client, which leads to some issues. + // `false` value is used as bound key/TT of the default client, which leads to some issues. // @ts-ignore, @TODO handle invalid keys as a non-recoverable error? withDefaults.core.key = validateKey(log, maybeKey, 'Client instantiation'); } From 08898c642eff02f1d8e76b5480dd22b759ad4faf Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Thu, 19 Oct 2023 16:17:59 -0300 Subject: [PATCH 2/2] update changelog entry --- CHANGES.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 743981db..0898019d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ -1.9.2 (October 20, 2023) +1.9.2 (October 19, 2023) + - Updated client module to support the Split Suite. - Updated some transitive dependencies for vulnerability fixes. 1.9.1 (September 21, 2023)