npm / nitropack
nitropack
What changed in nitropack 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
4 security3 new APIs and options7 behavior and defaults1 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnitropack 232 changes
Security 4
The Vercel skew protection cookie uses SameSite=Lax.
Nitro has a proxy scope bypass via percent-encoded path traversal in
routeRulesNitro has an Open Redirect via Protocol-Relative URL Bypass in Wildcard Route Rules
Proxy route rules reject out-of-scope requests, addressing a medium-severity vulnerability.
New APIs and options 3
The Bun preset uses the hostname option for Bun.serve.
The dev worker can listen on a Unix socket or named pipe.
The Vercel build output config includes framework information.
Behavior and default changes 7
The Cloudflare preset warns only about conflicting asset overrides.
Auto-import paths are emitted as files rather than directories.
The AWS Amplify preset supports Node.js 22 and 24 runtimes.
The Cloudflare preset prefers source paths rather than #imports.
The Cloudflare preset guards the nodejs_compat flag by compatibility date.
Node and Deno presets support PORT=0 for random port assignment.
The Vercel preset supports Node.js 24.
Tooling 1
RollupConfig.plugins accepts rolldown-typed plugins.
Fixes and other changes 17
Vercel ISR enables passQuery when allowQuery is set.
WebSocket upgrades are proxied for devProxy routes configured with ws.
String rules match Windows IDs, and resolved paths are normalized on Windows.
Import attributes are preserved in the build output.
The Bun preset supports setting NITRO_BUN_IDLE_TIMEOUT to 0.
The Cloudflare preset detects implicit nodejs_compat when deployConfig is false.
OpenAPI filtering removes undefined values only from array nodes.
Prerendering refuses .. only when it is a whole path segment.
A missing public asset on disk now receives a 404 response.
Public assets are kept inside the output directory when cleaning.
Each output file is counted once in the build size report.
Sourcemap mappings are preserved for chunks containing user code.
The SWR handler respects the h3 URL.
Header-only route entries are marked as continue.
Trailing slashes are stripped from prerendered route overrides.
Missing Wrangler observability types are added.
The Cloudflare preset uses pathe for POSIX relative paths in wrangler.json (v2).