From f9446304b3cd9c88fd3810c5b934f00fc4302ade Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 6 Apr 2026 11:57:31 +0300 Subject: [PATCH] refactor(ckeditor5-mermaid): switch to es-toolkit --- packages/ckeditor5-mermaid/package.json | 3 +-- .../ckeditor5-mermaid/src/mermaidediting.ts | 2 +- pnpm-lock.yaml | 21 +++---------------- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/packages/ckeditor5-mermaid/package.json b/packages/ckeditor5-mermaid/package.json index 84ff9fa1d1..bae41f26fa 100644 --- a/packages/ckeditor5-mermaid/package.json +++ b/packages/ckeditor5-mermaid/package.json @@ -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" } } diff --git a/packages/ckeditor5-mermaid/src/mermaidediting.ts b/packages/ckeditor5-mermaid/src/mermaidediting.ts index 1c8470c0f4..0d9939a273 100644 --- a/packages/ckeditor5-mermaid/src/mermaidediting.ts +++ b/packages/ckeditor5-mermaid/src/mermaidediting.ts @@ -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'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb9fecb6e5..bc709a0603 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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': {}