perf: update deps to latest

This commit is contained in:
pengzhanbo 2025-01-21 12:58:03 +08:00
parent 30d1c046ff
commit df306e78bc
13 changed files with 1281 additions and 837 deletions

View File

@ -40,7 +40,7 @@
"plume-deps": { "plume-deps": {
"vuepress": "2.0.0-rc.19", "vuepress": "2.0.0-rc.19",
"vue": "^3.5.13", "vue": "^3.5.13",
"sass-embedded": "^1.83.1", "sass-embedded": "^1.83.4",
"sass-loader": "^16.0.4", "sass-loader": "^16.0.4",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"typescript": "^5.7.2" "typescript": "^5.7.2"

View File

@ -163,9 +163,9 @@ app.listen(3000)
``` ```
```ts twoslash ```ts twoslash
import { getHighlighterCore } from 'shiki/core' import { createHighlighter } from 'shiki'
const highlighter = await getHighlighterCore({}) const highlighter = await createHighlighter({ themes: ['nord'], langs: ['javascript'] })
// @log: Custom log message // @log: Custom log message
const a = 1 const a = 1
// @error: Custom error message // @error: Custom error message

View File

@ -42,9 +42,9 @@ outline: [2, 4]
将鼠标悬停在 __变量____函数__ 上查看效果: 将鼠标悬停在 __变量____函数__ 上查看效果:
```ts twoslash ```ts twoslash
import { getHighlighterCore } from 'shiki/core' import { createHighlighter } from 'shiki'
const highlighter = await getHighlighterCore({}) const highlighter = await createHighlighter({ themes: ['nord'], langs: ['javascript'] })
// ^? // ^?
// //

View File

@ -20,8 +20,8 @@
"flowchart.ts": "^3.0.1", "flowchart.ts": "^3.0.1",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"mermaid": "^11.4.1", "mermaid": "^11.4.1",
"sass-embedded": "^1.83.1", "sass-embedded": "^1.83.4",
"swiper": "^11.2.0", "swiper": "^11.2.1",
"vue": "catalog:", "vue": "catalog:",
"vuepress-theme-plume": "workspace:*" "vuepress-theme-plume": "workspace:*"
}, },

View File

