nitropack
2.13.6 · 2 Nov 2026MIT3.9M / weekRepositoryHomepagenpmAtom feed
2.13.6 is the newest release of 2.x.
In short
2 breaking14 new31 fixed15 internal
- Breaking
⚠️ Upgrade rollup to 3.x
- Breaking
⚠️ Rewrite external copy with multi version hoisting support
Security
2 advisories affect 2.0.0; 2.13.4 fixes them
- ModerateNitro has an Open Redirect via Protocol-Relative URL Bypass in Wildcard Route RulesGHSA-9phm-9p8f-hw5m · 6 May 2026Fixed in 2.13.4
- ModerateNitro has a proxy scope bypass via percent-encoded path traversal in `routeRules`GHSA-5w89-w975-hf9q · 6 May 2026Fixed in 2.13.4
Release note
Highlights
Rewrite external tracker with multi-version and hoisting support
Enable auto imports from
utils/dir
Enhancements
- Breaking
⚠️ Upgrade rollup to 3.x
types: Correctly type $fetch based on the method
cli:
preparecommandcache: Allow setting custom
getKeyfordefineCachedEventHandlerdev: Support for
/_vfs.jsonnetlify: Use esm entrypoint
- Breaking
⚠️ Rewrite external copy with multi version hoisting support
Add
shouldInvalidateCacheoption to cache utilsedgiopreset (replacinglayer0)Support
maxAgefor public assetsSupport
staleMaxAge: -1to always respond stale valueexternals: Apply
productioncondition to package.exportsEnable auto imports from
utilsdir
Fixes
GitHub template
deno: Implement readAsset
Normalize nitro plugin paths to URL in development
Use file urls for auto-imports in development
Initialise imports.imports
Allow optional
outputproperty in user rollup configAccept both upper/lower-case methods
prerender: Check each segment length is less than 255 chars and the whole path 1024
Include only compressible mime types
Remove base url before calculating route rules
netlify, vercel: Order route rules from most specific + avoid double-rendering root
build: Correctly formatted fs tree
prerender: Decode urls to allow comma in the
x-nitro-prerenderheaderbuild: Do not override publicAssets
dev: Improve vfs ui
Resolve and include scanDirs within
node_modulesfor auto importnetlify, vercel: Explicit server rendering with disabled cache/swr
prerender: Check link's pathname only for extensions
rumtime: Disable server-timing header via options.timing
Avoid using file URLs for normalized paths in options
Rollup treeshake is dump
externals: Normalize
inlineandexternalwindows pathsnetlify, aws: Omit cookies from v1 response
Filter unique scanned handlers
Resolve server asset dirs relative to
srcDirpublic-assets: Mock readAsset promise properly
externals: Avoid recursive package links
prerender: Update preview command to serve matching routes
externals: Support orphan files in
node_modulesAvoid hiding original rollup error message
cache: Only update cache in storage once per pending request
Add node16 compatible type declaration
externals: Improve multi version handling
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.