Skip to content

Releases: h3js/h3

v1.0.2

01 Mar 23:19
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Correct types for readRawBody (#277)
  • readBody: Handle top-level arrays in url-encoded data (#278)

💅 Refactors

  • Update @deprecated comment (#245)
  • createRouter: Deprecate misspelled preemptive option (#256)

📖 Documentation

  • Fix deprecated methods (#238)

🏡 Chore

  • Add section to readme for community packages (#262)
  • Update eslint config (0812e81)
  • Format with prettier (a0e21c1)
  • Fix type issue (a9b3187)

✅ Tests

  • Fix legacy middleware test (408f3f2)

❤️ Contributors

v1.0.1

01 Mar 23:18
@pi0 pi0

Choose a tag to compare

chore(release): 1.0.1

v1.0.0

01 Mar 23:16
@pi0 pi0

Choose a tag to compare

⚠ BREAKING CHANGES

  • drop deprecated util aliases

Features

Bug Fixes

  • import type from correct location (#219) (8b89f39)

  • router: throw 404 for intermediate matches (43db151)

  • drop deprecated util aliases (dc8ee81)

v0.8.0

15 Oct 12:42
@pi0 pi0

Choose a tag to compare

compare changes

⚠️ Breaking changes

H3 API and exports are updated in order to reduce dependency on Node.js and future possibilities.

  • All handlers should be defined with eventHandler() wrapper otherwise a warning will be shown suggesting this change for you.
  • h3 app instance created by createApp is not a Node.js listener with (req, res) => {} signuture anymore. You can convert h3 app into a Node.js listener using toNodeListener(app).
  • Compatibility api to support mixed req.event and res.event is dropped. If you had custom utils depending on this, you might need to change them.
  • Node.js/Express-style middleware with (req, res, next?) = {} signuture are not longer automatically converted to event handler format. You can convert them using new fromNodeMiddleware((req, res) => {}) utility.
  • Some exported TypeScript interfaces and types are renamed or removed reflecting this change.

🚀 Enhancements

  • Add writeEarlyHints utility (#184)

🩹 Fixes

  • readBody, readRawBody: Use global symbol (#174)
  • sendRedirect: Only encode required chars in meta tag (a9b992e)
  • writeEarlyHints: Call callback if not supported too (10eab1b)
  • router: Make router handler non preemtive by default (#194)
  • error: Remove default statusMessage from errors (#195)
  • router: Parse url using URL for pathname (#196)

💅 Refactors

  • ⚠️ Reduce Node.js dependency (#178)

📖 Documentation

  • Add sendStream to the utils list (d58fad8)

📦 Build

  • Add package.json to subpath exports (#186)

❤️ Contributors

  • Alexander Lichter
  • Christopher King
  • Daniel Roe
  • Pooya Parsa