@elastic/transport
9.6.1 · 18 Nov 2026Apache-2.02.3M / weekRepositoryHomepagenpmAtom feed
In short
10 fixed1 internal
Release note
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.
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.