@splitsoftware/splitio-commons 1.9.2-rc.2 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 1.9.2 (October 19, 2023)
2
+ - Updated client module to support the Split Suite.
3
+ - Updated some transitive dependencies for vulnerability fixes.
4
+
1
5
  1.9.1 (September 21, 2023)
2
6
  - 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).
3
7
 
@@ -14,8 +14,8 @@ function buildInstanceId(key) {
14
14
  }
15
15
  var method = 'Client instantiation';
16
16
  /**
17
- * Factory of client method for the client-side API variant where TT is ignored and thus
18
- * clients don't have a binded TT for the track method.
17
+ * Factory of client method for the client-side API variant where TT is ignored.
18
+ * Therefore, clients don't have a bound TT for the track method.
19
19
  */
20
20
  function sdkClientMethodCSFactory(params) {
21
21
  var storage = params.storage, syncManager = params.syncManager, sdkReadinessManager = params.sdkReadinessManager, _a = params.settings, key = _a.core.key, readyTimeout = _a.startup.readyTimeout, log = _a.log;
@@ -16,7 +16,7 @@ function buildInstanceId(key, trafficType) {
16
16
  var method = 'Client instantiation';
17
17
  /**
18
18
  * Factory of client method for the client-side (browser) variant of the Isomorphic JS SDK,
19
- * where clients can have a binded TT for the track method, which is provided via the settings
19
+ * where clients can have a bound TT for the track method, which is provided via the settings
20
20
  * (default client) or the client method (shared clients).
21
21
  */
22
22
  function sdkClientMethodCSFactory(params) {
@@ -140,7 +140,7 @@ function settingsValidation(config, validationParams) {
140
140
  }
141
141
  else {
142
142
  // Keeping same behaviour than JS SDK: if settings key or TT are invalid,
143
- // `false` value is used as binded key/TT of the default client, which leads to some issues.
143
+ // `false` value is used as bound key/TT of the default client, which leads to some issues.
144
144
  // @ts-ignore, @TODO handle invalid keys as a non-recoverable error?
145
145
  withDefaults.core.key = (0, key_1.validateKey)(log, maybeKey, 'Client instantiation');
146
146
  }
@@ -11,8 +11,8 @@ function buildInstanceId(key) {
11
11
  }
12
12
  var method = 'Client instantiation';
13
13
  /**
14
- * Factory of client method for the client-side API variant where TT is ignored and thus
15
- * clients don't have a binded TT for the track method.
14
+ * Factory of client method for the client-side API variant where TT is ignored.
15
+ * Therefore, clients don't have a bound TT for the track method.
16
16
  */
17
17
  export function sdkClientMethodCSFactory(params) {
18
18
  var storage = params.storage, syncManager = params.syncManager, sdkReadinessManager = params.sdkReadinessManager, _a = params.settings, key = _a.core.key, readyTimeout = _a.startup.readyTimeout, log = _a.log;
@@ -13,7 +13,7 @@ function buildInstanceId(key, trafficType) {
13
13
  var method = 'Client instantiation';
14
14
  /**
15
15
  * Factory of client method for the client-side (browser) variant of the Isomorphic JS SDK,
16
- * where clients can have a binded TT for the track method, which is provided via the settings
16
+ * where clients can have a bound TT for the track method, which is provided via the settings
17
17
  * (default client) or the client method (shared clients).
18
18
  */
19
19
  export function sdkClientMethodCSFactory(params) {
@@ -137,7 +137,7 @@ export function settingsValidation(config, validationParams) {
137
137
  }
138
138
  else {
139
139
  // Keeping same behaviour than JS SDK: if settings key or TT are invalid,
140
- // `false` value is used as binded key/TT of the default client, which leads to some issues.
140
+ // `false` value is used as bound key/TT of the default client, which leads to some issues.
141
141
  // @ts-ignore, @TODO handle invalid keys as a non-recoverable error?
142
142
  withDefaults.core.key = validateKey(log, maybeKey, 'Client instantiation');
143
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio-commons",
3
- "version": "1.9.2-rc.2",
3
+ "version": "1.9.2",
4
4
  "description": "Split Javascript SDK common components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -17,8 +17,8 @@ function buildInstanceId(key: SplitIO.SplitKey) {
17
17
  const method = 'Client instantiation';
18
18
 
19
19
  /**
20
- * Factory of client method for the client-side API variant where TT is ignored and thus
21
- * clients don't have a binded TT for the track method.
20
+ * Factory of client method for the client-side API variant where TT is ignored.
21
+ * Therefore, clients don't have a bound TT for the track method.
22
22
  */
23
23
  export function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey) => SplitIO.ICsClient {
24
24
  const { storage, syncManager, sdkReadinessManager, settings: { core: { key }, startup: { readyTimeout }, log } } = params;
@@ -19,7 +19,7 @@ const method = 'Client instantiation';
19
19
 
20
20
  /**
21
21
  * Factory of client method for the client-side (browser) variant of the Isomorphic JS SDK,
22
- * where clients can have a binded TT for the track method, which is provided via the settings
22
+ * where clients can have a bound TT for the track method, which is provided via the settings
23
23
  * (default client) or the client method (shared clients).
24
24
  */
25
25
  export function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey, trafficType?: string) => SplitIO.ICsClient {
@@ -160,7 +160,7 @@ export function settingsValidation(config: unknown, validationParams: ISettingsV
160
160
  withDefaults.core.key = 'localhost_key';
161
161
  } else {
162
162
  // Keeping same behaviour than JS SDK: if settings key or TT are invalid,
163
- // `false` value is used as binded key/TT of the default client, which leads to some issues.
163
+ // `false` value is used as bound key/TT of the default client, which leads to some issues.
164
164
  // @ts-ignore, @TODO handle invalid keys as a non-recoverable error?
165
165
  withDefaults.core.key = validateKey(log, maybeKey, 'Client instantiation');
166
166
  }
@@ -1,7 +1,7 @@
1
1
  import { SplitIO } from '../types';
2
2
  import { ISdkFactoryContext } from '../sdkFactory/types';
3
3
  /**
4
- * Factory of client method for the client-side API variant where TT is ignored and thus
5
- * clients don't have a binded TT for the track method.
4
+ * Factory of client method for the client-side API variant where TT is ignored.
5
+ * Therefore, clients don't have a bound TT for the track method.
6
6
  */
7
7
  export declare function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey) => SplitIO.ICsClient;
@@ -2,7 +2,7 @@ import { SplitIO } from '../types';
2
2
  import { ISdkFactoryContext } from '../sdkFactory/types';
3
3
  /**
4
4
  * Factory of client method for the client-side (browser) variant of the Isomorphic JS SDK,
5
- * where clients can have a binded TT for the track method, which is provided via the settings
5
+ * where clients can have a bound TT for the track method, which is provided via the settings
6
6
  * (default client) or the client method (shared clients).
7
7
  */
8
8
  export declare function sdkClientMethodCSFactory(params: ISdkFactoryContext): (key?: SplitIO.SplitKey, trafficType?: string) => SplitIO.ICsClient;