Skip to content

fix(deps): update vitest monorepo to v5 - #18403

Merged
florian-lefebvre merged 6 commits into
mainfrom
renovate/major-vitest-monorepo
Oct 20, 2026
Merged

florian-lefebvre merged 6 commits into
mainfrom
renovate/major-vitest-monorepo

Conversation

@renovate

@renovate renovate Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@vitest/snapshot (source) 4.1.11 → 5.0.5 age confidence
vitest (source) 4.1.11 → 5.0.5 age confidence
vitest (source) ^4.1.11 → ^5.0.5 age confidence

Release Notes

vitest-dev/vitest (@​vitest/snapshot)

v5.0.5

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.0.4

Compare Source

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v5.0.3

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.0.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.0.1

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v5.0.0

Compare Source

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes
   🚀 Features

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Oct 16, 2026
@changeset-bot

changeset-bot Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e96bffa

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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 added pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Oct 16, 2026
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ New Duplicate Dependencies (found: 10, threshold: 1)

📦 Package 📋 Versions
workerd
2 versions
[email protected]
[email protected]
miniflare
2 versions
[email protected]
[email protected]
wrangler
2 versions
[email protected]
[email protected]
@vitest/pretty-format
2 versions
@vitest/[email protected]
@vitest/[email protected]
@vitest/utils
2 versions
@vitest/[email protected]
@vitest/[email protected]
@cloudflare/workerd-darwin-64
2 versions
@cloudflare/[email protected]
@cloudflare/[email protected]
@cloudflare/workerd-darwin-arm64
2 versions
@cloudflare/[email protected]
@cloudflare/[email protected]
@cloudflare/workerd-linux-64
2 versions
@cloudflare/[email protected]
@cloudflare/[email protected]
@cloudflare/workerd-linux-arm64
2 versions
@cloudflare/[email protected]
@cloudflare/[email protected]
@cloudflare/workerd-windows-64
2 versions
@cloudflare/[email protected]
@cloudflare/[email protected]

💡 To find out what depends on a specific package, run: pnpm -r why example-package

📊 Dependency Size Changes

Warning

This PR adds 164.9 MB of new dependencies, which exceeds the threshold of 100 kB.

📦 Package 📏 Size
@cloudflare/[email protected] 135.2 MB
[email protected] 15.7 MB
[email protected] 11.1 MB
[email protected] 5 MB
[email protected] 2.8 MB
[email protected] -2.8 MB
[email protected] -1.9 MB
@vitest/[email protected] 199.5 kB
@vitest/[email protected] -199.5 kB
@vitest/[email protected] -188.1 kB
@vitest/[email protected] 149.5 kB
@vitest/[email protected] -106.8 kB
[email protected] -62.9 kB
@vitest/[email protected] 53 kB
@vitest/[email protected] 41.9 kB
@vitest/[email protected] -41.9 kB
@vitest/[email protected] -37.4 kB
@cloudflare/[email protected] → @cloudflare/[email protected] 24.8 kB
[email protected] -17 kB
@codspeed/[email protected] → @codspeed/[email protected] 9.9 kB
[email protected] -7.3 kB
@codspeed/[email protected] → @codspeed/[email protected] -5 kB
[email protected] -4.8 kB
@vitest/[email protected] → @vitest/[email protected] 2.7 kB
[email protected] → [email protected] 609 B
[email protected] Unknown

Total size change: 164.9 MB

@florian-lefebvre florian-lefebvre self-assigned this Oct 16, 2026
@renovate renovate Bot changed the title Update vitest monorepo to v5 fix(deps): update vitest monorepo to v5 Oct 18, 2026
@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch from ed6b785 to 411e926 Compare October 18, 2026 18:34
Vitest 5 removes the top-level `bench` export, so the benchmarks run
through the `bench` test fixture required by the CodSpeed plugin v6.
@renovate

renovate Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Vitest 5 enables its on-disk module cache by default. The plugin's workerd
pool reads cached modules with node:fs, which workerd cannot do, so
importing astro:actions in the Cloudflare Vitest pool failed with
"no such file or directory, readAll". Version 1.4.4 handles the cache
inside the pool.
Vitest 5 runs the `bench` fixture inside a regular test, so the default
60s test timeout applies. The non-streaming rendering benchmark needs
longer under CodSpeed and timed out. Match the build benchmarks, which
already pass `timeout: 300000`.
@codspeed

codspeed Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 12.7%

⚠️ 3 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

ℹ️ 3 benchmarks have no flame graph

The flamegraph could not be generated because too much time was spent in runtime internals, making the visualization not useful for performance analysis.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

#### 🎉 Hooray! `codspeed-node` just leveled up to 6.1.0!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