@ -3,7 +3,7 @@
"type": "module", "type": "module",
"version": "1.0.0-rc.128", "version": "1.0.0-rc.128",
"private": true, "private": true,
"packageManager": "pnpm@9.15.3", "packageManager": "pnpm@9.15.4",
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)", "author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
@ -42,35 +42,35 @@
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.6.1", "@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0", "@commitlint/config-conventional": "^19.6.0",
"@pengzhanbo/eslint-config-vue": "^1.22.1", "@pengzhanbo/eslint-config-vue": "^1.23.0",
"@pengzhanbo/stylelint-config": "^1.22.1", "@pengzhanbo/stylelint-config": "^1.23.0",
"@types/less": "^3.0.7", "@types/less": "^3.0.7",
"@types/lodash.merge": "^4.6.9", "@types/lodash.merge": "^4.6.9",
"@types/minimist": "^1.2.5", "@types/minimist": "^1.2.5",
"@types/node": "^22.10.5", "@types/node": "^22.10.7",
"@types/stylus": "^0.48.43", "@types/stylus": "^0.48.43",
"@types/webpack-env": "^1.18.5", "@types/webpack-env": "^1.18.5",
"@vitest/coverage-istanbul": "^2.1.8", "@vitest/coverage-istanbul": "^3.0.2",
"bumpp": "^9.10.0", "bumpp": "^9.10.1",
"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",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"eslint": "^9.17.0", "eslint": "^9.18.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"less": "^4.2.1", "less": "^4.2.2",
"lint-staged": "^15.3.0", "lint-staged": "^15.4.1",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"memfs": "^4.17.0", "memfs": "^4.17.0",
"minimist": "^1.2.8", "minimist": "^1.2.8",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"stylelint": "^16.12.0", "stylelint": "^16.13.2",
"stylus": "^0.64.0", "stylus": "^0.64.0",
"tsconfig-vuepress": "^5.2.1", "tsconfig-vuepress": "^5.2.1",
"tsup": "^8.3.5", "tsup": "^8.3.5",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"vitest": "^2.1.8", "vitest": "^3.0.2",
"wait-on": "^8.0.2" "wait-on": "^8.0.2"
}, },
"resolutions": { "resolutions": {

View File

@ -70,13 +70,13 @@
} }
}, },
"dependencies": { "dependencies": {
"@mdit/plugin-attrs": "^0.14.0", "@mdit/plugin-attrs": "^0.16.2",
"@mdit/plugin-footnote": "^0.14.0", "@mdit/plugin-footnote": "^0.16.0",
"@mdit/plugin-mark": "^0.14.0", "@mdit/plugin-mark": "^0.16.0",
"@mdit/plugin-sub": "^0.14.0", "@mdit/plugin-sub": "^0.16.0",
"@mdit/plugin-sup": "^0.14.0", "@mdit/plugin-sup": "^0.16.0",
"@mdit/plugin-tab": "^0.14.0", "@mdit/plugin-tab": "^0.16.0",
"@mdit/plugin-tasklist": "^0.14.0", "@mdit/plugin-tasklist": "^0.16.0",
"@vuepress/helper": "catalog:", "@vuepress/helper": "catalog:",
"@vueuse/core": "catalog:", "@vueuse/core": "catalog:",
"chokidar": "catalog:", "chokidar": "catalog:",
@ -85,16 +85,16 @@
"lru-cache": "^11.0.2", "lru-cache": "^11.0.2",
"markdown-it-container": "^4.0.0", "markdown-it-container": "^4.0.0",
"nanoid": "catalog:", "nanoid": "catalog:",
"shiki": "^1.26.1", "shiki": "^2.0.3",
"tm-grammars": "^1.22.3", "tm-grammars": "^1.22.9",
"tm-themes": "^1.9.8", "tm-themes": "^1.9.8",
"vue": "catalog:" "vue": "catalog:"
}, },
"devDependencies": { "devDependencies": {
"@types/markdown-it": "^14.1.2", "@types/markdown-it": "^14.1.2",
"artplayer": "^5.2.1", "artplayer": "^5.2.2",
"dashjs": "^4.7.4", "dashjs": "^4.7.4",
"hls.js": "^1.5.18", "hls.js": "^1.5.19",
"mpegts.js": "1.7.3" "mpegts.js": "1.7.3"
}, },
"publishConfig": { "publishConfig": {

View File

@ -44,7 +44,7 @@
"@vueuse/core": "catalog:", "@vueuse/core": "catalog:",
"@vueuse/integrations": "catalog:", "@vueuse/integrations": "catalog:",
"chokidar": "catalog:", "chokidar": "catalog:",
"focus-trap": "^7.6.2", "focus-trap": "^7.6.4",
"mark.js": "^8.11.1", "mark.js": "^8.11.1",
"minisearch": "^7.1.1", "minisearch": "^7.1.1",
"p-map": "^7.0.3", "p-map": "^7.0.3",

View File

@ -36,8 +36,8 @@
"vuepress": "catalog:" "vuepress": "catalog:"
}, },
"dependencies": { "dependencies": {
"@shikijs/transformers": "^1.26.1", "@shikijs/transformers": "^2.0.3",
"@shikijs/twoslash": "^1.26.1", "@shikijs/twoslash": "^2.0.3",
"@types/hast": "^3.0.4", "@types/hast": "^3.0.4",
"@vuepress/helper": "catalog:", "@vuepress/helper": "catalog:",
"@vueuse/core": "catalog:", "@vueuse/core": "catalog:",
@ -47,7 +47,7 @@
"mdast-util-gfm": "^3.0.0", "mdast-util-gfm": "^3.0.0",
"mdast-util-to-hast": "^13.2.0", "mdast-util-to-hast": "^13.2.0",
"nanoid": "catalog:", "nanoid": "catalog:",
"shiki": "^1.26.1", "shiki": "^2.0.3",
"twoslash": "^0.2.12", "twoslash": "^0.2.12",
"twoslash-vue": "^0.2.12" "twoslash-vue": "^0.2.12"
}, },

View File

