@splitsoftware/splitio 10.21.2-rc.4 → 10.21.2-rc.6

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.
@@ -1 +1 @@
1
- export var packageVersion = '10.21.2-rc.4';
1
+ export var packageVersion = '10.21.2-rc.6';
@@ -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.4';
4
+ exports.packageVersion = '10.21.2-rc.6';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.21.2-rc.4",
3
+ "version": "10.21.2-rc.6",
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.10",
37
+ "@splitsoftware/splitio-commons": "1.6.2-rc.14",
38
38
  "@types/google.analytics": "0.0.40",
39
39
  "@types/ioredis": "^4.28.0",
40
40
  "ioredis": "^4.28.0",
@@ -112,6 +112,7 @@
112
112
  "test-ts-decls": "./scripts/ts-tests.sh",
113
113
  "posttest-ts-decls": "npm unlink && npm install",
114
114
  "test": "npm run test-node && npm run test-browser",
115
+ "all": "npm run check && npm run build && npm run test-ts-decls && npm run test",
115
116
  "publish:rc": "npm run check && npm run build && npm publish --tag canary",
116
117
  "publish:stable": "npm run check && npm run build && npm publish"
117
118
  },
@@ -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
 
@@ -6,11 +6,11 @@ const REFRESH_RATE = 24 * 60 * 60000; // 24HS
6
6
 
7
7
  export function bloomFilterFactory(expectedInsertions = EXPECTED_INSERTIONS, errorRate = ERROR_RATE, refreshRate = REFRESH_RATE) {
8
8
  let filter = BloomFilter.create(expectedInsertions, errorRate);
9
-
10
- return {
11
-
9
+
10
+ return {
11
+
12
12
  refreshRate: refreshRate,
13
-
13
+
14
14
  add(key, value) {
15
15
  const data = `${key}:${value}`;
16
16
  if (filter.has(data)) {
@@ -19,15 +19,15 @@ export function bloomFilterFactory(expectedInsertions = EXPECTED_INSERTIONS, err
19
19
  filter.add(data);
20
20
  return true;
21
21
  },
22
-
22
+
23
23
  contains(key, value) {
24
24
  const data = `${key}:${value}`;
25
25
  return filter.has(data);
26
26
  },
27
-
27
+
28
28
  clear() {
29
29
  filter = BloomFilter.create(expectedInsertions, errorRate);
30
30
  }
31
-
31
+
32
32
  };
33
33
  }
@@ -1 +1 @@
1
- export const packageVersion = '10.21.2-rc.4';
1
+ export const packageVersion = '10.21.2-rc.6';
@@ -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
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 to Split Servers avoiding a considerable amount of traffic that impressions could generate.
235
+ *
234
236
  * @property {string} impressionsMode
235
237
  * @default 'OPTIMIZED'
236
238
  */