Skip to content

Commit 79350be

Browse files
committed
Merge branch 'main' into vue2-gtm
2 parents c37a7f5 + 4536411 commit 79350be

10 files changed

+899
-416
lines changed

.eslintrc.js renamed to .eslintrc.cjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { readGitignoreFiles } = require('eslint-gitignore');
55
module.exports = defineConfig({
66
ignorePatterns: [
77
...readGitignoreFiles(),
8-
'.eslintrc.js', // Skip self linting
8+
'.eslintrc.cjs', // Skip self linting
99
],
1010
root: true,
1111
env: {
@@ -103,10 +103,13 @@ module.exports = defineConfig({
103103
'inheritdoc',
104104
'jsdoc',
105105
'jsdom',
106+
'minify',
106107
'noninteraction',
107108
'nullish',
108109
'overridable',
109110
'readonly',
111+
'rollup',
112+
'vite',
110113
'vitest',
111114
'vue',
112115
],

CHANGELOG.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# Next
22

3-
[diff](https://github.com/gtm-support/vue-gtm/compare/1.3.0-vue2...vue2-gtm)
3+
[diff](https://github.com/gtm-support/vue-gtm/compare/2.0.0-vue2...vue2-gtm)
4+
5+
# 2.0.0
6+
7+
[diff](https://github.com/gtm-support/vue-gtm/compare/1.3.0-vue2...2.0.0-vue2)
8+
9+
## BREAKING CHANGE
10+
11+
- Minimum required Vue version is now `^2.7.0`
12+
- Minimum required Vue Router version is now `^3.6.0`
13+
- Minimum required EcmaScript is now `ES2018`
14+
15+
## Features
16+
17+
- Now serving ESM and CJS
18+
- Set `lib` from `ES2020` to `ES2018`
419

520
# 1.3.0
621

package.json

+41-31
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
{
22
"name": "@gtm-support/vue2-gtm",
3-
"version": "1.3.0",
3+
"version": "2.0.0",
44
"description": "Simple implementation of Google Tag Manager for Vue",
5-
"main": "dist/index.js",
5+
"scripts": {
6+
"clean": "rimraf coverage dist pnpm-lock.yaml node_modules",
7+
"build": "tsc --noEmit && vite build",
8+
"format": "prettier --write .",
9+
"lint": "eslint .",
10+
"test": "vitest",
11+
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build"
12+
},
13+
"type": "module",
14+
"files": [
15+
"dist"
16+
],
17+
"main": "dist/index.cjs",
18+
"module": "dist/index.js",
19+
"types": "dist/index.d.ts",
20+
"exports": {
21+
".": {
22+
"import": "./dist/index.js",
23+
"require": "./dist/index.cjs"
24+
}
25+
},
626
"author": {
727
"name": "Christopher Quadflieg",
828
"email": "[email protected]",
@@ -16,14 +36,6 @@
1636
],
1737
"license": "MIT",
1838
"homepage": "https://github.com/gtm-support/vue-gtm/tree/vue2-gtm",
19-
"scripts": {
20-
"clean": "rm -Rf dist pnpm-lock.yaml node_modules",
21-
"build": "tsc",
22-
"format": "prettier --write .",
23-
"lint": "eslint .",
24-
"test": "vitest",
25-
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build"
26-
},
2739
"repository": {
2840
"type": "git",
2941
"url": "https://github.com/gtm-support/vue-gtm.git"
@@ -50,34 +62,32 @@
5062
"vue",
5163
"google"
5264
],
53-
"files": [
54-
"dist",
55-
"src",
56-
"tsconfig.json"
57-
],
5865
"dependencies": {
59-
"@gtm-support/core": "1.3.0"
66+
"@gtm-support/core": "^2.0.0"
6067
},
6168
"devDependencies": {
62-
"@typescript-eslint/eslint-plugin": "~5.23.0",
63-
"@typescript-eslint/parser": "~5.23.0",
64-
"eslint": "~8.15.0",
69+
"@typescript-eslint/eslint-plugin": "~5.39.0",
70+
"@typescript-eslint/parser": "~5.39.0",
71+
"eslint": "~8.24.0",
6572
"eslint-config-prettier": "~8.5.0",
66-
"eslint-define-config": "~1.4.1",
73+
"eslint-define-config": "~1.7.0",
6774
"eslint-gitignore": "~0.1.0",
68-
"eslint-plugin-jsdoc": "~39.2.9",
69-
"eslint-plugin-prettier": "~4.0.0",
75+
"eslint-plugin-jsdoc": "~39.3.6",
76+
"eslint-plugin-prettier": "~4.2.1",
7077
"eslint-plugin-spellcheck": "~0.0.19",
71-
"jsdom": "~19.0.0",
72-
"prettier": "2.6.2",
73-
"prettier-plugin-organize-imports": "~2.3.4",
74-
"typescript": "~4.6.4",
75-
"vitest": "~0.12.6",
76-
"vue": "^2.6.14",
77-
"vue-router": "^3.5.3"
78+
"jsdom": "~20.0.1",
79+
"prettier": "2.7.1",
80+
"prettier-plugin-organize-imports": "~3.1.1",
81+
"rimraf": "~3.0.2",
82+
"typescript": "~4.8.4",
83+
"vite": "~3.1.6",
84+
"vite-plugin-dts": "~1.6.5",
85+
"vitest": "~0.24.0",
86+
"vue": "^2.7.10",
87+
"vue-router": "^3.6.5"
7888
},
7989
"peerDependencies": {
80-
"vue": "^2.6.14"
90+
"vue": "^2.7.0"
8191
},
82-
"packageManager": "pnpm@7.1.0"
92+
"packageManager": "pnpm@7.13.2"
8393
}

0 commit comments

Comments
 (0)