Skip to content

Commit 4e580be

Browse files
Merge branch 'breaking_changes' into data_loader_for_ssr
2 parents 0107c1c + 33f6374 commit 4e580be

31 files changed

Lines changed: 445 additions & 1728 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ dump.rdb
1919
/stats
2020

2121
## transpiled code
22-
/lib
23-
/es
22+
/cjs
23+
/esm
2424
/umd
2525

2626
## TS tests compilated files

CHANGES.txt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
10.29.0 (September XX, 2024)
1+
11.0.0 (October XX, 2024)
2+
- Added support for targeting rules based on large segments for browsers.
23
- Added `factory.getState()` method for standalone server-side SDKs, which returns the rollout plan snapshot from the storage.
34
- Added `preloadedData` configuration option for standalone client-side SDKs, which allows preloading the SDK storage with a snapshot of the rollout plan.
4-
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
5-
- Updated @splitsoftware/splitio-commons package to version 1.18.0 that includes minor updates:
6-
- Added support for targeting rules based on large segments for browsers.
7-
- Updated some transitive dependencies for vulnerability fixes.
8-
- Bugfixing - Removed an overloaded `client` method in the `SplitIO.ISDK` interface that accepted a key and trafficType parameters. This interface corresponds to the SDK factory instance in NodeJS, which, unlike `SplitIO.IBrowserSDK` for the Browser, does not handle multiple client instances based on keys or traffic types.
5+
- Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory.
6+
- Updated @splitsoftware/splitio-commons package to version 2.0.0 that includes major updates and updated some transitive dependencies for vulnerability fixes.
7+
- Renamed distribution folders from `/lib` to `/cjs` for CommonJS build, and `/es` to `/esm` for EcmaScript Modules build.
8+
- BREAKING CHANGES:
9+
- Dropped support for NodeJS v6. The SDK now requires NodeJS v14 or above.
10+
- 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.
11+
- Removed the deprecated `GOOGLE_ANALYTICS_TO_SPLIT` and `SPLIT_TO_GOOGLE_ANALYTICS` integrations. The `integrations` configuration option has been removed from the SDK factory configuration, along with the associated interfaces in the TypeScript definitions.
12+
- Removed the `core.trafficType` configuration option (`SplitIO.IBrowserSettings['core']['trafficType]`) and the `trafficType` parameter from the SDK `client()` method in Browser (`SplitIO.IBrowserSDK['client']`). As a result, traffic types can no longer be bound to SDK clients, and the traffic type must be provided in the `track` method.
13+
- TypeScript definitions:
14+
- Removed an overloaded `client` method in the `SplitIO.ISDK` interface that accepted `key` and `trafficType` parameters. This interface corresponds to the SDK factory instance in NodeJS, which, unlike `SplitIO.IBrowserSDK` for the Browser, does not handle multiple client instances based on keys.
15+
- Updated the `SplitIO.IBrowserSDK` and `SplitIO.IBrowserClient` interfaces to no longer extend the `SplitIO.ISDK` and `SplitIO.IClient` interfaces respectively, as the SDK factory instance in NodeJS or server-side (`SplitIO.ISDK`) has a different API than the SDK client instance in the Browser or client-side (`SplitIO.IBrowserClient`).
916

1017
10.28.0 (September 6, 2024)
1118
- Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
@@ -516,7 +523,7 @@
516523
- Bugfixing - Return correct label when consulted Split is not found.
517524

518525
9.1.1 (May 03, 2017)
519-
- Bugfixing - Fixed invalid behaviour when using native Fetch API and comparing statusText
526+
- Bugfixing - Fixed invalid behavior when using native Fetch API and comparing statusText
520527
instead of resp.ok
521528

522529
9.1.0 (April 21, 2017)

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"main": "../lib/factory/browser.js",
3-
"module": "../es/factory/browser.js",
2+
"main": "../cjs/factory/browser.js",
3+
"module": "../esm/factory/browser.js",
44
"types": "../types/client/index.d.ts"
55
}

karma/e2e.gaIntegration.karma.conf.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)