@graphcommerce/magento-customer 4.8.0 → 4.8.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,38 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1570](https://github.com/graphcommerce-org/graphcommerce/pull/1570) [`d92780d5c`](https://github.com/graphcommerce-org/graphcommerce/commit/d92780d5c3bb80b5a1519c087338548303e4cc2f) Thanks [@paales](https://github.com/paales)! - Always skip hydration phase by default when running useCurrentCartId / useCustomerSession
8
+
9
+ - Updated dependencies [[`a88f166f0`](https://github.com/graphcommerce-org/graphcommerce/commit/a88f166f0115c58254fe47171da51a5850658a32)]:
10
+ - @graphcommerce/next-ui@4.15.1
11
+ - @graphcommerce/ecommerce-ui@1.1.6
12
+ - @graphcommerce/magento-store@4.2.21
13
+
14
+ ## 4.8.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`e167992df`](https://github.com/graphcommerce-org/graphcommerce/commit/e167992dfdc6964a392af719667f8a188626ab1b), [`9c2504b4e`](https://github.com/graphcommerce-org/graphcommerce/commit/9c2504b4ed75f41d3003c4d3339814010e85e37e)]:
19
+ - @graphcommerce/next-ui@4.15.0
20
+ - @graphcommerce/ecommerce-ui@1.1.5
21
+ - @graphcommerce/magento-store@4.2.20
22
+
23
+ ## 4.8.1
24
+
25
+ ### Patch Changes
26
+
27
+ - [#1557](https://github.com/graphcommerce-org/graphcommerce/pull/1557) [`84428ccab`](https://github.com/graphcommerce-org/graphcommerce/commit/84428ccab8d1d263893766197076651eae68759c) Thanks [@paales](https://github.com/paales)! - Use WaitForQuery component to handle the loading state
28
+
29
+ - Updated dependencies [[`01f1588c9`](https://github.com/graphcommerce-org/graphcommerce/commit/01f1588c9200bb39dd61146e260bfa2b32060612), [`c0a7f9427`](https://github.com/graphcommerce-org/graphcommerce/commit/c0a7f9427466f0a3886b2c3ebf2f0aa5d79ee081)]:
30
+ - @graphcommerce/graphql-mesh@4.1.6
31
+ - @graphcommerce/graphql@3.4.3
32
+ - @graphcommerce/ecommerce-ui@1.1.4
33
+ - @graphcommerce/magento-store@4.2.19
34
+ - @graphcommerce/magento-graphql@3.1.3
35
+
3
36
  ## 4.8.0
4
37
 
5
38
  ### Minor Changes
@@ -1,3 +1,4 @@
1
+ import { WaitForQueries } from '@graphcommerce/ecommerce-ui'
1
2
  import { MenuFabSecondaryItem, iconPerson, IconSvg } from '@graphcommerce/next-ui'
2
3
  import { Badge, NoSsr, SxProps, Theme } from '@mui/material'
3
4
  import React from 'react'
@@ -1,6 +1,6 @@
1
1
  import { useIsomorphicLayoutEffect } from '@graphcommerce/framer-utils'
2
2
  import { useQuery } from '@graphcommerce/graphql'
3
- import { useState } from 'react'
3
+ import { startTransition, useState } from 'react'
4
4
  import { CustomerTokenDocument, CustomerTokenQuery } from './CustomerToken.gql'
5
5
 
6
6
  export type UseCustomerSessionOptions = { hydration?: boolean }
@@ -15,9 +15,9 @@ export type UseCustomerSessionReturn =
15
15
  export function useCustomerSession(
16
16
  options: UseCustomerSessionOptions = {},
17
17
  ): UseCustomerSessionReturn {
18
- const { hydration = true } = options
18
+ const { hydration = false } = options
19
19
  const [hydrating, setHydrating] = useState(!hydration)
20
- useIsomorphicLayoutEffect(() => setHydrating(false), [])
20
+ useIsomorphicLayoutEffect(() => startTransition(() => setHydrating(false)), [])
21
21
  const skip = hydrating
22
22
 
23
23
  const { called, data } = useQuery(CustomerTokenDocument, { skip })
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.8.0",
5
+ "version": "4.8.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,14 +19,14 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/ecommerce-ui": "1.1.3",
22
+ "@graphcommerce/ecommerce-ui": "1.1.6",
23
23
  "@graphcommerce/framer-utils": "3.1.4",
24
- "@graphcommerce/graphql": "3.4.2",
25
- "@graphcommerce/graphql-mesh": "4.1.5",
24
+ "@graphcommerce/graphql": "3.4.3",
25
+ "@graphcommerce/graphql-mesh": "4.1.6",
26
26
  "@graphcommerce/image": "3.1.7",
27
- "@graphcommerce/magento-graphql": "3.1.2",
28
- "@graphcommerce/magento-store": "4.2.18",
29
- "@graphcommerce/next-ui": "4.14.0",
27
+ "@graphcommerce/magento-graphql": "3.1.3",
28
+ "@graphcommerce/magento-store": "4.2.21",
29
+ "@graphcommerce/next-ui": "4.15.1",
30
30
  "@graphcommerce/react-hook-form": "3.3.1"
31
31
  },
32
32
  "peerDependencies": {