@splitsoftware/splitio-browserjs 0.9.7-rc.0 → 0.10.1-rc.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 +8 -1
- package/cjs/settings/defaults.js +1 -1
- package/esm/settings/defaults.js +1 -1
- package/package.json +7 -7
- package/src/settings/defaults.ts +1 -1
- package/types/splitio.d.ts +2 -2
package/CHANGES.txt
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
0.10.1 (September 22, 2023)
|
|
2
|
+
- 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
|
+
|
|
4
|
+
0.10.0 (July 18, 2023)
|
|
5
|
+
- Updated @splitsoftware/splitio-commons package to version 1.9.0 that includes minor improvements:
|
|
6
|
+
- Updated streaming architecture implementation to apply feature flag updates from the notification received which is now enhanced, improving efficiency and reliability of the whole update system.
|
|
7
|
+
|
|
1
8
|
0.9.6 (June 29, 2023)
|
|
2
9
|
- Updated some transitive dependencies for vulnerability fixes.
|
|
3
10
|
- Updated @splitsoftware/splitio-commons package to version 1.8.3 that includes:
|
|
4
11
|
- Updated SDK_READY_TIMED_OUT event to be emitted immediately when a connection error occurs using pluggable storage (i.e., when the wrapper `connect` promise is rejected) in consumer and partial consumer modes.
|
|
5
|
-
-
|
|
12
|
+
- Bugfixing - The `destroy` method has been updated to immediately flag the SDK client as destroyed, to prevent unexpected behaviours when `getTreatment` and `track` methods are called synchronously after `destroy` method is called.
|
|
6
13
|
|
|
7
14
|
0.9.5 (May 15, 2023)
|
|
8
15
|
- Updated @splitsoftware/splitio-commons package to version 1.8.2 that includes minor improvements.
|
package/cjs/settings/defaults.js
CHANGED
|
@@ -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.
|
|
6
|
+
var packageVersion = '0.10.1-rc.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'.
|
package/esm/settings/defaults.js
CHANGED
|
@@ -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.
|
|
3
|
+
var packageVersion = '0.10.1-rc.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.
|
|
3
|
+
"version": "0.10.1-rc.0",
|
|
4
4
|
"description": "Split SDK for JavaScript on Browser",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"build:esm": "rimraf esm && tsc -outDir esm && ./scripts/build_esm_replace_imports.sh",
|
|
27
27
|
"build:cjs": "rimraf cjs && tsc -outDir cjs -m CommonJS && ./scripts/build_cjs_replace_imports.sh",
|
|
28
28
|
"build:umd-visualizer": "rollup --config rollup.visualizer.config.js",
|
|
29
|
-
"build:umd": "rollup --config rollup.ci.config.js --branch=$BUILD_BRANCH
|
|
29
|
+
"build:umd": "rollup --config rollup.ci.config.js --branch=$BUILD_BRANCH",
|
|
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",
|
|
@@ -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.
|
|
67
|
+
"@splitsoftware/splitio-commons": "1.9.1",
|
|
68
68
|
"@types/google.analytics": "0.0.40",
|
|
69
69
|
"unfetch": "^4.2.0"
|
|
70
70
|
},
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"@rollup/plugin-terser": "^0.4.0",
|
|
76
76
|
"@types/jest": "^27.0.2",
|
|
77
77
|
"@types/node-fetch": "^2.5.7",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
79
|
-
"@typescript-eslint/parser": "^
|
|
80
|
-
"eslint": "^
|
|
81
|
-
"eslint-plugin-compat": "^
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
79
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
80
|
+
"eslint": "^8.48.0",
|
|
81
|
+
"eslint-plugin-compat": "^4.2.0",
|
|
82
82
|
"eslint-plugin-import": "^2.25.4",
|
|
83
83
|
"fetch-mock": "^9.11.0",
|
|
84
84
|
"jest": "^27.2.3",
|
package/src/settings/defaults.ts
CHANGED
|
@@ -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.
|
|
5
|
+
const packageVersion = '0.10.1-rc.0';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
|
package/types/splitio.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ interface ILoggerAPI {
|
|
|
137
137
|
*/
|
|
138
138
|
interface IUserConsentAPI {
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Sets or updates the user consent status. Possible values are `true` and `false`, which represent user consent `'GRANTED'` and `'DECLINED'` respectively.
|
|
141
141
|
* - `true ('GRANTED')`: the user has granted consent for tracking events and impressions. The SDK will send them to Split cloud.
|
|
142
142
|
* - `false ('DECLINED')`: the user has declined consent for tracking events and impressions. The SDK will not send them to Split cloud.
|
|
143
143
|
*
|
|
@@ -149,7 +149,7 @@ interface IUserConsentAPI {
|
|
|
149
149
|
*/
|
|
150
150
|
setStatus(userConsent: boolean): boolean;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Gets the user consent status.
|
|
153
153
|
*
|
|
154
154
|
* @function getStatus
|
|
155
155
|
* @returns {ConsentStatus} The user consent status.
|