Skip to content

Commit a1e5434

Browse files
Merge pull request #836 from splitio/development
Release v11.0.0
2 parents 163b3da + 7c12f90 commit a1e5434

File tree

112 files changed

+1533
-4254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1533
-4254
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
],
4747
"rules": {
4848
"no-restricted-syntax": ["error", "ForOfStatement", "ForInStatement", "ArrayPattern"],
49-
"compat/compat": ["error", "defaults, ie 10, node 6"],
49+
"compat/compat": ["error", "defaults, node >=14"],
5050
"no-throw-literal": "error",
5151
"import/no-default-export": "error",
5252
"import/no-self-import": "error"

.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: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
11.0.0 (November 1, 2024)
2+
- Added support for targeting rules based on large segments for browsers (client-side API).
3+
- Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory.
4+
- Updated @splitsoftware/splitio-commons package to version 2.0.0 that includes major updates and updated some transitive dependencies for vulnerability fixes.
5+
- Renamed distribution folders from `/lib` to `/cjs` for CommonJS build, and `/es` to `/esm` for ECMAScript Modules build.
6+
- BREAKING CHANGES:
7+
- Dropped support for Split Proxy below version 5.9.0, when using in the browser (client-side API). The SDK now requires Split Proxy 5.9.0 or above.
8+
- Dropped support for NodeJS v6. The SDK now requires NodeJS v14 or above.
9+
- 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.
10+
- 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.
11+
- 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.
12+
113
10.28.0 (September 6, 2024)
214
- Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
315
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
@@ -507,7 +519,7 @@
507519
- Bugfixing - Return correct label when consulted Split is not found.
508520

509521
9.1.1 (May 03, 2017)
510-
- Bugfixing - Fixed invalid behaviour when using native Fetch API and comparing statusText
522+
- Bugfixing - Fixed invalid behavior when using native Fetch API and comparing statusText
511523
instead of resp.ok
512524

513525
9.1.0 (April 21, 2017)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ This SDK is designed to work with Split, the platform for controlled rollouts, w
1010
## Compatibility
1111
The JavaScript SDK is an isomorphic library for both Node.js and Web browser environments.
1212

13-
It supports **Node.js version 6.x and npm 3.x or later**.
13+
It supports **Node.js version 14.x or later**.
1414

15-
For browsers it supports **IE10+ and all the other major browsers**. *However, IE doesn't have native support for Promises, which we require to properly work. If you're targeting IE it's up to you to provide Promises support. You should include a polyfill like [es6-promise](https://github.com/stefanpenner/es6-promise).*
15+
For browsers, the library was build to support ES5 syntax and all major browsers. *However, there are a few polyfills that would be required when targeting old browsers that don't have native support for Promises, Map and Set global objects. You should include polyfills for those, like [es6-promise](https://github.com/stefanpenner/es6-promise) for promises.*
1616

1717
## Getting started
1818
Below is a simple Node.js example that describes the instantiation and most basic usage of our SDK:

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)