@splitsoftware/splitio 10.28.0 → 10.28.1-rc.0
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 +5 -0
- package/es/settings/defaults/version.js +1 -1
- package/es/settings/node.js +0 -1
- package/es/settings/storage/browser.js +1 -1
- package/es/settings/storage/node.js +2 -2
- package/lib/settings/defaults/version.js +1 -1
- package/lib/settings/node.js +0 -1
- package/lib/settings/storage/browser.js +1 -1
- package/lib/settings/storage/node.js +2 -2
- package/package.json +2 -2
- package/src/settings/defaults/version.js +1 -1
- package/src/settings/node.js +0 -1
- package/src/settings/storage/browser.js +1 -1
- package/src/settings/storage/node.js +2 -2
package/CHANGES.txt
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
10.29.0 (September XX, 2024)
|
|
2
|
+
- Updated @splitsoftware/splitio-commons package to version 1.18.0 that includes minor updates:
|
|
3
|
+
- Added support for targeting rules based on large segments for browsers.
|
|
4
|
+
- Updated some transitive dependencies for vulnerability fixes.
|
|
5
|
+
|
|
1
6
|
10.28.0 (September 6, 2024)
|
|
2
7
|
- Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
|
|
3
8
|
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = '10.28.0';
|
|
1
|
+
export var packageVersion = '10.28.1-rc.0';
|
package/es/settings/node.js
CHANGED
|
@@ -10,7 +10,6 @@ var params = {
|
|
|
10
10
|
storage: validateStorage,
|
|
11
11
|
logger: validateLogger,
|
|
12
12
|
localhost: function () { return LocalhostFromFile(); },
|
|
13
|
-
consent: function () { return undefined; }, // resets settings.userConsent to the default
|
|
14
13
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
15
14
|
};
|
|
16
15
|
export function settingsFactory(config) {
|
|
@@ -18,7 +18,7 @@ export function validateStorage(settings) {
|
|
|
18
18
|
if (type !== STORAGE_MEMORY && type !== STORAGE_LOCALSTORAGE ||
|
|
19
19
|
type === STORAGE_LOCALSTORAGE && !isLocalStorageAvailable()) {
|
|
20
20
|
fallbackToMemory();
|
|
21
|
-
log.error('Invalid or unavailable storage.
|
|
21
|
+
log.error('Invalid or unavailable storage. Fallback into MEMORY storage');
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
24
|
type: type,
|
|
@@ -6,7 +6,7 @@ export function validateStorage(settings) {
|
|
|
6
6
|
case STORAGE_REDIS: {
|
|
7
7
|
// If passing REDIS storage in localhost or standalone mode, we log an error and fallback to MEMORY storage
|
|
8
8
|
if (mode === STANDALONE_MODE || mode === LOCALHOST_MODE) {
|
|
9
|
-
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode.
|
|
9
|
+
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode. Fallback into default MEMORY storage.');
|
|
10
10
|
return {
|
|
11
11
|
type: STORAGE_MEMORY,
|
|
12
12
|
prefix: prefix
|
|
@@ -53,7 +53,7 @@ export function validateStorage(settings) {
|
|
|
53
53
|
throw new Error('A REDIS storage is required on consumer mode');
|
|
54
54
|
// If passing an invalid storage type, log an error
|
|
55
55
|
if (type !== STORAGE_MEMORY)
|
|
56
|
-
log.error("The provided '" + type + "' storage type is invalid.
|
|
56
|
+
log.error("The provided '" + type + "' storage type is invalid. Fallback into default MEMORY storage.");
|
|
57
57
|
return {
|
|
58
58
|
type: STORAGE_MEMORY,
|
|
59
59
|
prefix: prefix
|
package/lib/settings/node.js
CHANGED
|
@@ -13,7 +13,6 @@ var params = {
|
|
|
13
13
|
storage: node_2.validateStorage,
|
|
14
14
|
logger: builtinLogger_1.validateLogger,
|
|
15
15
|
localhost: function () { return (0, LocalhostFromFile_1.LocalhostFromFile)(); },
|
|
16
|
-
consent: function () { return undefined; }, // resets settings.userConsent to the default
|
|
17
16
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
18
17
|
};
|
|
19
18
|
function settingsFactory(config) {
|
|
@@ -21,7 +21,7 @@ function validateStorage(settings) {
|
|
|
21
21
|
if (type !== constants_1.STORAGE_MEMORY && type !== STORAGE_LOCALSTORAGE ||
|
|
22
22
|
type === STORAGE_LOCALSTORAGE && !(0, isLocalStorageAvailable_1.isLocalStorageAvailable)()) {
|
|
23
23
|
fallbackToMemory();
|
|
24
|
-
log.error('Invalid or unavailable storage.
|
|
24
|
+
log.error('Invalid or unavailable storage. Fallback into MEMORY storage');
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
type: type,
|
|
@@ -9,7 +9,7 @@ function validateStorage(settings) {
|
|
|
9
9
|
case constants_1.STORAGE_REDIS: {
|
|
10
10
|
// If passing REDIS storage in localhost or standalone mode, we log an error and fallback to MEMORY storage
|
|
11
11
|
if (mode === constants_1.STANDALONE_MODE || mode === constants_1.LOCALHOST_MODE) {
|
|
12
|
-
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode.
|
|
12
|
+
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode. Fallback into default MEMORY storage.');
|
|
13
13
|
return {
|
|
14
14
|
type: constants_1.STORAGE_MEMORY,
|
|
15
15
|
prefix: prefix
|
|
@@ -56,7 +56,7 @@ function validateStorage(settings) {
|
|
|
56
56
|
throw new Error('A REDIS storage is required on consumer mode');
|
|
57
57
|
// If passing an invalid storage type, log an error
|
|
58
58
|
if (type !== constants_1.STORAGE_MEMORY)
|
|
59
|
-
log.error("The provided '" + type + "' storage type is invalid.
|
|
59
|
+
log.error("The provided '" + type + "' storage type is invalid. Fallback into default MEMORY storage.");
|
|
60
60
|
return {
|
|
61
61
|
type: constants_1.STORAGE_MEMORY,
|
|
62
62
|
prefix: prefix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio",
|
|
3
|
-
"version": "10.28.0",
|
|
3
|
+
"version": "10.28.1-rc.0",
|
|
4
4
|
"description": "Split SDK",
|
|
5
5
|
"files": [
|
|
6
6
|
"README.md",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": ">=6"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@splitsoftware/splitio-commons": "1.17.0",
|
|
43
|
+
"@splitsoftware/splitio-commons": "1.17.1-rc.0",
|
|
44
44
|
"@types/google.analytics": "0.0.40",
|
|
45
45
|
"@types/ioredis": "^4.28.0",
|
|
46
46
|
"bloom-filters": "^3.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = '10.28.0';
|
|
1
|
+
export const packageVersion = '10.28.1-rc.0';
|
package/src/settings/node.js
CHANGED
|
@@ -12,7 +12,6 @@ const params = {
|
|
|
12
12
|
storage: validateStorage,
|
|
13
13
|
logger: validateLogger,
|
|
14
14
|
localhost: () => LocalhostFromFile(),
|
|
15
|
-
consent: () => undefined, // resets settings.userConsent to the default
|
|
16
15
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
17
16
|
};
|
|
18
17
|
|
|
@@ -31,7 +31,7 @@ export function validateStorage(settings) {
|
|
|
31
31
|
if (type !== STORAGE_MEMORY && type !== STORAGE_LOCALSTORAGE ||
|
|
32
32
|
type === STORAGE_LOCALSTORAGE && !isLocalStorageAvailable()) {
|
|
33
33
|
fallbackToMemory();
|
|
34
|
-
log.error('Invalid or unavailable storage.
|
|
34
|
+
log.error('Invalid or unavailable storage. Fallback into MEMORY storage');
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return {
|
|
@@ -16,7 +16,7 @@ export function validateStorage(settings) {
|
|
|
16
16
|
case STORAGE_REDIS: {
|
|
17
17
|
// If passing REDIS storage in localhost or standalone mode, we log an error and fallback to MEMORY storage
|
|
18
18
|
if (mode === STANDALONE_MODE || mode === LOCALHOST_MODE) {
|
|
19
|
-
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode.
|
|
19
|
+
log.error('The provided REDIS storage is invalid for this mode. It requires consumer mode. Fallback into default MEMORY storage.');
|
|
20
20
|
return {
|
|
21
21
|
type: STORAGE_MEMORY,
|
|
22
22
|
prefix
|
|
@@ -74,7 +74,7 @@ export function validateStorage(settings) {
|
|
|
74
74
|
// If passing MEMORY storage in consumer mode, throw an error (no way to fallback to REDIS storage)
|
|
75
75
|
if (mode === CONSUMER_MODE) throw new Error('A REDIS storage is required on consumer mode');
|
|
76
76
|
// If passing an invalid storage type, log an error
|
|
77
|
-
if (type !== STORAGE_MEMORY) log.error(`The provided '${type}' storage type is invalid.
|
|
77
|
+
if (type !== STORAGE_MEMORY) log.error(`The provided '${type}' storage type is invalid. Fallback into default MEMORY storage.`);
|
|
78
78
|
return {
|
|
79
79
|
type: STORAGE_MEMORY,
|
|
80
80
|
prefix
|