Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@splitsoftware/splitio-browserjs

Package Overview
Dependencies
Maintainers
0
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitsoftware/splitio-browserjs - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

cjs/full/index.js

3

CHANGES.txt

@@ -6,7 +6,6 @@ 1.0.0 (October XX, 2024)

- BREAKING CHANGES:
- Renamed some TypeScript definitions in the SplitIO namespace to avoid conflicts with other libraries: `SplitIO.IBrowserSettings` to `SplitIO.IClientSideSettings`, `SplitIO.IBrowserAsyncSettings` to `SplitIO.IClientSideAsyncSettings`.
- Renamed some TypeScript definitions in the SplitIO namespace to avoid conflicts with other Split packages: `SplitIO.IBrowserSettings` to `SplitIO.IClientSideSettings`, `SplitIO.IBrowserAsyncSettings` to `SplitIO.IClientSideAsyncSettings`, `SplitIO.ISDK` to `SplitIO.IBrowserSDK`, and `SplitIO.IAsyncSDK` to `SplitIO.IBrowserAsyncSDK`.
- 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.
- Removed the `LocalhostFromObject` export from the default import (`import { LocalhostFromObject } from '@splitsoftware/splitio-browserjs'`). It is no longer necessary to manually import and configure it in the `sync.localhostMode` option to enable localhost mode.
- Removed the "full" import (`import { SplitFactory } from '@splitsoftware/splitio-browserjs/full'`), since with the removal of `LocalhostFromObject` from the default import, the difference between them is minimal. The "full" import differs only by including the `unfetch` ponyfill to support older browsers.

@@ -13,0 +12,0 @@ 0.15.0 (September 13, 2024)

@@ -6,3 +6,3 @@ "use strict";

var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants");
var packageVersion = '1.0.0-rc.2';
var packageVersion = '1.0.0-rc.3';
/**

@@ -9,0 +9,0 @@ * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.

@@ -7,7 +7,7 @@ "use strict";

var index_1 = require("@splitsoftware/splitio-commons/cjs/sdkFactory/index");
var getFetch_1 = require("./platform/getFetch");
var getFetchSlim_1 = require("./platform/getFetchSlim");
var getEventSource_1 = require("./platform/getEventSource");
var MinEvents_1 = require("@splitsoftware/splitio-commons/cjs/utils/MinEvents");
var browser_1 = require("@splitsoftware/splitio-commons/cjs/utils/timeTracker/now/browser");
var platform = { getFetch: getFetch_1.getFetch, getEventSource: getEventSource_1.getEventSource, EventEmitter: MinEvents_1.EventEmitter, now: browser_1.now };
var platform = { getFetch: getFetchSlim_1.getFetch, getEventSource: getEventSource_1.getEventSource, EventEmitter: MinEvents_1.EventEmitter, now: browser_1.now };
/**

@@ -14,0 +14,0 @@ * SplitFactory with pluggable modules for Browser.

import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/esm/logger/index';
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/esm/utils/constants';
var packageVersion = '1.0.0-rc.2';
var packageVersion = '1.0.0-rc.3';
/**

@@ -5,0 +5,0 @@ * In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.

import { settingsFactory } from './settings';
import { getModules } from './platform/getModules';
import { sdkFactory } from '@splitsoftware/splitio-commons/esm/sdkFactory/index';
import { getFetch } from './platform/getFetch';
import { getFetch } from './platform/getFetchSlim';
import { getEventSource } from './platform/getEventSource';

@@ -6,0 +6,0 @@ import { EventEmitter } from '@splitsoftware/splitio-commons/esm/utils/MinEvents';

{
"name": "@splitsoftware/splitio-browserjs",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"description": "Split SDK for JavaScript on Browser",

@@ -16,3 +16,4 @@ "main": "cjs/index.js",

"src",
"types"
"types",
"full"
],

@@ -62,4 +63,5 @@ "scripts": {

"dependencies": {
"@splitsoftware/splitio-commons": "2.0.0-rc.5",
"tslib": "^2.3.1"
"@splitsoftware/splitio-commons": "2.0.0-rc.6",
"tslib": "^2.3.1",
"unfetch": "^4.2.0"
},

@@ -66,0 +68,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ import type SplitIO from '@splitsoftware/splitio-commons/types/splitio';

const packageVersion = '1.0.0-rc.2';
const packageVersion = '1.0.0-rc.3';

@@ -8,0 +8,0 @@ /**

@@ -6,3 +6,3 @@ import type SplitIO from '@splitsoftware/splitio-commons/types/splitio';

import { ISdkFactoryParams } from '@splitsoftware/splitio-commons/src/sdkFactory/types';
import { getFetch } from './platform/getFetch';
import { getFetch } from './platform/getFetchSlim';
import { getEventSource } from './platform/getEventSource';

@@ -9,0 +9,0 @@ import { EventEmitter } from '@splitsoftware/splitio-commons/src/utils/MinEvents';

@@ -16,4 +16,4 @@ // Declaration file for JavaScript Browser Split Software SDK

*/
export function SplitFactory(settings: SplitIO.IClientSideSettings): SplitIO.ISDK;
export function SplitFactory(settings: SplitIO.IClientSideAsyncSettings): SplitIO.IAsyncSDK;
export function SplitFactory(settings: SplitIO.IClientSideSettings): SplitIO.IBrowserSDK;
export function SplitFactory(settings: SplitIO.IClientSideAsyncSettings): SplitIO.IBrowserAsyncSDK;

@@ -20,0 +20,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc