@splitsoftware/splitio 10.27.1-rc.2 → 10.27.1-rc.4

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.
@@ -3,7 +3,6 @@ import { validateRuntime } from '@splitsoftware/splitio-commons/esm/utils/settin
3
3
  import { validateLogger } from '@splitsoftware/splitio-commons/esm/utils/settingsValidation/logger/builtinLogger';
4
4
  import { LocalhostFromObject } from '@splitsoftware/splitio-commons/esm/sync/offline/LocalhostFromObject';
5
5
  import { validateConsent } from '@splitsoftware/splitio-commons/esm/utils/settingsValidation/consent';
6
- import { STANDALONE_MODE } from '@splitsoftware/splitio-commons/esm/utils/constants';
7
6
  import { defaults } from './defaults/browser';
8
7
  import { validateStorage } from './storage/browser';
9
8
  import { validateIntegrations } from './integrations/browser';
@@ -18,9 +17,5 @@ var params = {
18
17
  consent: validateConsent,
19
18
  };
20
19
  export function settingsFactory(config) {
21
- var settings = settingsValidation(config, params);
22
- // Override in localhost mode to emit SDK_READY event
23
- if (settings.mode !== STANDALONE_MODE)
24
- settings.sync.largeSegmentsEnabled = false;
25
- return settings;
20
+ return settingsValidation(config, params);
26
21
  }
@@ -9,9 +9,7 @@ export var defaults = {
9
9
  // Maximum amount of time used before notifies me a timeout.
10
10
  readyTimeout: 10,
11
11
  // Amount of time we will wait before the first push of events.
12
- eventsFirstPushWindow: 10,
13
- // Wait for large segments to emit SDK_READY event.
14
- waitForLargeSegments: true,
12
+ eventsFirstPushWindow: 10
15
13
  },
16
14
  // Consent is considered granted by default
17
15
  userConsent: CONSENT_GRANTED,
@@ -12,9 +12,7 @@ export var defaults = {
12
12
  // Maximum amount of time used before notifies me a timeout.
13
13
  readyTimeout: 15,
14
14
  // Don't wait a specific time for first flush on Node, no page load here.
15
- eventsFirstPushWindow: 0,
16
- // Don't wait for large segments to emit SDK_READY event.
17
- waitForLargeSegments: false,
15
+ eventsFirstPushWindow: 0
18
16
  },
19
17
  features: '.split',
20
18
  // Instance version.
@@ -1 +1 @@
1
- export var packageVersion = '10.27.1-rc.2';
1
+ export var packageVersion = '10.27.1-rc.4';
@@ -17,9 +17,5 @@ export function settingsFactory(config) {
17
17
  // if provided, keeps reference to the `requestOptions` object
18
18
  if (settings.sync.requestOptions)
19
19
  settings.sync.requestOptions = config.sync.requestOptions;
20
- // Reset config options not supported in Node.js
21
- if (settings.sync.largeSegmentsEnabled)
22
- settings.log.warn('Client instantiation: config.sync.largeSegmentsEnabled option is not supported in NodeJS. Ignoring it.');
23
- settings.sync.largeSegmentsEnabled = false;
24
20
  return settings;
25
21
  }
