@splitsoftware/splitio 10.21.2-rc.5 → 10.22.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,5 +1,7 @@
1
- 10.21.2 (September XXX, 2022)
2
- - Updated @splitsoftware/splitio-commons package to version 1.6.2, that improves the performance of split evaluations (i.e., `getTreatment(s)` method calls) when using the default storage in memory.
1
+ 10.22.0 (October 5, 2022)
2
+ - Added a new impressions mode for the SDK called NONE, to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions.
3
+ - Updated default value of `scheduler.featuresRefreshRate` config parameter from 5 seconds to 60 seconds for NodeJS and from 30 seconds to 60 seconds for Browser.
4
+ - Updated @splitsoftware/splitio-commons package to version 1.7.1, that improves the performance of split evaluations (i.e., `getTreatment(s)` method calls) when using the default storage in memory, among other improvements.
3
5
 
4
6
  10.21.1 (July 25, 2022)
5
7
  - Bugfixing - Added missed type definitions `enabled` from `sync`.
@@ -14,9 +14,6 @@ export var defaults = {
14
14
  // Don't wait a specific time for first flush on Node, no page load here.
15
15
  eventsFirstPushWindow: 0
16
16
  },
17
- scheduler: {
18
- featuresRefreshRate: 5
19
- },
20
17
  features: '.split',
21
18
  // Instance version.
22
19
  version: "nodejs-" + packageVersion,
@@ -1 +1 @@
1
- export var packageVersion = '10.21.2-rc.5';
1
+ export var packageVersion = '10.22.0';
@@ -17,9 +17,6 @@ exports.defaults = {
17
17
  // Don't wait a specific time for first flush on Node, no page load here.
18
18
  eventsFirstPushWindow: 0
19
19
  },
20
- scheduler: {
21
- featuresRefreshRate: 5
22
- },
23
20
  features: '.split',
24
21
  // Instance version.
25
22
  version: "nodejs-" + version_1.packageVersion,
@@ -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.21.2-rc.5';
4
+ exports.packageVersion = '10.22.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.21.2-rc.5",
3
+ "version": "10.22.0",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@ably/bloomit": "^1.4.2",
37
- "@splitsoftware/splitio-commons": "1.6.2-rc.13",
37
+ "@splitsoftware/splitio-commons": "1.7.1",
38
38
  "@types/google.analytics": "0.0.40",
39
39
  "@types/ioredis": "^4.28.0",
40
40
  "ioredis": "^4.28.0",
@@ -46,7 +46,7 @@ function getModules(settings) {
46
46
  SignalListener,
47
47
 
48
48
  impressionsObserverFactory: impressionObserverSSFactory,
49
-
49
+
50
50
  filterAdapterFactory: bloomFilterFactory
51
51
  };
52
52
 
@@ -15,9 +15,7 @@ export const defaults = {
15
15
  // Don't wait a specific time for first flush on Node, no page load here.
16
16
  eventsFirstPushWindow: 0
17
17
  },
18
- scheduler: {
19
- featuresRefreshRate: 5
20
- },
18
+
21
19
  features: '.split',
22
20
 
23
21
  // Instance version.
@@ -1 +1 @@
1
- export const packageVersion = '10.21.2-rc.5';
1
+ export const packageVersion = '10.22.0';
@@ -228,9 +228,11 @@ interface ISharedSettings {
228
228
  splitFilters?: SplitIO.SplitFilter[]
229
229
  /**
230
230
  * Impressions Collection Mode. Option to determine how impressions are going to be sent to Split Servers.
231
- * Possible values are 'DEBUG' and 'OPTIMIZED'.
231
+ * Possible values are 'DEBUG', 'OPTIMIZED', and 'NONE'.
232
232
  * - DEBUG: will send all the impressions generated (recommended only for debugging purposes).
233
- * - OPTIMIZED: will send unique impressions to Split Servers avoiding a considerable amount of traffic that duplicated impressions could generate.
233
+ * - OPTIMIZED: will send unique impressions to Split Servers, avoiding a considerable amount of traffic that duplicated impressions could generate.
234
+ * - NONE: will send unique keys evaluated per feature to Split Servers instead of full blown impressions, avoiding a considerable amount of traffic that impressions could generate.
235
+ *
234
236
  * @property {string} impressionsMode
235
237
  * @default 'OPTIMIZED'
236
238
  */
@@ -293,7 +295,7 @@ interface INodeBasicSettings extends ISharedSettings {
293
295
  /**
294
296
  * The SDK polls Split servers for changes to feature roll-out plans. This parameter controls this polling period in seconds.
295
297
  * @property {number} featuresRefreshRate
296
- * @default 5
298
+ * @default 60
297
299
  */
298
300
  featuresRefreshRate?: number,
299
301
  /**
@@ -967,7 +969,7 @@ declare namespace SplitIO {
967
969
  /**
968
970
  * The SDK polls Split servers for changes to feature roll-out plans. This parameter controls this polling period in seconds.
969
971
  * @property {number} featuresRefreshRate
970
- * @default 30
972
+ * @default 60
971
973
  */
972
974
  featuresRefreshRate?: number,
973
975
  /**