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
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
10.28.0 (September 6, 2024)
2
+
- Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
3
+
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
4
+
- Updated some transitive dependencies for vulnerability fixes.
5
+
1
6
10.27.0 (June 25, 2024)
2
7
- Added `sync.requestOptions.agent` option to SDK configuration for NodeJS. This allows passing a custom NodeJS HTTP(S) Agent with specific configurations for the SDK requests, like custom TLS settings or a network proxy (See https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK#proxy).
3
8
- Updated some transitive dependencies for vulnerability fixes.
* Custom options object for HTTP(S) requests in the Browser.
1137
+
* If provided, this object is merged with the options object passed by the SDK for EventSource and Fetch calls.
1138
+
*/
1139
+
requestOptions?: {
1140
+
/**
1141
+
* Custom function called before each request, allowing you to add or update headers in SDK HTTP requests.
1142
+
* Some headers, such as `SplitSDKVersion`, are required by the SDK and cannot be overridden.
1143
+
* To pass multiple headers with the same name, combine their values into a single line, separated by commas. Example: `{ 'Authorization': 'value1, value2' }`
1144
+
* Or provide keys with different case since headers are case-insensitive. Example: `{ 'authorization': 'value1', 'Authorization': 'value2' }`
1145
+
*
1146
+
* NOTE: to pass custom headers to the streaming connection in Browser, you should polyfill the `window.EventSource` object with a library that supports headers,
1147
+
* like https://www.npmjs.com/package/event-source-polyfill, since native EventSource does not support them and will be ignored.
1148
+
*
1149
+
* @property getHeaderOverrides
1150
+
* @default undefined
1151
+
*
1152
+
* @param context - The context for the request.
1153
+
* @param context.headers - The current headers in the request.
1154
+
* @returns A set of headers to be merged with the current headers.
* Custom function called before each request, allowing you to add or update headers in SDK HTTP requests.
1218
+
* Some headers, such as `SplitSDKVersion`, are required by the SDK and cannot be overridden.
1219
+
* To pass multiple headers with the same name, combine their values into a single line, separated by commas. Example: `{ 'Authorization': 'value1, value2' }`
1220
+
* Or provide keys with different case since headers are case-insensitive. Example: `{ 'authorization': 'value1', 'Authorization': 'value2' }`
1221
+
*
1222
+
* @property getHeaderOverrides
1223
+
* @default undefined
1224
+
*
1225
+
* @param context - The context for the request.
1226
+
* @param context.headers - The current headers in the request.
1227
+
* @returns A set of headers to be merged with the current headers.
0 commit comments