Skip to content

chore: update nitro version#7548

Open
ulrichstark wants to merge 2 commits into
TanStack:mainfrom
ulrichstark:chore(examples)--update-nitro-version
Open

chore: update nitro version#7548
ulrichstark wants to merge 2 commits into
TanStack:mainfrom
ulrichstark:chore(examples)--update-nitro-version

Conversation

@ulrichstark
Copy link
Copy Markdown
Contributor

@ulrichstark ulrichstark commented Jun 4, 2026

Version of the nitro package was almost three months old in some example projects.

Edit: I also decided to update the other nitro dependencies in /e2e to the same version to deduplicate dependencies. Close to 900 lines saved in pnpm-lock.yaml 🥳

Summary by CodeRabbit

  • Chores
    • Bumped the Nitro runtime/dev dependency to the newer beta across multiple example and e2e starter projects to keep samples aligned with the current runtime release.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c641d5ba-8f9b-4263-8eee-afd8038f246b

📥 Commits

Reviewing files that changed from the base of the PR and between aecc803 and 8f4e7a2.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • e2e/react-start/css-modules/package.json
  • e2e/react-start/dev-ssr-styles/package.json
  • e2e/react-start/flamegraph-bench/package.json
  • e2e/react-start/start-manifest/package.json
  • e2e/react-start/static-server-functions/package.json
  • examples/react/start-basic/package.json
  • examples/react/start-rscs/package.json
  • examples/solid/start-basic-nitro/package.json
  • examples/solid/start-basic/package.json
✅ Files skipped from review due to trivial changes (8)
  • e2e/react-start/static-server-functions/package.json
  • e2e/react-start/start-manifest/package.json
  • examples/react/start-rscs/package.json
  • examples/react/start-basic/package.json
  • e2e/react-start/flamegraph-bench/package.json
  • examples/solid/start-basic/package.json
  • e2e/react-start/dev-ssr-styles/package.json
  • examples/solid/start-basic-nitro/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • e2e/react-start/css-modules/package.json

📝 Walkthrough

Walkthrough

Example and e2e package.json manifests update the nitro dependency to ^3.0.260603-beta; examples/react/start-rscs replaces the nightly alias resolver with the semver constraint.

Changes

Nitro beta version alignment

Layer / File(s) Summary
Update nitro in example starters
examples/react/start-basic/package.json, examples/react/start-rscs/package.json, examples/solid/start-basic-nitro/package.json, examples/solid/start-basic/package.json
React and Solid starter example manifests pin nitro to ^3.0.260603-beta; start-rscs changes from npm:nitro-nightly@latest to the semver range.
Update nitro in e2e/react-start suites
e2e/react-start/css-modules/package.json, e2e/react-start/dev-ssr-styles/package.json, e2e/react-start/flamegraph-bench/package.json, e2e/react-start/start-manifest/package.json, e2e/react-start/static-server-functions/package.json
Five e2e/react-start package manifests update nitro to ^3.0.260603-beta (one was previously ^3.0.1-alpha.2).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Small paws tap the JSON tree,
Nightly turned to semver glee,
Beta pins hop into place,
Examples and tests keep the pace,
A tidy bump, a quiet trace.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: update nitro version' directly and clearly describes the main change across all modified files—updating the nitro dependency version from older beta versions to ^3.0.260603-beta across multiple package.json files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Jun 4, 2026

View your CI Pipeline Execution ↗ for commit 8f4e7a2

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... ❌ Failed 2m 29s View ↗
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 12m 45s View ↗

☁️ Nx Cloud last updated this comment at 2026-06-04 21:14:54 UTC

