github unjs/h3 v1.8.0-rc.2

latest releases: v1.12.0, v1.11.1, v1.11.0...
pre-release13 months ago

compare changes

🚀 Enhancements

  • app: Handle bigint return types (#474)
  • Preserve and make error cause accessable (#479)
  • Platform agnostic serveStatic utility (#480)
  • app: onRequest, onBeforeResponse and onAfterResponse global hooks (#482)
  • plain and web adapters (#483)

🩹 Fixes

  • app: Handle directly node.res.end() returned value (7b18fa0)
  • stream: Improve node.js redable stream check (cdd2680)
  • proxy: Merge overriden headers with different case (#476)
  • readbody: Accept additional options for urlencoded header (#437)
  • app: Throw error when trying to return function or symbol as response (6e58103)
  • app: Use default error handler if onError does not handles reponse (#478)
  • proxyRequest: Only attempt to read body if incoming request can contain body (a26579f)
  • app: Make sure resolved val is also not undefined before calling hooks (cfe397e)

💅 Refactors

  • app: Extract handler returned response handling (#473)
  • event: Always normalize event.method (7585861)
  • Deprecate getMethod to prefer event.method (bc202c0)
  • event: Use sendWebResponse for event.respondWith (#481)

🏡 Chore

  • Remove extra log in tests (06d1bc1)

✅ Tests

  • proxy: Remove external request to speedup (d4f5440)
  • Add evetHandler wrapper (d351ba9)

❤️ Contributors

  • Pooya Parsa (@pi0)

Don't miss a new h3 release

NewReleases is sending notifications on new releases.