Packages

undici

8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed

Your version

8.2.0

1 May 2026Where it was published

8.13.1 is the newest release of 8.x.

In short

2 new7 faster37 fixed4 changed9 internal

Security

Fixes 1 advisory that affected 8.1.0

30 advisories affect 8.2.0; 8.12.2 fixes them

25 more

Release note

What's Changed

  • Fix the logic for the UNDICI_NO_WASM_SIMD environment variable

  • http2: Send body for non-expectsPayload methods with content

  • webidl: Correct signed integer bounds in ConvertToInt

  • fetch: Use || for CRLF check in multipart formdata-parser

  • websocket: Correct argument order in WebSocketStream UTF-8 failure

  • pool: Propagate useH2c to connector when connections > 1

  • cache: Return immutable staleAt in milliseconds

  • socks5-proxy-agent: Use per-origin pools to prevent cross-origin routing

  • cache: Evict oldest entries first in SqliteCacheStore prune

  • socks5: Correctly expand IPv6 '::' compressed notation

  • Remove unused func and unnecessary shim

  • Reject malformed content-length request headers

  • request: Reject NaN highWaterMark during option validation

  • fetch: Prefer filename* over filename in multipart form-data

  • http2: Reject websocket upgrades on non-200 responses

  • Support username-only proxy authentication in ProxyAgent

  • client-h2: Stop double-decrementing kOpenStreams on stream timeout

  • http2: Reject upgrade streams closed before response headers

  • http2: Allow GET and HEAD request bodies over h2

  • cache: Include query in cache key when opts.path is undefined

  • Avoid premature cleanup of dispatcher in Agent

  • http2: Record ping failures on the socket

  • Add undici security policy

  • mock: Make filterCalls AND operator actually intersect results

  • socks5: Enforce authenticated state before CONNECT

  • cache: Skip expired sqlite vary entries during lookup

  • Enforce maxCachedSessions in TLS session cache

  • socks5: Encode embedded IPv4 tails in IPv6 literals correctly

  • Handle invalid HTTP/2 connection headers

  • interceptor: Add throwOnMaxRedirect to types and interceptor opts

  • websocket: Avoid double-closing canceled stream readers

  • cache: Persist vary when updating sqlite cache entries

  • client: Cache llhttp wasm buffer view

  • http2: Preserve accepted streams after GOAWAY

  • Reuse parser WeakRef for timeout callbacks

  • Stop buffering data after SOCKS5 connect

  • http2: Avoid response header reserialization

  • cache: Enforce sqlite maxCount after insert

  • Reduce EventSourceStream parser allocations

  • types(dispatcher): use OutgoingHttpHeaders for request headers

  • cleanup: Delete redundant .gitkeep file

  • http2: Respect peer max concurrent streams

  • client: Parse h1 content-length statelessly

  • http2: Reduce writeH2 per-request callback allocations

  • Use byteLength property for binary body chunks

  • cache: Allow streamed entries at maxEntrySize limit

  • http2: Avoid cloning headers when removing status

  • Validate H2CClient maxConcurrentStreams option

  • Avoid redundant scans in BalancedPool dispatcher selection

  • Replace stale pool clients under connection limit

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.