Skip to content

Add vitest v4 support#32

Merged
cometkim merged 3 commits intocometkim:mainfrom
mikaello:vitest-v4
May 6, 2026
Merged

Add vitest v4 support#32
cometkim merged 3 commits intocometkim:mainfrom
mikaello:vitest-v4

Conversation

@mikaello
Copy link
Copy Markdown
Contributor

Vitest 4.0 requires Vite >= 6.0.0 and Node.js >= 20.0.0 (ref https://vitest.dev/guide/migration.html), so removed Vite < v6 from peer dependencies.

Except for that it seems like there is no code changes needed, the ReScript bindings are compatible with vitest v4 as-is. The vitest v4 breaking changes don't affect the public API surface exposed by the bindings.

Closes #31

Comment thread package.json Outdated
Co-authored-by: Pascal Honegger <git@honegger.dev>
@cometkim
Copy link
Copy Markdown
Owner

cometkim commented May 6, 2026

Sorry, I missed the notification for a while.

Vitest 4.0 requires Vite >= 6.0.0 and Node.js >= 20.0.0 (ref https://vitest.dev/guide/migration.html), so removed Vite < v6 from peer dependencies.

Good to know.

@cometkim
Copy link
Copy Markdown
Owner

cometkim commented May 6, 2026

@mikaello Can you push the lockfile change too?

@mikaello
Copy link
Copy Markdown
Contributor Author

mikaello commented May 6, 2026

@mikaello Can you push the lockfile change too?

Absolutely, sorry for not doing that in the first run. Updated now.

@cometkim cometkim merged commit 0ac6a7d into cometkim:main May 6, 2026
1 check passed
@mikaello mikaello deleted the vitest-v4 branch May 7, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add vitest 4 compatibility

3 participants