@salesforce/retail-react-app 4.0.0 → 4.0.2

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,3 +1,9 @@
1
+ ## v4.0.2 (Oct 2, 2024)
2
+ - Fixed a bug that incorrectly imports uninstalled package `@chakra-ui/layout` [#2047](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2047)
3
+
4
+ ## v4.0.1 (Sept 4, 2024)
5
+ - Updated @salesforce/commerce-sdk-react to 3.0.1 to fix an issue with the expires attribute of cookies, ensuring it uses seconds instead of days [#1994](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1994)
6
+
1
7
  ## v4.0.0 (Aug 7, 2024)
2
8
 
3
9
  ### New Features
@@ -5,9 +5,14 @@
5
5
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
7
  import React, {useState, useEffect, useRef} from 'react'
8
- import {Stack, Heading} from '@chakra-ui/layout'
9
8
  import {FormattedMessage, useIntl} from 'react-intl'
10
- import {Box, Flex, Skeleton} from '@salesforce/retail-react-app/app/components/shared/ui'
9
+ import {
10
+ Box,
11
+ Flex,
12
+ Skeleton,
13
+ Heading,
14
+ Stack
15
+ } from '@salesforce/retail-react-app/app/components/shared/ui'
11
16
  import {useProducts, useShopperCustomersMutation} from '@salesforce/commerce-sdk-react'
12
17
 
13
18
  import useNavigation from '@salesforce/retail-react-app/app/hooks/use-navigation'
package/app/ssr.js CHANGED
@@ -45,7 +45,15 @@ const options = {
45
45
  // Set this to false if using a SLAS public client
46
46
  // When setting this to true, make sure to also set the PWA_KIT_SLAS_CLIENT_SECRET
47
47
  // environment variable as this endpoint will return HTTP 501 if it is not set
48
- useSLASPrivateClient: false
48
+ useSLASPrivateClient: false,
49
+
50
+ // If this is enabled, any HTTP header that has a non ASCII value will be URI encoded
51
+ // If there any HTTP headers that have been encoded, an additional header will be
52
+ // passed, `x-encoded-headers`, containing a comma separated list
53
+ // of the keys of headers that have been encoded
54
+ // There may be a slight performance loss with requests/responses with large number
55
+ // of headers as we loop through all the headers to verify ASCII vs non ASCII
56
+ encodeNonAsciiHttpHeaders: true
49
57
  }
50
58
 
51
59
  const runtime = getRuntime()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/retail-react-app",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "license": "See license in LICENSE",
5
5
  "author": "cc-pwa-kit@salesforce.com",
6
6
  "ccExtensibility": {
@@ -45,10 +45,10 @@
45
45
  "@lhci/cli": "^0.11.0",
46
46
  "@loadable/component": "^5.15.3",
47
47
  "@peculiar/webcrypto": "^1.4.2",
48
- "@salesforce/commerce-sdk-react": "3.0.0",
49
- "@salesforce/pwa-kit-dev": "3.7.0",
50
- "@salesforce/pwa-kit-react-sdk": "3.7.0",
51
- "@salesforce/pwa-kit-runtime": "3.7.0",
48
+ "@salesforce/commerce-sdk-react": "3.0.1",
49
+ "@salesforce/pwa-kit-dev": "3.7.1",
50
+ "@salesforce/pwa-kit-react-sdk": "3.7.1",
51
+ "@salesforce/pwa-kit-runtime": "3.7.1",
52
52
  "@tanstack/react-query": "^4.28.0",
53
53
  "@tanstack/react-query-devtools": "^4.29.1",
54
54
  "@testing-library/dom": "^9.0.1",
@@ -100,5 +100,5 @@
100
100
  "maxSize": "320 kB"
101
101
  }
102
102
  ],
103
- "gitHead": "7a47e6b91a5a0edc69c999115345b9bd5154935f"
103
+ "gitHead": "9dde49caa598178c7a8dd406966f0d635fa8102c"
104
104
  }