v0.12.6
Changed 1
- Derive HeadersInit from the ambient Headers in bun
Fixed 13
- Make send-failure recovery unable to throw in node
- Discard the body for HEAD requests to a Node stream response
- Destroy body stream when client aborts before first chunk in node
- Normalize absolute-form request targets instead of trusting them in node
- Prevent client path and Host header from overriding request.url origin in aws-lambda
- Honor NODE_ENV=production again in cli
- Forward tls/protocol/node from an intercepted serve() entry in cli
- Serve _request over the size-limited body in body-limit
- Honor writeHead headers when statusMessage is not a string in node/web
- Do not duplicate cookies from headers and cookies[] in aws-lambda
- Reject body reads with the abort reason after a client disconnect in node
- Detect client disconnects before a body read in node/http2
- Do not rely on Node's lazy IncomingMessage.headers accessor in node/web
From srvx
🩹 Fixes
- node: Make send-failure recovery unable to throw (474ac29)
- node: Discard the body for HEAD requests to a Node stream response (e2fc775)
- node: Destroy body stream when client aborts before first chunk (8d9c958)
- node: Normalize absolute-form request targets instead of trusting them (a11765b)
- aws-lambda: Prevent client path and Host header from overriding request.url origin (b1e440c)
- cli: Honor
NODE_ENV=productionagain (2e7a135) - cli: Forward tls/protocol/node from an intercepted serve() entry (2f5ff20)
- body-limit: Serve
_requestover the size-limited body (6882f6d) - node/web: Honor writeHead headers when statusMessage is not a string (46336b3)
- aws-lambda: Do not duplicate cookies from headers and cookies[] (#291)
- node: Reject body reads with the abort reason after a client disconnect (3a5187e)
- node/http2: Detect client disconnects before a body read (5f1ed2c)
- node/web: Do not rely on Node's lazy
IncomingMessage.headersaccessor (0fbfb06)
📖 Documentation
- node: Document that mutating response headers preserves the raw body (8f8f95b)
🌊 Types
- bun: Derive
HeadersInitfrom the ambientHeaders(#288)
✅ Tests
- bun: Actually run the node-compat suites under Bun (27a071c)
❤️ Contributors
- Pooya Parsa (@pi0)
- SeaStar Deng (@DSeaStar)
- Alexander Chepurnoy (@cany748)