@splitsoftware/splitio 10.28.0 → 10.28.1-rc.1
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 +2 -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 +2 -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 +3 -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.
|
|
1
|
+
export var packageVersion = '10.28.1-rc.1';
|
package/es/settings/node.js
CHANGED
|
@@ -4,13 +4,14 @@ import { LocalhostFromFile } from '../sync/offline/LocalhostFromFile';
|
|
|
4
4
|
import { defaults } from './defaults/node';
|
|
5
5
|
import { validateStorage } from './storage/node';
|
|
6
6
|
import { validateRuntime } from './runtime/node';
|
|
7
|
+
var FLAG_SPEC_VERSION = '1.1';
|
|
7
8
|
var params = {
|
|
8
9
|
defaults: defaults,
|
|
9
10
|
runtime: validateRuntime,
|
|
10
11
|
storage: validateStorage,
|
|
11
12
|
logger: validateLogger,
|
|
12
13
|
localhost: function () { return LocalhostFromFile(); },
|
|
13
|
-
|
|
14
|
+
flagSpec: function () { return FLAG_SPEC_VERSION; }
|
|
14
15
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
15
16
|
};
|
|
16
17
|
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
|
@@ -7,13 +7,14 @@ var LocalhostFromFile_1 = require("../sync/offline/LocalhostFromFile");
|
|
|
7
7
|
var node_1 = require("./defaults/node");
|
|
8
8
|
var node_2 = require("./storage/node");
|
|
9
9
|
var node_3 = require("./runtime/node");
|
|
10
|
+
var FLAG_SPEC_VERSION = '1.1';
|
|
10
11
|
var params = {
|
|
11
12
|
defaults: node_1.defaults,
|
|
12
13
|
runtime: node_3.validateRuntime,
|
|
13
14
|
storage: node_2.validateStorage,
|
|
14
15
|
logger: builtinLogger_1.validateLogger,
|
|
15
16
|
localhost: function () { return (0, LocalhostFromFile_1.LocalhostFromFile)(); },
|
|
16
|
-
|
|
17
|
+
flagSpec: function () { return FLAG_SPEC_VERSION; }
|
|
17
18
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
18
19
|
};
|
|
19
20
|
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.
|
|
3
|
+
"version": "10.28.1-rc.1",
|
|
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.
|
|
1
|
+
export const packageVersion = '10.28.1-rc.1';
|
package/src/settings/node.js
CHANGED
|
@@ -6,13 +6,15 @@ import { defaults } from './defaults/node';
|
|
|
6
6
|
import { validateStorage } from './storage/node';
|
|
7
7
|
import { validateRuntime } from './runtime/node';
|
|
8
8
|
|
|
9
|
+
const FLAG_SPEC_VERSION = '1.1';
|
|
10
|
+
|
|
9
11
|
const params = {
|
|
10
12
|
defaults,
|
|
11
13
|
runtime: validateRuntime,
|
|
12
14
|
storage: validateStorage,
|
|
13
15
|
logger: validateLogger,
|
|
14
16
|
localhost: () => LocalhostFromFile(),
|
|
15
|
-
|
|
17
|
+
flagSpec: () => FLAG_SPEC_VERSION
|
|
16
18
|
// In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
|
|
17
19
|
};
|
|
18
20
|
|
|
@@ -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
|