@ulrichstark ulrichstark changed the title chore(examples): update nitro version chore: update nitro version Jun 4, 2026
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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@examples/solid/start-basic/package.json`:
- Line 23: The pnpm lockfile still lists the old specifier for the dependency
"nitro" while package.json now requires "^3.0.260603-beta"; regenerate and
commit an updated pnpm-lock.yaml so the lock matches the "nitro" specifier in
examples' package.json (run pnpm install at repo root or in the examples
workspace to update the lockfile, verify the "nitro" entry now shows
^3.0.260603-beta, and commit the changed pnpm-lock.yaml).
🪄 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: 6f2c24d8-afc7-4b94-8d5a-f165650e3daa

📥 Commits

Reviewing files that changed from the base of the PR and between 8c7e54e and fcbea07.

📒 Files selected for processing (4)
  • examples/react/start-basic/package.json
  • examples/react/start-rscs/package.json
  • examples/solid/start-basic-nitro/package.json
  • examples/solid/start-basic/package.json

Comment thread examples/solid/start-basic/package.json
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jun 4, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednitro@​3.0.260603-beta981008293100

View full report

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 4, 2026

More templates

@tanstack/arktype-adapter

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

@tanstack/eslint-plugin-router

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

@tanstack/eslint-plugin-start

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

@tanstack/history

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

@tanstack/nitro-v2-vite-plugin

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

@tanstack/react-router

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

@tanstack/react-router-devtools

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

@tanstack/react-router-ssr-query

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

@tanstack/react-start

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

@tanstack/react-start-client

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

@tanstack/react-start-rsc

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

@tanstack/react-start-server

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

@tanstack/router-cli

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

@tanstack/router-core

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

@tanstack/router-devtools

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

@tanstack/router-devtools-core

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

@tanstack/router-generator

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

@tanstack/router-plugin

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

@tanstack/router-ssr-query-core

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

@tanstack/router-utils

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

@tanstack/router-vite-plugin

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

@tanstack/solid-router

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

@tanstack/solid-router-devtools

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

@tanstack/solid-router-ssr-query

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

@tanstack/solid-start

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

@tanstack/solid-start-client

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

@tanstack/solid-start-server

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

@tanstack/start-client-core

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

@tanstack/start-fn-stubs

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

@tanstack/start-plugin-core

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

@tanstack/start-server-core

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

@tanstack/start-static-server-functions

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

@tanstack/start-storage-context

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

@tanstack/valibot-adapter

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

@tanstack/virtual-file-routes

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

@tanstack/vue-router

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

@tanstack/vue-router-devtools

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

@tanstack/vue-router-ssr-query

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

@tanstack/vue-start

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

@tanstack/vue-start-client

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

@tanstack/vue-start-server

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

@tanstack/zod-adapter

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

commit: aecc803

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 add waitForFunction(() => window.SCRIPT_1 === true) before the assertion in the "client side navigating to a route with scripts" test to fix the race condition where the dynamically injected script.js had not yet executed when the test checked window.SCRIPT_1. The nitro version bump (3.0.260311-beta3.0.260603-beta) changed the timing of script injection during client-side navigation, causing the synchronous assertion to see undefined instead of true.

Warning

We could not verify this fix.

diff --git a/e2e/solid-start/basic/tests/navigation.spec.ts b/e2e/solid-start/basic/tests/navigation.spec.ts
index ed0b0d3a..68cb56e1 100644
--- a/e2e/solid-start/basic/tests/navigation.spec.ts
+++ b/e2e/solid-start/basic/tests/navigation.spec.ts
@@ -50,6 +50,7 @@ test('client side navigating to a route with scripts', async ({ page }) => {
   await page.waitForURL('/')
   await page.getByRole('link', { name: 'Scripts', exact: true }).click()
   await expect(page.getByTestId('scripts-test-heading')).toBeInViewport()
+  await page.waitForFunction(() => (window as any).SCRIPT_1 === true)
   expect(await page.evaluate('window.SCRIPT_1')).toBe(true)
   expect(await page.evaluate('window.SCRIPT_2')).toBe(undefined)
 })

Because this branch comes from a fork, it is not possible for us to apply fixes directly, but you can apply the changes locally using the available options below.

Apply changes locally with:

npx nx-cloud apply-locally E1dG-DtsY

Apply fix locally with your editor ↗   View interactive diff ↗



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

@schiller-manuel schiller-manuel force-pushed the chore(examples)--update-nitro-version branch from aecc803 to 8f4e7a2 Compare June 4, 2026 21:00
@ulrichstark
Copy link
Copy Markdown
Contributor Author

The CI failure is unrelated and not caused by this change or my recent changes, or?

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.

1 participant