feat!: drop node18 support, close #574 (#575)

This commit is contained in:
pengzhanbo 2025-04-28 10:39:43 +08:00 committed by GitHub
parent e709dada3a
commit 729a0cbd40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 13 additions and 11 deletions

View File

@ -14,9 +14,12 @@ const vuepressVersion = __VUEPRESS_VERSION__
## Dependency Environment
- [Node.js v20.6.0+](https://nodejs.org/)
- [Node.js](https://nodejs.org/) : **^20.6.0 或 >= 22.0.0** [+node-versions]
- [npm 8+](https://www.npmjs.com/) or [pnpm 8+](https://pnpm.io/zh/) or [Yarn 2+](https://yarnpkg.com/)
[+node-versions]: **^20.6.0** Versions `20.6.0` and above but not higher than `21.0.0`
[+node-versions]: **>= 22.0.0** Versions `22.0.0` and above
:::: details How to install the dependency environment?
::: steps

View File

@ -10,10 +10,9 @@ tags:
## 依赖环境
- [Node.js](https://nodejs.org/) : **^18.19.0 或 ^20.6.0 或 >= 22.0.0** [+node-versions]
- [Node.js](https://nodejs.org/) : **^20.6.0 或 >= 22.0.0** [+node-versions]
- [npm 8+](https://www.npmjs.com/) 或 [pnpm 8+](https://pnpm.io/zh/) 或 [Yarn 2+](https://yarnpkg.com/)
[+node-versions]: **^18.19.0** `18.19.0` 及以上但不高于 `19.0.0` 的版本
[+node-versions]: **^20.6.0** `20.6.0` 及以上但不高于 `21.0.0` 的版本
[+node-versions]: **>= 22.0.0** `22.0.0` 及以上的版本

View File

@ -14,7 +14,7 @@
"vuepress-theme-plume"
],
"engines": {
"node": "^18.19.0 || ^20.9.0 || >=22.1.0",
"node": "^20.9.0 || >=22.1.0",
"pnpm": ">=9"
},
"scripts": {

View File

@ -21,7 +21,7 @@ export default defineConfig(() => {
...DEFAULT_OPTIONS,
entry: ['./src/node/index.ts'],
outDir: './lib/node',
target: 'node18',
target: 'node20.6.0',
})
}

View File

@ -37,7 +37,7 @@ export default defineConfig(() => {
...DEFAULT_OPTIONS,
entry: ['./src/node/index.ts'],
outDir: './lib/node',
target: 'node18',
target: 'node20.6.0',
external: ['markdown-it', /^@?vuepress/],
})
}

View File

@ -16,7 +16,7 @@ export default defineConfig(() => {
...DEFAULT_OPTIONS,
entry: ['./src/index.ts'],
outDir: './lib',
target: 'node18',
target: 'node20.6.0',
})
}

View File

@ -36,7 +36,7 @@ export default defineConfig(() => {
entry: ['./src/node/index.ts'],
outDir: './lib/node',
external: sharedExternal,
target: 'node18',
target: 'node20.6.0',
})
}

View File

@ -53,7 +53,7 @@
"templates"
],
"engines": {
"node": "^18.19.0 || ^20.6.0 || >=22.0.0"
"node": "^20.6.0 || >=22.0.0"
},
"scripts": {
"dev": "pnpm '/(copy|tsup):watch/'",

View File

@ -47,7 +47,7 @@ export default defineConfig((cli) => {
entry: ['./src/node/index.ts'],
outDir: './lib/node',
external: sharedExternal,
target: 'node18',
target: 'node20.6.0',
watch: false,
})
}

View File

@ -1,7 +1,7 @@
{
"extends": "tsconfig-vuepress/base.json",
"compilerOptions": {
"target": "ES2022",
"target": "ES2023",
"lib": ["DOM", "ES2024"],
"module": "ESNext",
"moduleResolution": "Bundler",