Skip to content

Commit 36bde80

Browse files
committed
chore: maintenance and cleanup
1 parent 42f7ee2 commit 36bde80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+631
-673
lines changed

__tests__/e2e/data-loading/basic.data.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs'
1+
import fs from 'node:fs'
22
import { defineLoader } from 'vitepress'
33

44
type Data = Record<string, boolean>[]

__tests__/e2e/vitestGlobalSetup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import getPort from 'get-port'
2+
import type { Server } from 'node:net'
23
import { chromium, type BrowserServer } from 'playwright-chromium'
3-
import { build, createServer, serve } from 'vitepress'
44
import type { ViteDevServer } from 'vite'
5-
import type { Server } from 'net'
5+
import { build, createServer, serve } from 'vitepress'
66

77
let browserServer: BrowserServer
88
let server: ViteDevServer | Server

__tests__/init/init.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import fs from 'fs-extra'
22
import getPort from 'get-port'
33
import { nanoid } from 'nanoid'
4-
import path from 'path'
4+
import path from 'node:path'
5+
import { fileURLToPath, URL } from 'node:url'
56
import { chromium } from 'playwright-chromium'
6-
import { fileURLToPath, URL } from 'url'
77
import { createServer, scaffold, ScaffoldThemeType } from 'vitepress'
88

99
const tempDir = fileURLToPath(new URL('./.temp', import.meta.url))

__tests__/unit/vitest.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { dirname, resolve } from 'path'
2-
import { fileURLToPath } from 'url'
3-
import { defineConfig } from 'vitest/config'
41
import vue from '@vitejs/plugin-vue'
2+
import { dirname, resolve } from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import { defineConfig } from 'vitest/config'
55

66
const dir = dirname(fileURLToPath(import.meta.url))
77

docs/.vitepress/config/shared.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { defineConfig } from 'vitepress'
2+
import {
3+
groupIconMdPlugin,
4+
groupIconVitePlugin,
5+
localIconLoader
6+
} from 'vitepress-plugin-group-icons'
27
import { search as esSearch } from './es'
38
import { search as faSearch } from './fa'
49
import { search as koSearch } from './ko'
510
import { search as ptSearch } from './pt'
611
import { search as ruSearch } from './ru'
712
import { search as zhSearch } from './zh'
8-
import {
9-
groupIconMdPlugin,
10-
groupIconVitePlugin,
11-
localIconLoader
12-
} from 'vitepress-plugin-group-icons'
1313

1414
export const shared = defineConfig({
1515
title: 'VitePress',

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"open-cli": "^8.0.0",
1616
"postcss-rtlcss": "^5.6.0",
1717
"vitepress": "workspace:*",
18-
"vitepress-plugin-group-icons": "^1.3.2"
18+
"vitepress-plugin-group-icons": "^1.3.4"
1919
}
2020
}

lib/vue-demi.mjs

-34
This file was deleted.

package.json

+18-21
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
"./theme-without-fonts": {
3434
"types": "./theme-without-fonts.d.ts",
3535
"default": "./dist/client/theme-default/without-fonts.js"
36-
},
37-
"./vue-demi": {
38-
"default": "./lib/vue-demi.mjs"
3936
}
4037
},
4138
"main": "dist/node/index.js",
@@ -100,25 +97,25 @@
10097
"dependencies": {
10198
"@docsearch/css": "^3.8.2",
10299
"@docsearch/js": "^3.8.2",
103-
"@iconify-json/simple-icons": "^1.2.18",
104-
"@shikijs/core": "^1.26.1",
105-
"@shikijs/transformers": "^1.26.1",
106-
"@shikijs/types": "^1.26.1",
100+
"@iconify-json/simple-icons": "^1.2.20",
101+
"@shikijs/core": "^1.27.2",
102+
"@shikijs/transformers": "^1.27.2",
103+
"@shikijs/types": "^1.27.2",
107104
"@types/markdown-it": "^14.1.2",
108105
"@vitejs/plugin-vue": "^5.2.1",
109-
"@vue/devtools-api": "^7.6.8",
106+
"@vue/devtools-api": "^7.7.0",
110107
"@vue/shared": "^3.5.13",
111-
"@vueuse/core": "^12.3.0",
112-
"@vueuse/integrations": "^12.3.0",
113-
"focus-trap": "^7.6.2",
108+
"@vueuse/core": "^12.4.0",
109+
"@vueuse/integrations": "^12.4.0",
110+
"focus-trap": "^7.6.4",
114111
"mark.js": "8.11.1",
115112
"minisearch": "^7.1.1",
116-
"shiki": "^1.26.1",
113+
"shiki": "^1.27.2",
117114
"vite": "^5.4.11",
118115
"vue": "^3.5.13"
119116
},
120117
"devDependencies": {
121-
"@clack/prompts": "^0.9.0",
118+
"@clack/prompts": "^0.9.1",
122119
"@iconify/utils": "^2.2.1",
123120
"@mdit-vue/plugin-component": "^2.1.3",
124121
"@mdit-vue/plugin-frontmatter": "^2.1.3",
@@ -143,7 +140,7 @@
143140
"@types/markdown-it-emoji": "^3.0.1",
144141
"@types/micromatch": "^4.0.9",
145142
"@types/minimist": "^1.2.5",
146-
"@types/node": "^22.10.5",
143+
"@types/node": "^22.10.7",
147144
"@types/postcss-prefix-selector": "^1.16.3",
148145
"@types/prompts": "^2.4.9",
149146
"chokidar": "^4.0.3",
@@ -152,10 +149,10 @@
152149
"debug": "^4.4.0",
153150
"esbuild": "^0.24.2",
154151
"execa": "^9.5.2",
155-
"fs-extra": "^11.2.0",
152+
"fs-extra": "^11.3.0",
156153
"get-port": "^7.1.0",
157154
"gray-matter": "^4.0.3",
158-
"lint-staged": "^15.3.0",
155+
"lint-staged": "^15.4.0",
159156
"lodash.template": "^4.5.0",
160157
"lru-cache": "^11.0.2",
161158
"markdown-it": "^14.1.0",
@@ -179,7 +176,7 @@
179176
"prompts": "^2.4.2",
180177
"punycode": "^2.3.1",
181178
"rimraf": "^6.0.1",
182-
"rollup": "^4.30.0",
179+
"rollup": "^4.30.1",
183180
"rollup-plugin-dts": "^6.1.1",
184181
"rollup-plugin-esbuild": "^6.1.1",
185182
"semver": "^7.6.3",
@@ -188,10 +185,10 @@
188185
"sitemap": "^8.0.0",
189186
"synckit": "^0.9.2",
190187
"tinyglobby": "^0.2.10",
191-
"typescript": "^5.7.2",
192-
"vitest": "^2.1.8",
188+
"typescript": "^5.7.3",
189+
"vitest": "^3.0.0",
193190
"vue-tsc": "^2.2.0",
194-
"wait-on": "^8.0.1"
191+
"wait-on": "^8.0.2"
195192
},
196193
"peerDependencies": {
197194
"markdown-it-mathjax3": "^4",
@@ -205,7 +202,7 @@
205202
"optional": true
206203
}
207204
},
208-
"packageManager": "[email protected].3",
205+
"packageManager": "[email protected].4",
209206
"pnpm": {
210207
"peerDependencyRules": {
211208
"ignoreMissing": [

0 commit comments

Comments
 (0)