@graphcommerce/googletagmanager 2.0.3 → 2.0.6

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,72 +1,72 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
8
+
9
+ ## 2.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
14
+
15
+ ## 2.0.4
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
20
+
21
+ * [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
22
+
3
23
  ## 2.0.3
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
- Thanks [@paales](https://github.com/paales)! - made packages public
27
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
9
28
 
10
29
  ## 2.0.2
11
30
 
12
31
  ### Patch Changes
13
32
 
14
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
15
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
16
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
17
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
18
- duplicate packages in the node_modules folders.
33
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
19
34
 
20
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
21
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
22
- Thanks [@paales](https://github.com/paales)! - Upgraded to
23
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
24
- implementing
25
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
26
- soon.
35
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
27
36
 
28
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
29
- frontend to be able to revalidate pages manually.
37
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
30
38
 
31
39
  ## 2.0.1
32
40
 
33
41
  ### Patch Changes
34
42
 
35
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
36
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
37
- so that the packages link to back to the website and repository
43
+ - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
38
44
 
39
45
  ## 2.0.0
40
46
 
41
47
  ### Major Changes
42
48
 
43
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
44
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
45
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
49
+ - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
46
50
 
47
- All notable changes to this project will be documented in this file. See
48
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
51
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
49
52
 
50
53
  ## [1.0.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@1.0.7...@graphcommerce/googletagmanager@1.0.8) (2021-12-20)
51
54
 
52
55
  ### Bug Fixes
53
56
 
54
- - make sure we're not loading gogole properties when keys are not given
55
- ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
57
+ - make sure we're not loading gogole properties when keys are not given ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
56
58
 
57
59
  ## [1.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.3.2...@graphcommerce/googletagmanager@1.0.1) (2021-11-03)
58
60
 
59
61
  ### Bug Fixes
60
62
 
61
- - simplified google tagmanager and create 1.0.0
62
- ([21ac284](https://github.com/ho-nl/m2-pwa/commit/21ac28484de6c12d54f6cf73ad04e459d74892a7))
63
+ - simplified google tagmanager and create 1.0.0 ([21ac284](https://github.com/ho-nl/m2-pwa/commit/21ac28484de6c12d54f6cf73ad04e459d74892a7))
63
64
 
64
65
  # [0.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.2.10...@graphcommerce/googletagmanager@0.3.0) (2021-10-27)
65
66
 
66
67
  ### Features
67
68
 
68
- - **nextjs:** upgraded to nextjs 12
69
- ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
69
+ - **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
70
70
 
71
71
  ## [0.2.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.2.0...@graphcommerce/googletagmanager@0.2.1) (2021-09-27)
72
72
 
@@ -76,25 +76,19 @@ All notable changes to this project will be documented in this file. See
76
76
 
77
77
  ### Bug Fixes
78
78
 
79
- - use gtm id directly from process.env
80
- ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
79
+ - use gtm id directly from process.env ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
81
80
 
82
81
  ### Features
83
82
 
84
- - no gtm id present warning
85
- ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
86
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
87
- [@reachdigital](https://github.com/reachdigital)
88
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
83
+ - no gtm id present warning ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
84
+ - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
89
85
 
90
86
  # 0.1.0 (2021-09-22)
91
87
 
92
88
  ### Bug Fixes
93
89
 
94
- - use gtm id directly from process.env
95
- ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
90
+ - use gtm id directly from process.env ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
96
91
 
97
92
  ### Features
98
93
 
99
- - no gtm id present warning
100
- ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
94
+ - no gtm id present warning ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
 
3
- export default function GoogleTagManagerNoScript() {
3
+ export function GoogleTagManagerNoScript() {
4
4
  if (!process.env.NEXT_PUBLIC_GTM_ID) return null
5
5
 
6
6
  return (
@@ -1,8 +1,8 @@
1
1
  import { useRouter } from 'next/router'
2
2
  import Script from 'next/script'
3
- import React, { useEffect } from 'react'
3
+ import { useEffect } from 'react'
4
4
 
5
- export default function GoogleTagManagerScript() {
5
+ export function GoogleTagManagerScript() {
6
6
  const id = process.env.NEXT_PUBLIC_GTM_ID
7
7
 
8
8
  if (process.env.NODE_ENV !== 'production' && !id)
@@ -1,2 +1,2 @@
1
- export { default as GoogleTagManagerScript } from './GoogleTagManagerScript'
2
- export { default as GoogleTagManagerNoScript } from './GoogleTagManagerNoScript'
1
+ export * from './GoogleTagManagerScript'
2
+ export * from './GoogleTagManagerNoScript'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/googletagmanager",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "2.0.3",
5
+ "version": "2.0.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,14 +12,14 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.3",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.1",
18
+ "@playwright/test": "^1.20.1",
19
19
  "@types/gapi.client.tagmanager": "^2.0.2"
20
20
  },
21
21
  "peerDependencies": {
22
- "next": "^12.0.10",
22
+ "next": "12.1.2",
23
23
  "react": "^17.0.2",
24
24
  "react-dom": "^17.0.2"
25
25
  }