Packages

nitropack

2.13.6 · 2 Nov 2026MIT3.9M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major24 Jan 2023Where it was published

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

Release note

compare changes

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: prepare command

  • cache: Allow setting custom getKey for defineCachedEventHandler

  • dev: Support for /_vfs.json

  • netlify: Use esm entrypoint

  • Breaking

    ⚠️ Rewrite external copy with multi version hoisting support

  • Add shouldInvalidateCache option to cache utils

  • edgio preset (replacing layer0)

  • Support maxAge for public assets

  • Support staleMaxAge: -1 to always respond stale value

  • externals: Apply production condition to package.exports

  • Enable auto imports from utils dir

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 output property in user rollup config

  • Accept 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-prerender header

  • build: Do not override publicAssets

  • dev: Improve vfs ui

  • Resolve and include scanDirs within node_modules for auto import

  • netlify, 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 inline and external windows paths

  • netlify, aws: Omit cookies from v1 response

  • Filter unique scanned handlers

  • Resolve server asset dirs relative to srcDir

  • public-assets: Mock readAsset promise properly

  • externals: Avoid recursive package links

  • prerender: Update preview command to serve matching routes

  • externals: Support orphan files in node_modules

  • Avoid 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.