Skip to content

fix(deps): update to nitropack v2.14 + drain dev workers - #37245

Merged
danielroe merged 3 commits into
4.xfrom
chore/nitro-2.14
Nov 23, 2026
Merged

danielroe merged 3 commits into
4.xfrom
chore/nitro-2.14

Conversation

@danielroe

@danielroe danielroe commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

this PR bumps nitropack to v2.14.0 (https://github.com/nitrojs/nitro-v2/releases/tag/v2.14.0) for 4.7.

it brings a few things we've been waiting on: failed prerender routes report the pages that link to them (which the CLI prints under each failed route), Generated lines respect logLevel, and error responses don't inherit a cacheable cache-control from a headers route rule.

v2.14.0 also applies cache route rules per request instead of registering a handler for each cached rule key. that makes the transform in nuxt:unify-route-rules that renamed those generated handler routes unnecessary, so this PR removes it. the runtime route rules still get unified names.

it also enables Nitro's new devServer.drain option in dev for both Nitro builders. without it, a request that's still rendering when the server rebuilds gets a 503:

curl 127.0.0.1:3000/api/slow &   # takes 4s
touch server/api/other.ts        # rebuild finishes first, curl gets a 503

with drain, the old worker finishes the requests it already accepted while new ones go to the new worker. Nitro's default timeout is 60s, but I've set it to 10s so an open WebSocket or event stream doesn't stay on stale code (or hold up a restart on Nitro 3, which drains on close too) for a whole minute. it can be configured with nitro.devServer.drain:

export default defineNuxtConfig({
  nitro: {
    devServer: { drain: false },
  },
})

Read this PR faster

@coldtea-pr-lens

coldtea-pr-lens Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
  • Redraw · drawn at 2e74c7c, the branch has moved on

Architecture

Walkthrough of Upgrade Nitropack to 2.14.0 and configure dev server drain timeout, in four steps

Read this PR faster


Data flow

No data-flow sequence changed in this PR.


Review

✨ Nothing flagged · reviewed 2e74c7c


Tip

Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time
  • The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture… row. Drawing still runs as before
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing pull requests on its own. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • After a push, tick Redraw to draw the latest commit
  • Set github.description: false in .github/pr-lens.yml to stop PR Lens adding buttons to your PR descriptions

Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it.  Star PR Lens on GitHub

@github-actions github-actions Bot added the 4.x label Nov 23, 2026
@danielroe danielroe changed the title Chore/nitro 2.14 fix(deps): update to nitropack v2.14 + drain dev workers Nov 23, 2026
@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednitropack@​2.13.6 ⏵ 2.14.09610085 -392 +3100

View full report

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@37245.tgz

@nuxt/nitro-server

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@37245.tgz

@nuxt/nitro-v3-server

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-v3-server@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-v3-server@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-v3-server@37245.tgz

nuxt

pnpm add https://pkg.pr.new/nuxt/nuxt@37245
npm i https://pkg.pr.new/nuxt/nuxt@37245
yarn add https://pkg.pr.new/nuxt/nuxt@37245.tgz

@nuxt/rsbuild-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/rsbuild-builder@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/rsbuild-builder@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/rsbuild-builder@37245.tgz

@nuxt/rspack-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@37245.tgz

@nuxt/schema

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@37245.tgz

@nuxt/vite-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@37245.tgz

@nuxt/vite-server

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@37245.tgz

@nuxt/webpack-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@37245
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@37245
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@37245.tgz

commit: f1ccd75

@codspeed

codspeed Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 14 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 30 untouched benchmarks
⏩ 24 skipped benchmarks1


Comparing chore/nitro-2.14 (f1ccd75) with 4.x (c5b105a)

Open in CodSpeed

Footnotes

  1. 24 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@danielroe
danielroe merged commit 08d6fbf into 4.x Nov 23, 2026
44 checks passed
@danielroe
danielroe deleted the chore/nitro-2.14 branch November 23, 2026 21:55
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant