Skip to content

Commit 9a0bf22

Browse files
authored
fix: update engines field to drop Node 18 support (#8608)
1 parent 1aac59c commit 9a0bf22

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Vitest is a next-generation testing framework powered by Vite. This is a monorep
88

99
- **Language**: TypeScript/JavaScript (ESM-first)
1010
- **Package Manager**: pnpm (required)
11-
- **Node Version**: ^18.0.0 || >=20.0.0
11+
- **Node Version**: ^20.0.0 || ^22.0.0 || >=24.0.0
1212
- **Build System**: Vite + Rollup
1313
- **Monorepo Structure**: 15+ packages in `packages/` directory
1414

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Next generation testing framework powered by Vite.
5252
- Reporting Uncaught Errors
5353
- Run your tests in the browser natively (experimental)
5454

55-
> Vitest requires Vite >=v5.0.0 and Node >=v18.0.0
55+
> Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
5656
5757
```ts
5858
import { assert, describe, expect, it } from 'vitest'

docs/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bun add -D vitest
3636
:::
3737

3838
:::tip
39-
Vitest requires Vite >=v5.0.0 and Node >=v18.0.0
39+
Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
4040
:::
4141

4242
It is recommended that you install a copy of `vitest` in your `package.json`, using one of the methods listed above. However, if you would prefer to run `vitest` directly, you can use `npx vitest` (the `npx` tool comes with npm and Node.js).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"packageManager": "[email protected]",
77
"description": "Next generation testing framework powered by Vite",
88
"engines": {
9-
"node": "^18.0.0 || >=20.0.0"
9+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
1010
},
1111
"scripts": {
1212
"ci": "ni && nr typecheck && nr lint && nr build && nr test:ci",

packages/vitest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"dist"
118118
],
119119
"engines": {
120-
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
120+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
121121
},
122122
"scripts": {
123123
"build": "premove dist && rollup -c",

packages/ws-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dist"
3131
],
3232
"engines": {
33-
"node": "^18.0.0 || >=20.0.0"
33+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
3434
},
3535
"scripts": {
3636
"build": "premove dist && rollup -c",

0 commit comments

Comments
 (0)