@splitsoftware/splitio-browserjs 0.8.1-rc.3 → 0.9.1

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,10 @@
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.1 (October 14, 2022)
2
+ - Bugfixing - Upgrade @splitsoftware/splitio-commons package to version 1.7.2, that handles `Navigator.sendBeacon` API exceptions in the browser, and fallback to regular Fetch/XHR transport in case of error.
3
+
4
+ 0.9.0 (October 5, 2022)
5
+ - 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.
6
+ - Updated default value of `scheduler.featuresRefreshRate` config parameter from 30 seconds to 60 seconds.
7
+ - 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
8
 
4
9
  0.8.0 (July 22, 2022)
5
10
  - 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.3';
6
+ var packageVersion = '0.9.1';
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.3';
3
+ var packageVersion = '0.9.1';
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.3",
3
+ "version": "0.9.1",
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.14",
67
+ "@splitsoftware/splitio-commons": "1.7.2",
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.3';
5
+ const packageVersion = '0.9.1';
6
6
 
7
7
  /**
8
8
  * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
@@ -219,8 +219,8 @@ interface ISharedSettings {
219
219
  * Impressions Collection Mode. Option to determine how impressions are going to be sent to Split Servers.
220
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.
223
- * - NONE: will send unique keys to Split Servers avoiding a considerable amount of traffic that 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
224
  *
225
225
  * @property {String} impressionsMode
226
226
  * @default 'OPTIMIZED'
@@ -957,7 +957,7 @@ declare namespace SplitIO {
957
957
  /**
958
958
  * The SDK polls Split servers for changes to feature roll-out plans. This parameter controls this polling period in seconds.
959
959
  * @property {number} featuresRefreshRate
960
- * @default 30
960
+ * @default 60
961
961
  */
962
962
  featuresRefreshRate?: number,
963
963
  /**