@graphcommerce/googletagmanager 2.0.1 → 2.0.4

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,44 +1,60 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ * [#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
10
+
11
+ ## 2.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
16
+
17
+ ## 2.0.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [#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.
22
+
23
+ * [#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.
24
+
25
+ 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.
26
+
3
27
  ## 2.0.1
4
28
 
5
29
  ### Patch Changes
6
30
 
7
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
8
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
9
- so that the packages link to back to the website and repository
31
+ - [`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
10
32
 
11
33
  ## 2.0.0
12
34
 
13
35
  ### Major Changes
14
36
 
15
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
16
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
17
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
37
+ - [#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
18
38
 
19
- All notable changes to this project will be documented in this file. See
20
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
39
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
21
40
 
22
41
  ## [1.0.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@1.0.7...@graphcommerce/googletagmanager@1.0.8) (2021-12-20)
23
42
 
24
43
  ### Bug Fixes
25
44
 
26
- - make sure we're not loading gogole properties when keys are not given
27
- ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
45
+ - make sure we're not loading gogole properties when keys are not given ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
28
46
 
29
47
  ## [1.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.3.2...@graphcommerce/googletagmanager@1.0.1) (2021-11-03)
30
48
 
31
49
  ### Bug Fixes
32
50
 
33
- - simplified google tagmanager and create 1.0.0
34
- ([21ac284](https://github.com/ho-nl/m2-pwa/commit/21ac28484de6c12d54f6cf73ad04e459d74892a7))
51
+ - simplified google tagmanager and create 1.0.0 ([21ac284](https://github.com/ho-nl/m2-pwa/commit/21ac28484de6c12d54f6cf73ad04e459d74892a7))
35
52
 
36
53
  # [0.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.2.10...@graphcommerce/googletagmanager@0.3.0) (2021-10-27)
37
54
 
38
55
  ### Features
39
56
 
40
- - **nextjs:** upgraded to nextjs 12
41
- ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
57
+ - **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
42
58
 
43
59
  ## [0.2.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googletagmanager@0.2.0...@graphcommerce/googletagmanager@0.2.1) (2021-09-27)
44
60
 
@@ -48,25 +64,19 @@ All notable changes to this project will be documented in this file. See
48
64
 
49
65
  ### Bug Fixes
50
66
 
51
- - use gtm id directly from process.env
52
- ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
67
+ - use gtm id directly from process.env ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
53
68
 
54
69
  ### Features
55
70
 
56
- - no gtm id present warning
57
- ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
58
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
59
- [@reachdigital](https://github.com/reachdigital)
60
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
71
+ - no gtm id present warning ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
72
+ - 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))
61
73
 
62
74
  # 0.1.0 (2021-09-22)
63
75
 
64
76
  ### Bug Fixes
65
77
 
66
- - use gtm id directly from process.env
67
- ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
78
+ - use gtm id directly from process.env ([1682834](https://github.com/ho-nl/m2-pwa/commit/16828342b0f432da5c7051b1b9834fdad1c58ec8))
68
79
 
69
80
  ### Features
70
81
 
71
- - no gtm id present warning
72
- ([94cda8a](https://github.com/ho-nl/m2-pwa/commit/94cda8a30a3ec556d3e5484824fbf349e2e1e342))
82
+ - 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.1",
5
+ "version": "2.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,13 +12,13 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.18.1",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.19.2",
19
19
  "@types/gapi.client.tagmanager": "^2.0.2"
20
20
  },
21
- "dependencies": {
21
+ "peerDependencies": {
22
22
  "next": "^12.0.10",
23
23
  "react": "^17.0.2",
24
24
  "react-dom": "^17.0.2"