@graphcommerce/magento-cart 4.7.5 → 4.8.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1630](https://github.com/graphcommerce-org/graphcommerce/pull/1630) [`8d5207288`](https://github.com/graphcommerce-org/graphcommerce/commit/8d52072887f124831ed85d28ec79998f0ce55f1c) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Bug that caused multiple cart creations, for guest, on returning from a successful checkout
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`c1b8b0352`](https://github.com/graphcommerce-org/graphcommerce/commit/c1b8b03520532223f7b572ff23f1d368a4dfe306), [`662f510c2`](https://github.com/graphcommerce-org/graphcommerce/commit/662f510c21fc44a63036e5c7a0726ccb33c31600)]:
12
+ - @graphcommerce/magento-customer@4.11.0
13
+ - @graphcommerce/react-hook-form@3.3.3
14
+ - @graphcommerce/ecommerce-ui@1.3.1
15
+
3
16
  ## 4.7.5
4
17
 
5
18
  ### Patch Changes
@@ -27,8 +27,7 @@ export function useCartQuery<Q, V extends { cartId: string; [index: string]: unk
27
27
  const usingUrl = allowUrl && typeof urlCartId === 'string'
28
28
  const cartId = usingUrl ? urlCartId : currentCartId
29
29
 
30
- if (usingUrl && typeof queryOptions.fetchPolicy === 'undefined')
31
- queryOptions.fetchPolicy = 'cache-only'
30
+ if (usingUrl) queryOptions.fetchPolicy = 'cache-first'
32
31
 
33
32
  if (usingUrl && typeof queryOptions.returnPartialData === 'undefined')
34
33
  queryOptions.returnPartialData = true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.7.5",
5
+ "version": "4.8.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,17 +18,17 @@
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/ecommerce-ui": "1.3.0",
21
+ "@graphcommerce/ecommerce-ui": "1.3.1",
22
22
  "@graphcommerce/framer-utils": "3.2.0",
23
23
  "@graphcommerce/framer-next-pages": "3.3.0",
24
24
  "@graphcommerce/framer-scroller": "2.1.35",
25
25
  "@graphcommerce/graphql": "3.4.8",
26
26
  "@graphcommerce/image": "3.1.9",
27
- "@graphcommerce/magento-customer": "4.10.5",
27
+ "@graphcommerce/magento-customer": "4.11.0",
28
28
  "@graphcommerce/magento-graphql": "3.1.8",
29
29
  "@graphcommerce/magento-store": "4.2.32",
30
30
  "@graphcommerce/next-ui": "4.23.1",
31
- "@graphcommerce/react-hook-form": "3.3.2"
31
+ "@graphcommerce/react-hook-form": "3.3.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@lingui/react": "^3.13.2",