Packages

@elastic/transport

9.6.1 · 18 Nov 2026Apache-2.02.3M / weekRepositoryHomepagenpmAtom feed

Your version

9.6.1

Latest18 Nov 2026Where it was published

In short

10 fixed1 internal

Release note

Bug fixes

  • Validate per-request transport options (#422, fixes #405).
    Per-request maxRetries, maxResponseSize, and maxCompressedResponseSize now get the same checks as constructor options. Retry counts must be non-negative integers; invalid values throw ConfigurationError.

  • Honor per-request retryOnTimeout (#432, fixes #431).
    The per-request value now overrides the constructor value, like maxRetries and requestTimeout.

  • Reject already-aborted signals in HttpConnection (#443).
    A pre-aborted AbortSignal now rejects with RequestAbortedError without contacting the server, matching UndiciConnection.

  • Keep WeightedConnectionPool returning live connections (#445).
    getConnection could return null after markDead calls while live connections still existed.

  • Return every Elasticsearch Warning header (#447).
    Warnings containing commas or leading/trailing spaces were merged with their neighbour and dropped.

  • Tolerate a literal % in URL credentials (#446).
    createConnection no longer throws URIError for credentials like user:p%ss. Valid percent-escapes are still decoded.

  • stripAuth only removes credentials (#440, #442).
    URLs with @ in the path, query, or fragment were mangled (http://a:1/?@ became http://). This affected connection ids, inspect/toJSON output, and OpenTelemetry URL attributes.

  • ResponseError.message is always a string (#441).

  • redactObject preserves nested arrays and __proto__ keys (#439).

  • Reject __proto__ header names (#438).
    These were silently dropped; they now throw ConfigurationError.

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.