nitropack
2.13.6 · 2 Nov 2026MIT3.9M / weekRepositoryHomepagenpmAtom feed
2.13.6 is the newest release of 2.x.
In short
11 new10 fixed1 changed11 internal
Security
2 advisories affect 2.8.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
What is new?
Zero config deployment to AWS Amplify Hosting
We have been closely working with the AWS Amplify team to bring you a zero-config experience AWS deployment and it is ready today! Read more in the deployment guide.
Code splitting enabled for Cloudflare Pages and Modules
Code-splitting support is now enabled for Cloudflare Pages and Modules presets making startup-time even faster by leveraging lazy chunks. (read more: (#1905))
Rollup v4 with native SWC-based parser
We've upgraded Nitro to the latest Rollup v4, powered native SWC-based parser for even faster builds (#5073) 🔥
Normally, you won't need any specific changes in your project. You can also ignore warnings about compatibility with rollup-plugin-visualizer. If you're adding a custom Rollup plugin or using Vite v4, you might encounter type issues due to duplicate dependencies. You can either use the resolutions field in your package.json or simply ignore this warning until Nuxt upgrades to Vite v5 (soon!).
Modules support to extend Nitro core
With this release, we have introduced a new advanced feature to extend the Nitro builder core. (more documentation will be available soon)
Example: modules/test.ts (server/modules/test.ts for Nuxt projects)
import type { NitroModule } from "nitropack";
export default <NitroModule>{
name: "my-nitro-module",
async setup(nitro) {
console.log("Running custom nitro module...");
await nitro.updateConfig({
routeRules: {
"/**": { swr: true },
},
});
},
};H3 v1.9
h3 v1.9.0 comes with new getValidatedRouterParamsand getRequestFingerprint utilities, decode options for getRouterParam and auto-completion for headers in your IDE!
More coming soon
There are more exciting features including tasks, db layer, and WebSocket API planned for the next minor releases. Stay tuned!
Changelog
Enhancements
Support modules to extend nitro builder
Support
inlinemode forserveStaticAdd experimental
winterjspresetAllow setting preset using
SERVER_PRESETenvironment variablecloudflare-pages, Cloudflare-module: Enable code splitting by default
Support
frameworkconfigAdd AWS Amplify Hosting preset
Upgrade to Rollup v4
Improve
nitro.jsonbuild infoaws-amplify: Support static builds
Add
defineNitroErrorHandlertype helper
Fixes
cloudflare-pages: Filter out overlapping public assets dirs
scanner: Allow having HTTP method as part of the route name
Generate route types with resolve path and stripped extension
Scan dirs for unimport on initialization
aws-amplify: Register and auto detect
prerender: Decode generated routes
Disabled public asset handler name is
nullprerender: Decode URIs in headers
error: Respect accept:
text/htmlrequest headerprerender: Filter encoded links starting with
#
Types
Export
SerializeTupleandSerializeObjecttypes
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.