@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 +4 -0
- package/cjs/sdkClient/sdkClientMethodCS.js +2 -2
- package/cjs/sdkClient/sdkClientMethodCSWithTT.js +1 -1
- package/cjs/utils/settingsValidation/index.js +1 -1
- package/esm/sdkClient/sdkClientMethodCS.js +2 -2
- package/esm/sdkClient/sdkClientMethodCSWithTT.js +1 -1
- package/esm/utils/settingsValidation/index.js +1 -1
- package/package.json +1 -1
- package/src/sdkClient/sdkClientMethodCS.ts +2 -2
- package/src/sdkClient/sdkClientMethodCSWithTT.ts +1 -1
- package/src/utils/settingsValidation/index.ts +1 -1
- package/types/sdkClient/sdkClientMethodCS.d.ts +2 -2
- package/types/sdkClient/sdkClientMethodCSWithTT.d.ts +1 -1
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
|
|
18
|
-
* clients don't have a
|
|
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
|
|
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
|
|
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
|
|
15
|
-
* clients don't have a
|
|
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
|
|
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
|
|
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
|
@@ -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
|
|
21
|
-
* clients don't have a
|
|
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
|
|
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
|
|
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
|
|
5
|
-
* clients don't have a
|
|
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
|
|
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;
|