Skip to content

Commit 1ffab22

Browse files
committed
Reviewed dependencies. Moved them to peerDependencies and relaxed the version requirements.
The codemirror version can now be managed by the user. Due to the node version required by vite, the minimum node requirement has been set to 18 or higher.
1 parent 45cbd7e commit 1ffab22

File tree

2 files changed

+1633
-3438
lines changed

2 files changed

+1633
-3438
lines changed

package.json

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "vue-codemirror6",
4-
"version": "1.3.20",
4+
"version": "1.3.21",
55
"license": "MIT",
66
"description": "CodeMirror6 Component for vue2 and vue3.",
77
"keywords": [
@@ -41,23 +41,26 @@
4141
"types": "dist/index.d.ts",
4242
"exports": {
4343
".": {
44-
"import": "./dist/index.es.js",
45-
"types": "./dist/index.d.ts"
44+
"import": "./dist/index.js",
45+
"require": "./dist/index.cjs",
46+
"types": "./dist/index.d.ts",
47+
"default": "./dist/index.js"
4648
}
4749
},
4850
"files": [
4951
"CHANGELOG.md",
5052
"/dist",
5153
"./src/components/CodeMirror.ts"
5254
],
55+
"sideEffects": false,
5356
"browser": {
5457
"./sfc": "./src/components/CodeMirror.ts"
5558
},
5659
"engines": {
60+
"node": ">=18",
5761
"pnpm": ">=10.3.0"
5862
},
59-
"packageManager": "[email protected]",
60-
"sideEffects": false,
63+
"packageManager": "[email protected]",
6164
"scripts": {
6265
"dev": "vite",
6366
"clean": "rimraf node_modules/.vite",
@@ -73,62 +76,62 @@
7376
"version": "auto-changelog -p && git add CHANGELOG.md"
7477
},
7578
"dependencies": {
76-
"@codemirror/autocomplete": "^6.18.6",
77-
"@codemirror/commands": "^6.8.1",
78-
"@codemirror/language": "^6.11.1",
79-
"@codemirror/lint": "^6.8.5",
80-
"@codemirror/search": "^6.5.11",
81-
"@codemirror/state": "^6.5.2",
82-
"@codemirror/view": "^6.37.2",
83-
"codemirror": "^6.0.2",
84-
"style-mod": "^4.1.2",
8579
"vue-demi": "latest"
8680
},
8781
"peerDependencies": {
88-
"vue": "^2.7.14 || ^3.4"
82+
"vue": "^2.7.14 || ^3.3.4",
83+
"@codemirror/autocomplete": "^6.0.0",
84+
"@codemirror/commands": "^6.0.0",
85+
"@codemirror/language": "^6.0.0",
86+
"@codemirror/lint": "^6.0.0",
87+
"@codemirror/search": "^6.0.0",
88+
"@codemirror/state": "^6.0.0",
89+
"@codemirror/view": "^6.0.0",
90+
"style-mod": "^4.0.0",
91+
"codemirror": "^6.0.0"
8992
},
9093
"devDependencies": {
9194
"@codemirror/lang-javascript": "^6.2.4",
9295
"@codemirror/lang-json": "^6.0.2",
9396
"@codemirror/lang-markdown": "^6.3.3",
9497
"@codemirror/lang-vue": "^0.1.3",
95-
"@tsconfig/node-lts": "^22.0.1",
96-
"@types/node": "^24.0.3",
97-
"@vitejs/plugin-vue": "^5.2.4",
98+
"@tsconfig/node-lts": "^22.0.2",
99+
"@types/node": "^24.0.13",
100+
"@vitejs/plugin-vue": "^6.0.0",
98101
"@vue/compiler-sfc": "^3.5.17",
99102
"@vue/eslint-config-prettier": "^10.2.0",
100-
"@vue/eslint-config-typescript": "^14.5.1",
103+
"@vue/eslint-config-typescript": "^14.6.0",
101104
"@vue/test-utils": "^2.4.6",
102105
"@vue/tsconfig": "^0.7.0",
103-
"@vueuse/core": "^13.4.0",
106+
"@vueuse/core": "^13.5.0",
104107
"bootstrap": "^5.3.7",
105-
"eslint": "^9.29.0",
108+
"eslint": "^9.31.0",
106109
"eslint-import-resolver-custom-alias": "^1.3.2",
107-
"eslint-import-resolver-typescript": "^4.4.3",
108-
"eslint-linter-browserify": "^9.29.0",
109-
"eslint-plugin-import": "^2.31.0",
110+
"eslint-import-resolver-typescript": "^4.4.4",
111+
"eslint-linter-browserify": "^9.31.0",
112+
"eslint-plugin-import": "^2.32.0",
110113
"eslint-plugin-playwright": "^2.2.0",
111-
"eslint-plugin-vue": "^10.2.0",
114+
"eslint-plugin-vue": "^10.3.0",
112115
"eslint-plugin-vuejs-accessibility": "^2.4.1",
113116
"husky": "^9.1.7",
114117
"jiti": "^2.4.2",
115118
"lint-staged": "^16.1.2",
116119
"npm-run-all2": "^8.0.4",
117-
"prettier": "^3.5.3",
120+
"prettier": "^3.6.2",
118121
"rimraf": "^6.0.1",
119122
"rollup-plugin-visualizer": "^6.0.3",
120123
"sass-embedded": "^1.89.2",
121124
"supports-color": "^10.0.0",
122125
"typescript": "^5.8.3",
123-
"typescript-eslint": "^8.34.1",
124-
"vite": "^6.3.5",
126+
"typescript-eslint": "^8.36.0",
127+
"vite": "^7.0.4",
125128
"vite-plugin-banner": "^0.8.1",
126-
"vite-plugin-checker": "^0.9.3",
129+
"vite-plugin-checker": "^0.10.0",
127130
"vite-plugin-dts": "^4.5.4",
128131
"vue": "^3.5.17",
129-
"vue-eslint-parser": "^10.1.3",
132+
"vue-eslint-parser": "^10.2.0",
130133
"vue-markdown-wasm": "^0.5.1",
131-
"vue-tsc": "^2.2.10"
134+
"vue-tsc": "^3.0.1"
132135
},
133136
"husky": {
134137
"hooks": {

0 commit comments

Comments
 (0)