@splitsoftware/splitio 11.0.0-rc.3 → 11.0.0-rc.5

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 CHANGED
@@ -1,16 +1,13 @@
1
- 11.0.0 (October XX, 2024)
1
+ 11.0.0 (November 1, 2024)
2
2
  - Added support for targeting rules based on large segments for browsers.
3
3
  - Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory.
4
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.
5
+ - Renamed distribution folders from `/lib` to `/cjs` for CommonJS build, and `/es` to `/esm` for ECMAScript Modules build.
6
6
  - BREAKING CHANGES:
7
7
  - Dropped support for NodeJS v6. The SDK now requires NodeJS v14 or above.
8
8
  - 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.
9
9
  - 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.
10
10
  - 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.
11
- - TypeScript definitions:
12
- - 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.
13
- - 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`).
14
11
 
15
12
  10.28.0 (September 6, 2024)
16
13
  - Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageVersion = void 0;
4
- exports.packageVersion = '11.0.0-rc.3';
4
+ exports.packageVersion = '11.0.0-rc.5';
@@ -1 +1 @@
1
- export var packageVersion = '11.0.0-rc.3';
1
+ export var packageVersion = '11.0.0-rc.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "11.0.0-rc.3",
3
+ "version": "11.0.0-rc.5",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
@@ -38,7 +38,7 @@
38
38
  "node": ">=14.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@splitsoftware/splitio-commons": "2.0.0-rc.4",
41
+ "@splitsoftware/splitio-commons": "2.0.0-rc.6",
42
42
  "bloom-filters": "^3.0.0",
43
43
  "ioredis": "^4.28.0",
44
44
  "js-yaml": "^3.13.1",
@@ -1 +1 @@
1
- export const packageVersion = '11.0.0-rc.3';
1
+ export const packageVersion = '11.0.0-rc.5';
@@ -11,5 +11,5 @@ declare module JsSdk {
11
11
  * The settings parameter should be an object that complies with the SplitIO.IBrowserSettings.
12
12
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#configuration}
13
13
  */
14
- export function SplitFactory(settings: SplitIO.IBrowserSettings): SplitIO.ISDK;
14
+ export function SplitFactory(settings: SplitIO.IBrowserSettings): SplitIO.IBrowserSDK;
15
15
  }
package/types/index.d.ts CHANGED
@@ -12,17 +12,17 @@ declare module JsSdk {
12
12
  * The settings parameter should be an object that complies with the SplitIO.INodeAsyncSettings.
13
13
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK#configuration}
14
14
  */
15
- export function SplitFactory(settings: SplitIO.INodeAsyncSettings): SplitIO.INodeAsyncSDK;
15
+ export function SplitFactory(settings: SplitIO.INodeAsyncSettings): SplitIO.IAsyncSDK;
16
16
  /**
17
17
  * Split.io SDK factory function.
18
18
  * The settings parameter should be an object that complies with the SplitIO.INodeSettings.
19
19
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK#configuration}
20
20
  */
21
- export function SplitFactory(settings: SplitIO.INodeSettings): SplitIO.INodeSDK;
21
+ export function SplitFactory(settings: SplitIO.INodeSettings): SplitIO.ISDK;
22
22
  /**
23
23
  * Split.io SDK factory function.
24
24
  * The settings parameter should be an object that complies with the SplitIO.IBrowserSettings.
25
25
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#configuration}
26
26
  */
27
- export function SplitFactory(settings: SplitIO.IBrowserSettings): SplitIO.ISDK;
27
+ export function SplitFactory(settings: SplitIO.IBrowserSettings): SplitIO.IBrowserSDK;
28
28
  }
@@ -11,11 +11,11 @@ declare module JsSdk {
11
11
  * The settings parameter should be an object that complies with the SplitIO.INodeAsyncSettings.
12
12
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK#configuration}
13
13
  */
14
- export function SplitFactory(settings: SplitIO.INodeAsyncSettings): SplitIO.INodeAsyncSDK;
14
+ export function SplitFactory(settings: SplitIO.INodeAsyncSettings): SplitIO.IAsyncSDK;
15
15
  /**
16
16
  * Split.io SDK factory function.
17
17
  * The settings parameter should be an object that complies with the SplitIO.INodeSettings.
18
18
  * For more information read the corresponding article: @see {@link https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK#configuration}
19
19
  */
20
- export function SplitFactory(settings: SplitIO.INodeSettings): SplitIO.INodeSDK;
20
+ export function SplitFactory(settings: SplitIO.INodeSettings): SplitIO.ISDK;
21
21
  }