github nitrojs/nitro v2.0.0

latest releases: v2.10.4, v2.10.3, v2.10.2...
22 months ago

compare changes

👀 Highlights

  • Rewrite external tracker with multi-version and hoisting support (#782)
  • Upgrade rollup to v3 (#580)
  • Enable auto imports from utils/ dir (#866)

🚀 Enhancements

  • ⚠️ Upgrade rollup to 3.x (#580)
  • types: Correctly type $fetch based on the method (#686)
  • cli: prepare command (#774)
  • cache: Allow setting custom getKey for defineCachedEventHandler (#744)
  • dev: Support for /_vfs.json (#809)
  • netlify: Use esm entrypoint (#833)
  • ⚠️ Rewrite external copy with multi version hoisting support (#782)
  • Add shouldInvalidateCache option to cache utils (#746)
  • edgio preset (replacing layer0) (#858)
  • Support maxAge for public assets (#860)
  • Support staleMaxAge: -1 to always respond stale value (#857)
  • externals: Apply production condition to package.exports (#867)
  • Enable auto imports from utils dir (#866)

🩹 Fixes

  • GitHub template (#712)
  • deno: Implement readAsset (#694)
  • Normalize nitro plugin paths to URL in development (#732)
  • Use file urls for auto-imports in development (#733)
  • Initialise imports.imports (#737)
  • Allow optional output property in user rollup config (#751)
  • Accept both upper/lower-case methods (#752)
  • prerender: Check each segment length is less than 255 chars and the whole path 1024 (#757)
  • Include only compressible mime types (#761)
  • Remove base url before calculating route rules (#767)
  • netlify, vercel: Order route rules from most specific + avoid double-rendering root (#768)
  • build: Correctly formatted fs tree (#778)
  • prerender: Decode urls to allow comma in the x-nitro-prerender header (#799)
  • build: Do not override publicAssets (#817)
  • dev: Improve vfs ui (#802)
  • Resolve and include scanDirs within node_modules for auto import (#812)
  • netlify, vercel: Explicit server rendering with disabled cache/swr (#829)
  • prerender: Check link's pathname only for extensions (#791)
  • rumtime: Disable server-timing header via options.timing (#823)
  • Avoid using file URLs for normalized paths in options (7517293)
  • Rollup treeshake is dump (2ce4edb)
  • externals: Normalize inline and external windows paths (0638f64)
  • netlify, aws: Omit cookies from v1 response (#834)
  • Filter unique scanned handlers (#807)
  • Resolve server asset dirs relative to srcDir (#825)
  • public-assets: Mock readAsset promise properly (#851)
  • externals: Avoid recursive package links (b77735e)
  • prerender: Update preview command to serve matching routes (#864)
  • externals: Support orphan files in node_modules (#865)
  • Avoid hiding original rollup error message (a5586f8)
  • cache: Only update cache in storage once per pending request (#861)
  • Add node16 compatible type declaration (#868)
  • externals: Improve multi version handling (#871)

💅 Refactors

  • Upgrade and reduce the usage of fs-extra (cfbd029)
  • Update event. to event.node. (#828)

📖 Documentation

  • Fix url in auto-imports guide (#683)
  • Fix spelling of cluster (#720)
  • Wording change (#724)
  • Fix readme grammar (#813)
  • Fix deprecated function in routing example (#816)
  • Add new render deployment example & steps (#811)
  • Fix typo in code block (#830)
  • Add cache base option example & description (#781)

🏡 Chore

  • Lint repository with eslint config and format with prettier (#739)
  • Lint with eslint --cache and improve types in .eslintrc (#863)

✅ Tests

  • Add tests for dev server and proxy (#644)

🤖 CI

  • Run tests against windows as well (#837)

❤️ Contributors

Don't miss a new nitro release

NewReleases is sending notifications on new releases.