Releases: unjs/h3
Releases · unjs/h3
v1.13.0
v1.12.0
🚀 Enhancements
🩹 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
andonAfterResponse
are called with error code (#756) - sse: Prevent
onClosed
from firing twice inEventStream
(#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
- Pooya Parsa (@pi0)
- Joshua Sosso (@joshmossas)
- Yusuf Mansur Özer [email protected]
- Daniel Slepov [email protected]
- Alexander Lichter (@manniL)
- Haruaki OTAKE [email protected]
- @beer (@iiio2)
- Sébastien Chopin [email protected]
- Michael Brevard [email protected]
- Matthias Zaunseder [email protected]
- Torsten Dittmann [email protected]
- Guten [email protected]
- JoLo (@jolo-dev)
- Xjccc (@xjccc)
- Nozomu Ikuta (@NozomuIkuta)
- Dog (@dgxo)
- Israel Ortuño [email protected]
- Eckhardt (Kaizen) Dreyer [email protected]
- Estéban (@Barbapapazes)
- Mathieu Derelle [email protected]
- Deth [email protected]
- Michel Edighoffer [email protected]
- Evgenii Troinov
- Kongmoumou (@kongmoumou)
- Remonke (@remonke)
- Shyam Chen [email protected]
- KobZ (@devseckobz)
- _lmmmmmm [email protected]
- Vladimir Kutepov (@frenzzy)
v1.11.1
v1.11.0
⭐ Highlights
- H3 now has a new documentation website (https://h3.unjs.io)
- WebSocket and SSE support added (read more)
🚀 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
- Add basic jsdocs for utils (c8aa150)
- Fix typos (#668, #665, #662, #661, #658)
- examples Add node middleware usage (#663)
- Refine function usages (#667)
- Add jsdoc examples (#672, #673)
🏡 Chore
- Integrate automd (5212f01)
❤️ Contributors
- Pooya Parsa (@pi0)
- Estéban (@Barbapapazes)
- Bram Kamies
- Joshua Sosso (@joshmossas)
- Nozomu Ikuta
- Markthree (@markthree)
- Sacha Stafyniak (@stafyniaksacha)
- Meir Lamdan
- Joshua
- Matej Černý
- Amit Gurbani (@AmitGurbani)
- Neil Richter (@noook)
v1.10.2
v1.10.1
🩹 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
✅ Tests
❤️ Contributors
- Pooya Parsa (@pi0)
- Estéban (@Barbapapazes)
- Michael Brevard [email protected]
- Jaden [email protected]
- Oscar Beaumont (@oscartbeaumont)
- Kamil Kuczmera
- Jonas Thelemann [email protected]
v1.10.0
🚀 Enhancements
- validate: Provide validate error in
data
(#594)
🩹 Fixes
- readRawBody: Check
req.rawBody
beforereq.body
(#604)
📖 Documentation
🌊 Types
- Add generics to
isError
and updateDataT
default generic param (#582) - setResponseHeaders: Add autocompletion for header names (#601)
❤️ Contributors
- Michael Brevard [email protected]
- Pooya Parsa (@pi0)
- Estéban (@Barbapapazes)
- Gregor Becker (@CodeDredd)
- Bobbie Goede [email protected]
- Sébastien Chopin [email protected]
- Damian Głowala (@DamianGlowala)
v1.9.0
🚀 Enhancements
getValidatedRouterParams
util (#573)decode
option forgetRouterParam
(#556)getRequestFingerprint
util (#564)
🩹 Fixes
- sendNoContent: Preserve custom status code if already set (#577)
📖 Documentation
🌊 Types
- Add generics to
H3Error
data andcreateError
(#566) - Support auto complete for HTTP header names in utils (#542)
❤️ Contributors
- Pooya Parsa (@pi0)
- Nandi95
- Horu
- Damian Głowala (@DamianGlowala)
- Nozomu Ikuta
- Alexander Lichter (@manniL)
- Łukasz Wołodkiewicz
- Kazuya Kawaguchi [email protected]
- Michael Brevard [email protected]
v1.8.2
v1.8.1
🩹 Fixes
- Use safe property checks (#521)
💅 Refactors
- Use native
Headers
andResponse
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
- Pooya Parsa (@pi0)
- Sébastien Chopin (@Atinux)
- Arkadiusz Sygulski [email protected]