Skip to content

chore(deps): vitest 4.1.4#7212

Merged
Sheraff merged 4 commits intomainfrom
chore-vitest-4-1
Apr 17, 2026
Merged

chore(deps): vitest 4.1.4#7212
Sheraff merged 4 commits intomainfrom
chore-vitest-4-1

Conversation

@Sheraff
Copy link
Copy Markdown
Contributor

@Sheraff Sheraff commented Apr 17, 2026

Summary by CodeRabbit

  • Chores
    • Updated the testing framework (Vitest) to v4.1.4 across the workspace, including root, benchmarks, examples, and e2e projects.
  • Refactor
    • Minor internal import reordering to tidy code organization (no functional changes).

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2f7cd554-021c-4771-a6d9-440c843a823d

📥 Commits

Reviewing files that changed from the base of the PR and between 13746a8 and 51bc7c5.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Walkthrough

Updated Vitest devDependency to ^4.1.4 across several package.json files and reordered import statements in packages/start-client-core/src/client/hydrateStart.ts; no runtime logic, exported APIs, scripts, or other dependencies were changed.

Changes

Cohort / File(s) Summary
Vitest Dependency Upgrade
benchmarks/client-nav/package.json, benchmarks/ssr/package.json, e2e/eslint-plugin-start/package.json, examples/react/start-bun/package.json, examples/solid/start-bun/package.json, package.json
Bumped devDependencies.vitest (and root vitest-related devDependencies) to ^4.1.4. No other scripts or dependency entries changed.
Import Reordering
packages/start-client-core/src/client/hydrateStart.ts
Reordered import statements (moved ServerFunctionSerializationAdapter and some type-only imports below #tanstack-start-entry and related plugin adapter imports). No runtime behavior, signatures, or logic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇
I hopped through lines with whiskers bright,
Upgraded tests and set imports right,
A tidy patch, a carrot cheer,
Small changes made — the meadow's clear!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: upgrading vitest from 4.0.17 to 4.1.4 across multiple package.json files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore-vitest-4-1

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Apr 17, 2026

View your CI Pipeline Execution ↗ for commit 51bc7c5

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 1m 9s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-17 19:04:57 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb2a2faf81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pnpm-lock.yaml Outdated
Comment on lines +184 to +186
vitest:
specifier: ^4.0.17
version: 4.0.18(@types/node@25.0.9)(@vitest/ui@4.0.18)(esbuild@0.27.4)(jiti@2.6.1)(jsdom@25.0.1)(msw@2.7.0(@types/node@25.0.9)(typescript@6.0.2))(sass-embedded@1.97.2)(sass@1.97.2)(terser@5.37.0)(tsx@4.20.3)(yaml@2.8.1)
specifier: ^4.1.4
version: 4.1.4(@types/node@25.0.9)(@vitest/ui@4.0.18)(jsdom@25.0.1)(msw@2.7.0(@types/node@25.0.9)(typescript@6.0.2))(vite@8.0.0(@types/node@25.0.9)(esbuild@0.27.4)(jiti@2.6.1)(sass-embedded@1.97.2)(sass@1.97.2)(terser@5.37.0)(tsx@4.20.3)(yaml@2.8.1))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Vitest companion packages on matching release

This bump moves vitest to 4.1.4 while the lockfile still resolves @vitest/browser/@vitest/ui to 4.0.18, and those package entries declare an exact peer on vitest: 4.0.18 (same pnpm-lock.yaml package metadata). That creates an unsatisfied peer combination in the root importer, which can surface as peer install warnings and brittle failures when running browser/UI Vitest flows that rely on internal version alignment.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Around line 87-88: Update package.json to align Vitest ecosystem versions:
change the dependency entries for "@vitest/browser" and "@vitest/ui" to use the
same version specifier as "vitest" (set both to "^4.1.4"), then run your package
manager to refresh the lockfile (npm install / yarn install) so peer dependency
resolution is updated.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fc6bf568-95ae-40ac-b59c-9333fd1cb9a1

📥 Commits

Reviewing files that changed from the base of the PR and between 3485a88 and eb2a2fa.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • benchmarks/client-nav/package.json
  • benchmarks/ssr/package.json
  • e2e/eslint-plugin-start/package.json
  • examples/react/start-bun/package.json
  • examples/solid/start-bun/package.json
  • package.json

Comment thread package.json
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

Bundle Size Benchmarks

  • Commit: e2332b0c08b7
  • Measured at: 2026-04-17T17:52:35.624Z
  • Baseline source: history:22dc15203379
  • Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Raw Brotli Trend
react-router.minimal 87.35 KiB 0 B (0.00%) 274.60 KiB 75.97 KiB ▁▁▁▁▁██████
react-router.full 90.63 KiB 0 B (0.00%) 285.74 KiB 78.87 KiB ▁▁▁▁▁▂▂████
solid-router.minimal 35.55 KiB 0 B (0.00%) 106.71 KiB 31.96 KiB ▁▁▁▁▁▂▂▂▂▆█
solid-router.full 40.02 KiB 0 B (0.00%) 120.20 KiB 35.94 KiB ▁▁▁▁▁▂▂▂▂▇█
vue-router.minimal 53.30 KiB 0 B (0.00%) 152.01 KiB 47.88 KiB ▁▁▁▁▁██████
vue-router.full 58.20 KiB 0 B (0.00%) 167.43 KiB 52.06 KiB ▁▁▁▁▁██████
react-start.minimal 101.77 KiB 0 B (0.00%) 322.39 KiB 88.05 KiB ▁▁▁▁▁▃▃████
react-start.full 105.21 KiB 0 B (0.00%) 332.72 KiB 90.89 KiB ▁▁▁▁▁▃▃████
solid-start.minimal 49.53 KiB 0 B (0.00%) 152.52 KiB 43.68 KiB ▁▁▁▁▁▄▄▄▄█▇
solid-start.full 55.07 KiB 0 B (0.00%) 168.73 KiB 48.43 KiB ▁▁▁▁▁▂▂▂▂▅█

Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 17, 2026

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@7212

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7212

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7212

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@7212

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7212

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@7212

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@7212

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7212

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@7212

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@7212

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@7212

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@7212

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@7212

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@7212

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@7212

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@7212

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@7212

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@7212

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7212

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@7212

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7212

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@7212

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7212

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7212

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@7212

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@7212

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@7212

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@7212

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7212

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@7212

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@7212

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7212

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@7212

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@7212

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7212

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@7212

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7212

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7212

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@7212

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@7212

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@7212

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@7212

commit: 51bc7c5

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud is proposing a fix for your failed CI:

We fix the ESLint import/order violations in hydrateStart.ts by reordering imports so that internal (#tanstack-*) imports precede relative (./, ../) imports. This aligns with the configured ESLint rule requiring external → internal → parent → sibling ordering, resolving the 3 errors blocking @tanstack/start-client-core:test:eslint.

Tip

We verified this fix by re-running @tanstack/start-client-core:test:eslint.

diff --git a/packages/start-client-core/src/client/hydrateStart.ts b/packages/start-client-core/src/client/hydrateStart.ts
index 20ca5b1b0d..206b70505c 100644
--- a/packages/start-client-core/src/client/hydrateStart.ts
+++ b/packages/start-client-core/src/client/hydrateStart.ts
@@ -1,14 +1,14 @@
 import { hydrate } from '@tanstack/router-core/ssr/client'
 
-import { ServerFunctionSerializationAdapter } from './ServerFunctionSerializationAdapter'
-import type { AnyRouter, AnySerializationAdapter } from '@tanstack/router-core'
-import type { AnyStartInstanceOptions } from '../createStart'
 import { startInstance } from '#tanstack-start-entry'
 import {
   hasPluginAdapters,
   pluginSerializationAdapters,
 } from '#tanstack-start-plugin-adapters'
 import { getRouter } from '#tanstack-router-entry'
+import { ServerFunctionSerializationAdapter } from './ServerFunctionSerializationAdapter'
+import type { AnyRouter, AnySerializationAdapter } from '@tanstack/router-core'
+import type { AnyStartInstanceOptions } from '../createStart'
 
 export async function hydrateStart(): Promise<AnyRouter> {
   const router = await getRouter()

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally 7Lnc-FCnc

Apply fix locally with your editor ↗   View interactive diff ↗



🎓 Learn more about Self-Healing CI on nx.dev

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 17, 2026

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing chore-vitest-4-1 (51bc7c5) with main (22dc152)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (e2332b0) during the generation of this report, so 22dc152 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@Sheraff Sheraff merged commit b57e898 into main Apr 17, 2026
19 of 20 checks passed
@Sheraff Sheraff deleted the chore-vitest-4-1 branch April 17, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant