perf: update deps to latest

This commit is contained in:
pengzhanbo 2025-10-16 02:01:56 +08:00
parent d30325dd96
commit 74b4ddf8f5
9 changed files with 1214 additions and 1017 deletions

View File

@ -40,7 +40,7 @@
"sort-package-json": "catalog:prod" "sort-package-json": "catalog:prod"
}, },
"plume-deps": { "plume-deps": {
"vuepress": "2.0.0-rc.24", "vuepress": "2.0.0-rc.26",
"vue": "^3.5.22", "vue": "^3.5.22",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"typescript": "^5.9.3" "typescript": "^5.9.3"

View File

@ -10,7 +10,12 @@ export const theme: Theme = plumeTheme({
changelog: { maxCount: 10 }, changelog: { maxCount: 10 },
contributors: { mode: 'block' }, contributors: { mode: 'block' },
search: { provider: 'local' }, search: {
provider: 'algolia',
appId: 'KRJOJ00KBL',
apiKey: '3f3b13613235873fbcbc9d304de18126',
indexName: 'pengzhanbo',
},
codeHighlighter: { codeHighlighter: {
twoslash: true, twoslash: true,

View File

@ -3,7 +3,7 @@
"type": "module", "type": "module",
"version": "1.0.0-rc.171", "version": "1.0.0-rc.171",
"private": true, "private": true,
"packageManager": "pnpm@10.18.1", "packageManager": "pnpm@10.18.3",
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)", "author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [

View File

@ -103,7 +103,6 @@
"markdown-it-container": "catalog:prod", "markdown-it-container": "catalog:prod",
"nanoid": "catalog:prod", "nanoid": "catalog:prod",
"shiki": "catalog:prod", "shiki": "catalog:prod",
"tinyglobby": "catalog:prod",
"tm-grammars": "catalog:prod", "tm-grammars": "catalog:prod",
"tm-themes": "catalog:prod", "tm-themes": "catalog:prod",
"vue": "catalog:prod" "vue": "catalog:prod"

View File

@ -21,8 +21,8 @@ import type { CodeTreeOptions } from '../../shared/codeTree.js'
import type { FileTreeIconMode } from '../../shared/fileTree.js' import type { FileTreeIconMode } from '../../shared/fileTree.js'
import type { FileTreeNodeProps } from './fileTree.js' import type { FileTreeNodeProps } from './fileTree.js'
import path from 'node:path' import path from 'node:path'
import { globSync } from 'tinyglobby'
import { removeLeadingSlash } from 'vuepress/shared' import { removeLeadingSlash } from 'vuepress/shared'
import { tinyglobby } from 'vuepress/utils'
import { findFile, readFileSync } from '../demo/supports/file.js' import { findFile, readFileSync } from '../demo/supports/file.js'
import { createEmbedRuleBlock } from '../embed/createEmbedRuleBlock.js' import { createEmbedRuleBlock } from '../embed/createEmbedRuleBlock.js'
import { defaultFile, defaultFolder, getFileIcon } from '../fileIcons/index.js' import { defaultFile, defaultFolder, getFileIcon } from '../fileIcons/index.js'
@ -217,7 +217,7 @@ export function codeTreePlugin(md: Markdown, app: App, options: CodeTreeOptions
const codeTreeFiles = ((env as any).codeTreeFiles ??= []) as string[] const codeTreeFiles = ((env as any).codeTreeFiles ??= []) as string[]
const root = findFile(app, env, dir) const root = findFile(app, env, dir)
// 获取目录下所有文件 // 获取目录下所有文件
const files = globSync('**/*', { const files = tinyglobby.globSync('**/*', {
cwd: root, cwd: root,
onlyFiles: true, onlyFiles: true,
dot: true, dot: true,

2106
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,8 @@ packages:
overrides: overrides:
'@bufbuild/protobuf': ^2.9.0 '@bufbuild/protobuf': ^2.9.0
'@typescript-eslint/utils': ^8.46.0 '@typescript-eslint/utils': ^8.46.1
esbuild: ^0.25.10 esbuild: ^0.25.11
sass-embedded: ^1.93.2 sass-embedded: ^1.93.2
patchedDependencies: patchedDependencies:
@ -28,7 +28,7 @@ catalogs:
'@types/lodash.merge': ^4.6.9 '@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.7.0 '@types/node': ^24.7.2
'@types/picomatch': ^4.0.2 '@types/picomatch': ^4.0.2
'@types/stylus': ^0.48.43 '@types/stylus': ^0.48.43
'@types/webpack-env': ^1.18.8 '@types/webpack-env': ^1.18.8
@ -43,7 +43,7 @@ catalogs:
http-server: ^14.1.1 http-server: ^14.1.1
husky: ^9.1.7 husky: ^9.1.7
less: ^4.4.2 less: ^4.4.2
lint-staged: ^16.2.3 lint-staged: ^16.2.4
markdown-it: ^14.1.0 markdown-it: ^14.1.0
memfs: ^4.49.0 memfs: ^4.49.0
mermaid: ^11.12.0 mermaid: ^11.12.0
@ -53,13 +53,13 @@ catalogs:
stylelint: ^16.25.0 stylelint: ^16.25.0
stylus: ^0.64.0 stylus: ^0.64.0
tsconfig-vuepress: ^7.0.0 tsconfig-vuepress: ^7.0.0
tsdown: ^0.15.6 tsdown: ^0.15.7
typescript: ^5.9.3 typescript: ^5.9.3
vitest: ^3.2.4 vitest: ^3.2.4
vue-router: ^4.5.1 vue-router: ^4.6.2
wait-on: ^9.0.1 wait-on: ^9.0.1
peer: peer:
'@iconify/json': ^2.2.393 '@iconify/json': ^2.2.395
artplayer: ^5.3.0 artplayer: ^5.3.0
dashjs: ^5.0.3 dashjs: ^5.0.3
hls.js: ^1.6.13 hls.js: ^1.6.13
@ -85,18 +85,18 @@ catalogs:
'@vueuse/integrations': ^13.9.0 '@vueuse/integrations': ^13.9.0
bcrypt-ts: ^7.1.0 bcrypt-ts: ^7.1.0
cac: ^6.7.14 cac: ^6.7.14
chart.js: ^4.5.0 chart.js: ^4.5.1
chokidar: 4.0.3 chokidar: 4.0.3
dayjs: ^1.11.18 dayjs: ^1.11.18
echarts: ^6.0.0 echarts: ^6.0.0
esbuild: ^0.25.10 esbuild: ^0.25.11
flowchart.ts: ^3.0.1 flowchart.ts: ^3.0.1
focus-trap: ^7.6.5 focus-trap: ^7.6.5
gray-matter: ^4.0.3 gray-matter: ^4.0.3
handlebars: ^4.7.8 handlebars: ^4.7.8
image-size: ^2.0.2 image-size: ^2.0.2
js-yaml: ^4.1.0 js-yaml: ^4.1.0
katex: ^0.16.23 katex: ^0.16.25
local-pkg: ^1.1.2 local-pkg: ^1.1.2
lru-cache: ^11.2.2 lru-cache: ^11.2.2
mark.js: ^8.11.1 mark.js: ^8.11.1
@ -105,43 +105,42 @@ catalogs:
markmap-toolbar: ^0.18.12 markmap-toolbar: ^0.18.12
markmap-view: ^0.18.12 markmap-view: ^0.18.12
minisearch: ^7.2.0 minisearch: ^7.2.0
nano-spawn: ^1.0.3 nano-spawn: ^2.0.0
nanoid: ^5.1.6 nanoid: ^5.1.6
os-locale: ^6.0.2 os-locale: ^6.0.2
p-map: ^7.0.3 p-map: ^7.0.3
package-manager-detector: ^1.4.0 package-manager-detector: ^1.4.1
picocolors: ^1.1.1 picocolors: ^1.1.1
picomatch: ^4.0.3 picomatch: ^4.0.3
shiki: ^3.13.0 shiki: ^3.13.0
sort-package-json: ^3.4.0 sort-package-json: ^3.4.0
tinyglobby: ^0.2.15 tm-grammars: ^1.24.22
tm-grammars: ^1.24.17 tm-themes: ^1.10.11
tm-themes: ^1.10.9
vue: ^3.5.22 vue: ^3.5.22
vuepress: vuepress:
'@vuepress/bundler-vite': 2.0.0-rc.24 '@vuepress/bundler-vite': 2.0.0-rc.26
'@vuepress/helper': 2.0.0-rc.112 '@vuepress/helper': 2.0.0-rc.114
'@vuepress/plugin-cache': 2.0.0-rc.112 '@vuepress/plugin-cache': 2.0.0-rc.114
'@vuepress/plugin-comment': 2.0.0-rc.112 '@vuepress/plugin-comment': 2.0.0-rc.114
'@vuepress/plugin-copy-code': 2.0.0-rc.112 '@vuepress/plugin-copy-code': 2.0.0-rc.114
'@vuepress/plugin-docsearch': 2.0.0-rc.112 '@vuepress/plugin-docsearch': 2.0.0-rc.114
'@vuepress/plugin-git': 2.0.0-rc.112 '@vuepress/plugin-git': 2.0.0-rc.114
'@vuepress/plugin-llms': 2.0.0-rc.112 '@vuepress/plugin-llms': 2.0.0-rc.114
'@vuepress/plugin-markdown-chart': 2.0.0-rc.112 '@vuepress/plugin-markdown-chart': 2.0.0-rc.114
'@vuepress/plugin-markdown-hint': 2.0.0-rc.112 '@vuepress/plugin-markdown-hint': 2.0.0-rc.114
'@vuepress/plugin-markdown-image': 2.0.0-rc.112 '@vuepress/plugin-markdown-image': 2.0.0-rc.114
'@vuepress/plugin-markdown-include': 2.0.0-rc.112 '@vuepress/plugin-markdown-include': 2.0.0-rc.114
'@vuepress/plugin-markdown-math': 2.0.0-rc.112 '@vuepress/plugin-markdown-math': 2.0.0-rc.114
'@vuepress/plugin-nprogress': 2.0.0-rc.112 '@vuepress/plugin-nprogress': 2.0.0-rc.114
'@vuepress/plugin-photo-swipe': 2.0.0-rc.112 '@vuepress/plugin-photo-swipe': 2.0.0-rc.114
'@vuepress/plugin-reading-time': 2.0.0-rc.112 '@vuepress/plugin-reading-time': 2.0.0-rc.114
'@vuepress/plugin-replace-assets': 2.0.0-rc.112 '@vuepress/plugin-replace-assets': 2.0.0-rc.114
'@vuepress/plugin-seo': 2.0.0-rc.112 '@vuepress/plugin-seo': 2.0.0-rc.114
'@vuepress/plugin-shiki': 2.0.0-rc.112 '@vuepress/plugin-shiki': 2.0.0-rc.114
'@vuepress/plugin-sitemap': 2.0.0-rc.112 '@vuepress/plugin-sitemap': 2.0.0-rc.114
'@vuepress/plugin-watermark': 2.0.0-rc.112 '@vuepress/plugin-watermark': 2.0.0-rc.114
'@vuepress/shiki-twoslash': 2.0.0-rc.112 '@vuepress/shiki-twoslash': 2.0.0-rc.114
vuepress: 2.0.0-rc.24 vuepress: 2.0.0-rc.26
onlyBuiltDependencies: onlyBuiltDependencies:
- '@parcel/watcher' - '@parcel/watcher'
- core-js - core-js

View File

@ -49,6 +49,8 @@
padding: 0; padding: 0;
margin: 0; margin: 0;
background: var(--docsearch-searchbox-background); background: var(--docsearch-searchbox-background);
border: none;
border-radius: 100%;
transition: border-color var(--vp-t-color), background var(--vp-t-color); transition: border-color var(--vp-t-color), background var(--vp-t-color);
} }
@ -89,7 +91,7 @@
.DocSearch-Button .DocSearch-Button-Placeholder { .DocSearch-Button .DocSearch-Button-Placeholder {
display: none; display: none;
padding: 0 16px 0 0; padding: 0 8px 0 0;
margin-top: 2px; margin-top: 2px;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
@ -104,6 +106,7 @@
.DocSearch-Button .DocSearch-Button-Keys { .DocSearch-Button .DocSearch-Button-Keys {
display: none; display: none;
min-width: auto; min-width: auto;
background: transparent;
/* rtl:ignore */ /* rtl:ignore */
direction: ltr; direction: ltr;
@ -130,6 +133,12 @@
transition: color var(--vp-t-color), border-color var(--vp-t-color); transition: color var(--vp-t-color), border-color var(--vp-t-color);
} }
.DocSearch-Button .DocSearch-Button-Key {
font-size: 1px;
color: transparent;
letter-spacing: -12px;
}
.DocSearch-Button .DocSearch-Button-Key + .DocSearch-Button-Key { .DocSearch-Button .DocSearch-Button-Key + .DocSearch-Button-Key {
padding-right: 6px; padding-right: 6px;
padding-left: 2px; padding-left: 2px;
@ -142,12 +151,6 @@
/* rtl:end:ignore */ /* rtl:end:ignore */
} }
.DocSearch-Button .DocSearch-Button-Key:first-child {
font-size: 1px;
color: transparent;
letter-spacing: -12px;
}
.DocSearch-Button .DocSearch-Button-Key:first-child::after { .DocSearch-Button .DocSearch-Button-Key:first-child::after {
font-size: 12px; font-size: 12px;
color: var(--docsearch-muted-color); color: var(--docsearch-muted-color);
@ -155,9 +158,16 @@
content: "Ctrl"; content: "Ctrl";
} }
.DocSearch-Button .DocSearch-Button-Key:last-child::after {
font-size: 12px;
color: var(--docsearch-muted-color);
letter-spacing: normal;
content: "K";
}
/* remove box-shadow */ /* remove box-shadow */
.DocSearch-Button-Key--pressed { .DocSearch-Button-Key--pressed {
box-shadow: none; box-shadow: none !important;
transform: none; transform: none;
} }
@ -165,7 +175,7 @@
content: "⌘"; content: "⌘";
} }
.DocSearch-Button .DocSearch-Button-Key:first-child > * { .DocSearch-Button .DocSearch-Button-Key svg {
display: none; display: none;
} }
@ -214,7 +224,7 @@
@media (min-width: 768px) { @media (min-width: 768px) {
.vp-navbar-search .DocSearch-Button { .vp-navbar-search .DocSearch-Button {
justify-content: flex-start; justify-content: flex-start;
width: 100%; width: max-content;
height: 40px; height: 40px;
padding: 0 10px 0 12px; padding: 0 10px 0 12px;
background-color: var(--vp-c-bg-alt); background-color: var(--vp-c-bg-alt);

View File

@ -10,7 +10,7 @@ import { type FSWatcher, watch } from 'chokidar'
import matter from 'gray-matter' import matter from 'gray-matter'
import yaml from 'js-yaml' import yaml from 'js-yaml'
import pMap from 'p-map' import pMap from 'p-map'
import { fs, hash as getHash, globby, path } from 'vuepress/utils' import { fs, hash as getHash, path, tinyglobby } from 'vuepress/utils'
import { logger } from '../utils/index.js' import { logger } from '../utils/index.js'
import { createFilter } from './createFilter.js' import { createFilter } from './createFilter.js'
import { genAutoFrontmatterRules, getRules } from './rules.js' import { genAutoFrontmatterRules, getRules } from './rules.js'
@ -92,7 +92,7 @@ export async function generateFileListFrontmatter(app: App): Promise<void> {
genAutoFrontmatterRules() genAutoFrontmatterRules()
const rules = getRules() const rules = getRules()
const tasks: Task[] = [] const tasks: Task[] = []
const fileList = await globby(pagePatterns, { cwd }) const fileList = await tinyglobby.glob(pagePatterns, { cwd })
for (const filepath of fileList) { for (const filepath of fileList) {
const rule = findRule(rules, filepath) const rule = findRule(rules, filepath)