Skip to content

Commit f384cb8

Browse files
Merge pull request #364 from splitio/development
Release v2.0.0
2 parents c7d8e4c + 6a13969 commit f384cb8

File tree

254 files changed

+4212
-5255
lines changed

Some content is hidden

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

254 files changed

+4212
-5255
lines changed

.eslintrc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"parser": "@typescript-eslint/parser",
66
"plugins": [
77
"@typescript-eslint",
8+
"eslint-plugin-tsdoc",
89
"import"
910
],
1011

@@ -80,7 +81,7 @@
8081
"message": "Don't declare const enum, because it is not supported by Babel used for building RN SDK"
8182
}
8283
],
83-
"compat/compat": ["error", "defaults, ie 10, node 6"],
84+
"compat/compat": ["error", "defaults, node >=14"],
8485
"no-throw-literal": "error",
8586
"import/no-default-export": "error",
8687
"import/no-self-import": "error"
@@ -90,6 +91,19 @@
9091
"sourceType": "module"
9192
}
9293
},
94+
{
95+
"files": ["types/**"],
96+
"rules": {
97+
"no-use-before-define": "off"
98+
}
99+
},
100+
{
101+
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
102+
"files": ["**/*.ts"],
103+
"rules": {
104+
"tsdoc/syntax": "warn"
105+
}
106+
},
93107
// @TODO remove when moving InLocalStorage to js-browser
94108
{
95109
"files": ["src/storages/inLocalStorage/**/*.ts"],

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
## transpiled code
1010
/esm
1111
/cjs
12-
/types
1312

1413
## coverage info
1514
/coverage

CHANGES.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
2.0.0 (November 1, 2024)
2+
- Added support for targeting rules based on large segments.
3+
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
4+
- Added `SplitIO` namespace with the public TypeScript definitions to be reused by the SDKs.
5+
- Updated the handling of timers and async operations inside an `init` factory method to enable lazy initialization of the SDK in standalone mode. This update is intended for the React SDK.
6+
- Bugfixing - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
7+
- BREAKING CHANGES:
8+
- Updated default flag spec version to 1.2, which requires Split Proxy v5.9.0 or higher.
9+
- Removed `/mySegments` endpoint from SplitAPI module, as it is replaced by `/memberships` endpoint.
10+
- Removed support for MY_SEGMENTS_UPDATE and MY_SEGMENTS_UPDATE_V2 notification types, as they are replaced by MEMBERSHIPS_MS_UPDATE and MEMBERSHIPS_LS_UPDATE notification types.
11+
- Removed the deprecated `GOOGLE_ANALYTICS_TO_SPLIT` and `SPLIT_TO_GOOGLE_ANALYTICS` integrations.
12+
- Removed the migration logic for the old format of MySegments keys in LocalStorage introduced in JavaScript SDK v10.17.3.
13+
- Removed the `sdkClientMethodCSWithTT` function, which handled the logic to bound an optional traffic type to SDK clients. Client-side SDK implementations must use `sdkClientMethodCS` module, which, unlike the previous function, does not allow passing a traffic type but simplifies the SDK API.
14+
- Removed internal ponyfills for `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 to provide a polyfill.
15+
- Removed the `sync.localhostMode` configuration option to plug the LocalhostMode module.
16+
117
1.17.0 (September 6, 2024)
218
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
319
- Added `isTimedout` and `lastUpdate` properties to IStatusInterface to keep track of the timestamp of the last SDK event, used on React and Redux SDKs.

0 commit comments

Comments
 (0)