diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e01d99168..dac3cc0d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [20, 22, 24] + node_version: [22, 24] include: - os: macos-latest node_version: 24 diff --git a/README.md b/README.md index 24fb45133..d6174ab2a 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Next generation testing framework powered by Vite. - Reporting Uncaught Errors - Run your tests in the browser natively -> Vitest requires Vite >=v6.0.0 and Node >=v20.0.0 +> Vitest requires Vite >=v6.4.0 and Node >=v22.12.0 ```ts import { assert, describe, expect, it } from 'vitest' diff --git a/docs/guide/index.md b/docs/guide/index.md index c3ebe8c38..5e58c8d84 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -39,7 +39,7 @@ bun add -D vitest ::: :::tip -Vitest requires Vite >=v6.0.0 and Node >=v20.0.0 +Vitest requires Vite >=v6.4.0 and Node >=v22.12.0 ::: 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). diff --git a/package.json b/package.json index 49e54e2cf..ad481b8bd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "packageManager": "pnpm@10.31.0", "description": "Next generation testing framework powered by Vite", "engines": { - "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "scripts": { "ci": "ni && nr typecheck && nr lint && nr build && nr test:ci", diff --git a/packages/vitest/package.json b/packages/vitest/package.json index c9d9027b8..fa33c24a7 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -107,7 +107,7 @@ "dist" ], "engines": { - "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "scripts": { "build": "premove dist && rollup -c", @@ -116,7 +116,7 @@ "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", - "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", + "@types/node": "^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "workspace:*", "@vitest/browser-preview": "workspace:*", "@vitest/browser-webdriverio": "workspace:*", @@ -125,7 +125,7 @@ "@vitest/ui": "workspace:*", "happy-dom": "*", "jsdom": "*", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { @@ -184,7 +184,6 @@ "tinyexec": "^1.0.2", "tinyglobby": "catalog:", "tinyrainbow": "catalog:", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", "why-is-node-running": "^2.3.0" }, "devDependencies": { @@ -217,6 +216,7 @@ "prompts": "^2.4.2", "strip-literal": "catalog:", "tinyhighlight": "catalog:", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0", "ws": "catalog:" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13d34c314..d35731386 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1098,9 +1098,6 @@ importers: tinyrainbow: specifier: 'catalog:' version: 3.1.0 - vite: - specifier: 8.0.11 - version: 8.0.11(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(sass-embedded@1.97.3)(sass@1.97.3)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) why-is-node-running: specifier: ^2.3.0 version: 2.3.0 @@ -1192,6 +1189,9 @@ importers: tinyhighlight: specifier: 'catalog:' version: 0.3.2(picocolors@1.1.1) + vite: + specifier: 8.0.11 + version: 8.0.11(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(sass-embedded@1.97.3)(sass@1.97.3)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) ws: specifier: 'catalog:' version: 8.19.0