Skip to content

Commit 5ee7b85

Browse files
Merge pull request #842 from splitio/development
Release v11.0.1
2 parents f86289b + 2989acd commit 5ee7b85

File tree

7 files changed

+23
-5
lines changed

7 files changed

+23
-5
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
11.0.1 (November 8, 2024)
2+
- Bugfixing - Revert removal of TypeScript `SplitIO` namespace at `/types/splitio.d.ts` to allow explicit imports of types from the JavaScript SDK package. E.g., `import type { IBrowserSettings } from '@splitsoftware/splitio/types/splitio';`.
3+
14
11.0.0 (November 1, 2024)
25
- Added support for targeting rules based on large segments for browsers (client-side API).
36
- Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory.
@@ -7,6 +10,7 @@
710
- NOTE: Refer to ./MIGRATION-GUIDE.md for instructions on how to migrate your codebase from version 0.x to 1.0.0.
811
- 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.
912
- Dropped support for Node.js v6. The SDK now requires Node.js v14 or above.
13+
- Removed TypeScript `SplitIO` namespace from `@splitsoftware/splitio/types/splitio`. Reverted in 11.0.1.
1014
- 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.
1115
- 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.
1216
- 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.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio",
3-
"version": "11.0.0",
3+
"version": "11.0.1",
44
"description": "Split SDK",
55
"files": [
66
"README.md",

src/settings/defaults/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const packageVersion = '11.0.0';
1+
export const packageVersion = '11.0.1';

ts-tests/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@
1111
* @author Nico Zelaya <nicolas.zelaya@split.io>
1212
*/
1313

14+
import type * as SplitTypes from '../types/splitio';
15+
1416
import { SplitFactory } from '../types/index';
1517
import { SplitFactory as SplitFactoryCS } from '../types/client';
1618
import { SplitFactory as SplitFactorySS } from '../types/server';
1719

20+
// Validate that the SplitIO namespace is available and matches the types when imported explicitly
21+
let ambientType: SplitIO.ISDK;
22+
let importedType: SplitTypes.ISDK;
23+
ambientType = importedType;
24+
1825
let stringPromise: Promise<string>;
1926
let splitNamesPromise: Promise<SplitIO.SplitNames>;
2027
let splitViewPromise: Promise<SplitIO.SplitView>;
@@ -468,6 +475,7 @@ let attr: SplitIO.Attributes = {
468475
stringArrayAttribute: ['value1', 'value2'],
469476
numberArrayAttribute: [1, 2]
470477
}
478+
let attr2: SplitTypes.Attributes = attr;
471479

472480
stored = browserClient.setAttributes(attr);
473481
let storedAttr: SplitIO.Attributes = browserClient.getAttributes();

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Project: http://www.split.io/
33
// Definitions by: Nico Zelaya <https://github.com/NicoZelaya/>
44

5-
import '@splitsoftware/splitio-commons';
5+
/// <reference path="./splitio.d.ts" />
66

77
export = JsSdk;
88

types/splitio.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Type definitions for JavaScript and NodeJS Split Software SDK
2+
3+
import '@splitsoftware/splitio-commons';
4+
5+
export as namespace SplitIO;
6+
export = SplitIO;

0 commit comments

Comments
 (0)