Skip to content

Commit 3876283

Browse files
authored
feat!: require Node.js 22 and Vite 6.4 (#10178)
1 parent b459f1e commit 3876283

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
strategy:
8989
matrix:
9090
os: [ubuntu-latest]
91-
node_version: [20, 22, 24]
91+
node_version: [22, 24]
9292
include:
9393
- os: macos-latest
9494
node_version: 24

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Next generation testing framework powered by Vite.
6060
- Reporting Uncaught Errors
6161
- Run your tests in the browser natively
6262

63-
> Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
63+
> Vitest requires Vite >=v6.4.0 and Node >=v22.12.0
6464
6565
```ts
6666
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
@@ -39,7 +39,7 @@ bun add -D vitest
3939
:::
4040

4141
:::tip
42-
Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
42+
Vitest requires Vite >=v6.4.0 and Node >=v22.12.0
4343
:::
4444

4545
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": "pnpm@10.31.0",
77
"description": "Next generation testing framework powered by Vite",
88
"engines": {
9-
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
9+
"node": "^22.12.0 || ^24.0.0 || >=26.0.0"
1010
},
1111
"scripts": {
1212
"ci": "ni && nr typecheck && nr lint && nr build && nr test:ci",

packages/vitest/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"dist"
108108
],
109109
"engines": {
110-
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
110+
"node": "^22.12.0 || ^24.0.0 || >=26.0.0"
111111
},
112112
"scripts": {
113113
"build": "premove dist && rollup -c",
@@ -116,7 +116,7 @@
116116
"peerDependencies": {
117117
"@edge-runtime/vm": "*",
118118
"@opentelemetry/api": "^1.9.0",
119-
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
119+
"@types/node": "^22.0.0 || >=24.0.0",
120120
"@vitest/browser-playwright": "workspace:*",
121121
"@vitest/browser-preview": "workspace:*",
122122
"@vitest/browser-webdriverio": "workspace:*",
@@ -125,7 +125,7 @@
125125
"@vitest/ui": "workspace:*",
126126
"happy-dom": "*",
127127
"jsdom": "*",
128-
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
128+
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
129129
},
130130
"peerDependenciesMeta": {
131131
"@edge-runtime/vm": {
@@ -184,7 +184,6 @@
184184
"tinyexec": "^1.0.2",
185185
"tinyglobby": "catalog:",
186186
"tinyrainbow": "catalog:",
187-
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
188187
"why-is-node-running": "^2.3.0"
189188
},
190189
"devDependencies": {
@@ -217,6 +216,7 @@
217216
"prompts": "^2.4.2",
218217
"strip-literal": "catalog:",
219218
"tinyhighlight": "catalog:",
219+
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0",
220220
"ws": "catalog:"
221221
}
222222
}

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)