$ the-wire · showcase
node --run forwards signals, undici stops losing streamed bodies
By RepoJournal · Filed · About Node.js · Composed from the cited sources · methodology
Two long-standing gaps closed today: node --run now behaves like npm run under Ctrl-C, and undici's retry and redirect interceptors no longer silently re-send a consumed streaming body as empty.
fix(retry,redirect): don't re-send a consumed streaming body as empty nodejs/undici
When a request body is an async iterable, a sync iterator or a web ReadableStream, the retry interceptor, RetryAgent, the redirect interceptor and RedirectHandler.buildDispatch could re-send the request with an empty body after the first attempt consumed it, so the caller got the response to the empty request (a 200 after a 503, a 307 redirect with nothing behind it) and the upload was silently...
fix: keep HTTP/1 headers timeout across interim responses nodejs/undici
The HTTP/1 headers timer used to restart on each 1xx response; it now runs continuously across informational responses, so repeated interim responses can no longer postpone the final response indefinitely and keep queued requests waiting on a bounded pool. Regression tests cover repeated interim responses, pool recovery after timeout, and an interim response followed by a successful final respo...
src: forward signals to node --run scripts nodejs/node
node --run now forwards SIGINT and SIGTERM to the script and waits for it to exit, like npm run, then propagates the script's exit code or re-raises the signal that terminated it. Scripts launched that way stop orphaning children and the parent finally reports the real exit status.
http2: destroy stream on compat request destroy nodejs/node
The docs say request.destroy() calls destroy() on the Http2Stream, but Http2ServerRequest never implemented it, so the stream stayed open and a response could still be sent afterward. It now destroys the stream when the request has not been read to the end, like HTTP/1's IncomingMessage does with its socket, and leaves it alone after 'end' so for await (const chunk of req) does not abort the re...
fix(readable): reject concurrent body consumes with TypeError instead of hanging or throwing (#5992) nodejs/undici
Consuming a body twice concurrently in undici used to hang or throw; it now rejects with a TypeError. Plus a quiet tail: V8 patched to 15.8.62.81, QUIC reset tokens issued locally no longer leak past session teardown, and the fetch docs now point at Dispatcher.compose() for retry, timeouts, decompression and structured 5xx errors.