Skip to content

[vitest-pool-workers] Lower vitest peer dependency from 4.1.0-beta.4 to ^4.0.18 - #12845

Closed
petebacondarwin wants to merge 2 commits into
mainfrom
vitest-pool-workers-peer-dep-4.0.18
Closed

petebacondarwin wants to merge 2 commits into
mainfrom
vitest-pool-workers-peer-dep-4.0.18

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

Lower vitest peer dependency to allow stable 4.0.x releases.

Changes the @cloudflare/vitest-pool-workers peer dependency from the pinned vitest@4.1.0-beta.4 to vitest@^4.0.18, so users can use a stable vitest release. Also updates the monorepo catalog accordingly and fixes the snapshot environment import path (vitest/runtime -> vitest/snapshot) which is available in both 4.0.x and 4.1.x.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: No user-facing API changes, only peer dependency version range change

Open with Devin

@changeset-bot

changeset-bot Bot commented Mar 11, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 21af4e8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@pkg-pr-new

pkg-pr-new Bot commented Mar 11, 2026 •

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12845

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12845

miniflare

npm i https://pkg.pr.new/miniflare@12845

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12845

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12845

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12845

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12845

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12845

wrangler

npm i https://pkg.pr.new/wrangler@12845

commit: 5014063

@petebacondarwin
petebacondarwin marked this pull request as ready for review March 11, 2026 12:51
@petebacondarwin
petebacondarwin requested a review from a team as a code owner March 11, 2026 12:51
@workers-devprod

workers-devprod commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@petebacondarwin
petebacondarwin force-pushed the vitest-pool-workers-peer-dep-4.0.18 branch from 9b271a4 to 47c8604 Compare March 11, 2026 14:07
Comment thread .changeset/vitest-peer-dep-stable.md Resolved
…to ^4.0.18

Allow users to use stable vitest 4.0.x instead of requiring a beta version.
Change snapshot import from vitest/runtime to vitest/snapshot (available in both 4.0.x and 4.1.x).
Update monorepo catalog to use vitest 4.0.18.
@petebacondarwin
petebacondarwin force-pushed the vitest-pool-workers-peer-dep-4.0.18 branch from a5bc967 to 21af4e8 Compare March 12, 2026 13:57
@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Mar 12, 2026
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

Looks like the deprecation notice that is generated due to importing from /snapshot rather than /runtime is async and is being called outside of the workerd fetch handler, which is causing at least one of the CI errors.

@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants