npm / @smithy/node-http-handler
@smithy/node-http-handler
What changed in @smithy/node-http-handler 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking2 new APIs and options2 performance3 behavior and defaults12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@smithy/node-http-handler 418 changes
Breaking changes 2
Configured and service-default socket idle timeouts remain armed through response bodies, so stalled or incomplete bodies can fail with TimeoutError instead of hanging; timeouts of 6000 ms or more may fire up to 3000 ms late.
Node.js 16 is no longer supported.
New APIs and options 2
Clients can offer a service default idle timeout through updateHttpClientConfig; it is used only when the handler has no idle timeout of its own.
Options can now be passed through to Node's http2.connect.
Performance 1
Loading of the node:http module is deferred.
Behavior and default changes 1
NodeHttpHandler and NodeHttp2Handler apply a service default idle timeout on their own timers without changing socketTimeout or requestTimeout.
Fixes and other changes 12
Concurrent first requests now share one http.Agent, so destroy() closes every socket.
The timeout is cleared before destroying an HTTP/2 session, preventing completed requests from being retained until the timer fires.
Isolated HTTP/2 sessions are destroyed and their timeout is managed.
Types were updated to support isolatedModules=true.
On GOAWAY, the handler now prefers session.close() instead of immediately calling session.destroy().
Adds an eventStream indicator signal to NodeHttp2ConnectionManager so it does not reuse connections for event streams.
Abort errors now use a new mutable Error with the original as .cause, preventing retry middleware from failing when setting $metadata on a frozen or sealed abort reason.
Aborted requests are rejected with AbortSignal.reason instead of a generic Error.
Calls request.end() without an argument when the buffer is empty.
Uses the configured logger when one is provided.
Skips the body write delay when the HTTP Agent is externally owned.
HTTP/1 calls with this header are shifted to isolated HTTP Agents.
@smithy/node-http-handler 34 changes
Breaking changes 1
The minimum supported Node.js version is updated to 16.
Performance 1
Stream collection is faster.
Behavior and default changes 2
sdkStreamMixin now handles web streams.
streamCollector now handles web streams.