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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
1.15.1 (May 28, 2024)
1
+
1.16.0 (June 13, 2024)
2
+
- Added the `getOptions` method to the `IPlatform` interface to allow the SDK to pass request options to the `fetch` function and `EventSource` constructor when fetching data from the Split servers. The method is optional and, if provided, it is called twice: first for the `fetch` options and then for the `EventSource` options.
3
+
Useful for advanced use cases like configuring a proxy or validating certificates in NodeJS.
2
4
- Updated the Redis storage to lazily import the `ioredis` dependency when the storage is created. This prevents errors when the SDK is imported or bundled in a .mjs file, as `ioredis` is a CommonJS module.
3
5
- Bugfixing - Restored some input validation error logs that were removed in version 1.12.0. The logs inform the user when the `getTreatment(s)` methods are called with an invalid value as feature flag name or flag set name.
4
6
- Bugfixing - Fixed localhost mode for client-side SDKs to emit SDK_UPDATE when mocked feature flags are updated in the `features` property of the config object (Related to issue https://github.com/splitio/javascript-browser-client/issues/119).
expect(instance.connection.url).toBe(EXPECTED_URL);// URL is properly set for streaming connection
132
+
expect(instance.connection.__eventSourceInitDict).toEqual({headers: EXPECTED_HEADERS,withCredentials: true});// Headers and options are properly set for streaming connection
133
+
134
+
// Assert that getEventSource and getOptions were called once with settings
0 commit comments