Skip to content

v2.2.0

Choose a tag to compare

@StopMakingThatBigFace StopMakingThatBigFace released this 15 Apr 23:09
· 28 commits to main since this release
e8f4ff8

Release Notes

Added

  • Added tlsDebug options for HTTP and WebSocket:
    • peerCertificates
    • keylog: true | { path: string }
  • Added tlsDanger options for explicit unsafe TLS overrides:
    • certVerification
    • verifyHostname
    • sni
  • Added TLS peer certificate metadata on HTTP responses via response.wreq.tls.
  • Added support for arbitrary HTTP methods, including methods outside the previous allowlist.
  • Added Client helpers for put, patch, delete, head, and options.
  • Added passthrough support for transport controls from wreq:
    • readTimeout
    • connectTimeout
    • http1Only
    • http2Only
    • localAddress
    • localAddresses
    • interface
  • Added WebSocket passthrough controls:
    • forceHttp2
    • readBufferSize
    • writeBufferSize
    • maxWriteBufferSize
    • acceptUnmaskedFrames
    • maxFrameSize
    • maxMessageSize

Changed

  • Kept upstream wreq defaults when transport options are not set.
  • Normalized streamed body timeout failures to TimeoutError.