+
Skip to content

Releases: h3js/h3

v2.0.1-rc.2

08 Oct 15:21
@pi0 pi0

Choose a tag to compare

compare changes

💅 Refactors

  • Deprecate and move toNodeHandler to h3/node (#1215)

v2.0.0-rc.1

07 Oct 14:42
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • ⚠️ HTTPResponse (#1212)

🔥 Performance

  • Try avoid cloning response for meriging headers (#1214)

🩹 Fixes

  • cors: Use defaults in handleCors (#1161)

💅 Refactors

  • Hide internal event._res and event.res._headers (#1185)

📦 Build

  • Add missing exports (#1211)

⚠️ Breaking Changes

  • ⚠️ HTTPResponse (#1212)

❤️ Contributors

v2.0.0-beta.5

01 Oct 18:07
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Support universal { fetch } handlers (#1210)
  • Support fetchable object for dynamic handlers (0da8e4a)
  • toEventHandler and HTTPHandler (38be512)

🔥 Performance

  • Slightly improve getRequestIP performances (#1197)

💅 Refactors

  • Allow overriding middleware resolution (f45dd27, 3f766a5)
  • Move middleware normalization out of core (b2ce1af)
  • Avoid anonymous functions (e4bb27a)

📖 Documentation

  • Correct H3 API usage (#1206)
  • Fix description of handleCors's return value (#1167)

🌊 Types

  • Export websocket related types (#1202)

🏡 Chore

  • Import ProxyOptions separately (#1199)
  • Fix typo in docs (#1201)
  • examples: Fix typo (#1205)

❤️ Contributors

v2.0.0-beta.4

27 Aug 14:57
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Support thenable values (#1193)
  • Adopt srvx req.context and ServerRequestContext (#1194)
  • HTTPEvent for more agnostic usage (#1195)
  • Support chunked cookies and use for session (#1102)
  • EventStream: Support comment event (#1169)
  • Export toRequest utility (55a2c9b)

🩹 Fixes

  • Use H3RouteMeta in RouteDefinition type (#1181)
  • proxy: Fix proxy headers filter (#1188)
  • Return a Response for no-content (#1177)

❤️ Contributors

v2.0.0-beta.3

30 Jul 18:16
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • ⚠️ app.request (#1176)

💅 Refactors

  • ⚠️ Only accept req for H3.fetch and EventHandlerWithFetch.fetch (#1096)

v2.0.0-beta.2

30 Jul 10:19
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Experimental defineRoute (#1143)
  • Allow passthrough response in middleware without enforcing explicit return (#1174)
  • Log unhandled errors (#1152)

🩹 Fixes

  • proxy: Only inherit runtime context for sub-requests (#1142)
  • Safer HTTPError check (#1145)
  • defineValidatedHandler: Accept all EventHandlerObject props (#1147)
  • Change "h://" to "http://" (90226b8)

📖 Documentation

  • Fix noContent example (#1171)

❤️ Contributors

v1.15.4

30 Jul 09:43
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • getRequestHost: Return first host from x-forwarded-host (#1175)

💅 Refactors

  • useSession: Backport SessionManager interface to fix types (#1058)

🏡 Chore

  • docs: Fix typos (#1108)

❤️ Contributors

v2.0.0-beta.1

02 Jul 10:27
@pi0 pi0

Choose a tag to compare

compare changes

✨ Highlights

🚀 Enhancements

  • Add readMultipartFormData for backward compatibility (#1120)
  • Support typed req.headers (#1130)
  • Freeze app routes and config after server init (#1140)
  • Expose toResponse util (febb832)
  • serveStatic: Support default and custom mimes (#1137)
  • proxy: Use native fetch + event.app.fetch (#1141)

🩹 Fixes

  • isEvent: Safer check for bun compatibility (5a984da)
  • response: Only add content-disposition for File with name (#1133)
  • defineValidatedHandler: Return value should be fetchable (b759670)

💅 Refactors

  • Merge H3Event with types (eaeb1e1)
  • ⚠️ Explicit use of handlers or middleware (#1128)

📖 Documentation

  • Add apitally to community integrations (#1113)
  • Fix route meta example (#1124)
  • Better visualization for dispatch request lifecycle (#1115)
  • Fix typo event.req is instance of request (#1125)
  • Add nested apps section (#1131)
  • Fix internal typo (#1109)

❤️ Contributors

v2.0.0-beta.0

10 Jun 13:27
@pi0 pi0

Choose a tag to compare

v1.15.3

28 Apr 10:08
@pi0 pi0
5bd27a5

Choose a tag to compare

compare changes

🩹 Fixes

  • serveStatic: Omit decoded id from statusMessage (#1044)
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载