@graphcommerce/magento-customer 4.5.2 → 4.5.3

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,23 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1511](https://github.com/graphcommerce-org/graphcommerce/pull/1511) [`8a626ecf7`](https://github.com/graphcommerce-org/graphcommerce/commit/8a626ecf7ed00c46a28088e0b9bae00a4e1ae019) Thanks [@paales](https://github.com/paales)! - make sure useCustomerQuery only runs when the user is actually logged instead of only a token
8
+
9
+ * [#1490](https://github.com/graphcommerce-org/graphcommerce/pull/1490) [`d311ef48b`](https://github.com/graphcommerce-org/graphcommerce/commit/d311ef48bb3e97806d992af5516d6b7f183ec9cb) Thanks [@paales](https://github.com/paales)! - upgraded packages
10
+
11
+ * Updated dependencies [[`a9213f1f5`](https://github.com/graphcommerce-org/graphcommerce/commit/a9213f1f5a410d217768386ccb6d9b5ce7bd5782), [`d311ef48b`](https://github.com/graphcommerce-org/graphcommerce/commit/d311ef48bb3e97806d992af5516d6b7f183ec9cb)]:
12
+ - @graphcommerce/next-ui@4.9.0
13
+ - @graphcommerce/ecommerce-ui@1.0.19
14
+ - @graphcommerce/graphql@3.2.1
15
+ - @graphcommerce/graphql-mesh@4.1.4
16
+ - @graphcommerce/image@3.1.7
17
+ - @graphcommerce/magento-graphql@3.0.14
18
+ - @graphcommerce/magento-store@4.2.10
19
+ - @graphcommerce/react-hook-form@3.2.2
20
+
3
21
  ## 4.5.2
4
22
 
5
23
  ### Patch Changes
@@ -6,6 +6,6 @@ export function useCustomerQuery<Q, V>(
6
6
  document: TypedDocumentNode<Q, V>,
7
7
  queryOptions: QueryHookOptions<Q, V> = {},
8
8
  ) {
9
- const { token } = useCustomerSession()
10
- return useQuery(document, { ...queryOptions, ssr: false, skip: !token })
9
+ const { loggedIn } = useCustomerSession()
10
+ return useQuery(document, { ...queryOptions, ssr: false, skip: !loggedIn })
11
11
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-customer",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.5.2",
5
+ "version": "4.5.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,29 +12,29 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.7",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.8",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.3",
18
18
  "@playwright/test": "^1.21.1",
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/ecommerce-ui": "1.0.18",
23
- "@graphcommerce/graphql": "3.2.0",
24
- "@graphcommerce/graphql-mesh": "4.1.3",
25
- "@graphcommerce/image": "3.1.6",
26
- "@graphcommerce/magento-graphql": "3.0.13",
27
- "@graphcommerce/magento-store": "4.2.9",
28
- "@graphcommerce/next-ui": "4.8.4",
29
- "@graphcommerce/react-hook-form": "3.2.1"
22
+ "@graphcommerce/ecommerce-ui": "1.0.19",
23
+ "@graphcommerce/graphql": "3.2.1",
24
+ "@graphcommerce/graphql-mesh": "4.1.4",
25
+ "@graphcommerce/image": "3.1.7",
26
+ "@graphcommerce/magento-graphql": "3.0.14",
27
+ "@graphcommerce/magento-store": "4.2.10",
28
+ "@graphcommerce/next-ui": "4.9.0",
29
+ "@graphcommerce/react-hook-form": "3.2.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@lingui/react": "^3.13.2",
33
33
  "@lingui/core": "^3.13.2",
34
34
  "@mui/material": "5.5.3",
35
35
  "framer-motion": "^6.2.4",
36
- "next": "12.1.2",
37
- "react": "^17.0.2",
38
- "react-dom": "^17.0.2"
36
+ "next": "^12.1.2",
37
+ "react": "^18.0.0",
38
+ "react-dom": "^18.0.0"
39
39
  }
40
40
  }