github nitrojs/nitro v0.4.0

latest releases: v2.10.4, v2.10.3, v2.10.2...
2 years ago

🐛 Fixes

Handlers

  • 89da30a Respect default value for lazy

General

  • #179 Improve bundled storage
  • 247cfca Enable lazy only when explicitly set (enable for api and rotues by default)

Prerender

  • #190 Allow all extensions (resolves )
  • 970286d Support relative urls

Rollup

  • 2b7209a Set NODE_ENV to prerender when prerendering
  • 43b1d02 Respect rollupConfig options to override default config
  • 32f598a Enable preferBuiltins only for node targets

Worker

  • 6c8cae7 Use iife format by default

Cache

  • #189 Preserve event context (resolves )

🚀 Features

General

  • #173 Expose all assets to nitro.vfs and /_vfs endpoint (resolves )
  • #181 Universal import.meta (resolves )
  • e1c234e nitro.storage
  • 233e024 Named wildcard params
  • 04e2f26 Update unenv
  • 23d8cde Allow explicit middleware handlers
  • #115 Extend prerender links from X-Nitro-Prerender (resolves )
  • 11e732b Add X-Nitro-Prerender header to detect prerendering

Cache

  • ⚠️ 7e72b8f Only accept event handler for defineCachedEventHandler

Prerender

  • ⚠️ #166 Write html files to subfolder (resolves )

Rollup

  • #187 Allow edit of commonJs plugin options
  • ff2dd44 Fail build when externals are not allowed and cannot resolve id

💅 Refactors

General

  • #180 Improve esbuild.target option handling
  • 45f48a3 Hide .map files from output tree

Rollup

  • d7da0fe Use built-in dynamic virtual plugin

📖 Documentation

General

  • #197 Add render setup configuration

Cloudflare

🏡 Chore

Release

⚠️ Breaking Changes

  • ⚠️ 7e72b8f Only accept event handler for defineCachedEventHandler
  • ⚠️ #166 Write html files to subfolder (resolves )

❤️ Contributors

  • Julien Huang

Don't miss a new nitro release

NewReleases is sending notifications on new releases.