refactor(ckeditor5-mermaid): switch to es-toolkit

This commit is contained in:
Elian Doran
2026-04-06 11:57:31 +03:00
parent 606d58b08c
commit f9446304b3
3 changed files with 5 additions and 21 deletions

View File

@@ -45,7 +45,6 @@
"test:debug": "vitest --inspect-brk --no-file-parallelism --browser.headless=false"
},
"dependencies": {
"@types/lodash-es": "4.17.12",
"lodash-es": "4.18.1"
"es-toolkit": "^1.45.1"
}
}

View File

@@ -2,7 +2,7 @@
* @module mermaid/mermaidediting
*/
import { debounce } from 'lodash-es';
import { debounce } from 'es-toolkit/compat';
import MermaidPreviewCommand from './commands/mermaidPreviewCommand.js';
import MermaidSourceViewCommand from './commands/mermaidSourceViewCommand.js';

21
pnpm-lock.yaml generated
View File

@@ -1150,12 +1150,9 @@ importers:
packages/ckeditor5-mermaid:
dependencies:
'@types/lodash-es':
specifier: 4.17.12
version: 4.17.12
lodash-es:
specifier: 4.18.1
version: 4.18.1
es-toolkit:
specifier: ^1.45.1
version: 1.45.1
devDependencies:
'@ckeditor/ckeditor5-inspector':
specifier: '>=4.1.0'
@@ -5392,12 +5389,6 @@ packages:
'@types/leaflet@1.9.21':
resolution: {integrity: sha512-TbAd9DaPGSnzp6QvtYngntMZgcRk+igFELwR2N99XZn7RXUdKgsXMR+28bUO0rPsWp8MIu/f47luLIQuSLYv/w==}
'@types/lodash-es@4.17.12':
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
'@types/lodash@4.17.16':
resolution: {integrity: sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==}
'@types/luxon@3.6.2':
resolution: {integrity: sha512-R/BdP7OxEMc44l2Ex5lSXHoIXTB2JLNa3y2QISIbr58U/YcsffyQrYW//hZSdrfxrjRZj3GcUoxMPGdO8gSYuw==}
@@ -18986,12 +18977,6 @@ snapshots:
dependencies:
'@types/geojson': 7946.0.16
'@types/lodash-es@4.17.12':
dependencies:
'@types/lodash': 4.17.16
'@types/lodash@4.17.16': {}
'@types/luxon@3.6.2': {}
'@types/mapbox__point-geometry@0.1.4': {}