@graphcommerce/googleanalytics 2.0.3 → 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,85 +1,68 @@
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
+
3
9
  ## 2.0.3
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
- Thanks [@paales](https://github.com/paales)! - made packages public
13
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
9
14
 
10
15
  ## 2.0.2
11
16
 
12
17
  ### Patch Changes
13
18
 
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.
19
+ - [#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
20
 
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.
21
+ * [#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
22
 
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.
23
+ 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
24
 
31
25
  ## 2.0.1
32
26
 
33
27
  ### Patch Changes
34
28
 
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
29
+ - [`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
30
 
39
31
  ## 2.0.0
40
32
 
41
33
  ### Major Changes
42
34
 
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
35
+ - [#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
36
 
47
- All notable changes to this project will be documented in this file. See
48
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
37
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
49
38
 
50
39
  # [1.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googleanalytics@1.1.4...@graphcommerce/googleanalytics@1.2.0) (2021-12-21)
51
40
 
52
41
  ### Features
53
42
 
54
- - **googleanalytics:** moved to gtag
55
- ([c586a8f](https://github.com/ho-nl/m2-pwa/commit/c586a8f66547cf7c332113e991a257181ce8d338))
43
+ - **googleanalytics:** moved to gtag ([c586a8f](https://github.com/ho-nl/m2-pwa/commit/c586a8f66547cf7c332113e991a257181ce8d338))
56
44
 
57
45
  ## [1.1.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googleanalytics@1.1.3...@graphcommerce/googleanalytics@1.1.4) (2021-12-20)
58
46
 
59
47
  ### Bug Fixes
60
48
 
61
- - make sure analytics only tracks once on page load
62
- ([94def43](https://github.com/ho-nl/m2-pwa/commit/94def43db7075b6b039696612547c6b6ff7c7c6e))
63
- - make sure we're not loading gogole properties when keys are not given
64
- ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
49
+ - make sure analytics only tracks once on page load ([94def43](https://github.com/ho-nl/m2-pwa/commit/94def43db7075b6b039696612547c6b6ff7c7c6e))
50
+ - make sure we're not loading gogole properties when keys are not given ([8636715](https://github.com/ho-nl/m2-pwa/commit/8636715d61985e0919208ffb64354c3ebb43ed01))
65
51
 
66
52
  ## [1.1.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googleanalytics@1.1.1...@graphcommerce/googleanalytics@1.1.2) (2021-12-17)
67
53
 
68
54
  ### Bug Fixes
69
55
 
70
- - pageview with analytics not registered
71
- ([7cdb68d](https://github.com/ho-nl/m2-pwa/commit/7cdb68d9770a00044fa5a1f143fd05701ea72d59))
56
+ - pageview with analytics not registered ([7cdb68d](https://github.com/ho-nl/m2-pwa/commit/7cdb68d9770a00044fa5a1f143fd05701ea72d59))
72
57
 
73
58
  ## [1.1.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/googleanalytics@1.1.0...@graphcommerce/googleanalytics@1.1.1) (2021-12-17)
74
59
 
75
60
  ### Bug Fixes
76
61
 
77
- - **googleanalytics:** make sure ga is defined
78
- ([787dd9f](https://github.com/ho-nl/m2-pwa/commit/787dd9f6945469e36ebf627213fdb5eefb8146cd))
62
+ - **googleanalytics:** make sure ga is defined ([787dd9f](https://github.com/ho-nl/m2-pwa/commit/787dd9f6945469e36ebf627213fdb5eefb8146cd))
79
63
 
80
64
  # 1.1.0 (2021-12-17)
81
65
 
82
66
  ### Features
83
67
 
84
- - **googleanalytics:** created pacakge to support Google Analytics
85
- ([308b6df](https://github.com/ho-nl/m2-pwa/commit/308b6df1f216d2bc726c770a9ead039bd114a995))
68
+ - **googleanalytics:** created pacakge to support Google Analytics ([308b6df](https://github.com/ho-nl/m2-pwa/commit/308b6df1f216d2bc726c770a9ead039bd114a995))
@@ -1,6 +1,6 @@
1
1
  import Script from 'next/script'
2
2
 
3
- export default function GoogleAnalyticsScript() {
3
+ export function GoogleAnalyticsScript() {
4
4
  const id = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS
5
5
 
6
6
  if (process.env.NODE_ENV !== 'production' && !id)
@@ -1 +1 @@
1
- export { default as GoogleAnalyticsScript } from './GoogleAnalyticsScript'
1
+ export * from './GoogleAnalyticsScript'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/googleanalytics",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "2.0.3",
5
+ "version": "2.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,8 +12,8 @@
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.0.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
18
  "@types/gtag.js": "^0.0.8"
19
19
  },