fix: scope cache key generators to projects (fix #11281) - #11301
Merged
sheremet-va merged 3 commits intoSep 29, 2026
Merged
Conversation
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
sheremet-va
previously approved these changes
Sep 28, 2026
sheremet-va
left a comment
Member
There was a problem hiding this comment.
LGTM, can you merge form main and run formatter?
…-11281 # Conflicts: # packages/vitest/src/node/core.ts
Contributor
Author
|
Updated, thanks! The two failing e2e checks (windows fs-module-cache-invalidation and vite@7 scoped-fixtures) also fail on main's own CI, so they're unrelated to this PR. |
sheremet-va
approved these changes
Sep 29, 2026
dadezzz
pushed a commit
to dadezzz/forgejo-agent
that referenced
this pull request
Oct 4, 2026
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [vitest](https://vitest.dev) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`5.0.2` → `5.0.3`](https://renovatebot.com/diffs/npm/vitest/5.0.2/5.0.3) |  |  | --- ### Release Notes <details> <summary>vitest-dev/vitest (vitest)</summary> ### [`v5.0.3`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.3) [Compare Source](vitest-dev/vitest@v5.0.2...v5.0.3) ##### 🐞 Bug Fixes - Isolate `result.status` between `repeats` runs - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11218](vitest-dev/vitest#11218) [<samp>(5dbeb)</samp>](vitest-dev/vitest@5dbebe9e3) - Don't print an interceptor warning in browser mode - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11377](vitest-dev/vitest#11377) [<samp>(15cc0)</samp>](vitest-dev/vitest@15cc006aa) - Don't retry when `test.fails` expectedly failed - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11219](vitest-dev/vitest#11219) [<samp>(b2458)</samp>](vitest-dev/vitest@b24585f08) - Scope cache key generators to projects - by [@​ecoyoung](https://github.com/ecoyoung) in [#​11281](vitest-dev/vitest#11281) and [#​11301](vitest-dev/vitest#11301) [<samp>(92ba7)</samp>](vitest-dev/vitest@92ba7fc1d) - **browser**: - Delay server `listen` until tests start running - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11366](vitest-dev/vitest#11366) [<samp>(7d8ed)</samp>](vitest-dev/vitest@7d8ed3e9b) - Check mock path boundaries - by [@​saryn17](https://github.com/saryn17), **Ryosei Sato** and [@​sheremet-va](https://github.com/sheremet-va) in [#​11361](vitest-dev/vitest#11361) and [#​11362](vitest-dev/vitest#11362) [<samp>(1c388)</samp>](vitest-dev/vitest@1c3888bce) - Keep config of browser-consumed environments - by [@​kasperpeulen](https://github.com/kasperpeulen) and **Claude** in [#​11378](vitest-dev/vitest#11378) [<samp>(aafc0)</samp>](vitest-dev/vitest@aafc0996f) - Ignore page crash while cancelling - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11386](vitest-dev/vitest#11386) [<samp>(7c367)</samp>](vitest-dev/vitest@7c36748fa) - `toMatchScreenshot` uses wrong reference on retried tests - by [@​macarie](https://github.com/macarie) in [#​11393](vitest-dev/vitest#11393) [<samp>(c22ab)</samp>](vitest-dev/vitest@c22aba992) - **cache**: - Revalidate imports of cached modules - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11381](vitest-dev/vitest#11381) [<samp>(38f98)</samp>](vitest-dev/vitest@38f98855f) - **deps**: - Pin `why-is-node-running` to `3.2.1` to avoid users running into `ERR_PNPM_TRUST_DOWNGRADE` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11403](vitest-dev/vitest#11403) [<samp>(f6c9a)</samp>](vitest-dev/vitest@f6c9a4977) - **expect**: - Pass current equality testers to `expect.extend` asymmetric matchers - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude** in [#​11401](vitest-dev/vitest#11401) [<samp>(3e794)</samp>](vitest-dev/vitest@3e794a96b) - **jsdom**: - Support Blob on jsdom 30.1 - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11379](vitest-dev/vitest#11379) [<samp>(6c49b)</samp>](vitest-dev/vitest@6c49b7197) - **pool**: - Preserve unique pool ids when `groupOrder` is set - by [@​mtorp](https://github.com/mtorp) in [#​11392](vitest-dev/vitest#11392) [<samp>(50312)</samp>](vitest-dev/vitest@50312ebb4) - **ui**: - Split-pane handle overlapping iframe - by [@​macarie](https://github.com/macarie) in [#​11221](vitest-dev/vitest#11221) [<samp>(f91db)</samp>](vitest-dev/vitest@f91db0dfd) - **vitest**: - Remove root temp dir on close - by [@​abhinav-phi](https://github.com/abhinav-phi) in [#​11248](vitest-dev/vitest#11248) [<samp>(7c711)</samp>](vitest-dev/vitest@7c7119cf7) - **vm**: - Do not optimize deps from index.html - by [@​ezefernandezyf](https://github.com/ezefernandezyf), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11329](vitest-dev/vitest#11329) and [#​11360](vitest-dev/vitest#11360) [<samp>(caf28)</samp>](vitest-dev/vitest@caf2887de) - Don't reuse scripts across vite environments - by [@​MO2k4](https://github.com/MO2k4), **Martin Oehlert** and **Claude** in [#​11395](vitest-dev/vitest#11395) [<samp>(346d3)</samp>](vitest-dev/vitest@346d3896b) ##### [View changes on GitHub](vitest-dev/vitest@v5.0.2...v5.0.3) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzIuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjEzMi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Scope cache-key generators to their project config. Previously, every project's generators ran for every module, so differently configured projects could share the wrong transformed code.
Fixes #11281. Regression tests cover cold and warm caches in both project orders.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Build, lint, typecheck, and 10 cache/cache-resiliency tests pass. The full CI suite was not run locally.
Documentation
pnpm run docscommand.Updated the plugin context JSDoc to state project scope.
Changesets
feat:,fix:,perf:,docs:, orchore:.