@elastic/transport
9.6.1 · 18 Nov 2026Apache-2.02.3M / weekRepositoryHomepagenpmAtom feed
68 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 9.x · latest line
9.6.1
18 Nov 2026Reject already-aborted signals in
HttpConnection(#443).
A pre-abortedAbortSignalnow rejects withRequestAbortedErrorwithout contacting the server, matchingUndiciConnection.
Bug fixes
Validate per-request transport options (#422, fixes #405).
Per-requestmaxRetries,maxResponseSize, andmaxCompressedResponseSizenow get the same checks as constructor options. Retry counts must be non-negative integers; invalid values throwConfigurationError.Honor per-request
retryOnTimeout(#432, fixes #431).
The per-request value now overrides the constructor value, likemaxRetriesandrequestTimeout.Reject already-aborted signals in
HttpConnection(#443).
A pre-abortedAbortSignalnow rejects withRequestAbortedErrorwithout contacting the server, matchingUndiciConnection.Keep
WeightedConnectionPoolreturning live connections (#445).getConnectioncould returnnullaftermarkDeadcalls while live connections still existed.Return every Elasticsearch
Warningheader (#447).
Warnings containing commas or leading/trailing spaces were merged with their neighbour and dropped.Tolerate a literal
%in URL credentials (#446).createConnectionno longer throwsURIErrorfor credentials likeuser:p%ss. Valid percent-escapes are still decoded.stripAuthonly removes credentials (#440, #442).
URLs with@in the path, query, or fragment were mangled (http://a:1/?@becamehttp://). This affected connection ids,inspect/toJSONoutput, and OpenTelemetry URL attributes.ResponseError.messageis always a string (#441).redactObjectpreserves nested arrays and__proto__keys (#439).Reject
__proto__header names (#438).
These were silently dropped; they now throwConfigurationError.
9.6.0
6 Nov 2026Summary· from the note as AI read it
Read before upgrading: 1 change to make.
Pin
caFingerprintto the matching certificate (#426).
A fingerprint match used to accept the connection. The matching certificate is now the only trust anchor, and signature, expiry, and hostname checks stay on. A functionagentcannot be combined withcaFingerprint.
9.4.1
2 Oct 2026Keep Undici connections alive on
HEADandDELETE-with-body requests (#420, fixes #419).
By default, Undici marks the socket for reset onHEADrequests and onGET/DELETErequests that carry a body. That sendsConnection: closeand tears down the pooled socket after every such request. Elasticsearch handles both cases correctly, so the transport now passesreset: falseto Undici. Pooled connections are reused, which avoids a new TCP/TLS handshake per request (for example,indices.exists).
9.4.0
29 Jul 2026Reject requests that exceed configurable
maxPathLengthMove OpenTelemetry tracing into a middleware; capture sanitized search queries as
db.query.text
#383Prevent uncaught write EPIPE on peer close mid-request
Features
Reject requests that exceed configurable
maxPathLengthMove OpenTelemetry tracing into a middleware; capture sanitized search queries as
db.query.text
#383
Fixes
Prevent uncaught write EPIPE on peer close mid-request
Support path prefix in node URL
Strip credentials from OTel span attributes
9.3.7
1 Jun 2026Mark timed-out nodes dead when retryOnTimeout is false
9.3.6
20 May 2026Use Buffer.concat for UTF-8 response body to prevent multi-byte character corruption
Prevent false NoLivingConnectionsError in WeightedConnectionPool
Prevent ConnectionError with empty message
Bug fixes
Use Buffer.concat for UTF-8 response body to prevent multi-byte character corruption
Prevent false NoLivingConnectionsError in WeightedConnectionPool
Prevent ConnectionError with empty message
Ensure Error.cause propagates
Use correct content-type on empty requests
9.3.5
4 Mar 2026Add body/query/path categorization to
acceptedParamsonTransportRequestMetadataso consumers can determine where to inject parameters. Breaking:acceptedParamschanged fromstringtostring | { path: string, body: string, query: string }.9.3.4
3 Mar 2026Add body/query/path categorization to
acceptedParamsonTransportRequestMetadataso consumers can determine where to inject parameters. Breaking:acceptedParamschanged fromstringto{ path: string, body: string, query: string }.9.3.3
9 Feb 2026Fix: ESM build no longer uses createRequire for version resolution
9.3.2
5 Feb 2026Hot fix to properly support ESM/CommonJS imports on Windows
9.3.1
5 Feb 20269.2.2
5 Dec 2025Track request duration #313
Undici Buffer response handling (thanks @GiorgiZanqaidze!) #324
9.1.2
3 Sep 2025Set default content type for empty requests
9.0.1
16 Apr 2025Reinstate former default for node filter function
9.0.0
15 Apr 2025- Breaking
Remove default 30-second timeout on HTTP requests #201
- Breaking
Upgrade Undici from 6 to 7 #203
Minor updates of Serializer module (thanks @shevchenkonik!) #232
- 8.x
8.11.0
26 Aug 2026Reject requests that exceed configurable
maxPathLengthPrevent uncaught write EPIPE on peer close mid-request
8.10.2
7 Jul 20268.9.6
16 Apr 2025Reinstate former default for node filter function
8.3.4
12 Sep 2023bugfix: Skip sniffing newly-added nodes that do not have HTTP information yet elastic/elasticsearch-js#1230
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.