You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@
7
7
- Removed `/mySegments` endpoint from SplitAPI module, as it is replaced by `/memberships` endpoint.
8
8
- 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.
9
9
- Removed the deprecated `GOOGLE_ANALYTICS_TO_SPLIT` and `SPLIT_TO_GOOGLE_ANALYTICS` integrations.
10
+
- Removed the migration logic for the old format of MySegments keys in LocalStorage introduced in JavaScript SDK v10.17.3.
11
+
- 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.
10
12
- 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.
test.each(testTargets)('return same client instance if called with same key or traffic type (input validation)',(sdkClientMethodCSFactory,ignoresTT)=>{
171
+
test('returns same client instance if called with same key (input validation)',()=>{
expect(sdkClientMethod('key','tT')).toBe(clientInstance);// No new client created: TT is lowercased / ignored
199
-
expect(sdkClientMethod(' key ','tt')).toBe(clientInstance);// No new client created: key is trimmed
200
-
expect(sdkClientMethod({matchingKey: 'key ',bucketingKey: ' key'},'TT')).toBe(clientInstance);// No new client created: key object is equivalent to 'key' string
177
+
expect(sdkClientMethod('key')).toBe(clientInstance);// No new client created: same key
178
+
expect(sdkClientMethod(' key ')).toBe(clientInstance);// No new client created: key is trimmed
179
+
expect(sdkClientMethod({matchingKey: 'key ',bucketingKey: ' key'})).toBe(clientInstance);// No new client created: key object is equivalent to 'key' string
0 commit comments