Skip to content

Commit 268d529

Browse files
refactors
1 parent 9d4153a commit 268d529

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
10.28.0 (August XXX, 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+
15
10.27.0 (June 25, 2024)
26
- 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).
37
- Updated some transitive dependencies for vulnerability fixes.

types/splitio.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ interface ISettings {
111111
readonly sync: {
112112
splitFilters: SplitIO.SplitFilter[],
113113
impressionsMode: SplitIO.ImpressionsMode,
114-
enabled: boolean
114+
enabled: boolean,
115+
flagSpecVersion: string,
116+
requestOptions?: {
117+
getHeaderOverrides?: (context: { headers: Record<string, string> }) => Record<string, string>
118+
}
115119
}
116120
/**
117121
* User consent status if using in browser. Undefined if using in NodeJS.
@@ -1135,14 +1139,12 @@ declare namespace SplitIO {
11351139
*/
11361140
requestOptions?: {
11371141
/**
1138-
* Custom function called before each request, allowing you to add or update custom headers on the SDK requests.
1139-
*
1140-
* @TODO pass context to `getHeaderOverrides`. Add `validUntil` property?
1142+
* Custom function called before each request, allowing you to add or update custom headers on the SDK HTTP requests.
11411143
*
11421144
* @property getHeaderOverrides
11431145
* @default undefined
11441146
*/
1145-
getHeaderOverrides?: () => Record<string, string>,
1147+
getHeaderOverrides?: (context: { headers: Record<string, string> }) => Record<string, string>
11461148
},
11471149
}
11481150
}
@@ -1195,14 +1197,12 @@ declare namespace SplitIO {
11951197
*/
11961198
requestOptions?: {
11971199
/**
1198-
* Custom function called before each request, allowing you to add or update custom headers on the SDK requests.
1199-
*
1200-
* @TODO pass context to `getHeaderOverrides`. Add `validUntil` property?
1200+
* Custom function called before each request, allowing you to add or update custom headers on the SDK HTTP requests.
12011201
*
12021202
* @property getHeaderOverrides
12031203
* @default undefined
12041204
*/
1205-
getHeaderOverrides?: () => Record<string, string>,
1205+
getHeaderOverrides?: (context: { headers: Record<string, string> }) => Record<string, string>
12061206
/**
12071207
* Custom NodeJS HTTP(S) Agent used by the SDK for HTTP(S) requests.
12081208
*

0 commit comments

Comments
 (0)