perf: update deps to latest

This commit is contained in:
pengzhanbo 2025-12-01 11:37:01 +08:00
parent db8a46eb4c
commit 3a907e0ba8
8 changed files with 889 additions and 968 deletions

View File

@ -5,6 +5,7 @@ config:
- -
type: hero type: hero
full: true full: true
forceDark: true
effect: lightning effect: lightning
hero: hero:
name: Theme Plume name: Theme Plume

View File

@ -5,6 +5,7 @@ config:
- -
type: hero type: hero
full: true full: true
forceDark: true
effect: lightning effect: lightning
hero: hero:
name: Theme Plume name: Theme Plume

View File

@ -3,7 +3,7 @@
"type": "module", "type": "module",
"version": "1.0.0-rc.179", "version": "1.0.0-rc.179",
"private": true, "private": true,
"packageManager": "pnpm@10.23.0", "packageManager": "pnpm@10.24.0",
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)", "author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
@ -14,7 +14,7 @@
"vuepress-theme-plume" "vuepress-theme-plume"
], ],
"engines": { "engines": {
"node": "^20.9.0 || >=22.1.0", "node": "^20.19.0 || >=22.1.0",
"pnpm": ">=9" "pnpm": ">=9"
}, },
"scripts": { "scripts": {
@ -47,7 +47,6 @@
"@pengzhanbo/stylelint-config": "catalog:dev", "@pengzhanbo/stylelint-config": "catalog:dev",
"@types/js-yaml": "catalog:dev", "@types/js-yaml": "catalog:dev",
"@types/less": "catalog:dev", "@types/less": "catalog:dev",
"@types/lodash.merge": "catalog:dev",
"@types/minimist": "catalog:dev", "@types/minimist": "catalog:dev",
"@types/node": "catalog:dev", "@types/node": "catalog:dev",
"@types/picomatch": "catalog:dev", "@types/picomatch": "catalog:dev",

1752
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,7 @@ packages:
overrides: overrides:
'@bufbuild/protobuf': ^2.10.1 '@bufbuild/protobuf': ^2.10.1
'@typescript-eslint/utils': ^8.48.0 '@typescript-eslint/utils': ^8.48.0
chokidar: ^5.0.0
esbuild: ^0.27.0 esbuild: ^0.27.0
sass-embedded: ^1.93.3 sass-embedded: ^1.93.3
vue-router: ^4.6.3 vue-router: ^4.6.3
@ -19,13 +20,12 @@ catalogs:
'@commitlint/cli': ^20.1.0 '@commitlint/cli': ^20.1.0
'@commitlint/config-conventional': ^20.0.0 '@commitlint/config-conventional': ^20.0.0
'@lunariajs/core': ^0.1.1 '@lunariajs/core': ^0.1.1
'@pengzhanbo/eslint-config-vue': ^1.41.0 '@pengzhanbo/eslint-config-vue': ^1.43.0
'@pengzhanbo/stylelint-config': ^1.41.0 '@pengzhanbo/stylelint-config': ^1.43.0
'@simonwep/pickr': ^1.9.1 '@simonwep/pickr': ^1.9.1
'@types/express': ^5.0.5 '@types/express': ^5.0.5
'@types/js-yaml': ^4.0.9 '@types/js-yaml': ^4.0.9
'@types/less': ^3.0.8 '@types/less': ^3.0.8
'@types/lodash.merge': ^4.6.9
'@types/markdown-it': ^14.1.2 '@types/markdown-it': ^14.1.2
'@types/minimist': ^1.2.5 '@types/minimist': ^1.2.5
'@types/node': ^24.10.1 '@types/node': ^24.10.1
@ -34,7 +34,7 @@ catalogs:
'@types/three': ^0.181.0 '@types/three': ^0.181.0
'@types/webpack-env': ^1.18.8 '@types/webpack-env': ^1.18.8
'@vitest/coverage-istanbul': ^4.0.14 '@vitest/coverage-istanbul': ^4.0.14
bumpp: ^10.3.1 bumpp: ^10.3.2
commitizen: ^4.3.1 commitizen: ^4.3.1
conventional-changelog-cli: ^5.0.0 conventional-changelog-cli: ^5.0.0
cpx2: ^8.0.0 cpx2: ^8.0.0
@ -46,26 +46,26 @@ catalogs:
less: ^4.4.2 less: ^4.4.2
lint-staged: ^16.2.7 lint-staged: ^16.2.7
markdown-it: ^14.1.0 markdown-it: ^14.1.0
memfs: ^4.51.0 memfs: ^4.51.1
mermaid: ^11.12.1 mermaid: ^11.12.1
minimist: ^1.2.8 minimist: ^1.2.8
postcss: ^8.5.6 postcss: ^8.5.6
rimraf: ^6.1.2 rimraf: ^6.1.2
stylelint: ^16.26.0 stylelint: ^16.26.1
stylus: ^0.64.0 stylus: ^0.64.0
tsconfig-vuepress: ^7.0.0 tsconfig-vuepress: ^7.0.0
tsdown: ^0.16.7 tsdown: ^0.16.8
typescript: ^5.9.3 typescript: ^5.9.3
vitest: ^4.0.14 vitest: ^4.0.14
vue-router: ^4.6.3 vue-router: ^4.6.3
wait-on: ^9.0.3 wait-on: ^9.0.3
peer: peer:
'@iconify/json': ^2.2.410 '@iconify/json': ^2.2.412
'@mathjax/src': ^4.0.0
artplayer: ^5.3.0 artplayer: ^5.3.0
dashjs: ^5.1.0 dashjs: ^5.1.0
gsap: ^3.13.0 gsap: ^3.13.0
hls.js: ^1.6.15 hls.js: ^1.6.15
mathjax-full: ^3.2.2
mpegts.js: 1.7.3 mpegts.js: 1.7.3
ogl: ^1.0.11 ogl: ^1.0.11
postprocessing: ^6.38.0 postprocessing: ^6.38.0
@ -76,7 +76,7 @@ catalogs:
three: ^0.181.2 three: ^0.181.2
prod: prod:
'@clack/prompts': ^0.11.0 '@clack/prompts': ^0.11.0
'@iconify/utils': ^3.0.2 '@iconify/utils': ^3.1.0
'@iconify/vue': ^5.0.0 '@iconify/vue': ^5.0.0
'@mdit/plugin-attrs': ^0.23.3 '@mdit/plugin-attrs': ^0.23.3
'@mdit/plugin-footnote': ^0.22.3 '@mdit/plugin-footnote': ^0.22.3
@ -86,12 +86,12 @@ catalogs:
'@mdit/plugin-tab': ^0.22.3 '@mdit/plugin-tab': ^0.22.3
'@mdit/plugin-tasklist': ^0.22.2 '@mdit/plugin-tasklist': ^0.22.2
'@pengzhanbo/utils': ^2.1.2 '@pengzhanbo/utils': ^2.1.2
'@vueuse/core': ^14.0.0 '@vueuse/core': ^14.1.0
'@vueuse/integrations': ^14.0.0 '@vueuse/integrations': ^14.1.0
bcrypt-ts: ^7.1.0 bcrypt-ts: ^7.1.0
cac: ^6.7.14 cac: ^6.7.14
chart.js: ^4.5.1 chart.js: ^4.5.1
chokidar: 4.0.3 chokidar: 5.0.0
dayjs: ^1.11.19 dayjs: ^1.11.19
echarts: ^6.0.0 echarts: ^6.0.0
esbuild: ^0.27.0 esbuild: ^0.27.0
@ -103,7 +103,7 @@ catalogs:
js-yaml: ^4.1.1 js-yaml: ^4.1.1
katex: ^0.16.25 katex: ^0.16.25
local-pkg: ^1.1.2 local-pkg: ^1.1.2
lru-cache: ^11.2.2 lru-cache: ^11.2.4
mark.js: ^8.11.1 mark.js: ^8.11.1
markdown-it-container: ^4.0.0 markdown-it-container: ^4.0.0
markmap-lib: ^0.18.12 markmap-lib: ^0.18.12
@ -114,37 +114,37 @@ catalogs:
nanoid: ^5.1.6 nanoid: ^5.1.6
os-locale: ^6.0.2 os-locale: ^6.0.2
p-map: ^7.0.4 p-map: ^7.0.4
package-manager-detector: ^1.5.0 package-manager-detector: ^1.6.0
picocolors: ^1.1.1 picocolors: ^1.1.1
picomatch: ^4.0.3 picomatch: ^4.0.3
shiki: ^3.15.0 shiki: ^3.17.0
sort-package-json: ^3.4.0 sort-package-json: ^3.5.0
tm-grammars: ^1.25.3 tm-grammars: ^1.26.0
tm-themes: ^1.10.12 tm-themes: ^1.10.13
vue: ^3.5.25 vue: ^3.5.25
vuepress: vuepress:
'@vuepress/bundler-vite': 2.0.0-rc.26 '@vuepress/bundler-vite': 2.0.0-rc.26
'@vuepress/helper': 2.0.0-rc.118 '@vuepress/helper': 2.0.0-rc.120
'@vuepress/plugin-cache': 2.0.0-rc.118 '@vuepress/plugin-cache': 2.0.0-rc.118
'@vuepress/plugin-comment': 2.0.0-rc.118 '@vuepress/plugin-comment': 2.0.0-rc.120
'@vuepress/plugin-copy-code': 2.0.0-rc.118 '@vuepress/plugin-copy-code': 2.0.0-rc.120
'@vuepress/plugin-docsearch': 2.0.0-rc.118 '@vuepress/plugin-docsearch': 2.0.0-rc.120
'@vuepress/plugin-git': 2.0.0-rc.118 '@vuepress/plugin-git': 2.0.0-rc.120
'@vuepress/plugin-llms': 2.0.0-rc.118 '@vuepress/plugin-llms': 2.0.0-rc.120
'@vuepress/plugin-markdown-chart': 2.0.0-rc.118 '@vuepress/plugin-markdown-chart': 2.0.0-rc.120
'@vuepress/plugin-markdown-hint': 2.0.0-rc.118 '@vuepress/plugin-markdown-hint': 2.0.0-rc.120
'@vuepress/plugin-markdown-image': 2.0.0-rc.118 '@vuepress/plugin-markdown-image': 2.0.0-rc.120
'@vuepress/plugin-markdown-include': 2.0.0-rc.118 '@vuepress/plugin-markdown-include': 2.0.0-rc.120
'@vuepress/plugin-markdown-math': 2.0.0-rc.118 '@vuepress/plugin-markdown-math': 2.0.0-rc.120
'@vuepress/plugin-nprogress': 2.0.0-rc.118 '@vuepress/plugin-nprogress': 2.0.0-rc.120
'@vuepress/plugin-photo-swipe': 2.0.0-rc.118 '@vuepress/plugin-photo-swipe': 2.0.0-rc.120
'@vuepress/plugin-reading-time': 2.0.0-rc.118 '@vuepress/plugin-reading-time': 2.0.0-rc.120
'@vuepress/plugin-replace-assets': 2.0.0-rc.118 '@vuepress/plugin-replace-assets': 2.0.0-rc.120
'@vuepress/plugin-seo': 2.0.0-rc.118 '@vuepress/plugin-seo': 2.0.0-rc.120
'@vuepress/plugin-shiki': 2.0.0-rc.118 '@vuepress/plugin-shiki': 2.0.0-rc.120
'@vuepress/plugin-sitemap': 2.0.0-rc.118 '@vuepress/plugin-sitemap': 2.0.0-rc.120
'@vuepress/plugin-watermark': 2.0.0-rc.118 '@vuepress/plugin-watermark': 2.0.0-rc.120
'@vuepress/shiki-twoslash': 2.0.0-rc.118 '@vuepress/shiki-twoslash': 2.0.0-rc.120
vuepress: 2.0.0-rc.26 vuepress: 2.0.0-rc.26
onlyBuiltDependencies: onlyBuiltDependencies:
- '@parcel/watcher' - '@parcel/watcher'

View File

@ -54,7 +54,7 @@
"templates" "templates"
], ],
"engines": { "engines": {
"node": "^20.6.0 || >=22.0.0" "node": "^20.19.0 || >=22.0.0"
}, },
"scripts": { "scripts": {
"dev": "pnpm '/(copy|tsdown):watch/'", "dev": "pnpm '/(copy|tsdown):watch/'",
@ -67,9 +67,9 @@
}, },
"peerDependencies": { "peerDependencies": {
"@iconify/json": ">=2", "@iconify/json": ">=2",
"@mathjax/src": "catalog:peer",
"@vuepress/shiki-twoslash": "catalog:vuepress", "@vuepress/shiki-twoslash": "catalog:vuepress",
"gsap": "catalog:peer", "gsap": "catalog:peer",
"mathjax-full": "catalog:peer",
"ogl": "catalog:peer", "ogl": "catalog:peer",
"postprocessing": "catalog:peer", "postprocessing": "catalog:peer",
"swiper": "catalog:peer", "swiper": "catalog:peer",
@ -80,15 +80,15 @@
"@iconify/json": { "@iconify/json": {
"optional": true "optional": true
}, },
"@mathjax/src": {
"optional": true
},
"@vuepress/shiki-twoslash": { "@vuepress/shiki-twoslash": {
"optional": true "optional": true
}, },
"gsap": { "gsap": {
"optional": true "optional": true
}, },
"mathjax-full": {
"optional": true
},
"ogl": { "ogl": {
"optional": true "optional": true
}, },

View File

@ -9,9 +9,7 @@ import { isPackageExists } from 'local-pkg'
export function extendsBundlerOptions(bundlerOptions: any, app: App): void { export function extendsBundlerOptions(bundlerOptions: any, app: App): void {
addViteConfig(bundlerOptions, app, { addViteConfig(bundlerOptions, app, {
build: { build: { chunkSizeWarningLimit: 2048 },
chunkSizeWarningLimit: 2048,
},
}) })
addViteOptimizeDepsInclude( addViteOptimizeDepsInclude(

View File

@ -49,7 +49,11 @@ export function markdownPlugins(pluginOptions: ThemeBuiltinPlugins): PluginConfi
mdChart ??= pluginOptions.markdownChart mdChart ??= pluginOptions.markdownChart
if (mdChart) { if (mdChart) {
plugins.push(markdownChartPlugin(mdChart)) plugins.push(markdownChartPlugin({
DANGEROUS_ALLOW_SCRIPT_EXECUTION: true,
DANGEROUS_SCRIPT_EXECUTION_ALLOWLIST: '*',
...mdChart,
}))
} }
math ??= pluginOptions.markdownMath math ??= pluginOptions.markdownMath