⚡ 2 improved benchmarks
❌ 9 (👁 9) regressed benchmarks
✅ 10 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ many-head-elements (head dedup) 11.9 ms 6.5 ms +83.66%
⚡ Rendering: streaming [false], .md file 3 ms 2.6 ms +17.43%
👁 large-array (BufferedRenderer per child) 273.6 ms 339.1 ms -19.33%
👁 large-array [streaming] 246.7 ms 330.5 ms -25.35%
👁 many-components [streaming] 11.9 ms 14.2 ms -16.17%
👁 head-propagation-2000 (propagator collection, 2x scale) 519.5 ms 590.8 ms -12.07%
👁 head-propagation-2000 [streaming] 482.4 ms 594.6 ms -18.87%
👁 Rendering: streaming [false], .astro file 378.5 ms 533.1 ms -29%
👁 Rendering: streaming [true], .mdx file 393 ms 496.2 ms -20.79%
👁 Rendering: streaming [false], .mdx file 365.7 ms 478.5 ms -23.57%
👁 Rendering: streaming [true], .astro file 358.3 ms 533.3 ms -32.81%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing renovate/major-vitest-monorepo (715bdde) with main (70834bb)

Open in CodSpeed

@florian-lefebvre florian-lefebvre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to update to 6.1.0

