unstale

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

@unstale/cli on npm

@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.

    4.14.2release notes

  • Node.js 16 is no longer supported.

    4.0.0release notes

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.

    4.14.0release notes

  • Options can now be passed through to Node's http2.connect.

    4.7.0release notes

Performance 1

Behavior and default changes 1

  • NodeHttpHandler and NodeHttp2Handler apply a service default idle timeout on their own timers without changing socketTimeout or requestTimeout.

    4.13.0release notes

Fixes and other changes 12

  • Concurrent first requests now share one http.Agent, so destroy() closes every socket.

    4.14.1release notes

  • The timeout is cleared before destroying an HTTP/2 session, preventing completed requests from being retained until the timer fires.

    4.12.1release notes

  • Isolated HTTP/2 sessions are destroyed and their timeout is managed.

    4.12.0release notes

  • Types were updated to support isolatedModules=true.

    4.9.4release notes

  • On GOAWAY, the handler now prefers session.close() instead of immediately calling session.destroy().

    4.6.1release notes

  • Adds an eventStream indicator signal to NodeHttp2ConnectionManager so it does not reuse connections for event streams.

    4.5.3release notes

  • 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.

    4.4.16release notes

  • Aborted requests are rejected with AbortSignal.reason instead of a generic Error.

    4.4.13release notes

  • Calls request.end() without an argument when the buffer is empty.

    4.4.10release notes

  • Uses the configured logger when one is provided.

    4.4.9release notes

  • Skips the body write delay when the HTTP Agent is externally owned.

    4.4.4release notes

  • HTTP/1 calls with this header are shifted to isolated HTTP Agents.

    4.4.3release notes

@smithy/node-http-handler 34 changes

Breaking changes 1

  • The minimum supported Node.js version is updated to 16.

    3.0.0release notes

Performance 1

Behavior and default changes 2