@splitsoftware/splitio-browserjs 0.8.1-rc.2 → 0.9.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
- 0.8.1 (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
+ 0.9.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 30 seconds to 60 seconds.
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
  0.8.0 (July 22, 2022)
5
7
  - Added `autoRequire` configuration option to the Google Analytics to Split integration, which takes care of requiring the splitTracker plugin on trackers dynamically created by Google tag managers (See https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js).
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaults = void 0;
4
4
  var index_1 = require("@splitsoftware/splitio-commons/cjs/logger/index");
5
5
  var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants");
6
- var packageVersion = '0.8.1-rc.2';
6
+ var packageVersion = '0.9.0';
7
7
  /**
8
8
  * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
9
9
  * Acceptable values are: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'.
@@ -1,6 +1,6 @@
1
1
  import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/esm/logger/index';
2
2
  import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/esm/utils/constants';
3
- var packageVersion = '0.8.1-rc.2';
3
+ var packageVersion = '0.9.0';
4
4
  /**
5
5
  * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
6
6
  * Acceptable values are: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio-browserjs",
3
- "version": "0.8.1-rc.2",
3
+ "version": "0.9.0",
4
4
  "description": "Split SDK for Javascript on Browser",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -64,7 +64,7 @@
64
64
  "bugs": "https://github.com/splitio/javascript-browser-client/issues",
65
65
  "homepage": "https://github.com/splitio/javascript-browser-client#readme",
66
66
  "dependencies": {
67
- "@splitsoftware/splitio-commons": "1.6.2-rc.13",
67
+ "@splitsoftware/splitio-commons": "1.7.1",
68
68
  "@types/google.analytics": "0.0.40"
69
69
  },
70
70
  "devDependencies": {
@@ -2,7 +2,7 @@ import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/src/
2
2
  import { ConsentStatus, LogLevel } from '@splitsoftware/splitio-commons/src/types';
3
3
  import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants';
4
4
 
5
- const packageVersion = '0.8.1-rc.2';
5
+ const packageVersion = '0.9.0';
6
6
 
7
7
  /**
8
8
  * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
@@ -217,9 +217,11 @@ interface ISharedSettings {
217
217
  splitFilters?: SplitIO.SplitFilter[]
218
218
  /**
219
219
  * Impressions Collection Mode. Option to determine how impressions are going to be sent to Split Servers.
220
- * Possible values are 'DEBUG' and 'OPTIMIZED'.
220
+ * Possible values are 'DEBUG', 'OPTIMIZED', and 'NONE'.
221
221
  * - DEBUG: will send all the impressions generated (recommended only for debugging purposes).
222
- * - OPTIMIZED: will send unique impressions to Split Servers avoiding a considerable amount of traffic that duplicated impressions could generate.
222
+ * - OPTIMIZED: will send unique impressions to Split Servers, avoiding a considerable amount of traffic that duplicated impressions could generate.
223
+ * - 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.
224
+ *
223
225
  * @property {String} impressionsMode
224
226
  * @default 'OPTIMIZED'
225
227
  */
@@ -955,7 +957,7 @@ declare namespace SplitIO {
955
957
  /**
956
958
  * The SDK polls Split servers for changes to feature roll-out plans. This parameter controls this polling period in seconds.
957
959
  * @property {number} featuresRefreshRate
958
- * @default 30
960
+ * @default 60
959
961
  */
960
962
  featuresRefreshRate?: number,
961
963
  /**