@graphcommerce/magento-store 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
@@ -201,6 +205,7 @@
201
205
  ### Minor Changes
202
206
 
203
207
  - [#1822](https://github.com/graphcommerce-org/graphcommerce/pull/1822) [`cc02c46e3`](https://github.com/graphcommerce-org/graphcommerce/commit/cc02c46e32c9a44a90789591f43d91ae234dac84) - Added Facebook Open Graph tags to product pages:
208
+
204
209
  - og:title
205
210
  - og:image
206
211
  - og:url
@@ -238,6 +243,7 @@
238
243
  ### Patch Changes
239
244
 
240
245
  - [#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.
246
+
241
247
  - Updated the @mui/material package
242
248
  - Removed dependencies on react-hook-form-mui and @playwright/test
243
249
  - Upgraded dependencies including type-fest and graphql-mesh
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-store",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.45",
5
+ "version": "9.1.0-canary.47",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.45",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.45",
17
- "@graphcommerce/framer-utils": "^9.1.0-canary.45",
18
- "@graphcommerce/graphql": "^9.1.0-canary.45",
19
- "@graphcommerce/graphql-mesh": "^9.1.0-canary.45",
20
- "@graphcommerce/image": "^9.1.0-canary.45",
21
- "@graphcommerce/next-ui": "^9.1.0-canary.45",
22
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.45",
23
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.45",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.47",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.47",
17
+ "@graphcommerce/framer-utils": "^9.1.0-canary.47",
18
+ "@graphcommerce/graphql": "^9.1.0-canary.47",
19
+ "@graphcommerce/graphql-mesh": "^9.1.0-canary.47",
20
+ "@graphcommerce/image": "^9.1.0-canary.47",
21
+ "@graphcommerce/next-ui": "^9.1.0-canary.47",
22
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.47",
23
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.47",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",
@@ -1,7 +1,7 @@
1
1
  import type { ParsedUrlQuery } from 'querystring'
2
2
  import type { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@graphcommerce/graphql'
3
3
  import { flushMeasurePerf } from '@graphcommerce/graphql'
4
- import { isTypename, nonNullable, storefrontConfig } from '@graphcommerce/next-ui'
4
+ import { isTypename, nonNullable, revalidate, storefrontConfig } from '@graphcommerce/next-ui'
5
5
  import type { Redirect } from 'next'
6
6
  import type { HandleRedirectQuery, StoreConfigQuery } from '../graphql'
7
7
  import { HandleRedirectDocument } from '../graphql'
@@ -15,7 +15,7 @@ export type RedirectOr404Return = Promise<
15
15
  const notFound = (from: string, reason: string) => {
16
16
  flushMeasurePerf()
17
17
  console.info(`[redirectOrNotFound: /${from}] ${reason}`)
18
- return { notFound: true, revalidate: 60 * 20 } as const
18
+ return { notFound: true, revalidate: revalidate() } as const
19
19
  }
20
20
 
21
21
  const urlPrefix = (locale?: string) => {
@@ -33,7 +33,7 @@ export const redirectTo = (
33
33
  )
34
34
  return {
35
35
  redirect: { destination: `${urlPrefix(locale)}${to}`, permanent },
36
- revalidate: 60 * 20,
36
+ revalidate: revalidate(),
37
37
  }
38
38
  }
39
39
 
@@ -54,7 +54,7 @@ const redirect = (from: string, to: string, permanent: boolean, locale?: string)
54
54
  permanent = false
55
55
  }
56
56
 
57
- return { redirect: { destination, permanent }, revalidate: 60 * 20 }
57
+ return { redirect: { destination, permanent }, revalidate: revalidate() }
58
58
  }
59
59
 
60
60
  export async function redirectOrNotFound(