@@ -6,7 +6,6 @@ var runtime_1 = require("@splitsoftware/splitio-commons/cjs/utils/settingsValida
6
6
  var builtinLogger_1 = require("@splitsoftware/splitio-commons/cjs/utils/settingsValidation/logger/builtinLogger");
7
7
  var LocalhostFromObject_1 = require("@splitsoftware/splitio-commons/cjs/sync/offline/LocalhostFromObject");
8
8
  var consent_1 = require("@splitsoftware/splitio-commons/cjs/utils/settingsValidation/consent");
9
- var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants");
10
9
  var browser_1 = require("./defaults/browser");
11
10
  var browser_2 = require("./storage/browser");
12
11
  var browser_3 = require("./integrations/browser");
@@ -21,10 +20,6 @@ var params = {
21
20
  consent: consent_1.validateConsent,
22
21
  };
23
22
  function settingsFactory(config) {
24
- var settings = (0, settingsValidation_1.settingsValidation)(config, params);
25
- // Override in localhost mode to emit SDK_READY event
26
- if (settings.mode !== constants_1.STANDALONE_MODE)
27
- settings.sync.largeSegmentsEnabled = false;
28
- return settings;
23
+ return (0, settingsValidation_1.settingsValidation)(config, params);
29
24
  }
30
25
  exports.settingsFactory = settingsFactory;
@@ -12,9 +12,7 @@ exports.defaults = {
12
12
  // Maximum amount of time used before notifies me a timeout.
13
13
  readyTimeout: 10,
14
14
  // Amount of time we will wait before the first push of events.
15
- eventsFirstPushWindow: 10,
16
- // Wait for large segments to emit SDK_READY event.
17
- waitForLargeSegments: true,
15
+ eventsFirstPushWindow: 10
18
16
  },
19
17
  // Consent is considered granted by default
20
18
  userConsent: constants_1.CONSENT_GRANTED,
@@ -15,9 +15,7 @@ exports.defaults = {
15
15
  // Maximum amount of time used before notifies me a timeout.
16
16
  readyTimeout: 15,
17
17
  // Don't wait a specific time for first flush on Node, no page load here.
18
- eventsFirstPushWindow: 0,
19
- // Don't wait for large segments to emit SDK_READY event.
20
- waitForLargeSegments: false,
18
+ eventsFirstPushWindow: 0
21
19
  },
22
20
  features: '.split',
23
21
  // Instance version.
@@ -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.27.1-rc.2';
4
+ exports.packageVersion = '10.27.1-rc.4';
@@ -20,10 +20,6 @@ function settingsFactory(config) {
20
20
  // if provided, keeps reference to the `requestOptions` object
21
21
  if (settings.sync.requestOptions)
22
22
  settings.sync.requestOptions = config.sync.requestOptions;
23
- // Reset config options not supported in Node.js
24
- if (settings.sync.largeSegmentsEnabled)
25
- settings.log.warn('Client instantiation: config.sync.largeSegmentsEnabled option is not supported in NodeJS. Ignoring it.');
26
- settings.sync.largeSegmentsEnabled = false;
27
23
  return settings;
28
24
  }
29
25
  exports.settingsFactory = settingsFactory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.27.1-rc.2",
3
+ "version": "10.27.1-rc.4",
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.16.1-rc.8",
43
+ "@splitsoftware/splitio-commons": "1.16.1-rc.12",
44
44
  "@types/google.analytics": "0.0.40",
45
45
  "@types/ioredis": "^4.28.0",
46
46
  "bloom-filters": "^3.0.0",
@@ -3,7 +3,6 @@ import { validateRuntime } from '@splitsoftware/splitio-commons/src/utils/settin
3
3
  import { validateLogger } from '@splitsoftware/splitio-commons/src/utils/settingsValidation/logger/builtinLogger';
4
4
  import { LocalhostFromObject } from '@splitsoftware/splitio-commons/src/sync/offline/LocalhostFromObject';
5
5
  import { validateConsent } from '@splitsoftware/splitio-commons/src/utils/settingsValidation/consent';
6
- import { STANDALONE_MODE } from '@splitsoftware/splitio-commons/src/utils/constants';
7
6
 
8
7
  import { defaults } from './defaults/browser';
9
8
  import { validateStorage } from './storage/browser';
@@ -21,10 +20,5 @@ const params = {
21
20
  };
22
21
 
23
22
  export function settingsFactory(config) {
24
- const settings = settingsValidation(config, params);
25
-
26
- // Override in localhost mode to emit SDK_READY event
27
- if (settings.mode !== STANDALONE_MODE) settings.sync.largeSegmentsEnabled = false;
28
-
29
- return settings;
23
+ return settingsValidation(config, params);
30
24
  }
@@ -10,9 +10,7 @@ export const defaults = {
10
10
  // Maximum amount of time used before notifies me a timeout.
11
11
  readyTimeout: 10,
12
12
  // Amount of time we will wait before the first push of events.
13
- eventsFirstPushWindow: 10,
14
- // Wait for large segments to emit SDK_READY event.
15
- waitForLargeSegments: true,
13
+ eventsFirstPushWindow: 10
16
14
  },
17
15
 
18
16
  // Consent is considered granted by default
@@ -13,9 +13,7 @@ export const defaults = {
13
13
  // Maximum amount of time used before notifies me a timeout.
14
14
  readyTimeout: 15,
15
15
  // Don't wait a specific time for first flush on Node, no page load here.
16
- eventsFirstPushWindow: 0,
17
- // Don't wait for large segments to emit SDK_READY event.
18
- waitForLargeSegments: false,
16
+ eventsFirstPushWindow: 0
19
17
  },
20
18
 
21
19
  features: '.split',
@@ -1 +1 @@
1
- export const packageVersion = '10.27.1-rc.2';
1
+ export const packageVersion = '10.27.1-rc.4';
@@ -20,10 +20,5 @@ export function settingsFactory(config) {
20
20
 
21
21
  // if provided, keeps reference to the `requestOptions` object
22
22
  if (settings.sync.requestOptions) settings.sync.requestOptions = config.sync.requestOptions;
23
-
24
- // Reset config options not supported in Node.js
25
- if (settings.sync.largeSegmentsEnabled) settings.log.warn('Client instantiation: config.sync.largeSegmentsEnabled option is not supported in NodeJS. Ignoring it.');
26
- settings.sync.largeSegmentsEnabled = false;
27
-
28
23
  return settings;
29
24
  }
@@ -78,7 +78,6 @@ interface ISettings {
78
78
  metricsRefreshRate?: number,
79
79
  telemetryRefreshRate: number,
80
80
  segmentsRefreshRate: number,
81
- largeSegmentsRefreshRate: number,
82
81
  offlineRefreshRate: number,
83
82
  eventsPushRate: number,
84
83
  eventsQueueSize: number,
@@ -88,8 +87,7 @@ interface ISettings {
88
87
  readyTimeout: number,
89
88
  requestTimeoutBeforeReady: number,
90
89
  retriesOnFailureBeforeReady: number,
91
- eventsFirstPushWindow: number,
92
- waitForLargeSegments: boolean
90
+ eventsFirstPushWindow: number
93
91
  },
94
92
  readonly storage: {
95
93
  prefix: string,
@@ -114,7 +112,6 @@ interface ISettings {
114
112
  splitFilters: SplitIO.SplitFilter[],
115
113
  impressionsMode: SplitIO.ImpressionsMode,
116
114
  enabled: boolean,
117
- largeSegmentsEnabled: boolean,
118
115
  flagSpecVersion: string
119
116
  }
120
117
  /**
@@ -985,13 +982,6 @@ declare namespace SplitIO {
985
982
  * @default 10
986
983
  */
987
984
  eventsFirstPushWindow?: number,
988
- /**
989
- * Whether the SDK should wait for large segments to be ready before emitting SDK_READY event.
990
- * It only applies if largeSegmentsEnabled is true.
991
- * @property {boolean} waitForLargeSegments
992
- * @default true
993
- */
994
- waitForLargeSegments?: boolean
995
985
  },
996
986
  /**
997
987
  * SDK scheduler settings.
@@ -1036,13 +1026,6 @@ declare namespace SplitIO {
1036
1026
  * @default 60
1037
1027
  */
1038
1028
  segmentsRefreshRate?: number,
1039
- /**
1040
- * The SDK polls Split servers for changes to large segment definitions. This parameter controls this polling period in seconds.
1041
- * It only applies if largeSegmentsEnabled is true.
1042
- * @property {number} largeSegmentsRefreshRate
1043
- * @default 60
1044
- */
1045
- largeSegmentsRefreshRate?: number,
1046
1029
  /**
1047
1030
  * The SDK posts the queued events data in bulks. This parameter controls the posting rate in seconds.
1048
1031
  * @property {number} eventsPushRate
@@ -1144,15 +1127,7 @@ declare namespace SplitIO {
1144
1127
  * @typedef {string} userConsent
1145
1128
  * @default 'GRANTED'
1146
1129
  */
1147
- userConsent?: ConsentStatus,
1148
- sync?: ISharedSettings['sync'] & {
1149
- /**
1150
- * Enables synchronization of large segments.
1151
- * @property {boolean} largeSegmentsEnabled
1152
- * @default false
1153
- */
1154
- largeSegmentsEnabled?: boolean
1155
- }
1130
+ userConsent?: ConsentStatus
1156
1131
  }
1157
1132
  /**
1158
1133
  * Settings interface for SDK instances created on NodeJS.