@graphcommerce/magento-recently-viewed-products 10.0.0-canary.67 → 10.0.0-canary.72

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,19 @@
1
1
  # @graphcommerce/magento-recently-viewed-products
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ### Major Changes
10
+
11
+ - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
12
+
13
+ ## 10.0.0-canary.69
14
+
15
+ ## 10.0.0-canary.68
16
+
3
17
  ## 10.0.0-canary.67
4
18
 
5
19
  ## 10.0.0-canary.66
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-recently-viewed-products",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.67",
5
+ "version": "10.0.0-canary.72",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.67",
16
- "@graphcommerce/graphql": "^10.0.0-canary.67",
17
- "@graphcommerce/graphql-mesh": "^10.0.0-canary.67",
18
- "@graphcommerce/magento-cart": "^10.0.0-canary.67",
19
- "@graphcommerce/magento-product": "^10.0.0-canary.67",
20
- "@graphcommerce/magento-product-configurable": "^10.0.0-canary.67",
21
- "@graphcommerce/next-config": "^10.0.0-canary.67",
22
- "@graphcommerce/next-ui": "^10.0.0-canary.67",
23
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67",
24
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.67",
25
- "@mui/material": "^5.10.16",
15
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
16
+ "@graphcommerce/graphql": "^10.0.0-canary.72",
17
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.72",
18
+ "@graphcommerce/magento-cart": "^10.0.0-canary.72",
19
+ "@graphcommerce/magento-product": "^10.0.0-canary.72",
20
+ "@graphcommerce/magento-product-configurable": "^10.0.0-canary.72",
21
+ "@graphcommerce/next-config": "^10.0.0-canary.72",
22
+ "@graphcommerce/next-ui": "^10.0.0-canary.72",
23
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
24
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
25
+ "@mui/material": "^7.0.0",
26
26
  "framer-motion": "^11.0.0",
27
27
  "next": "*",
28
28
  "react": "^19.2.0",
@@ -29,7 +29,7 @@ function ViewHandling(props: { product: ProductPageMetaFragment }) {
29
29
 
30
30
  const registerView = useEventCallback(async () => {
31
31
  const recentlyViewed = await client.query({ query: RecentlyViewedProductsDocument })
32
- const skus = recentlyViewed.data.recentlyViewedProducts?.items ?? []
32
+ const skus = recentlyViewed.data?.recentlyViewedProducts?.items ?? []
33
33
 
34
34
  const isValidVariant =
35
35
  (variant?.url_rewrites ?? []).length > 0 && variant?.url_key && configurableVariantForSimple