@splitsoftware/splitio 10.28.0-rc.5 → 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 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-rc.5';
1
+ export var packageVersion = '10.28.1-rc.0';
@@ -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. Fallbacking into MEMORY 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. Fallbacking into default MEMORY storage.');
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. Fallbacking into default MEMORY storage.");
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
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageVersion = void 0;
4
- exports.packageVersion = '10.28.0-rc.5';
4
+ exports.packageVersion = '10.28.1-rc.0';
@@ -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. Fallbacking into MEMORY 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. Fallbacking into default MEMORY storage.');
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. Fallbacking into default MEMORY storage.");
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-rc.5",
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-rc.5",
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-rc.5';
1
+ export const packageVersion = '10.28.1-rc.0';
@@ -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. Fallbacking into MEMORY 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. Fallbacking into default MEMORY storage.');
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. Fallbacking into default MEMORY storage.`);
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
@@ -1144,7 +1144,7 @@ declare namespace SplitIO {
1144
1144
  * Or provide keys with different case since headers are case-insensitive. Example: `{ 'authorization': 'value1', 'Authorization': 'value2' }`
1145
1145
  *
1146
1146
  * NOTE: to pass custom headers to the streaming connection in Browser, you should polyfill the `window.EventSource` object with a library that supports headers,
1147
- * like https://www.npmjs.com/package/eventsource, since the native EventSource object does not support them in general and will be ignored.
1147
+ * like https://www.npmjs.com/package/event-source-polyfill, since native EventSource does not support them and will be ignored.
1148
1148
  *
1149
1149
  * @property getHeaderOverrides
1150
1150
  * @default undefined