@graphcommerce/googletagmanager 2.0.8 → 2.0.10-canary.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
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.10-canary.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
8
+
9
+ ## 2.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1617](https://github.com/graphcommerce-org/graphcommerce/pull/1617) [`978e22c1e`](https://github.com/graphcommerce-org/graphcommerce/commit/978e22c1e1c8f29cfda246a7ec2a24e3b570435c) Thanks [@paales](https://github.com/paales)! - Prevent error when dataLayer isn’t present in the window
14
+
3
15
  ## 2.0.8
4
16
 
5
17
  ### Patch Changes
@@ -12,8 +12,8 @@ export function GoogleTagManagerScript() {
12
12
 
13
13
  useEffect(() => {
14
14
  const onRouteChangeComplete = (url: string) => {
15
- const dataLayer = globalThis.dataLayer as Record<string, unknown>[]
16
- dataLayer.push({ event: 'pageview', page: url })
15
+ const dataLayer = globalThis.dataLayer as Record<string, unknown>[] | undefined
16
+ dataLayer?.push({ event: 'pageview', page: url })
17
17
  }
18
18
 
19
19
  router.events.on('routeChangeComplete', onRouteChangeComplete)
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.8",
5
+ "version": "2.0.10-canary.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,9 +12,9 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.8",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.2",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.11-canary.0",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.7-canary.0",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.5-canary.0",
18
18
  "@playwright/test": "^1.21.1",
19
19
  "@types/gapi.client.tagmanager": "^2.0.2"
20
20
  },