@graphcommerce/demo-magento-graphcommerce 10.1.0-canary.28 → 10.1.0-canary.29
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,5 +1,11 @@
|
|
|
1
1
|
# @graphcommerce/demo-magento-graphcommerce
|
|
2
2
|
|
|
3
|
+
## 10.1.0-canary.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2642](https://github.com/graphcommerce-org/graphcommerce/pull/2642) [`1dc4e9e`](https://github.com/graphcommerce-org/graphcommerce/commit/1dc4e9e6fc7fc87cc1d3b101144365fe93eed359) - Fix breadcrumb "up" link title being translated in the wrong locale during static generation. The Lingui `t` macro title was evaluated inside the returned props after awaiting GraphQL queries, so a concurrent static-generation request for another locale could change the global active locale mid-flight. The `up` object is now computed synchronously before any await, capturing the correct locale for the current request. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
8
|
+
|
|
3
9
|
## 10.1.0-canary.28
|
|
4
10
|
|
|
5
11
|
## 10.1.0-canary.27
|
|
@@ -65,6 +65,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
65
65
|
const url = (params?.url ?? ['index']).join('/') ?? ''
|
|
66
66
|
|
|
67
67
|
const client = graphqlSharedClient(context)
|
|
68
|
+
const up = url !== 'index' ? { href: '/', title: t`Home` } : null
|
|
68
69
|
const staticClient = graphqlSsrClient(context)
|
|
69
70
|
|
|
70
71
|
const conf = client.query({ query: StoreConfigDocument })
|
|
@@ -76,7 +77,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
76
77
|
return {
|
|
77
78
|
props: {
|
|
78
79
|
url,
|
|
79
|
-
up
|
|
80
|
+
up,
|
|
80
81
|
...(await layout).data,
|
|
81
82
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
82
83
|
},
|
|
@@ -88,6 +88,7 @@ export default TestSlider
|
|
|
88
88
|
|
|
89
89
|
export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
90
90
|
const client = graphqlSharedClient(context)
|
|
91
|
+
const up = { href: '/', title: t`Home` }
|
|
91
92
|
const staticClient = graphqlSsrClient(context)
|
|
92
93
|
|
|
93
94
|
const conf = client.query({ query: StoreConfigDocument })
|
|
@@ -101,7 +102,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
101
102
|
return {
|
|
102
103
|
props: {
|
|
103
104
|
...(await productList).data,
|
|
104
|
-
up
|
|
105
|
+
up,
|
|
105
106
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
106
107
|
},
|
|
107
108
|
}
|
|
@@ -198,6 +198,7 @@ export default TypographyOverview
|
|
|
198
198
|
|
|
199
199
|
export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
200
200
|
const client = graphqlSharedClient(context)
|
|
201
|
+
const up = { href: '/', title: t`Home` }
|
|
201
202
|
const staticClient = graphqlSsrClient(context)
|
|
202
203
|
|
|
203
204
|
const conf = client.query({ query: StoreConfigDocument })
|
|
@@ -209,7 +210,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
209
210
|
return {
|
|
210
211
|
props: {
|
|
211
212
|
...(await layout).data,
|
|
212
|
-
up
|
|
213
|
+
up,
|
|
213
214
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
214
215
|
},
|
|
215
216
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/demo-magento-graphcommerce",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.1.0-canary.
|
|
5
|
+
"version": "10.1.0-canary.29",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@graphcommerce/eslint-config-pwa": "^10.1.0-canary.
|
|
25
|
-
"@graphcommerce/framer-scroller": "^10.1.0-canary.
|
|
26
|
-
"@graphcommerce/magento-product": "^10.1.0-canary.
|
|
27
|
-
"@graphcommerce/magento-product-configurable": "^10.1.0-canary.
|
|
28
|
-
"@graphcommerce/magento-recently-viewed-products": "^10.1.0-canary.
|
|
29
|
-
"@graphcommerce/next-ui": "^10.1.0-canary.
|
|
30
|
-
"@graphcommerce/prettier-config-pwa": "^10.1.0-canary.
|
|
31
|
-
"@graphcommerce/typescript-config-pwa": "^10.1.0-canary.
|
|
24
|
+
"@graphcommerce/eslint-config-pwa": "^10.1.0-canary.29",
|
|
25
|
+
"@graphcommerce/framer-scroller": "^10.1.0-canary.29",
|
|
26
|
+
"@graphcommerce/magento-product": "^10.1.0-canary.29",
|
|
27
|
+
"@graphcommerce/magento-product-configurable": "^10.1.0-canary.29",
|
|
28
|
+
"@graphcommerce/magento-recently-viewed-products": "^10.1.0-canary.29",
|
|
29
|
+
"@graphcommerce/next-ui": "^10.1.0-canary.29",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^10.1.0-canary.29",
|
|
31
|
+
"@graphcommerce/typescript-config-pwa": "^10.1.0-canary.29",
|
|
32
32
|
"@mui/material": "^7.0.0",
|
|
33
33
|
"framer-motion": "^11.0.0",
|
|
34
34
|
"next": "*",
|