@salesforce/retail-react-app 1.0.0-preview.5 → 1.1.0-dev.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 +10 -4
- package/app/ssr.js +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
##
|
|
1
|
+
## v1.1.0-dev (June 15, 2023)
|
|
2
|
+
## v1.0.0 (June 15, 2023)
|
|
2
3
|
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
4
|
+
- First public release of package on npm under `@salesforce/retail-react-app`
|
|
5
|
+
- Upgrade React v18, React DOM v18, React-hook-form v7, and Chakra 2 libraries [#1166](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1166)
|
|
6
|
+
- Add app `above-header` and product-list `above-page-header` convenience components [#1183](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1183)
|
|
7
|
+
- Migration to "hooks" / `@salesforce/commerce-sdk-react` integration follow the [upgrade guide](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/upgrade-to-v3.html) and [view the diff](https://github.com/SalesforceCommerceCloud/pwa-kit/compare/release-2.7.x...release-3.0.x?diff=unified#files_bucket)
|
|
8
|
+
|
|
9
|
+
## Older Versions Without Namespace
|
|
10
|
+
|
|
11
|
+
The older versions below were published without the `@salesforce` namespace.
|
|
6
12
|
|
|
7
13
|
## v2.7.1 (May 11, 2023)
|
|
8
14
|
|
package/app/ssr.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
8
8
|
'use strict'
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import path from 'path'
|
|
11
|
+
import {getRuntime} from '@salesforce/pwa-kit-runtime/ssr/server/express'
|
|
12
|
+
import {isRemote} from '@salesforce/pwa-kit-runtime/utils/ssr-server'
|
|
13
|
+
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
|
|
14
|
+
import helmet from 'helmet'
|
|
15
15
|
|
|
16
16
|
const options = {
|
|
17
17
|
// The build directory (an absolute path)
|
|
@@ -67,4 +67,4 @@ const {handler} = runtime.createHandler(options, (app) => {
|
|
|
67
67
|
})
|
|
68
68
|
// SSR requires that we export a single handler function called 'get', that
|
|
69
69
|
// supports AWS use of the server that we created above.
|
|
70
|
-
|
|
70
|
+
export const get = handler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/retail-react-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0-dev.0",
|
|
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": "1.
|
|
49
|
-
"@salesforce/pwa-kit-dev": "3.
|
|
50
|
-
"@salesforce/pwa-kit-react-sdk": "3.
|
|
51
|
-
"@salesforce/pwa-kit-runtime": "3.
|
|
48
|
+
"@salesforce/commerce-sdk-react": "1.1.0-dev.0",
|
|
49
|
+
"@salesforce/pwa-kit-dev": "3.1.0-preview.0",
|
|
50
|
+
"@salesforce/pwa-kit-react-sdk": "3.1.0-preview.0",
|
|
51
|
+
"@salesforce/pwa-kit-runtime": "3.1.0-preview.0",
|
|
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",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"overrides": {
|
|
104
104
|
"nwsapi": "2.2.2"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "c49c3738908cbcc24b40f2f160661439b84d47d5"
|
|
107
107
|
}
|