github nodejs/undici v2.0.0

latest releases: v6.21.0, v7.0.0-alpha.3, v6.20.1...
4 years ago

Breaking

  • Client.dispatch provides headers and trailers as an array of values (#337).
  • Client.dispatch adds a onConnect handler to handle abort once dispatched on socket.
  • Client.dispatch expects request body to be handled by caller until onConnect has been called.
  • Removed signal option in Client.dispatch.
  • Removed requestTimeout option in new Client(url, opts). Provide requestTimeout as an option for each individual request (#383).
  • Client.busy behavior slightly changed (#366).
  • Rename maxKeepAliveTimeout option in new Client(url, opts) to keepAliveMaxTimeout (#359).
  • requestTimeout monitors time from request having been sent instead of from when it was queued (#343).
  • Error body on premature close (#336).

Fixes

  • Unhandled exception (#372).
  • Destroy request body on invalid callback (#382).
  • Run Client.upgrade & Client.connect callbacks in async scope.
  • CONNECT calls onUpgrade multiple times (#348).
  • Don't reset socket until pipeline is empty (#334).
  • Allow throwing from handler (#335).

Improvements

  • Reuse TLS sessions (#358).
  • ESM wrapper for named imports (#369).
  • Pool queued requests and dispatch on first available client.
  • Added keepAlive option (#357).
  • Try to avoid slow net.isIP (#330).
  • Various refactoring and performance improvements.

Don't miss a new undici release

NewReleases is sending notifications on new releases.