build(deps): 用 es-toolkit 替换 lodash-es

- 移除 lodash-es 和 @types/lodash-es 依赖
- 添加 es-toolkit 依赖
This commit is contained in:
Vixalie
2025-08-06 21:56:35 +08:00
parent c0d8c4b21a
commit 35b18eab0f
2 changed files with 7 additions and 21 deletions

25
deno.lock generated
View File

@@ -15,13 +15,12 @@
"npm:@tauri-apps/plugin-opener@2": "2.4.0", "npm:@tauri-apps/plugin-opener@2": "2.4.0",
"npm:@tauri-apps/plugin-os@2.3": "2.3.0", "npm:@tauri-apps/plugin-os@2.3": "2.3.0",
"npm:@tauri-apps/plugin-store@2.3": "2.3.0", "npm:@tauri-apps/plugin-store@2.3": "2.3.0",
"npm:@types/lodash-es@^4.17.12": "4.17.12",
"npm:clsx@^2.1.1": "2.1.1", "npm:clsx@^2.1.1": "2.1.1",
"npm:dayjs@^1.11.13": "1.11.13", "npm:dayjs@^1.11.13": "1.11.13",
"npm:es-toolkit@^1.39.8": "1.39.8",
"npm:eslint-plugin-solid@~0.14.5": "0.14.5_eslint@9.31.0_typescript@5.8.3", "npm:eslint-plugin-solid@~0.14.5": "0.14.5_eslint@9.31.0_typescript@5.8.3",
"npm:eslint@^9.31.0": "9.31.0", "npm:eslint@^9.31.0": "9.31.0",
"npm:globals@^16.3.0": "16.3.0", "npm:globals@^16.3.0": "16.3.0",
"npm:lodash-es@^4.17.21": "4.17.21",
"npm:solid-js@^1.9.3": "1.9.7_seroval@1.3.2", "npm:solid-js@^1.9.3": "1.9.7_seroval@1.3.2",
"npm:tailwindcss@^4.1.11": "4.1.11", "npm:tailwindcss@^4.1.11": "4.1.11",
"npm:typescript-eslint@^8.38.0": "8.38.0_eslint@9.31.0_typescript@5.8.3_@typescript-eslint+parser@8.38.0__eslint@9.31.0__typescript@5.8.3", "npm:typescript-eslint@^8.38.0": "8.38.0_eslint@9.31.0_typescript@5.8.3_@typescript-eslint+parser@8.38.0__eslint@9.31.0__typescript@5.8.3",
@@ -1100,17 +1099,6 @@
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
"tarball": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz" "tarball": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz"
}, },
"@types/lodash-es@4.17.12": {
"integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
"dependencies": [
"@types/lodash"
],
"tarball": "https://registry.npmmirror.com/@types/lodash-es/-/lodash-es-4.17.12.tgz"
},
"@types/lodash@4.17.19": {
"integrity": "sha512-NYqRyg/hIQrYPT9lbOeYc3kIRabJDn/k4qQHIXUpx88CBDww2fD15Sg5kbXlW86zm2XEW4g0QxkTI3/Kfkc7xQ==",
"tarball": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.19.tgz"
},
"@typescript-eslint/eslint-plugin@8.38.0_@typescript-eslint+parser@8.38.0__eslint@9.31.0__typescript@5.8.3_eslint@9.31.0_typescript@5.8.3": { "@typescript-eslint/eslint-plugin@8.38.0_@typescript-eslint+parser@8.38.0__eslint@9.31.0__typescript@5.8.3_eslint@9.31.0_typescript@5.8.3": {
"integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==", "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==",
"dependencies": [ "dependencies": [
@@ -1469,6 +1457,10 @@
"integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
"tarball": "https://registry.npmmirror.com/entities/-/entities-6.0.1.tgz" "tarball": "https://registry.npmmirror.com/entities/-/entities-6.0.1.tgz"
}, },
"es-toolkit@1.39.8": {
"integrity": "sha512-A8QO9TfF+rltS8BXpdu8OS+rpGgEdnRhqIVxO/ZmNvnXBYgOdSsxukT55ELyP94gZIntWJ+Li9QRrT2u1Kitpg==",
"tarball": "https://registry.npmmirror.com/es-toolkit/-/es-toolkit-1.39.8.tgz"
},
"esbuild@0.25.5": { "esbuild@0.25.5": {
"integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==", "integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==",
"optionalDependencies": [ "optionalDependencies": [
@@ -1948,10 +1940,6 @@
], ],
"tarball": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz" "tarball": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz"
}, },
"lodash-es@4.17.21": {
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
"tarball": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz"
},
"lodash.merge@4.6.2": { "lodash.merge@4.6.2": {
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"tarball": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz" "tarball": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz"
@@ -2409,13 +2397,12 @@
"npm:@tauri-apps/plugin-opener@2", "npm:@tauri-apps/plugin-opener@2",
"npm:@tauri-apps/plugin-os@2.3", "npm:@tauri-apps/plugin-os@2.3",
"npm:@tauri-apps/plugin-store@2.3", "npm:@tauri-apps/plugin-store@2.3",
"npm:@types/lodash-es@^4.17.12",
"npm:clsx@^2.1.1", "npm:clsx@^2.1.1",
"npm:dayjs@^1.11.13", "npm:dayjs@^1.11.13",
"npm:es-toolkit@^1.39.8",
"npm:eslint-plugin-solid@~0.14.5", "npm:eslint-plugin-solid@~0.14.5",
"npm:eslint@^9.31.0", "npm:eslint@^9.31.0",
"npm:globals@^16.3.0", "npm:globals@^16.3.0",
"npm:lodash-es@^4.17.21",
"npm:solid-js@^1.9.3", "npm:solid-js@^1.9.3",
"npm:tailwindcss@^4.1.11", "npm:tailwindcss@^4.1.11",
"npm:typescript-eslint@^8.38.0", "npm:typescript-eslint@^8.38.0",

View File

@@ -25,7 +25,7 @@
"@tauri-apps/plugin-store": "~2.3.0", "@tauri-apps/plugin-store": "~2.3.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"lodash-es": "^4.17.21", "es-toolkit": "^1.39.8",
"solid-js": "^1.9.3", "solid-js": "^1.9.3",
"@tauri-apps/api": "^2", "@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2", "@tauri-apps/plugin-opener": "^2",
@@ -33,7 +33,6 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.31.0", "@eslint/js": "^9.31.0",
"@types/lodash-es": "^4.17.12",
"eslint": "^9.31.0", "eslint": "^9.31.0",
"eslint-plugin-solid": "^0.14.5", "eslint-plugin-solid": "^0.14.5",
"globals": "^16.3.0", "globals": "^16.3.0",