@salesforce/commerce-sdk-react 5.3.0 → 5.4.0-nightly-20260715084417
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## v5.4.0-nightly-20260715084417 (Jul 15, 2026)
|
|
2
|
+
## v5.4.0-dev (Jul 15, 2026)
|
|
3
|
+
## v3.20.0-nightly-20260715084417 (Jul 15, 2026)
|
|
4
|
+
## v5.4.0-dev (Jul 13, 2026)
|
|
5
|
+
|
|
1
6
|
## v5.3.0 (Jul 13, 2026)
|
|
2
7
|
- [Bugfix] Fix Storefront Preview session loss with HttpOnly session cookies enabled. When the storefront runs inside a trusted Storefront Preview iframe, the client now sends the trusted parent origin as an `x-pwakit-preview-parent` header on the SLAS token request so the BFF sets session cookies with `SameSite=None; Partitioned`. Because the token request is never CDN-cached, this signal reaches the origin reliably even when the cacheable iframe document load is served from cache and bypasses the server-set preview marker cookie; the origin re-validates the value against its allow-list.
|
|
3
8
|
- [Bugfix] Fix stale `sfdc_dwsid` server-affinity header in `CommerceApiProvider`. The `updatedClients` `useMemo` baked the `dwsid`-derived header into each SCAPI client's config but omitted `dwsid` from its dependency array, so when only the `dwsid` cookie changed (guest-to-login, session bridge, re-auth) the memoized clients kept sending the stale header, risking wrong/expired app-server routing on hybrid storefronts. The `dwsid` primitive is now a dependency so clients rebuild on change without churning on unrelated renders.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/commerce-sdk-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0-nightly-20260715084417",
|
|
4
4
|
"description": "A library that provides react hooks for fetching data from Commerce Cloud",
|
|
5
5
|
"homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/ecom-react-hooks#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jwt-decode": "^4.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/pwa-kit-dev": "3.
|
|
49
|
+
"@salesforce/pwa-kit-dev": "3.20.0-nightly-20260715084417",
|
|
50
50
|
"@tanstack/react-query": "^4.28.0",
|
|
51
51
|
"@testing-library/jest-dom": "^5.16.5",
|
|
52
52
|
"@testing-library/react": "^14.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/react-helmet": "~6.1.6",
|
|
62
62
|
"@types/react-router-dom": "~5.3.3",
|
|
63
63
|
"cross-env": "^5.2.1",
|
|
64
|
-
"internal-lib-build": "3.
|
|
64
|
+
"internal-lib-build": "3.20.0-nightly-20260715084417",
|
|
65
65
|
"jsonwebtoken": "^9.0.0",
|
|
66
66
|
"nock": "^13.3.0",
|
|
67
67
|
"nodemon": "^2.0.22",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"directory": "dist"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "c9cb173714fb2e6fcd3739906ca3edfbd806a47b"
|
|
102
102
|
}
|