Skip to content

Commit 63d99a2

Browse files
committed
Update dependencies.
Moved lodash to dependencies side.
1 parent c634b55 commit 63d99a2

File tree

4 files changed

+39
-23
lines changed

4 files changed

+39
-23
lines changed

package.json

Lines changed: 5 additions & 5 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.1.4",
4+
"version": "1.1.5",
55
"license": "MIT",
66
"description": "CodeMirror6 Component for vue2 and vue3.",
77
"keywords": [
@@ -75,6 +75,7 @@
7575
},
7676
"dependencies": {
7777
"codemirror": "^6.0.1",
78+
"lodash": "^4.17.21",
7879
"vue-demi": "latest"
7980
},
8081
"peerDependencies": {
@@ -105,19 +106,18 @@
105106
"eslint-import-resolver-typescript": "^3.5.3",
106107
"eslint-linter-browserify": "^8.31.0",
107108
"eslint-plugin-html": "^7.1.0",
108-
"eslint-plugin-import": "^2.27.2",
109+
"eslint-plugin-import": "^2.27.4",
109110
"eslint-plugin-jsdoc": "^39.6.4",
110111
"eslint-plugin-prettier": "^4.2.1",
111112
"eslint-plugin-tsdoc": "^0.2.17",
112-
"eslint-plugin-vue": "^9.8.0",
113+
"eslint-plugin-vue": "^9.9.0",
113114
"eslint-plugin-vuejs-accessibility": "^2.0.0",
114115
"eslint-plugin-yaml": "^0.5.0",
115116
"husky": "^8.0.3",
116117
"lint-staged": "^13.1.0",
117-
"lodash": "^4.17.21",
118118
"npm-run-all": "^4.1.5",
119119
"prettier": "^2.8.2",
120-
"rimraf": "^3.0.2",
120+
"rimraf": "^4.0.4",
121121
"rollup-plugin-visualizer": "^5.9.0",
122122
"typescript": "^4.9.4",
123123
"vite": "^4.0.4",

src/components/CodeMirror.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import {
1818

1919
// Helpers
2020
import h, { slot } from '@/helpers/h-demi';
21-
import compact from 'lodash/compact';
22-
import trim from 'lodash/trim';
21+
import { compact, trim } from 'lodash';
2322

2423
// CodeMirror
2524
import { basicSetup, minimalSetup } from 'codemirror';
@@ -332,7 +331,7 @@ export default defineComponent({
332331
/** Get CodeMirror Extension */
333332
const extensions: ComputedRef<Extension[]> = computed(() =>
334333
// TODO: Ignore previous prop was not changed.
335-
compact([
334+
compact<Extension>([
336335
// Toggle basic setup
337336
props.basic ? basicSetup : undefined,
338337
// Toggle minimal setup

vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ export default defineConfig(async ({ mode, command }): Promise<UserConfig> => {
9494
? undefined
9595
: [
9696
'vue',
97-
'lodash/compact',
98-
'lodash/trim',
97+
'lodash',
9998
'vue-demi',
10099
'codemirror',
101100
'@codemirror/autocomplete',
@@ -122,8 +121,7 @@ export default defineConfig(async ({ mode, command }): Promise<UserConfig> => {
122121
'@codemirror/state': 'state',
123122
'@codemirror/view': 'view',
124123
'vue-demi': 'VueDemi',
125-
'lodash/compact': 'compact',
126-
'lodash/trim': 'trim',
124+
lodash: 'lodash',
127125
vue: 'Vue',
128126
},
129127
manualChunks:

yarn.lock

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,9 +2110,9 @@ __metadata:
21102110
languageName: node
21112111
linkType: hard
21122112

2113-
"eslint-plugin-import@npm:^2.27.2":
2114-
version: 2.27.2
2115-
resolution: "eslint-plugin-import@npm:2.27.2"
2113+
"eslint-plugin-import@npm:^2.27.4":
2114+
version: 2.27.4
2115+
resolution: "eslint-plugin-import@npm:2.27.4"
21162116
dependencies:
21172117
array-includes: ^3.1.6
21182118
array.prototype.flat: ^1.3.1
@@ -2127,10 +2127,11 @@ __metadata:
21272127
minimatch: ^3.1.2
21282128
object.values: ^1.1.6
21292129
resolve: ^1.22.1
2130+
semver: ^6.3.0
21302131
tsconfig-paths: ^3.14.1
21312132
peerDependencies:
21322133
eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
2133-
checksum: 246f6bf54a7e2070b18471a38a8e1d085f745679eb893e4e5baf95272f5156ebddd88e611f757ceb3793ae170f56bc6de60b4fe320183d62aa23e58ff248b141
2134+
checksum: e298a9b1fde6d86737520c7da1d851d1facbf1883e29eddfd374a813eb05a647108c072d5c852b6bf535886c435a419f2fee1d6ae3a324d6f7877d957a796e37
21342135
languageName: node
21352136
linkType: hard
21362137

@@ -2176,9 +2177,9 @@ __metadata:
21762177
languageName: node
21772178
linkType: hard
21782179

2179-
"eslint-plugin-vue@npm:^9.8.0":
2180-
version: 9.8.0
2181-
resolution: "eslint-plugin-vue@npm:9.8.0"
2180+
"eslint-plugin-vue@npm:^9.9.0":
2181+
version: 9.9.0
2182+
resolution: "eslint-plugin-vue@npm:9.9.0"
21822183
dependencies:
21832184
eslint-utils: ^3.0.0
21842185
natural-compare: ^1.4.0
@@ -2189,7 +2190,7 @@ __metadata:
21892190
xml-name-validator: ^4.0.0
21902191
peerDependencies:
21912192
eslint: ^6.2.0 || ^7.0.0 || ^8.0.0
2192-
checksum: f3fc36512fa124a81332e353b161a84dd7b55ae07c69c0e9eabc85d56fdc2940422e1f33172d90af0f7913fc5cd25cfc7dfe025db37311d15a2ba5ea486b7602
2193+
checksum: 059f9c1915504d074adf64bc3371d1e174f8844088d0e08800c958cbef09d7fdf2a0a949634187231645435a1ef31595c8c81f441000ec43589bb58a1282fe3c
21932194
languageName: node
21942195
linkType: hard
21952196

@@ -4317,6 +4318,15 @@ __metadata:
43174318
languageName: node
43184319
linkType: hard
43194320

4321+
"rimraf@npm:^4.0.4":
4322+
version: 4.0.4
4323+
resolution: "rimraf@npm:4.0.4"
4324+
bin:
4325+
rimraf: dist/cjs/src/bin.js
4326+
checksum: a3296ea15c79fe3da0bae06a484dd8b8ec1e6d3044b02f05ce27575ef23c856e37eef6e71a668ce0e263da594a05ace1e88be6f42200f1fbbf433b57121bae32
4327+
languageName: node
4328+
linkType: hard
4329+
43204330
"rollup-plugin-visualizer@npm:^5.9.0":
43214331
version: 5.9.0
43224332
resolution: "rollup-plugin-visualizer@npm:5.9.0"
@@ -4402,6 +4412,15 @@ __metadata:
44024412
languageName: node
44034413
linkType: hard
44044414

4415+
"semver@npm:^6.3.0":
4416+
version: 6.3.0
4417+
resolution: "semver@npm:6.3.0"
4418+
bin:
4419+
semver: ./bin/semver.js
4420+
checksum: 1b26ecf6db9e8292dd90df4e781d91875c0dcc1b1909e70f5d12959a23c7eebb8f01ea581c00783bbee72ceeaad9505797c381756326073850dc36ed284b21b9
4421+
languageName: node
4422+
linkType: hard
4423+
44054424
"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.7, semver@npm:^7.3.8":
44064425
version: 7.3.8
44074426
resolution: "semver@npm:7.3.8"
@@ -5169,19 +5188,19 @@ __metadata:
51695188
eslint-import-resolver-typescript: ^3.5.3
51705189
eslint-linter-browserify: ^8.31.0
51715190
eslint-plugin-html: ^7.1.0
5172-
eslint-plugin-import: ^2.27.2
5191+
eslint-plugin-import: ^2.27.4
51735192
eslint-plugin-jsdoc: ^39.6.4
51745193
eslint-plugin-prettier: ^4.2.1
51755194
eslint-plugin-tsdoc: ^0.2.17
5176-
eslint-plugin-vue: ^9.8.0
5195+
eslint-plugin-vue: ^9.9.0
51775196
eslint-plugin-vuejs-accessibility: ^2.0.0
51785197
eslint-plugin-yaml: ^0.5.0
51795198
husky: ^8.0.3
51805199
lint-staged: ^13.1.0
51815200
lodash: ^4.17.21
51825201
npm-run-all: ^4.1.5
51835202
prettier: ^2.8.2
5184-
rimraf: ^3.0.2
5203+
rimraf: ^4.0.4
51855204
rollup-plugin-visualizer: ^5.9.0
51865205
typescript: ^4.9.4
51875206
vite: ^4.0.4

0 commit comments

Comments
 (0)