Skip to content

Commit f61a0aa

Browse files
committed
build: bump deps and fix lint errors
1 parent 632cb70 commit f61a0aa

File tree

12 files changed

+1422
-1544
lines changed

12 files changed

+1422
-1544
lines changed

Diff for: e2e/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"@vuepress-e2e/style-exports": "file:./modules/style-exports",
2121
"@vuepress/bundler-vite": "workspace:*",
2222
"@vuepress/bundler-webpack": "workspace:*",
23-
"sass": "^1.85.1",
24-
"sass-embedded": "^1.85.1",
23+
"sass": "^1.86.3",
24+
"sass-embedded": "^1.86.3",
2525
"sass-loader": "^16.0.5",
2626
"vue": "catalog:",
2727
"vuepress": "workspace:*"
2828
},
2929
"devDependencies": {
30-
"@playwright/test": "^1.50.1",
30+
"@playwright/test": "^1.51.1",
3131
"anywhere": "^1.6.0",
3232
"cross-env": "^7.0.3"
3333
}

Diff for: package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,32 @@
3232
},
3333
"prettier": "prettier-config-vuepress",
3434
"devDependencies": {
35-
"@commitlint/cli": "^19.7.1",
36-
"@commitlint/config-conventional": "^19.7.1",
37-
"@commitlint/types": "^19.5.0",
38-
"@types/node": "^22.13.5",
35+
"@commitlint/cli": "^19.8.0",
36+
"@commitlint/config-conventional": "^19.8.0",
37+
"@commitlint/types": "^19.8.0",
38+
"@types/node": "^22.14.0",
3939
"@types/webpack-env": "^1.18.8",
40-
"@vitest/coverage-istanbul": "^3.0.7",
41-
"bumpp": "^10.0.3",
40+
"@vitest/coverage-istanbul": "^3.1.1",
41+
"bumpp": "^10.1.0",
4242
"conventional-changelog-cli": "^5.0.0",
43-
"eslint": "^9.21.0",
44-
"eslint-config-vuepress": "^5.2.4",
43+
"eslint": "^9.24.0",
44+
"eslint-config-vuepress": "^5.2.5",
4545
"husky": "^9.1.7",
4646
"jiti": "^2.4.2",
47-
"lint-staged": "^15.4.3",
48-
"prettier": "^3.5.2",
47+
"lint-staged": "^15.5.0",
48+
"prettier": "^3.5.3",
4949
"prettier-config-vuepress": "^5.0.0",
5050
"rimraf": "^6.0.1",
51-
"sort-package-json": "^2.14.0",
52-
"taze": "^18.6.0",
51+
"sort-package-json": "^3.0.0",
52+
"taze": "^19.0.4",
5353
"tsconfig-vuepress": "^5.2.1",
54-
"tsup": "^8.3.6",
55-
"typescript": "~5.7.3",
56-
"vite": "~6.2.0",
57-
"vitest": "^3.0.7",
58-
"vue-tsc": "^2.2.4"
54+
"tsup": "^8.4.0",
55+
"typescript": "~5.8.3",
56+
"vite": "~6.2.5",
57+
"vitest": "^3.1.1",
58+
"vue-tsc": "^2.2.8"
5959
},
60-
"packageManager": "pnpm@10.4.1",
60+
"packageManager": "pnpm@10.8.0",
6161
"pnpm": {
6262
"onlyBuiltDependencies": [
6363
"@parcel/watcher",

Diff for: packages/bundler-vite/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
"clean": "rimraf dist"
3636
},
3737
"dependencies": {
38-
"@vitejs/plugin-vue": "^5.2.1",
38+
"@vitejs/plugin-vue": "^5.2.3",
3939
"@vuepress/bundlerutils": "workspace:*",
4040
"@vuepress/client": "workspace:*",
4141
"@vuepress/core": "workspace:*",
4242
"@vuepress/shared": "workspace:*",
4343
"@vuepress/utils": "workspace:*",
44-
"autoprefixer": "^10.4.20",
44+
"autoprefixer": "^10.4.21",
4545
"connect-history-api-fallback": "^2.0.0",
4646
"postcss": "^8.5.3",
4747
"postcss-load-config": "^6.0.1",
48-
"rollup": "^4.34.8",
49-
"vite": "~6.2.0",
48+
"rollup": "^4.39.0",
49+
"vite": "~6.2.5",
5050
"vue": "catalog:",
5151
"vue-router": "catalog:"
5252
},

Diff for: packages/bundler-webpack/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@
4343
"@vuepress/core": "workspace:*",
4444
"@vuepress/shared": "workspace:*",
4545
"@vuepress/utils": "workspace:*",
46-
"autoprefixer": "^10.4.20",
46+
"autoprefixer": "^10.4.21",
4747
"chokidar": "^3.6.0",
48-
"copy-webpack-plugin": "^12.0.2",
48+
"copy-webpack-plugin": "^13.0.0",
4949
"css-loader": "^7.1.2",
50-
"css-minimizer-webpack-plugin": "^7.0.0",
50+
"css-minimizer-webpack-plugin": "^7.0.2",
5151
"esbuild-loader": "~4.3.0",
5252
"express": "^4.21.2",
5353
"html-webpack-plugin": "^5.6.3",
54-
"lightningcss": "^1.29.1",
54+
"lightningcss": "^1.29.3",
5555
"mini-css-extract-plugin": "^2.9.2",
5656
"postcss": "^8.5.3",
5757
"postcss-loader": "^8.1.1",
5858
"style-loader": "^4.0.0",
5959
"vue": "catalog:",
6060
"vue-loader": "^17.4.2",
6161
"vue-router": "catalog:",
62-
"webpack": "^5.98.0",
62+
"webpack": "^5.99.5",
6363
"webpack-5-chain": "^8.0.2",
64-
"webpack-dev-server": "^5.2.0",
64+
"webpack-dev-server": "^5.2.1",
6565
"webpack-merge": "^6.0.1"
6666
},
6767
"publishConfig": {

Diff for: packages/bundler-webpack/src/build/createClientConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { App } from '@vuepress/core'
33
import { fs } from '@vuepress/utils'
44
import CopyWebpackPlugin from 'copy-webpack-plugin'
55
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
6-
import type { CssModule } from 'mini-css-extract-plugin'
76
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
7+
import type { Module } from 'webpack'
88
import type Config from 'webpack-5-chain'
99
import { createClientBaseConfig } from '../config/index.js'
1010
import type { WebpackBundlerOptions } from '../types.js'
@@ -66,7 +66,7 @@ export const createClientConfig = async (
6666
styles: {
6767
idHint: 'styles',
6868
// necessary to ensure async chunks are also extracted
69-
test: (m: CssModule) => m.type.includes('css/mini-extract'),
69+
test: (m: Module) => m.type.includes('css/mini-extract'),
7070
chunks: 'all',
7171
enforce: true,
7272
reuseExistingChunk: true,

Diff for: packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"cac": "^6.7.14",
4343
"chokidar": "^3.6.0",
4444
"envinfo": "^7.14.0",
45-
"esbuild": "^0.25.0"
45+
"esbuild": "^0.25.2"
4646
},
4747
"devDependencies": {
4848
"@types/envinfo": "^7.8.4"

Diff for: packages/cli/src/commands/build/createBuild.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export const createBuild =
2121

2222
log(`commandOptions:`, commandOptions)
2323

24-
if (process.env.NODE_ENV === undefined) {
25-
process.env.NODE_ENV = 'production'
26-
}
24+
process.env.NODE_ENV ??= 'production'
2725

2826
// resolve app config from cli options
2927
const cliAppConfig = resolveCliAppConfig(sourceDir, commandOptions)

Diff for: packages/cli/src/commands/dev/createDev.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export const createDev = (defaultAppConfig: Partial<AppConfig>): DevCommand => {
2424
): Promise<void> => {
2525
log(`commandOptions:`, commandOptions)
2626

27-
if (process.env.NODE_ENV === undefined) {
28-
process.env.NODE_ENV = 'development'
29-
}
27+
process.env.NODE_ENV ??= 'development'
3028

3129
// resolve app config from cli options
3230
const cliAppConfig = resolveCliAppConfig(sourceDir, commandOptions)

Diff for: packages/cli/src/config/transformUserConfigToPlugin.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ export const transformUserConfigToPlugin = (
1818

1919
// if `clientConfigFile` is not set explicitly,
2020
// try to load conventional files
21-
if (userConfigPlugin.clientConfigFile === undefined) {
22-
userConfigPlugin.clientConfigFile = [
23-
path.resolve(cwd, 'vuepress.client.ts'),
24-
path.resolve(cwd, 'vuepress.client.js'),
25-
path.resolve(cwd, 'vuepress.client.mjs'),
26-
path.resolve(source, '.vuepress/client.ts'),
27-
path.resolve(source, '.vuepress/client.js'),
28-
path.resolve(source, '.vuepress/client.mjs'),
29-
].find((item) => fs.pathExistsSync(item))
30-
}
21+
userConfigPlugin.clientConfigFile ??= [
22+
path.resolve(cwd, 'vuepress.client.ts'),
23+
path.resolve(cwd, 'vuepress.client.js'),
24+
path.resolve(cwd, 'vuepress.client.mjs'),
25+
path.resolve(source, '.vuepress/client.ts'),
26+
path.resolve(source, '.vuepress/client.js'),
27+
path.resolve(source, '.vuepress/client.mjs'),
28+
].find((item) => fs.pathExistsSync(item))
3129

3230
return userConfigPlugin
3331
}

Diff for: packages/core/tests/app/resolveAppPages.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ it('should process extendsPageOptions hook correctly', async () => {
5353
app.use({
5454
name: 'foo',
5555
extendsPageOptions: (pageOptions) => {
56-
if (!pageOptions.frontmatter) pageOptions.frontmatter = {}
56+
pageOptions.frontmatter ??= {}
5757
pageOptions.frontmatter.foo = 'bar'
5858
},
5959
})

0 commit comments

Comments
 (0)