@splitsoftware/splitio 11.0.3 → 11.1.0-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 +6 -0
- package/README.md +1 -1
- package/cjs/settings/defaults/version.js +1 -1
- package/cjs/settings/storage/browser.js +3 -1
- package/esm/settings/defaults/version.js +1 -1
- package/esm/settings/storage/browser.js +3 -1
- package/package.json +2 -2
- package/src/settings/defaults/version.js +1 -1
- package/src/settings/storage/browser.js +5 -1
- package/types/client/index.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/server/index.d.ts +1 -1
package/CHANGES.txt
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
11.1.0 (January XX, 2025)
|
|
2
|
+
- Added two new configuration options for the SDK's `LOCALSTORAGE` storage type to control the behavior of the persisted rollout plan cache in the browser:
|
|
3
|
+
- `storage.expirationDays` to specify the validity period of the rollout plan cache in days.
|
|
4
|
+
- `storage.clearOnInit` to clear the rollout plan cache on SDK initialization.
|
|
5
|
+
- Updated @splitsoftware/splitio-commons package to version 2.1.0.
|
|
6
|
+
|
|
1
7
|
11.0.3 (December 4, 2024)
|
|
2
8
|
- Bugfixing - Updated @splitsoftware/splitio-commons package to version 2.0.2 that sanitizes the `SplitSDKMachineName` header value to avoid exceptions on HTTP/S requests when it contains non ISO-8859-1 characters (Related to issue https://github.com/splitio/javascript-client/issues/847).
|
|
3
9
|
|
package/README.md
CHANGED
|
@@ -84,4 +84,4 @@ For a comprehensive list of open source projects visit our [Github page](https:/
|
|
|
84
84
|
|
|
85
85
|
**Learn more about Split:**
|
|
86
86
|
|
|
87
|
-
Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](
|
|
87
|
+
Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](https://help.split.io) for more detailed information.
|
|
@@ -5,7 +5,7 @@ var isLocalStorageAvailable_1 = require("@splitsoftware/splitio-commons/cjs/util
|
|
|
5
5
|
var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants");
|
|
6
6
|
var STORAGE_LOCALSTORAGE = 'LOCALSTORAGE';
|
|
7
7
|
function validateStorage(settings) {
|
|
8
|
-
var log = settings.log, mode = settings.mode, _a = settings.storage, _b = _a === void 0 ? { type: constants_1.STORAGE_MEMORY } : _a, type = _b.type, _c = _b.options, options = _c === void 0 ? {} : _c, prefix = _b.prefix;
|
|
8
|
+
var log = settings.log, mode = settings.mode, _a = settings.storage, _b = _a === void 0 ? { type: constants_1.STORAGE_MEMORY } : _a, type = _b.type, _c = _b.options, options = _c === void 0 ? {} : _c, prefix = _b.prefix, expirationDays = _b.expirationDays, clearOnInit = _b.clearOnInit;
|
|
9
9
|
var __originalType;
|
|
10
10
|
var fallbackToMemory = function () {
|
|
11
11
|
__originalType = type;
|
|
@@ -27,6 +27,8 @@ function validateStorage(settings) {
|
|
|
27
27
|
type: type,
|
|
28
28
|
options: options,
|
|
29
29
|
prefix: prefix,
|
|
30
|
+
expirationDays: expirationDays,
|
|
31
|
+
clearOnInit: clearOnInit,
|
|
30
32
|
__originalType: __originalType
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = '11.0.
|
|
1
|
+
export var packageVersion = '11.1.0-rc.0';
|
|
@@ -2,7 +2,7 @@ import { isLocalStorageAvailable } from '@splitsoftware/splitio-commons/esm/util
|
|
|
2
2
|
import { LOCALHOST_MODE, STORAGE_MEMORY } from '@splitsoftware/splitio-commons/esm/utils/constants';
|
|
3
3
|
var STORAGE_LOCALSTORAGE = 'LOCALSTORAGE';
|
|
4
4
|
export function validateStorage(settings) {
|
|
5
|
-
var log = settings.log, mode = settings.mode, _a = settings.storage, _b = _a === void 0 ? { type: STORAGE_MEMORY } : _a, type = _b.type, _c = _b.options, options = _c === void 0 ? {} : _c, prefix = _b.prefix;
|
|
5
|
+
var log = settings.log, mode = settings.mode, _a = settings.storage, _b = _a === void 0 ? { type: STORAGE_MEMORY } : _a, type = _b.type, _c = _b.options, options = _c === void 0 ? {} : _c, prefix = _b.prefix, expirationDays = _b.expirationDays, clearOnInit = _b.clearOnInit;
|
|
6
6
|
var __originalType;
|
|
7
7
|
var fallbackToMemory = function () {
|
|
8
8
|
__originalType = type;
|
|
@@ -24,6 +24,8 @@ export function validateStorage(settings) {
|
|
|
24
24
|
type: type,
|
|
25
25
|
options: options,
|
|
26
26
|
prefix: prefix,
|
|
27
|
+
expirationDays: expirationDays,
|
|
28
|
+
clearOnInit: clearOnInit,
|
|
27
29
|
__originalType: __originalType
|
|
28
30
|
};
|
|
29
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.1.0-rc.0",
|
|
4
4
|
"description": "Split SDK",
|
|
5
5
|
"files": [
|
|
6
6
|
"README.md",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"node": ">=14.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@splitsoftware/splitio-commons": "2.0.
|
|
41
|
+
"@splitsoftware/splitio-commons": "2.1.0-rc.0",
|
|
42
42
|
"bloom-filters": "^3.0.4",
|
|
43
43
|
"ioredis": "^4.28.0",
|
|
44
44
|
"js-yaml": "^3.13.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = '11.0.
|
|
1
|
+
export const packageVersion = '11.1.0-rc.0';
|
|
@@ -10,7 +10,9 @@ export function validateStorage(settings) {
|
|
|
10
10
|
storage: {
|
|
11
11
|
type,
|
|
12
12
|
options = {},
|
|
13
|
-
prefix
|
|
13
|
+
prefix,
|
|
14
|
+
expirationDays,
|
|
15
|
+
clearOnInit
|
|
14
16
|
} = { type: STORAGE_MEMORY },
|
|
15
17
|
} = settings;
|
|
16
18
|
let __originalType;
|
|
@@ -38,6 +40,8 @@ export function validateStorage(settings) {
|
|
|
38
40
|
type,
|
|
39
41
|
options,
|
|
40
42
|
prefix,
|
|
43
|
+
expirationDays,
|
|
44
|
+
clearOnInit,
|
|
41
45
|
__originalType
|
|
42
46
|
};
|
|
43
47
|
}
|
package/types/client/index.d.ts
CHANGED
package/types/index.d.ts
CHANGED
package/types/server/index.d.ts
CHANGED