@salesforce/retail-react-app 9.2.0-nightly-20260501083602 → 9.2.0-preview.0

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 CHANGED
@@ -1,11 +1,12 @@
1
- ## v9.2.0-dev (Mar 20, 2026)
1
+ ## v9.2.0-preview.0 (May 01, 2026)
2
2
  - Update MRT Data Store configuration comments to use new environment variable names (`MRT_DATA_STORE_DEFAULTS` instead of `PWAKIT_MRT_DATA_STORE_DEFAULTS`). Local data store now provided by `@salesforce/mrt-utilities` via conditional exports. [#3811](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3811)
3
- - Add opt-in `app.mrtDataStore.enabled` to `config/default.js` (default `false`). Set to `true` or use `PWAKIT_MRT_DATA_STORE_ENABLED=true` to resolve MRT Data Store custom preferences during SSR. Local defaults without DynamoDB: `PWAKIT_MRT_DATA_STORE_DEFAULTS` and related env vars (see `config/default.js` comments).
3
+ - Add opt-in `app.mrtDataStore.enabled` to `config/default.js` (default `false`). Set to `true` or use `PWAKIT_MRT_DATA_STORE_ENABLED=true` to resolve MRT Data Store custom preferences during SSR. Local defaults without DynamoDB: `PWAKIT_MRT_DATA_STORE_DEFAULTS` and related env vars (see `config/default.js` comments). [#3787](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3787)
4
4
  - Allow auth related cookies domain to be set via config [#3782](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3782)
5
5
  - [Bugfix] Fix per-page express checkout toggles using `expressOnCheckoutPagesEnabled` from Shopper Configurations API. Express payment buttons on PDP, minicart, cart, and checkout can now be individually controlled via Business Manager. [#3775](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3775)
6
6
  - [Bugfix] Fix alert description text styling on subscribe form to not override default alert styles [#3780](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3780)
7
7
  - [Bugfix] Add `return_url` for express checkout payment confirmation, required by redirect-based payment methods like Amazon Pay [#3803](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3803)
8
8
  - Update `app/ssr.js` guidance for the SLAS private-client proxy: replace the deprecated `applySLASPrivateClientToEndpoints` example with a pointer to `slasPrivateClientAllowList` [#3802](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3802)
9
+ - Add support for HttpOnly session cookies [#3804](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3804)
9
10
 
10
11
  ## v9.1.1 (Mar 20, 2026)
11
12
  - Add base path prefix to support multiple MRT environments under 1 domain [#3614](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3614)
@@ -31,7 +31,8 @@ import {
31
31
  import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
32
32
  import {
33
33
  getEnvBasePath,
34
- slasPrivateProxyPath
34
+ slasPrivateProxyPath,
35
+ slasPublicProxyPath
35
36
  } from '@salesforce/pwa-kit-runtime/utils/ssr-namespace-paths'
36
37
  import {createUrlTemplate} from '@salesforce/retail-react-app/app/utils/url'
37
38
  import createLogger from '@salesforce/pwa-kit-runtime/utils/logger-factory'
@@ -67,7 +68,8 @@ const AppConfig = ({children, locals = {}}) => {
67
68
  const {correlationId} = useCorrelationId()
68
69
  const headers = {
69
70
  'correlation-id': correlationId,
70
- sfdc_user_agent: sfdcUserAgent
71
+ sfdc_user_agent: sfdcUserAgent,
72
+ 'x-site-id': locals.site?.id
71
73
  }
72
74
 
73
75
  const commerceApiConfig = locals.appConfig.commerceAPI
@@ -92,6 +94,7 @@ const AppConfig = ({children, locals = {}}) => {
92
94
  const redirectURI = `${appOrigin}${getEnvBasePath()}/callback`
93
95
  const proxy = `${appOrigin}${getEnvBasePath()}${commerceApiConfig.proxyPath}`
94
96
  const slasPrivateClientProxyEndpoint = `${appOrigin}${getEnvBasePath()}${slasPrivateProxyPath}`
97
+ const slasPublicClientProxyEndpoint = `${appOrigin}${getEnvBasePath()}${slasPublicProxyPath}`
95
98
 
96
99
  const pageDesignerParams = locals.pageDesignerParams || {}
97
100
 
@@ -112,11 +115,17 @@ const AppConfig = ({children, locals = {}}) => {
112
115
  // Make sure to also enable useSLASPrivateClient in ssr.js when enabling this setting.
113
116
  enablePWAKitPrivateClient={false}
114
117
  privateClientProxyEndpoint={slasPrivateClientProxyEndpoint}
118
+ publicClientProxyEndpoint={slasPublicClientProxyEndpoint}
115
119
  // Uncomment 'hybridAuthEnabled' if the current site has Hybrid Auth enabled. Do NOT set this flag for hybrid storefronts using Plugin SLAS.
116
120
  // hybridAuthEnabled={true}
117
121
  cookieDomain={commerceApiConfig.cookieDomain}
118
122
  logger={createLogger({packageName: 'commerce-sdk-react'})}
119
123
  pageDesignerParams={pageDesignerParams}
124
+ enableHttpOnlySessionCookies={
125
+ typeof window !== 'undefined'
126
+ ? window.__MRT_ENABLE_HTTPONLY_SESSION_COOKIES__ === 'true'
127
+ : process.env.MRT_ENABLE_HTTPONLY_SESSION_COOKIES === 'true'
128
+ }
120
129
  >
121
130
  <MultiSiteProvider site={locals.site} locale={locals.locale} buildUrl={locals.buildUrl}>
122
131
  <StoreLocatorProvider config={storeLocatorConfig}>
package/config/default.js CHANGED
@@ -133,6 +133,8 @@ module.exports = {
133
133
  ],
134
134
  ssrParameters: {
135
135
  ssrFunctionNodeVersion: '24.x',
136
+ // Store the session cookies as HttpOnly for enhanced security.
137
+ enableHttpOnlySessionCookies: false,
136
138
  proxyConfigs: [
137
139
  {
138
140
  host: 'kv7kzm78.api.commercecloud.salesforce.com',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/retail-react-app",
3
- "version": "9.2.0-nightly-20260501083602",
3
+ "version": "9.2.0-preview.0",
4
4
  "license": "See license in LICENSE",
5
5
  "author": "cc-pwa-kit@salesforce.com",
6
6
  "ccExtensibility": {
@@ -46,10 +46,10 @@
46
46
  "@loadable/component": "^5.15.3",
47
47
  "@peculiar/webcrypto": "^1.4.2",
48
48
  "@salesforce/cc-datacloud-typescript": "1.1.2",
49
- "@salesforce/commerce-sdk-react": "5.2.0-nightly-20260501083602",
50
- "@salesforce/pwa-kit-dev": "3.18.0-nightly-20260501083602",
51
- "@salesforce/pwa-kit-react-sdk": "3.18.0-nightly-20260501083602",
52
- "@salesforce/pwa-kit-runtime": "3.18.0-nightly-20260501083602",
49
+ "@salesforce/commerce-sdk-react": "5.2.0-preview.0",
50
+ "@salesforce/pwa-kit-dev": "3.18.0-preview.0",
51
+ "@salesforce/pwa-kit-react-sdk": "3.18.0-preview.0",
52
+ "@salesforce/pwa-kit-runtime": "3.18.0-preview.0",
53
53
  "@salesforce/storefront-next-runtime": "0.1.1",
54
54
  "@tanstack/react-query": "^4.28.0",
55
55
  "@tanstack/react-query-devtools": "^4.29.1",
@@ -110,8 +110,8 @@
110
110
  },
111
111
  {
112
112
  "path": "build/vendor.js",
113
- "maxSize": "392 kB"
113
+ "maxSize": "395 kB"
114
114
  }
115
115
  ],
116
- "gitHead": "62e557dc3f3656871255ea02661d681aeff4ec30"
116
+ "gitHead": "75dd6afbf5269009754337c2cddc5bc0c508e3b3"
117
117
  }