File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/commerce-sdk-react Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11## v4.2.0-dev (Sep 26, 2025)
2+ - Prevent headers from being overriden in ` generateCustomEndpointOptions ` [ #3405 ] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3405/ )
23
34## v4.1.0 (Sep 25, 2025)
45
56## v4.0.0 (Sep 04, 2025)
67
7- - [ Breaking] Upgrade to commerce-sdk-isomorphic v4.0.0 [ 2879] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2879 )
8+ - [ Breaking] Upgrade to commerce-sdk-isomorphic v4.0.0 [ # 2879 ] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2879 )
89- [ Breaking] Remove deprecated properties from useDNT in commerce-sdk-react [ #3177 ] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3177 )
910- Add support for environment level base paths on /mobify routes [ #2892 ] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2892 )
1011- Update USID expiry to match SLAS refresh token expiry [ #2854 ] ( https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2854 )
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export const generateCustomEndpointOptions = (
5353 return {
5454 ...options ,
5555 options : {
56+ ...options . options ,
5657 method : options . options ?. method || 'GET' ,
5758 headers : {
5859 Authorization : `Bearer ${ access_token } ` ,
@@ -61,8 +62,7 @@ export const generateCustomEndpointOptions = (
6162 ...globalHeaders ,
6263 ...options . options ?. headers ,
6364 ...( args ?. headers ? args . headers : { } )
64- } ,
65- ...options . options
65+ }
6666 } ,
6767 clientConfig : {
6868 ...globalClientConfig ,
You can’t perform that action at this time.
0 commit comments