Brings the plugin and @codspeed/core to v6.1.0 now that the release is past
the minimumReleaseAge window. The plugin's Vitest 5 backend drives the
`bench` fixture through its own provider.
@florian-lefebvre
florian-lefebvre merged commit 4a10ff4 into main Oct 20, 2026
30 checks passed
@florian-lefebvre
florian-lefebvre deleted the renovate/major-vitest-monorepo branch October 20, 2026 11:51
matthewp added a commit that referenced this pull request Oct 29, 2026
* Fix corrupted `astro:env/server` module when env vars contain `$` replacement patterns (#18330)

* [ci] format

* Fix inlined Vue styles in dev serving untransformed (unscoped, raw v-bind) CSS (#18336)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(deps): update vitest monorepo to v5 (#18403)

Co-authored-by: Florian Lefebvre <[email protected]>

* Update Partytown to 1.0.1 (#18439)

* fix(cloudflare): return 4xx instead of 500 from `/_image` when the source isn't an image (#18422)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* Skip server island manifest in CSS ensureModulesLoaded to fix late-discovery 500 in dev (#18399)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Fix astro-check binary silently dropping the first two CLI arguments (#18455)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Preserve sharpImageService() options when imageService: 'compile' is used in the Cloudflare adapter (#18461)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(check): skip Volar's cancellation polling sleep in `astro check` (#18460)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(content): compute UTF-8 width arithmetically in getChunkEnd (#18430)

* fix(content): compute UTF-8 width arithmetically in getChunkEnd

* test(content): cover UTF-8 width boundaries and lone surrogates in chunkString

* chore: changeset

* fix(cloudflare): don't prebundle Astro in the Node prerender environment so a custom src/fetch.ts renders through the dev environment (#18465)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Respect exact version argument in @astrojs/upgrade (#18466)

* fix(upgrade): respect exact version argument in @astrojs/upgrade

* fix(upgrade): only pin exact version for the astro package

Integrations are versioned independently, so a published version string
matching the requested Astro version must not be used for them; they
keep the dist-tag/latest fallback instead of being downgraded.

---------

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(i18n): use locale path instead of codes in defineConfig i18n types (#18467)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(cloudflare): skip Prism optimizeDeps include during type generation so sync/check/build don't overwrite a running dev server's deps_ssr (#18468)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Use a separate Vite cache for the temporary sync server (#18451)

`astro sync`, which `astro check` and `astro build` also run, starts a
temporary Vite server with `optimizeDeps: { noDiscovery: true }`. Astro
and integrations still add `optimizeDeps.include` entries, so Vite keeps
the dependency optimizer running there, and it wrote to the default
Vite cache. That replaced the optimized dependencies of a dev server
running in the same project, so framework islands in that dev server
broke (for example React's production `jsx-dev-runtime`, where `jsxDEV`
is undefined) until it was restarted with `--force`.

The temporary server now writes to `<cacheDir>/vite-sync/`. It optimizes
the same dependencies as before; only the output location changes.

Fixes #18449

Tested: `astro-sync.test.ts` passes 10/10; the new test fails without
the change in `sync/index.ts`.

* fix(dev): treat missing ps row as stale in lockfile process check (#18376)

Co-authored-by: Princesseuh <[email protected]>

* fix(astro): stop excluding node-fetch from server dep optimization in workerd dev (#18438)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Update dependency @playwright/test to v1.64.1 (#18441)

* Update @astrojs/node (#18440)

* Close duplicate pull requests when an issue is fixed (#18472)

* fix: minimal support node version (#18475)

* [ci] release (#18459)

* Fix release workflow package list after the Changesets v3 upgrade (#18104)

Co-authored-by: Chris Swithinbank <[email protected]>
Co-authored-by: Armand Philippot <[email protected]>

* Fix DataCloneError when importing SVGs with parallelPrerender enabled (#18476)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>
Co-authored-by: Princesseuh <[email protected]>

* fix(telemetry): look up the project ID without blocking (#18481)

* Skip CSP hashes for external stylesheets and scripts. (#18488)

* [ci] format

* fix(astro): allow Node.js >=22.22.0 on StackBlitz WebContainers (#18494)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(assets): dedupe equivalent densities in image srcset (#18500)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* docs: update legacy flags JSDocs to generate their reference in docs (#18378)

Co-authored-by: ematipico <[email protected]>

* Restore scroll position instantly on back/forward navigation when smooth scrolling is enabled (#18506)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(transitions): silence ready rejection before skipTransition in ClientRouter (#18517)

* Merge commit from fork

* ci: pass issue author login to needs-repro step via env (#18518)

* Restore CSS tree-shaking for unused barrel-imported Astro components (#18493)

* Mark $$createComponent pure so unused barrel-exported components drop their scoped CSS

* Bump Vite to 8.3.5 (Rolldown 1.2.15) and exercise the image service at runtime in the Sharp test

Rolldown 1.2.13 could fold its runtime helpers into a dynamically imported
page chunk, making the SSR entry statically import (and eagerly evaluate)
that page. Rolldown 1.2.14+ keeps the runtime out of entry chunks.

With unused components tree-shaken, the Cloudflare worker only bundles the
Sharp chain when an on-demand route uses the image service, so the Sharp
test now makes api.ts call getImage().

---------

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <[email protected]>

* Update @astrojs/markdoc (#18513)

* fix(@astrojs/vercel): make redirects match when trailingSlash is always/never (#18085)

* fix(@astrojs/vercel): make redirects match when trailingSlash is always/never

* refactor(@astrojs/vercel): use path slash utilities in adjustSourceForTrailingSlash

* fix(@astrojs/vercel): make spread redirects match under trailingSlash always

* fix(@astrojs/vercel): match Vercel's dot rule for trailing-slash redirects

Vercel's normalizer only appends a slash when the last segment has no dot,
so a dotted source must stay unslashed and a dynamic or spread last segment
has to match both forms. Verified against @vercel/routing-utils output.

* fix(@astrojs/vercel): avoid super-linear backtracking in dot check

eslint's regexp/no-super-linear-backtracking rejects the two overlapping
[^/]* quantifiers; anchoring on the last dot is equivalent and linear.

* fix(csp): include hashes inserted by body components in the CSP meta tag for non-streaming renders (#18512)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(server-islands): keep fallback instead of throwing when the island fetch fails (#18497)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(assets): avoid duplicate 1x candidate in Picture source srcset when densities includes 1 (#18504)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* [ci] format

* fix(cloudflare): scope process.env define to server environments so client bundles get Vite's default replacement (#18526)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Fix type errors in shipped components under the `strictest` TypeScript preset (#18524)

* Fix strictest tsc errors in shipped Image, Picture, Code, Debug and ClientRouter components

* test(astro): type-check shipped components under strictest tsconfig

Add an astro check fixture whose tsconfig extends astro/tsconfigs/strictest
and includes node_modules/astro/components/*.astro, so the strictest errors
from #18471 cannot come back without CI failing.

---------

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* fix(cli): drop shell: true from astro info package manager calls to avoid DEP0190 warning (#18525)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Pass the React id prefix to `renderToString` when streaming is disabled (#18482)

* fix(react): pass identifierPrefix to renderToString when streaming is disabled

* test(react): give the disable-streaming fixture its own outDir

* Merge commit from fork

* Merge commit from fork

* Fix transition:name styles silently dropped in dev when component is nested under a non-propagating component (#18511)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* Prevent memory cache from storing empty 404/500 responses that would be rerouted to error pages (#18522)

Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>

* [ci] release (#18478)

* astro add: configure tagged official adapters (#18344)

Recognize resolved official package names when tagged specifiers are used so installation and Astro config updates stay aligned.

Co-authored-by: Matthew Phillips <[email protected]>

---------

Co-authored-by: Samuteg <[email protected]>
Co-authored-by: Samuteg <[email protected]>
Co-authored-by: astro-factory[bot] <316791938+astro-factory[bot]@users.noreply.github.com>
Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: Jack Hanford <[email protected]>
Co-authored-by: Tim L. White <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Erika <[email protected]>
Co-authored-by: Abhirup Pal <[email protected]>
Co-authored-by: Denis Scarabelli <[email protected]>
Co-authored-by: okxint <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Houston (Bot) <[email protected]>
Co-authored-by: Chris Swithinbank <[email protected]>
Co-authored-by: Armand Philippot <[email protected]>
Co-authored-by: Muhammad Umer Aamir <[email protected]>
Co-authored-by: ematipico <[email protected]>
Co-authored-by: Nikolas Sapalidis <[email protected]>
Co-authored-by: knj <[email protected]>
Co-authored-by: Waleed Rostom 🐦‍⬛ <[email protected]>
Co-authored-by: Edmund Hung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants