Skip to content

Releases: unjs/h3

v1.13.0

03 Oct 19:40
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Support crossws 0.3 (#892)

🩹 Fixes

  • readRawBody: Handle URLSearchParams (#888)

❤️ Contributors

v1.12.0

20 Jun 08:16
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Improve typed headers (#625)
  • Export event-stream types (112fa33)

🩹 Fixes

  • getRequestUrl: Forward options to internal getRequestProtocol (#776)
  • readRawBody: Read chunked body (#652)
  • proxy: Better error when upstream proxy fails (#746)
  • node: Make sure onBeforeResponse and onAfterResponse are called with error code (#756)
  • sse: Prevent onClosed from firing twice in EventStream (#704)
  • plain: Avoid import from unenv internals (#781, 76736ea)

💅 Refactors

  • session: Remove unnecessary async for clear (#729)

📖 Documentation

  • Fix typos (#699) (#707) (#712) (#730) (#732) (#766) (#764) (#738) (#758) (#734)
  • Remove extra space (#718)
  • Add semi (#710)
  • event-handler: Fix typo (#684)
  • Add jsdoc examples for response utils (#677)
  • Add note for getRequestIP return value (#726)
  • Fix session example (#702)
  • Add jsdoc examples for request utils (#680)
  • Correct zod validation example (#735)
  • Add usage example for handleCors (#747)
  • Update mogen example to use combined log format (#771)
  • examples: Add cors example (#700)
  • Fix respondWith event object (#775)
  • Provide async for request body (#777)
  • error-handling: Add string vs object errors and update createError jsdoc (#762)

🤖 CI

  • Remove node 16 from test matrix (458cfac)

❤️ Contributors

v1.11.1

25 Feb 19:43
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • ws: Resolve pathname for matching (4f211f8)

📖 Documentation

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.11.0

25 Feb 18:21
@pi0 pi0
0e930ef
Compare
Choose a tag to compare

compare changes

⭐ Highlights

🚀 Enhancements

  • Add utilities for server-sent events (SSE) (#586)
  • response: Add sendIterable util (#655)
  • Handler resolver (#669)
  • WebSocket support (#671)

🩹 Fixes

  • serveStatic: Ensure etag header is set before sending 304 response (#653)

📖 Documentation

🏡 Chore

❤️ Contributors

v1.10.2

19 Feb 17:15
@pi0 pi0
e38d444
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • proxy: Ignore incoming accept header (#646)

❤️ Contributors

v1.10.1

25 Jan 22:16
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • setResponseHeaders: Fix types to allow partial header names (#607)
  • setCookie: Allow cookies with the same name but different options (#606)
  • getRequestWebStream: Reuse buffered body if available (#616)
  • getSession: Use semaphore lock for unseal operation (#612)
  • getRequestIP: Use first address of x-forwarded-for header (#618)
  • Avoid setting default content-type for responses with 304 status (#641)

💅 Refactors

  • Use H3Event.node.res for internal types (#626)

📖 Documentation

  • Fix getRequestHeaders signuture (#613)
  • Fix typo in examples (#631)

✅ Tests

❤️ Contributors

v1.10.0

04 Jan 20:30
@pi0 pi0
6c7cf53
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • validate: Provide validate error in data (#594)

🩹 Fixes

  • readRawBody: Check req.rawBody before req.body (#604)

📖 Documentation

  • Add h3-compression to community packages (#524)
  • Add examples (#539)

🌊 Types

  • Add generics to isError and update DataT default generic param (#582)
  • setResponseHeaders: Add autocompletion for header names (#601)

❤️ Contributors

v1.9.0

20 Nov 11:02
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • getValidatedRouterParams util (#573)
  • decode option for getRouterParam (#556)
  • getRequestFingerprint util (#564)

🩹 Fixes

  • sendNoContent: Preserve custom status code if already set (#577)

📖 Documentation

  • Add @intlify/h3 to community packages (#559)
  • Improve jsdocs (#574)
  • Add package pronunciation (#569)

🌊 Types

  • Add generics to H3Error data and createError (#566)
  • Support auto complete for HTTP header names in utils (#542)

❤️ Contributors

v1.8.2

26 Sep 17:34
@pi0 pi0
01fab41
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • getRequestProtocol: Conditionaly check connection?.encrypted (#532)

🏡 Chore

❤️ Contributors

v1.8.1

26 Aug 21:10
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Use safe property checks (#521)

💅 Refactors

  • Use native Headers and Response for legacy polyfills (#523)

📖 Documentation

  • Typo for getValidatedQuery (164f68e)

✅ Tests

  • proxy: Add additional test to make sure JSON response is sent as is (#512)

❤️ Contributors