@splitsoftware/splitio-browserjs 0.10.1 → 0.10.2-rc.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,3 +1,7 @@
1
+ 0.10.2 (October XX, 2023)
2
+ - Added `defaultTreatment` property to the `SplitView` object returned by the `split` and `splits` methods of the SDK manager (Related to issue https://github.com/splitio/javascript-commons/issues/225).
3
+ - Updated @splitsoftware/splitio-commons package to version 1.10.0 that includes vulnerability fixes, and adds the `defaultTreatment` property to the `SplitView` object.
4
+
1
5
  0.10.1 (September 22, 2023)
2
6
  - Updated @splitsoftware/splitio-commons package to version 1.9.1. This update removes the handler for 'unload' DOM events, that can prevent browsers from being able to put pages in the back/forward cache for faster back and forward loads (Related to issue https://github.com/splitio/javascript-client/issues/759).
3
7
 
@@ -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.10.1';
6
+ var packageVersion = '0.10.2-rc.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.10.1';
3
+ var packageVersion = '0.10.2-rc.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.10.1",
3
+ "version": "0.10.2-rc.1",
4
4
  "description": "Split SDK for JavaScript on Browser",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -30,7 +30,7 @@
30
30
  "build:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js",
31
31
  "test": "npm run test:unit && npm run test:e2e",
32
32
  "test:unit": "jest",
33
- "test:e2e": "npm run test:e2e-logger && npm run test:e2e-offline && npm run test:e2e-online && npm run test:e2e-destroy && npm run test:e2e-errorCatching && npm run test:e2e-push && npm run test:e2e-gaIntegration && npm run test:e2e-consumer",
33
+ "test:e2e": "npm run test:e2e-logger && npm run test:e2e-offline && npm run test:e2e-online && npm run test:e2e-destroy && npm run test:e2e-errorCatching && npm run test:e2e-push && npm run test:e2e-consumer",
34
34
  "test:e2e-logger": "karma start karma/e2e.logger.karma.conf.js",
35
35
  "test:e2e-offline": "karma start karma/e2e.offline.karma.conf.js",
36
36
  "test:e2e-online": "karma start karma/e2e.online.karma.conf.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.9.1",
67
+ "@splitsoftware/splitio-commons": "1.10.0",
68
68
  "@types/google.analytics": "0.0.40",
69
69
  "unfetch": "^4.2.0"
70
70
  },
@@ -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.10.1';
5
+ const packageVersion = '0.10.2-rc.1';
6
6
 
7
7
  /**
8
8
  * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
@@ -67,7 +67,6 @@ declare module JsSdk {
67
67
  */
68
68
  export function WarnLogger(): SplitIO.ILogger;
69
69
 
70
-
71
70
  /**
72
71
  * Creates a logger instance that enables descriptive log messages with ERROR log level when passed in the factory settings.
73
72
  *
package/types/index.d.ts CHANGED
@@ -67,7 +67,6 @@ declare module JsSdk {
67
67
  */
68
68
  export function WarnLogger(): SplitIO.ILogger;
69
69
 
70
-
71
70
  /**
72
71
  * Creates a logger instance that enables descriptive log messages with ERROR log level when passed in the factory settings.
73
72
  *
@@ -498,7 +498,12 @@ declare namespace SplitIO {
498
498
  */
499
499
  configs: {
500
500
  [treatmentName: string]: string
501
- }
501
+ },
502
+ /**
503
+ * The default treatment of the feature flag.
504
+ * @property {string} defaultTreatment
505
+ */
506
+ defaultTreatment: string,
502
507
  };
503
508
  /**
504
509
  * A promise that resolves to a feature flag view.