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 ymansurozer@gmail.com
- Daniel Slepov danil.slepov@gmail.com
- Alexander Lichter (@manniL)
- Haruaki OTAKE aaharu@hotmail.com
- @beer (@iiio2)
- Sébastien Chopin seb@nuxtjs.com
- Michael Brevard yonshi29@gmail.com
- Matthias Zaunseder matthias.zaunseder@hotmail.de
- Torsten Dittmann torsten.dittmann@googlemail.com
- Guten ywzhaifei@gmail.com
- JoLo (@jolo-dev)
- Xjccc (@xjccc)
- Nozomu Ikuta (@NozomuIkuta)
- Dog (@dgxo)
- Israel Ortuño ai.ortuno@gmail.com
- Eckhardt (Kaizen) Dreyer eckhardt.dreyer@gmail.com
- Estéban (@Barbapapazes)
- Mathieu Derelle mathieu.derelle@gmail.com
- Deth gabriel@rosa.dev.br
- Michel Edighoffer m.edighoffer@france-solar.fr
- Evgenii Troinov
- Kongmoumou (@kongmoumou)
- Remonke (@remonke)
- Shyam Chen shyamchen1994@gmail.com
- KobZ (@devseckobz)
- _lmmmmmm lmmmmmm12138@gmail.com
- 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 yonshi29@gmail.com
- Jaden me@jaden.bio
- Oscar Beaumont (@oscartbeaumont)
- Kamil Kuczmera
- Jonas Thelemann e-mail@jonas-thelemann.de
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 yonshi29@gmail.com
- Pooya Parsa (@pi0)
- Estéban (@Barbapapazes)
- Gregor Becker (@CodeDredd)
- Bobbie Goede bobbiegoede@gmail.com
- Sébastien Chopin seb@nuxtjs.com
- 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 kawakazu80@gmail.com
- Michael Brevard yonshi29@gmail.com
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 arkadiusz@sygulski.pl