@graphcommerce/magento-cart 8.0.0-canary.99 → 8.0.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,42 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2075](https://github.com/graphcommerce-org/graphcommerce/pull/2075) [`34dee45`](https://github.com/graphcommerce-org/graphcommerce/commit/34dee456ef686174b62e604911a0ba84cbd3d002) - Added the customers order number to succes page.
8
+ ([@Jessevdpoel](https://github.com/Jessevdpoel))
9
+
10
+ - [#2018](https://github.com/graphcommerce-org/graphcommerce/pull/2018) [`750aa6a`](https://github.com/graphcommerce-org/graphcommerce/commit/750aa6a72710869d54244467253212e551d335e0) - Changed the layout of the succes page. We are using ActionCards right now to match the design of the cart.
11
+ ([@Jessevdpoel](https://github.com/Jessevdpoel))
12
+
13
+ ### Patch Changes
14
+
15
+ - [#2184](https://github.com/graphcommerce-org/graphcommerce/pull/2184) [`28b7e6e`](https://github.com/graphcommerce-org/graphcommerce/commit/28b7e6ef3e3f698751c6e82431fd14fb35463dd6) - When a customer would return from a payment gateway and it would erroneously query the cart GraphCommerce would immediately create a new empty cart while it shouldn't.
16
+ ([@paales](https://github.com/paales))
17
+
18
+ - [#1999](https://github.com/graphcommerce-org/graphcommerce/pull/1999) [`6d7ed0a`](https://github.com/graphcommerce-org/graphcommerce/commit/6d7ed0a2a3d9b3c6193f86bce6889ff24adf3e83) - After signing in the `<CartFab/>` would not always properly reflect if there are items in the customers cart.
19
+ ([@paales](https://github.com/paales))
20
+
21
+ - [#2089](https://github.com/graphcommerce-org/graphcommerce/pull/2089) [`4b6bbf0`](https://github.com/graphcommerce-org/graphcommerce/commit/4b6bbf06572c71e266cc2407e4533833712898e2) - The `<CartFab/>` wouldn't reflect that there are items in the cart when a customer refreshes the page after adding a product to the cart, without viewing the cart.
22
+ ([@carlocarels90](https://github.com/carlocarels90))
23
+
24
+ - [#2170](https://github.com/graphcommerce-org/graphcommerce/pull/2170) [`f3e906f`](https://github.com/graphcommerce-org/graphcommerce/commit/f3e906f7e374ce22d36af29c0f3c8153e18300e6) - Solved an issue where the inactive cart would set as the current cart when the customer had signed in, checked out their cart, session expired and tried to log in again.
25
+ ([@FrankHarland](https://github.com/FrankHarland))
26
+
27
+ - [#2107](https://github.com/graphcommerce-org/graphcommerce/pull/2107) [`2f51504`](https://github.com/graphcommerce-org/graphcommerce/commit/2f5150456eabcce410ad8a0f1cbebeedabb6564c) - Remember email adress when going from checkout to signin/up form
28
+ ([@FrankHarland](https://github.com/FrankHarland))
29
+
30
+ - [#1999](https://github.com/graphcommerce-org/graphcommerce/pull/1999) [`ab834fb`](https://github.com/graphcommerce-org/graphcommerce/commit/ab834fbfe057fb507c371a6d22af282cc1b195d4) - Added a new 'Session expired' dialog that is shown when a GraphQL query or mutation returns a `graphql-authorization` error. This error is returned when the user's session has expired. The dialog allows the user to sign in again and then the query or mutation is re-executed.
31
+ ([@paales](https://github.com/paales))
32
+
33
+ ## 8.0.0-canary.100
34
+
35
+ ### Patch Changes
36
+
37
+ - [#2184](https://github.com/graphcommerce-org/graphcommerce/pull/2184) [`28b7e6e`](https://github.com/graphcommerce-org/graphcommerce/commit/28b7e6ef3e3f698751c6e82431fd14fb35463dd6) - When a customer would return from a payment gateway and it would erroneously query the cart GraphCommerce would immediately create a new empty cart while it shouldn't.
38
+ ([@paales](https://github.com/paales))
39
+
3
40
  ## 8.0.0-canary.99
4
41
 
5
42
  ## 8.0.0-canary.98
@@ -49,6 +49,11 @@ export const cartErrorLink = onError(({ graphQLErrors, operation, forward }) =>
49
49
 
50
50
  if (!cartErr) return undefined
51
51
 
52
+ if (globalThis.location?.search) {
53
+ const urlParams = new URLSearchParams(window.location.search)
54
+ if (urlParams.get('cart_id')) return forward(operation)
55
+ }
56
+
52
57
  return fromPromise(client?.mutate({ mutation: CreateEmptyCartDocument }))
53
58
  .filter((value) => Boolean(value))
54
59
  .flatMap((cartData) => {
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": "8.0.0-canary.99",
5
+ "version": "8.0.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.0.0-canary.99",
16
- "@graphcommerce/eslint-config-pwa": "^8.0.0-canary.99",
17
- "@graphcommerce/framer-next-pages": "^8.0.0-canary.99",
18
- "@graphcommerce/framer-scroller": "^8.0.0-canary.99",
19
- "@graphcommerce/framer-utils": "^8.0.0-canary.99",
20
- "@graphcommerce/graphql": "^8.0.0-canary.99",
21
- "@graphcommerce/image": "^8.0.0-canary.99",
22
- "@graphcommerce/magento-customer": "^8.0.0-canary.99",
23
- "@graphcommerce/magento-graphql": "^8.0.0-canary.99",
24
- "@graphcommerce/magento-store": "^8.0.0-canary.99",
25
- "@graphcommerce/next-ui": "^8.0.0-canary.99",
26
- "@graphcommerce/prettier-config-pwa": "^8.0.0-canary.99",
27
- "@graphcommerce/react-hook-form": "^8.0.0-canary.99",
28
- "@graphcommerce/typescript-config-pwa": "^8.0.0-canary.99",
15
+ "@graphcommerce/ecommerce-ui": "^8.0.0",
16
+ "@graphcommerce/eslint-config-pwa": "^8.0.0",
17
+ "@graphcommerce/framer-next-pages": "^8.0.0",
18
+ "@graphcommerce/framer-scroller": "^8.0.0",
19
+ "@graphcommerce/framer-utils": "^8.0.0",
20
+ "@graphcommerce/graphql": "^8.0.0",
21
+ "@graphcommerce/image": "^8.0.0",
22
+ "@graphcommerce/magento-customer": "^8.0.0",
23
+ "@graphcommerce/magento-graphql": "^8.0.0",
24
+ "@graphcommerce/magento-store": "^8.0.0",
25
+ "@graphcommerce/next-ui": "^8.0.0",
26
+ "@graphcommerce/prettier-config-pwa": "^8.0.0",
27
+ "@graphcommerce/react-hook-form": "^8.0.0",
28
+ "@graphcommerce/typescript-config-pwa": "^8.0.0",
29
29
  "@lingui/core": "^4.2.1",
30
30
  "@lingui/macro": "^4.2.1",
31
31
  "@lingui/react": "^4.2.1",