@splitsoftware/splitio-browserjs
Advanced tools
Comparing version 0.15.1-rc.0 to 1.0.0-rc.0
@@ -1,6 +0,8 @@ | ||
0.16.0 (September XX, 2024) | ||
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory. | ||
- Updated @splitsoftware/splitio-commons package to version 1.18.0 that includes minor updates: | ||
- Added support for targeting rules based on large segments for browsers. | ||
- Updated some transitive dependencies for vulnerability fixes. | ||
1.0.0 (October XX, 2024) | ||
- Added support for targeting rules based on large segments for browsers. | ||
- Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory. | ||
- Updated @splitsoftware/splitio-commons package to version 2.0.0 that includes major updates and updated some transitive dependencies for vulnerability fixes. | ||
- BREAKING CHANGES: | ||
- Removed internal ponyfills for the `Map` and `Set` global objects, dropping support for IE and other outdated browsers. The SDK now requires the runtime environment to support these features natively or provide a polyfill. | ||
- Removed the deprecated `GoogleAnalyticsToSplit` and `SplitToGoogleAnalytics` pluggable integration modules, along with the related interfaces in the TypeScript definitions. | ||
@@ -61,3 +63,3 @@ 0.15.0 (September 13, 2024) | ||
- 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. | ||
- 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. | ||
- Bugfixing - The `destroy` method has been updated to immediately flag the SDK client as destroyed, to prevent unexpected behaviors when `getTreatment` and `track` methods are called synchronously after `destroy` method is called. | ||
@@ -64,0 +66,0 @@ 0.9.5 (May 15, 2023) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PluggableStorage = exports.DebugLogger = exports.InfoLogger = exports.WarnLogger = exports.ErrorLogger = exports.SplitToGoogleAnalytics = exports.GoogleAnalyticsToSplit = exports.InLocalStorage = exports.SplitFactory = void 0; | ||
exports.PluggableStorage = exports.DebugLogger = exports.InfoLogger = exports.WarnLogger = exports.ErrorLogger = exports.InLocalStorage = exports.SplitFactory = void 0; | ||
var splitFactory_1 = require("./splitFactory"); | ||
@@ -8,6 +8,2 @@ Object.defineProperty(exports, "SplitFactory", { enumerable: true, get: function () { return splitFactory_1.SplitFactory; } }); | ||
Object.defineProperty(exports, "InLocalStorage", { enumerable: true, get: function () { return index_1.InLocalStorage; } }); | ||
var GoogleAnalyticsToSplit_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/GoogleAnalyticsToSplit"); | ||
Object.defineProperty(exports, "GoogleAnalyticsToSplit", { enumerable: true, get: function () { return GoogleAnalyticsToSplit_1.GoogleAnalyticsToSplit; } }); | ||
var SplitToGoogleAnalytics_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/SplitToGoogleAnalytics"); | ||
Object.defineProperty(exports, "SplitToGoogleAnalytics", { enumerable: true, get: function () { return SplitToGoogleAnalytics_1.SplitToGoogleAnalytics; } }); | ||
var ErrorLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/ErrorLogger"); | ||
@@ -14,0 +10,0 @@ Object.defineProperty(exports, "ErrorLogger", { enumerable: true, get: function () { return ErrorLogger_1.ErrorLogger; } }); |
@@ -6,4 +6,2 @@ "use strict"; | ||
var index_1 = require("@splitsoftware/splitio-commons/cjs/storages/inLocalStorage/index"); | ||
var GoogleAnalyticsToSplit_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/GoogleAnalyticsToSplit"); | ||
var SplitToGoogleAnalytics_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/SplitToGoogleAnalytics"); | ||
var ErrorLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/ErrorLogger"); | ||
@@ -16,4 +14,2 @@ var WarnLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/WarnLogger"); | ||
splitFactory_1.SplitFactory.InLocalStorage = index_1.InLocalStorage; | ||
splitFactory_1.SplitFactory.GoogleAnalyticsToSplit = GoogleAnalyticsToSplit_1.GoogleAnalyticsToSplit; | ||
splitFactory_1.SplitFactory.SplitToGoogleAnalytics = SplitToGoogleAnalytics_1.SplitToGoogleAnalytics; | ||
splitFactory_1.SplitFactory.ErrorLogger = ErrorLogger_1.ErrorLogger; | ||
@@ -20,0 +16,0 @@ splitFactory_1.SplitFactory.WarnLogger = WarnLogger_1.WarnLogger; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PluggableStorage = exports.LocalhostFromObject = exports.DebugLogger = exports.InfoLogger = exports.WarnLogger = exports.ErrorLogger = exports.SplitToGoogleAnalytics = exports.GoogleAnalyticsToSplit = exports.InLocalStorage = exports.SplitFactory = void 0; | ||
exports.PluggableStorage = exports.LocalhostFromObject = exports.DebugLogger = exports.InfoLogger = exports.WarnLogger = exports.ErrorLogger = exports.InLocalStorage = exports.SplitFactory = void 0; | ||
var splitFactory_1 = require("./splitFactory"); | ||
@@ -8,6 +8,2 @@ Object.defineProperty(exports, "SplitFactory", { enumerable: true, get: function () { return splitFactory_1.SplitFactory; } }); | ||
Object.defineProperty(exports, "InLocalStorage", { enumerable: true, get: function () { return index_1.InLocalStorage; } }); | ||
var GoogleAnalyticsToSplit_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/GoogleAnalyticsToSplit"); | ||
Object.defineProperty(exports, "GoogleAnalyticsToSplit", { enumerable: true, get: function () { return GoogleAnalyticsToSplit_1.GoogleAnalyticsToSplit; } }); | ||
var SplitToGoogleAnalytics_1 = require("@splitsoftware/splitio-commons/cjs/integrations/ga/SplitToGoogleAnalytics"); | ||
Object.defineProperty(exports, "SplitToGoogleAnalytics", { enumerable: true, get: function () { return SplitToGoogleAnalytics_1.SplitToGoogleAnalytics; } }); | ||
var ErrorLogger_1 = require("@splitsoftware/splitio-commons/cjs/logger/browser/ErrorLogger"); | ||
@@ -14,0 +10,0 @@ Object.defineProperty(exports, "ErrorLogger", { enumerable: true, get: function () { return ErrorLogger_1.ErrorLogger; } }); |
@@ -6,3 +6,3 @@ "use strict"; | ||
var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants"); | ||
var packageVersion = '0.15.1-rc.0'; | ||
var packageVersion = '1.0.0-rc.0'; | ||
/** | ||
@@ -33,4 +33,2 @@ * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item. | ||
eventsFirstPushWindow: 10, | ||
// Wait for large segments to emit SDK_READY event. | ||
waitForLargeSegments: true, | ||
}, | ||
@@ -37,0 +35,0 @@ // Consent is considered granted by default |
export { SplitFactory } from './splitFactory'; | ||
export { InLocalStorage } from '@splitsoftware/splitio-commons/esm/storages/inLocalStorage/index'; | ||
export { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/esm/integrations/ga/GoogleAnalyticsToSplit'; | ||
export { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/esm/integrations/ga/SplitToGoogleAnalytics'; | ||
export { ErrorLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/ErrorLogger'; | ||
@@ -6,0 +4,0 @@ export { WarnLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/WarnLogger'; |
// @ts-nocheck | ||
import { SplitFactory } from './splitFactory'; | ||
import { InLocalStorage } from '@splitsoftware/splitio-commons/esm/storages/inLocalStorage/index'; | ||
import { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/esm/integrations/ga/GoogleAnalyticsToSplit'; | ||
import { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/esm/integrations/ga/SplitToGoogleAnalytics'; | ||
import { ErrorLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/ErrorLogger'; | ||
@@ -13,4 +11,2 @@ import { WarnLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/WarnLogger'; | ||
SplitFactory.InLocalStorage = InLocalStorage; | ||
SplitFactory.GoogleAnalyticsToSplit = GoogleAnalyticsToSplit; | ||
SplitFactory.SplitToGoogleAnalytics = SplitToGoogleAnalytics; | ||
SplitFactory.ErrorLogger = ErrorLogger; | ||
@@ -17,0 +13,0 @@ SplitFactory.WarnLogger = WarnLogger; |
export { SplitFactory } from './splitFactory'; | ||
export { InLocalStorage } from '@splitsoftware/splitio-commons/esm/storages/inLocalStorage/index'; | ||
export { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/esm/integrations/ga/GoogleAnalyticsToSplit'; | ||
export { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/esm/integrations/ga/SplitToGoogleAnalytics'; | ||
export { ErrorLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/ErrorLogger'; | ||
@@ -6,0 +4,0 @@ export { WarnLogger } from '@splitsoftware/splitio-commons/esm/logger/browser/WarnLogger'; |
import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/esm/logger/index'; | ||
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/esm/utils/constants'; | ||
var packageVersion = '0.15.1-rc.0'; | ||
var packageVersion = '1.0.0-rc.0'; | ||
/** | ||
@@ -29,4 +29,2 @@ * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item. | ||
eventsFirstPushWindow: 10, | ||
// Wait for large segments to emit SDK_READY event. | ||
waitForLargeSegments: true, | ||
}, | ||
@@ -33,0 +31,0 @@ // Consent is considered granted by default |
{ | ||
"name": "@splitsoftware/splitio-browserjs", | ||
"version": "0.15.1-rc.0", | ||
"version": "1.0.0-rc.0", | ||
"description": "Split SDK for JavaScript on Browser", | ||
@@ -17,4 +17,3 @@ "main": "cjs/index.js", | ||
"types", | ||
"full", | ||
"scripts/ga-to-split-autorequire.js" | ||
"full" | ||
], | ||
@@ -31,3 +30,2 @@ "scripts": { | ||
"build:umd": "rimraf umd && rollup --config rollup.ci.config.js --branch=$BUILD_BRANCH", | ||
"build:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js", | ||
"test": "npm run test:unit && npm run test:e2e", | ||
@@ -42,3 +40,2 @@ "test:unit": "jest", | ||
"test:e2e-push": "karma start karma/e2e.push.karma.conf.js", | ||
"test:e2e-gaIntegration": "karma start karma/e2e.gaIntegration.karma.conf.js", | ||
"test:e2e-consumer": "karma start karma/e2e.consumer.karma.conf.js", | ||
@@ -70,4 +67,3 @@ "pretest-ts-decls": "npm run build:esm && npm run build:cjs && npm link", | ||
"dependencies": { | ||
"@splitsoftware/splitio-commons": "1.17.1-rc.1", | ||
"@types/google.analytics": "0.0.40", | ||
"@splitsoftware/splitio-commons": "2.0.0-rc.2", | ||
"tslib": "^2.3.1", | ||
@@ -74,0 +70,0 @@ "unfetch": "^4.2.0" |
export { SplitFactory } from './splitFactory'; | ||
export { InLocalStorage } from '@splitsoftware/splitio-commons/src/storages/inLocalStorage/index'; | ||
export { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/src/integrations/ga/GoogleAnalyticsToSplit'; | ||
export { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/src/integrations/ga/SplitToGoogleAnalytics'; | ||
export { ErrorLogger } from '@splitsoftware/splitio-commons/src/logger/browser/ErrorLogger'; | ||
@@ -6,0 +4,0 @@ export { WarnLogger } from '@splitsoftware/splitio-commons/src/logger/browser/WarnLogger'; |
// @ts-nocheck | ||
import { SplitFactory } from './splitFactory'; | ||
import { InLocalStorage } from '@splitsoftware/splitio-commons/src/storages/inLocalStorage/index'; | ||
import { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/src/integrations/ga/GoogleAnalyticsToSplit'; | ||
import { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/src/integrations/ga/SplitToGoogleAnalytics'; | ||
import { ErrorLogger } from '@splitsoftware/splitio-commons/src/logger/browser/ErrorLogger'; | ||
@@ -14,4 +12,2 @@ import { WarnLogger } from '@splitsoftware/splitio-commons/src/logger/browser/WarnLogger'; | ||
SplitFactory.InLocalStorage = InLocalStorage; | ||
SplitFactory.GoogleAnalyticsToSplit = GoogleAnalyticsToSplit; | ||
SplitFactory.SplitToGoogleAnalytics = SplitToGoogleAnalytics; | ||
SplitFactory.ErrorLogger = ErrorLogger; | ||
@@ -18,0 +14,0 @@ SplitFactory.WarnLogger = WarnLogger; |
export { SplitFactory } from './splitFactory'; | ||
export { InLocalStorage } from '@splitsoftware/splitio-commons/src/storages/inLocalStorage/index'; | ||
export { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/src/integrations/ga/GoogleAnalyticsToSplit'; | ||
export { SplitToGoogleAnalytics } from '@splitsoftware/splitio-commons/src/integrations/ga/SplitToGoogleAnalytics'; | ||
export { ErrorLogger } from '@splitsoftware/splitio-commons/src/logger/browser/ErrorLogger'; | ||
@@ -6,0 +4,0 @@ export { WarnLogger } from '@splitsoftware/splitio-commons/src/logger/browser/WarnLogger'; |
@@ -5,3 +5,3 @@ import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/src/logger/index'; | ||
const packageVersion = '0.15.1-rc.0'; | ||
const packageVersion = '1.0.0-rc.0'; | ||
@@ -35,4 +35,2 @@ /** | ||
eventsFirstPushWindow: 10, | ||
// Wait for large segments to emit SDK_READY event. | ||
waitForLargeSegments: true, | ||
}, | ||
@@ -39,0 +37,0 @@ |
@@ -10,3 +10,3 @@ // Declaration file for JavaScript Browser Split Software SDK | ||
/** | ||
* Full version of the Split.io sdk factory function. | ||
* Full version of the Split.io SDK factory function. | ||
* | ||
@@ -37,16 +37,2 @@ * Unlike the slim version, it doesn't require a 'fetch' polyfill to support old browsers @see {@link https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK#language-support}. | ||
/** | ||
* Enable 'Google Analytics to Split' integration, to track Google Analytics hits as Split events. | ||
* | ||
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#google-analytics-to-split} | ||
*/ | ||
export function GoogleAnalyticsToSplit(options?: SplitIO.GoogleAnalyticsToSplitOptions): SplitIO.IntegrationFactory; | ||
/** | ||
* Enable 'Split to Google Analytics' integration, to track Split impressions and events as Google Analytics hits. | ||
* | ||
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#split-to-google-analytics} | ||
*/ | ||
export function SplitToGoogleAnalytics(options?: SplitIO.SplitToGoogleAnalyticsOptions): SplitIO.IntegrationFactory; | ||
/** | ||
* Creates a logger instance that enables descriptive log messages with DEBUG log level when passed in the factory settings. | ||
@@ -53,0 +39,0 @@ * |
@@ -10,3 +10,3 @@ // Declaration file for JavaScript Browser Split Software SDK | ||
/** | ||
* Slim version of the Split.io sdk factory function. | ||
* Slim version of the Split.io SDK factory function. | ||
* | ||
@@ -37,16 +37,2 @@ * Recommended to use for bundle size reduction in production, since it doesn't include a 'fetch' polyfill and localhost mode out-of-the-box | ||
/** | ||
* Enable 'Google Analytics to Split' integration, to track Google Analytics hits as Split events. | ||
* | ||
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#google-analytics-to-split} | ||
*/ | ||
export function GoogleAnalyticsToSplit(options?: SplitIO.GoogleAnalyticsToSplitOptions): SplitIO.IntegrationFactory; | ||
/** | ||
* Enable 'Split to Google Analytics' integration, to track Split impressions and events as Google Analytics hits. | ||
* | ||
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#split-to-google-analytics} | ||
*/ | ||
export function SplitToGoogleAnalytics(options?: SplitIO.SplitToGoogleAnalyticsOptions): SplitIO.IntegrationFactory; | ||
/** | ||
* Creates a logger instance that enables descriptive log messages with DEBUG log level when passed in the factory settings. | ||
@@ -53,0 +39,0 @@ * |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
147858
48
2453
+ Added@splitsoftware/splitio-commons@2.0.0-rc.2(transitive)
- Removed@types/google.analytics@0.0.40
- Removed@splitsoftware/splitio-commons@1.17.1-rc.1(transitive)
- Removed@types/google.analytics@0.0.40(transitive)