@ -22,14 +22,23 @@ import { attrsToLines, resolveWhitespacePosition } from '../utils/index.js'
const decorationsRE = /^\/\/ @decorations:(.*)\n/ const decorationsRE = /^\/\/ @decorations:(.*)\n/
export const baseTransformers: ShikiTransformer[] = [ export const baseTransformers: ShikiTransformer[] = [
transformerNotationDiff(), transformerNotationDiff({
matchAlgorithm: 'v3',
}),
transformerNotationFocus({ transformerNotationFocus({
matchAlgorithm: 'v3',
classActiveLine: 'has-focus', classActiveLine: 'has-focus',
classActivePre: 'has-focused-lines', classActivePre: 'has-focused-lines',
}), }),
transformerNotationHighlight(), transformerNotationHighlight({
transformerNotationErrorLevel(), matchAlgorithm: 'v3',
transformerNotationWordHighlight(), }),
transformerNotationErrorLevel({
matchAlgorithm: 'v3',
}),
transformerNotationWordHighlight({
matchAlgorithm: 'v3',
}),
{ {
name: 'vuepress:add-class', name: 'vuepress:add-class',
pre(node) { pre(node) {

1994
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -4,25 +4,25 @@ packages:
- cli - cli
- plugins/* - plugins/*
catalog: catalog:
'@iconify/json': ^2.2.293 '@iconify/json': ^2.2.298
'@vuepress/bundler-vite': 2.0.0-rc.19 '@vuepress/bundler-vite': 2.0.0-rc.19
'@vuepress/helper': 2.0.0-rc.69 '@vuepress/helper': 2.0.0-rc.73
'@vuepress/plugin-cache': 2.0.0-rc.66 '@vuepress/plugin-cache': 2.0.0-rc.66
'@vuepress/plugin-comment': 2.0.0-rc.69 '@vuepress/plugin-comment': 2.0.0-rc.73
'@vuepress/plugin-docsearch': 2.0.0-rc.69 '@vuepress/plugin-docsearch': 2.0.0-rc.73
'@vuepress/plugin-git': 2.0.0-rc.68 '@vuepress/plugin-git': 2.0.0-rc.68
'@vuepress/plugin-markdown-hint': 2.0.0-rc.69 '@vuepress/plugin-markdown-hint': 2.0.0-rc.73
'@vuepress/plugin-markdown-image': 2.0.0-rc.69 '@vuepress/plugin-markdown-image': 2.0.0-rc.73
'@vuepress/plugin-markdown-include': 2.0.0-rc.69 '@vuepress/plugin-markdown-include': 2.0.0-rc.73
'@vuepress/plugin-markdown-math': 2.0.0-rc.69 '@vuepress/plugin-markdown-math': 2.0.0-rc.73
'@vuepress/plugin-nprogress': 2.0.0-rc.69 '@vuepress/plugin-nprogress': 2.0.0-rc.73
'@vuepress/plugin-photo-swipe': 2.0.0-rc.69 '@vuepress/plugin-photo-swipe': 2.0.0-rc.73
'@vuepress/plugin-reading-time': 2.0.0-rc.69 '@vuepress/plugin-reading-time': 2.0.0-rc.73
'@vuepress/plugin-seo': 2.0.0-rc.69 '@vuepress/plugin-seo': 2.0.0-rc.73
'@vuepress/plugin-sitemap': 2.0.0-rc.69 '@vuepress/plugin-sitemap': 2.0.0-rc.73
'@vuepress/plugin-watermark': 2.0.0-rc.69 '@vuepress/plugin-watermark': 2.0.0-rc.73
'@vueuse/core': ^12.3.0 '@vueuse/core': ^12.4.0
'@vueuse/integrations': ^12.3.0 '@vueuse/integrations': ^12.4.0
chokidar: 3.6.0 chokidar: 3.6.0
fast-glob: ^3.3.3 fast-glob: ^3.3.3
gray-matter: ^4.0.3 gray-matter: ^4.0.3

View File

@ -122,16 +122,16 @@
"fast-glob": "catalog:", "fast-glob": "catalog:",
"gray-matter": "catalog:", "gray-matter": "catalog:",
"json2yaml": "catalog:", "json2yaml": "catalog:",
"katex": "^0.16.19", "katex": "^0.16.21",
"local-pkg": "catalog:", "local-pkg": "catalog:",
"nanoid": "catalog:", "nanoid": "catalog:",
"vue": "catalog:", "vue": "catalog:",
"vuepress-plugin-md-enhance": "2.0.0-rc.67", "vuepress-plugin-md-enhance": "2.0.0-rc.69",
"vuepress-plugin-md-power": "workspace:*" "vuepress-plugin-md-power": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@iconify/json": "catalog:", "@iconify/json": "catalog:",
"swiper": "^11.2.0", "swiper": "^11.2.1",
"vue-router": "^4.5.0" "vue-router": "^4.5.0"
} }
} }

View File

@ -13,7 +13,8 @@ const { datetime, lastUpdatedText } = useLastUpdated()
const list = computed(() => { const list = computed(() => {
const list = page.value.git?.changelog || [] const list = page.value.git?.changelog || []
const formatter = new Intl.DateTimeFormat(lang.value, { dateStyle: 'short' }) const formatter = new Intl.DateTimeFormat(lang.value, { dateStyle: 'short' })
return list.map(({ date, ...item }) => { // TODO: plugin-git
return [...list].reverse().map(({ date, ...item }) => {
const datetime = formatter.format(date) const datetime = formatter.format(date)
return { datetime, ...item } return { datetime, ...item }
}) })