@graphcommerce/magento-cart 3.8.29 → 3.9.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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.9.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.8.29...@graphcommerce/magento-cart@3.9.0) (2022-01-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * **framer-next-pages:** reduce rerenders when navigating to a new page ([5cf3301](https://github.com/ho-nl/m2-pwa/commit/5cf330130bb3527057da015e3c4a6fa295d7262e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.8.25](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.8.24...@graphcommerce/magento-cart@3.8.25) (2021-12-22)
7
18
 
8
19
 
@@ -1,5 +1,5 @@
1
1
  import { useQuery, TypedDocumentNode, QueryHookOptions } from '@apollo/client'
2
- import { usePageRouter } from '@graphcommerce/framer-next-pages'
2
+ import { useRouter } from 'next/router'
3
3
  import { useCurrentCartId } from './useCurrentCartId'
4
4
 
5
5
  /**
@@ -18,7 +18,7 @@ export function useCartQuery<Q, V extends { cartId: string; [index: string]: unk
18
18
  ) {
19
19
  const { allowUrl = false, ...queryOptions } = options
20
20
 
21
- const router = usePageRouter()
21
+ const router = useRouter()
22
22
  const currentCartId = useCurrentCartId()
23
23
  const urlCartId = router.query.cartId
24
24
  const usingUrl = allowUrl && typeof urlCartId === 'string'
@@ -1,7 +1,7 @@
1
- import { usePageRouter } from '@graphcommerce/framer-next-pages'
1
+ import { useRouter } from 'next/router'
2
2
 
3
3
  export function useDisplayInclTax(): boolean {
4
- const { locale } = usePageRouter()
4
+ const { locale } = useRouter()
5
5
  const locales = (process.env.NEXT_PUBLIC_DISPLAY_INCL_TAX ?? '').split(',').map((i) => i.trim())
6
6
  return locale ? locales.includes(locale) : false
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart",
3
- "version": "3.8.29",
3
+ "version": "3.9.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,22 +14,22 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.3",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.9",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.10",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.5",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.2",
20
20
  "@playwright/test": "^1.17.1"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.5.6",
24
- "@graphcommerce/framer-next-pages": "^2.108.11",
25
- "@graphcommerce/framer-scroller": "^1.1.25",
26
- "@graphcommerce/graphql": "^2.105.12",
27
- "@graphcommerce/image": "^2.105.11",
28
- "@graphcommerce/magento-customer": "^3.6.31",
29
- "@graphcommerce/magento-graphql": "^2.104.12",
30
- "@graphcommerce/magento-store": "^3.3.31",
31
- "@graphcommerce/next-ui": "^3.21.15",
32
- "@graphcommerce/react-hook-form": "^2.104.6",
24
+ "@graphcommerce/framer-next-pages": "^2.109.0",
25
+ "@graphcommerce/framer-scroller": "^1.2.0",
26
+ "@graphcommerce/graphql": "^2.105.13",
27
+ "@graphcommerce/image": "^2.105.12",
28
+ "@graphcommerce/magento-customer": "^3.6.32",
29
+ "@graphcommerce/magento-graphql": "^2.104.13",
30
+ "@graphcommerce/magento-store": "^3.4.0",
31
+ "@graphcommerce/next-ui": "^3.22.0",
32
+ "@graphcommerce/react-hook-form": "^2.104.7",
33
33
  "@lingui/macro": "^3.13.0",
34
34
  "@material-ui/core": "^4.12.3",
35
35
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -39,5 +39,5 @@
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.2"
41
41
  },
42
- "gitHead": "a9174584cfeb04807a72b6c609175c24e24ac818"
42
+ "gitHead": "bc5423d7547f8685db4cd8fc6d8f7a2a51ebed05"
43
43
  }