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
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
- Removed the deprecated `GOOGLE_ANALYTICS_TO_SPLIT` and `SPLIT_TO_GOOGLE_ANALYTICS` integrations.
10
10
- Removed internal ponyfills for `Map`, `Set` and `Array.from` 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.
11
11
- Removed the migration logic for the old format of MySegments keys in LocalStorage introduced in JavaScript SDK v10.17.3.
12
+
- Removed the `sdkClientMethodCSWithTTFactory` function, which handled the logic to bound an optional traffic type to SDK clients. Client-side SDK implementations must use `sdkClientMethodCSWithTT` which, unlike the previous function, does not allow passing a traffic type but simplifies the SDK API.
12
13
13
14
1.17.0 (September 6, 2024)
14
15
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
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