github-actions
released this
13 May 11:37
·
127 commits
to main
since this release
Major Changes
- [ADDED] CDN support for the
middlewareModule
.
Now, the module's configuration includescdnCacheBustingId
property, which allows you to set a unique identifier for the CDN cache busting.
The property is obligatory and must be a string.
export const { getSdk } = createSdk(
options,
({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
example: buildModule(middlewareModule<Endpoints>, {
apiUrl: `${middlewareUrl}/test_integration`,
+ cdnCacheBustingId: process.env.CDN_CACHE_BUSTING_ID,
defaultRequestConfig: {
headers: getRequestHeaders(),
},
}),
})
);
Patch Changes
- [FIXED] support for
GET
requests in default HTTP client, which was throwing an error "SDKError: Request with GET/HEAD method cannot have body". Now, the client can handleGET
requests properly.