@graphcommerce/docs 9.1.0-canary.45 → 9.1.0-canary.47

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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.47
4
+
5
+ ## 9.1.0-canary.46
6
+
3
7
  ## 9.1.0-canary.45
4
8
 
5
9
  ## 9.1.0-canary.44
@@ -228,6 +232,7 @@
228
232
  ### Patch Changes
229
233
 
230
234
  - [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
235
+
231
236
  - Updated the @mui/material package
232
237
  - Removed dependencies on react-hook-form-mui and @playwright/test
233
238
  - Upgraded dependencies including type-fest and graphql-mesh
@@ -246,6 +251,7 @@
246
251
  - [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`c37187a51`](https://github.com/graphcommerce-org/graphcommerce/commit/c37187a513670ebcf09e99eb4a762c8bdb5df7e4) - Moved Magento Cart Pickup shipping method to the [GraphCommerce plugin system](https://www.graphcommerce.org/docs/framework/plugins)
247
252
 
248
253
  Upgrade guide:
254
+
249
255
  - The upgrade removes `@graphcommerce/magento-cart-pickup` package from your `package.json`, remove them for now.
250
256
  - Proceed to upgrade normally
251
257
  - Add back `@graphcommerce/magento-cart-pickup`, following the [GraphCommerce Magento docs](https://graphcommerce.org/docs/magento). ([@paales](https://github.com/paales))
@@ -263,6 +269,7 @@
263
269
  - [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`f08bffd63`](https://github.com/graphcommerce-org/graphcommerce/commit/f08bffd63780cb626f072b25c2fd4da37543b6f7) - Moved all Payment methods to the [GraphCommerce plugin system](https://www.graphcommerce.org/docs/framework/plugins)
264
270
 
265
271
  Upgrade guide:
272
+
266
273
  - The upgrade removes all the payment gateway packages from the `package.json`, remove them for now.
267
274
  - Proceed to upgrade normally
268
275
  - Add back all the payment modules following the [GraphCommerce Magento docs](https://graphcommerce.org/docs/magento).
@@ -568,6 +575,7 @@
568
575
  * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Written documentation for GraphCommerce! 👩‍🏫🧑‍🏫📚📖
569
576
 
570
577
  - [#1284](https://github.com/ho-nl/m2-pwa/pull/1284) [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14) Thanks [@paales](https://github.com/paales)! - SvgIcon is now more extenable and flexible:
578
+
571
579
  - It will automatically calculate the stroke-width of the SVG based on the rendered size, allowing for a more flexible use for icons.
572
580
 
573
581
  - Make SvgIcon themable in your own Theme.
@@ -54,7 +54,7 @@ export const getStaticProps: GetPageStaticProps = async ({ locale }) => {
54
54
  up: { href: '/', title: 'Home' },
55
55
  apolloState: await conf.then(() => client.cache.extract()),
56
56
  },
57
- revalidate: 60 * 20,
57
+ revalidate: revalidate(),
58
58
  }
59
59
  }
60
60
  ```
@@ -155,7 +155,7 @@ return {
155
155
  apolloState: await conf.then(() => client.cache.extract()),
156
156
  up,
157
157
  },
158
- revalidate: 60 * 20,
158
+ revalidate: revalidate(),
159
159
  }
160
160
  ```
161
161
 
@@ -66,8 +66,8 @@ import {
66
66
  LayoutNavigationProps,
67
67
  } from '../../components'
68
68
  import {
69
- graphqlSsrClient,
70
69
  graphqlSharedClient,
70
+ graphqlSsrClient,
71
71
  } from '../../lib/graphql/graphqlSsrClient'
72
72
 
73
73
  type GetPageStaticProps = GetStaticProps<LayoutNavigationProps>
@@ -108,7 +108,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
108
108
  ...(await layout).data,
109
109
  apolloState: await conf.then(() => client.cache.extract()),
110
110
  },
111
- revalidate: 60 * 20,
111
+ revalidate: revalidate(),
112
112
  }
113
113
  }
114
114
  ```
@@ -168,8 +168,8 @@ import {
168
168
  RowRenderer,
169
169
  } from '../../components'
170
170
  import {
171
- graphqlSsrClient,
172
171
  graphqlSharedClient,
172
+ graphqlSsrClient,
173
173
  } from '../../lib/graphql/graphqlSsrClient'
174
174
 
175
175
  type Props = HygraphPagesQuery
@@ -221,7 +221,8 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
221
221
  fetchPolicy: 'cache-first',
222
222
  })
223
223
 
224
- if (!(await page).data.pages?.[0]) return { notFound: true }
224
+ if (!(await page).data.pages?.[0])
225
+ return { notFound: true, revalidate: revalidate() }
225
226
 
226
227
  return {
227
228
  props: {
@@ -229,7 +230,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
229
230
  ...(await layout).data,
230
231
  apolloState: await conf.then(() => client.cache.extract()),
231
232
  },
232
- revalidate: 60 * 20,
233
+ revalidate: revalidate(),
233
234
  }
234
235
  }
235
236
  ```
@@ -271,7 +272,8 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
271
272
  fetchPolicy: 'cache-first',
272
273
  })
273
274
 
274
- if (!(await page).data.pages?.[0]) return { notFound: true }
275
+ if (!(await page).data.pages?.[0])
276
+ return { notFound: true, revalidate: revalidate() }
275
277
 
276
278
  return {
277
279
  props: {
@@ -279,7 +281,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
279
281
  ...(await layout).data,
280
282
  apolloState: await conf.then(() => client.cache.extract()),
281
283
  },
282
- revalidate: 60 * 20,
284
+ revalidate: revalidate(),
283
285
  }
284
286
  }
285
287
  ```
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "@graphcommerce/docs",
3
3
  "homepage": "https://www.graphcommerce.org/docs",
4
4
  "repository": "github:graphcommerce-org/graphcommerce/docs",
5
- "version": "9.1.0-canary.45",
5
+ "version": "9.1.0-canary.47",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.45"
8
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.47"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }