| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…e imports Vitest 4.1 deprecated the `vitest/runners` and `vitest/suite` subpath imports, printing console warnings on every load. Introduce a compat module that dynamically resolves imports: on vitest 4.1+ it uses the main `vitest` entry point (BenchmarkRunner, TestRunner statics), and on vitest 3.x it falls back to the old subpath imports (no warnings on either version). Also bump vitest devDependency from 4.0.18 to 4.1.1, revert vite devDependency to ^7 to keep compatibility with Node 20.5.1 (vite 8 + rolldown requires Node 20.19+), and remove the now-unnecessary rolldown devDependency and tsconfig paths workaround. Co-Authored-By: Claude <noreply@anthropic.com>
Merging this PR will degrade performance by 61.43%⚡ 9 improved benchmarks
Performance Changes
Comparing feat/bump-vitest-4.1 (d104278) with feat/vite-8-support (1a48730) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Migrate away from deprecated vitest/runners and vitest/suite subpath imports.
Vitest 4.1 deprecated these subpath imports, printing console.warn on every load:
Since the plugin still supports vitest 3.2 (which doesn't export from the main entry), a compat module (src/compat.ts) dynamically resolves the correct import path at runtime using top-level await:
Verified locally with codspeed run — both simulation and walltime modes work on vitest 4.1.1 (no deprecation warnings) and vitest 3.2.4 (backwards compatible).
Other changes: