@splitsoftware/splitio-browserjs 0.9.2 → 0.9.3-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 +4 -0
- package/LICENSE +1 -1
- package/README.md +4 -3
- package/cjs/full/umd.js +17 -10
- package/cjs/settings/defaults.js +1 -1
- package/esm/full/umd.js +8 -1
- package/esm/settings/defaults.js +1 -1
- package/package.json +13 -12
- package/src/full/umd.ts +8 -1
- package/src/settings/defaults.ts +1 -1
- package/types/full/index.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/splitio.d.ts +11 -6
package/CHANGES.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
0.9.3 (March 20, 2023)
|
|
2
|
+
- Updated @splitsoftware/splitio-commons package to version 1.8.1 that includes minor improvements.
|
|
3
|
+
- Updated some transitive dependencies for vulnerability fixes.
|
|
4
|
+
|
|
1
5
|
0.9.2 (December 16, 2022)
|
|
2
6
|
- Updated some transitive dependencies for vulnerability fixes.
|
|
3
7
|
- Bugfixing - Upgrade @splitsoftware/splitio-commons package to version 1.7.3 which includes a memory leak fix for localhost mode (Related to issue https://github.com/splitio/javascript-commons/issues/181) among other improvements.
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Split JavaScript SDK for Browsers
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/%40splitsoftware%2Fsplitio) [](https://github.com/splitio/javascript-browser-client/actions/workflows/ci-cd.yml)
|
|
3
|
+
[](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-browserjs) [](https://github.com/splitio/javascript-browser-client/actions/workflows/ci-cd.yml)
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.
|
|
@@ -63,11 +63,12 @@ Split has built and maintains SDKs for:
|
|
|
63
63
|
|
|
64
64
|
* .NET [Github](https://github.com/splitio/dotnet-client) [Docs](https://help.split.io/hc/en-us/articles/360020240172--NET-SDK)
|
|
65
65
|
* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK)
|
|
66
|
+
* Angular [Github](https://github.com/splitio/angular-sdk-plugin) [Docs](https://help.split.io/hc/en-us/articles/6495326064397-Angular-utilities)
|
|
66
67
|
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
|
|
67
68
|
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
|
|
68
69
|
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
|
|
69
|
-
*
|
|
70
|
-
*
|
|
70
|
+
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
|
|
71
|
+
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
|
|
71
72
|
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
|
|
72
73
|
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
|
|
73
74
|
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
|
package/cjs/full/umd.js
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
// @ts-nocheck
|
|
4
|
-
var
|
|
4
|
+
var splitFactory_1 = require("./splitFactory");
|
|
5
|
+
var index_1 = require("@splitsoftware/splitio-commons/cjs/storages/inLocalStorage/index");
|
|
6
|
+
var GoogleAnalyticsToSplit_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/GoogleAnalyticsToSplit");
|
|
7
|
+
var SplitToGoogleAnalytics_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/SplitToGoogleAnalytics");
|
|
8
|
+
var ErrorLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/ErrorLogger");
|
|
9
|
+
var WarnLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/WarnLogger");
|
|
10
|
+
var InfoLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/InfoLogger");
|
|
11
|
+
var DebugLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/DebugLogger");
|
|
5
12
|
// Include all pluggable modules as properties to expose at the global `splitio` object
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
splitFactory_1.SplitFactory.SplitFactory = splitFactory_1.SplitFactory;
|
|
14
|
+
splitFactory_1.SplitFactory.InLocalStorage = index_1.InLocalStorage;
|
|
15
|
+
splitFactory_1.SplitFactory.GoogleAnalyticsToSplit = GoogleAnalyticsToSplit_1.GoogleAnalyticsToSplit;
|
|
16
|
+
splitFactory_1.SplitFactory.SplitToGoogleAnalytics = SplitToGoogleAnalytics_1.SplitToGoogleAnalytics;
|
|
17
|
+
splitFactory_1.SplitFactory.ErrorLogger = ErrorLogger_1.ErrorLogger;
|
|
18
|
+
splitFactory_1.SplitFactory.WarnLogger = WarnLogger_1.WarnLogger;
|
|
19
|
+
splitFactory_1.SplitFactory.InfoLogger = InfoLogger_1.InfoLogger;
|
|
20
|
+
splitFactory_1.SplitFactory.DebugLogger = DebugLogger_1.DebugLogger;
|
|
14
21
|
// eslint-disable-next-line import/no-default-export
|
|
15
|
-
exports.default =
|
|
22
|
+
exports.default = splitFactory_1.SplitFactory;
|
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.9.
|
|
6
|
+
var packageVersion = '0.9.3-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'.
|
package/esm/full/umd.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { SplitFactory
|
|
2
|
+
import { SplitFactory } from './splitFactory';
|
|
3
|
+
import { InLocalStorage } from '@splitsoftware/splitio-commons/esm/storages/inLocalStorage/index';
|
|
4
|
+
import { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/esm/integrations/ga/GoogleAnalyticsToSplit';
|
|
5
|
+
import { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/esm/integrations/ga/SplitToGoogleAnalytics';
|
|
6
|
+
import { ErrorLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/ErrorLogger';
|
|
7
|
+
import { WarnLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/WarnLogger';
|
|
8
|
+
import { InfoLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/InfoLogger';
|
|
9
|
+
import { DebugLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/DebugLogger';
|
|
3
10
|
// Include all pluggable modules as properties to expose at the global `splitio` object
|
|
4
11
|
SplitFactory.SplitFactory = SplitFactory;
|
|
5
12
|
SplitFactory.InLocalStorage = InLocalStorage;
|
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.9.
|
|
3
|
+
var packageVersion = '0.9.3-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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio-browserjs",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Split SDK for
|
|
3
|
+
"version": "0.9.3-rc.1",
|
|
4
|
+
"description": "Split SDK for JavaScript on Browser",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"types": "types",
|
|
@@ -64,13 +64,14 @@
|
|
|
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.8.1",
|
|
68
68
|
"@types/google.analytics": "0.0.40"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@rollup/plugin-commonjs": "^
|
|
72
|
-
"@rollup/plugin-json": "^
|
|
73
|
-
"@rollup/plugin-node-resolve": "^
|
|
71
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
72
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
73
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
74
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
74
75
|
"@types/jest": "^27.0.2",
|
|
75
76
|
"@types/node-fetch": "^2.5.7",
|
|
76
77
|
"@typescript-eslint/eslint-plugin": "^4.14.1",
|
|
@@ -80,18 +81,18 @@
|
|
|
80
81
|
"eslint-plugin-import": "^2.25.4",
|
|
81
82
|
"fetch-mock": "^9.11.0",
|
|
82
83
|
"jest": "^27.2.3",
|
|
83
|
-
"karma": "^6.4.
|
|
84
|
+
"karma": "^6.4.1",
|
|
84
85
|
"karma-chrome-launcher": "^3.1.1",
|
|
85
86
|
"karma-rollup-preprocessor": "^7.0.8",
|
|
86
87
|
"karma-tap": "^4.2.0",
|
|
88
|
+
"puppeteer": "^3.3.0",
|
|
87
89
|
"replace": "^1.2.1",
|
|
88
90
|
"rimraf": "^3.0.2",
|
|
89
|
-
"rollup": "^2.
|
|
90
|
-
"rollup-plugin-node
|
|
91
|
+
"rollup": "^2.79.1",
|
|
92
|
+
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
91
93
|
"rollup-plugin-string": "^3.0.0",
|
|
92
|
-
"rollup-plugin-
|
|
93
|
-
"rollup-plugin-
|
|
94
|
-
"rollup-plugin-visualizer": "^4.2.0",
|
|
94
|
+
"rollup-plugin-ts": "^3.2.0",
|
|
95
|
+
"rollup-plugin-visualizer": "^5.9.0",
|
|
95
96
|
"sinon": "^9.2.2",
|
|
96
97
|
"tape": "4.13.2",
|
|
97
98
|
"tape-catch": "1.0.6",
|
package/src/full/umd.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { SplitFactory
|
|
2
|
+
import { SplitFactory } from './splitFactory';
|
|
3
|
+
import { InLocalStorage } from '@splitsoftware/splitio-commons/src/storages/inLocalStorage/index';
|
|
4
|
+
import { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/src/integrations/ga/GoogleAnalyticsToSplit';
|
|
5
|
+
import { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/src/integrations/ga/SplitToGoogleAnalytics';
|
|
6
|
+
import { ErrorLogger } from '@splitsoftware/splitio-commons/src/logger/browser/ErrorLogger';
|
|
7
|
+
import { WarnLogger } from '@splitsoftware/splitio-commons/src/logger/browser/WarnLogger';
|
|
8
|
+
import { InfoLogger } from '@splitsoftware/splitio-commons/src/logger/browser/InfoLogger';
|
|
9
|
+
import { DebugLogger } from '@splitsoftware/splitio-commons/src/logger/browser/DebugLogger';
|
|
3
10
|
|
|
4
11
|
// Include all pluggable modules as properties to expose at the global `splitio` object
|
|
5
12
|
SplitFactory.SplitFactory = SplitFactory;
|
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.9.
|
|
5
|
+
const packageVersion = '0.9.3-rc.1';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
|
package/types/full/index.d.ts
CHANGED
package/types/index.d.ts
CHANGED
package/types/splitio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for
|
|
1
|
+
// Type definitions for JavaScript Browser Split Software SDK
|
|
2
2
|
// Project: http://www.split.io/
|
|
3
3
|
// Definitions by: Nico Zelaya <https://github.com/NicoZelaya/>
|
|
4
4
|
|
|
@@ -296,9 +296,14 @@ interface IStatusInterface extends IEventEmitter {
|
|
|
296
296
|
*/
|
|
297
297
|
interface IBasicClient extends IStatusInterface {
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* Destroys the client instance.
|
|
300
|
+
*
|
|
301
|
+
* In 'standalone' and 'partial consumer' modes, this method will flush any pending impressions and events.
|
|
302
|
+
* In 'standalone' mode, it also stops the synchronization of feature flag definitions with the backend.
|
|
303
|
+
* In 'consumer' and 'partial consumer' modes, this method also disconnects the SDK from the Pluggable storage.
|
|
304
|
+
*
|
|
300
305
|
* @function destroy
|
|
301
|
-
* @returns {Promise<void>}
|
|
306
|
+
* @returns {Promise<void>} A promise that will be resolved once the client is destroyed.
|
|
302
307
|
*/
|
|
303
308
|
destroy(): Promise<void>
|
|
304
309
|
}
|
|
@@ -541,7 +546,7 @@ declare namespace SplitIO {
|
|
|
541
546
|
/**
|
|
542
547
|
* Optional prefix to prevent any kind of data collision when having multiple factories using the same storage type.
|
|
543
548
|
* @property {string} prefix
|
|
544
|
-
* @default SPLITIO
|
|
549
|
+
* @default 'SPLITIO'
|
|
545
550
|
*/
|
|
546
551
|
prefix?: string
|
|
547
552
|
}
|
|
@@ -565,7 +570,7 @@ declare namespace SplitIO {
|
|
|
565
570
|
/**
|
|
566
571
|
* Optional prefix to prevent any kind of data collision when having multiple factories using the same storage wrapper.
|
|
567
572
|
* @property {string} prefix
|
|
568
|
-
* @default SPLITIO
|
|
573
|
+
* @default 'SPLITIO'
|
|
569
574
|
*/
|
|
570
575
|
prefix?: string,
|
|
571
576
|
/**
|
|
@@ -896,7 +901,7 @@ declare namespace SplitIO {
|
|
|
896
901
|
* For "localhost" mode, use "localhost" as authorizationKey.
|
|
897
902
|
*
|
|
898
903
|
* @property {'standalone'} mode
|
|
899
|
-
* @default standalone
|
|
904
|
+
* @default 'standalone'
|
|
900
905
|
*/
|
|
901
906
|
mode?: 'standalone',
|
|
902
907
|
/**
|