Skip to content

Releases: nodejs/undici

FormData

17 Aug 13:42
Compare
Choose a tag to compare

Improvements

v4.4.3

17 Aug 11:54
Compare
Choose a tag to compare

Improvements

  • Add doc for url object (#970)

Fixes

  • Redirect handler should not modify stream state (#973)
  • Coverage reports (#972)
  • Post with paused stream (#969)
  • toWebReadable finishing too early (#962) …
  • Various fetch fixes and spec compliance improvements.

v4.4.2

13 Aug 17:15
Compare
Choose a tag to compare

Improvements

  • Decompression support (#954)

Fixes

  • Terminate fetch on gc (#950)
  • request body.body regression (#955)
  • Misc bug fixes and spec compliance improvements.

fetch

12 Aug 11:50
Compare
Choose a tag to compare

Improvements

  • Experimental implementation of fetch standard (#928).

Body Mixin

31 Jul 15:17
Compare
Choose a tag to compare

Improvements

  • Implement body mixin on Readable (#907)
  • Expose Connector in the public API (#906, #909)
  • Improve connect option type definitions (#899)

Fixes

  • Accept URL origin in Agent (#892)
  • origin as optional parameter on Client and Pool types definitions (#901, #903)
  • Broken link for examples on website (#897)

v4.2.2

22 Jul 18:11
Compare
Choose a tag to compare

Improvements

  • Creating util function to validate handlers (#894)

Fixes

  • Always clear the connectTimeout (#896)
  • Accept URL origin in Agent (#892)

Connect

19 Jul 13:16
Compare
Choose a tag to compare

Improvements

  • connect option (#881, 104be9c, #887)
  • Documentation and test for using client certificates (#890)
  • Reduce code duplication (#891)
  • Add onBodyChunkSent callback to dispatch (#847)
  • Add documentation and types for request headerTimeout & bodyTimeout (3b66905, #888)

Fixes

v4.1.0 - Same Origin Redirect & Request Iterator Body

29 Jun 18:03
Compare
Choose a tag to compare

Improvements

  • Add support for request iterator body (#848)
  • Same origin redirect (#781)

Fixes

  • Add missing string[] option for passed headers (#836)
  • Fix errors in documentation (#846)

v4.0.0 - Unified API, Docs Site, WASM, Redirect and Mocking

16 Jun 10:00
Compare
Choose a tag to compare

This release contains multiple breaking changes. These should not affect the majority of users but it is recommended to consider the full change list.

Improvements

  • Improved global API ergonomics (#740)
  • Removed --insecure-http-parser support (3d1027f)
  • Pass headers as Buffer (#696)
  • Simplify api (#695)
  • Accept callbacks in Agent close and destroy (d1a406f)
  • Added closed and destroyed properties on Agent (#634)
  • Allow overriding timeouts per requests (#679)
  • Update deps (#675, 8158def)
  • Add undici mocking support (#587)
  • Unify Client, Pool & Agent under Dispatcher (#544, #606, #620)
  • Add connectTimeout (#619)
  • Follow redirects (#603) (#769)
  • Client lifecycle diagram (#567)
  • Docs improvements and site (undici.nodejs.org) (#550, #565, #567, #582, #585, #596, 5095a2b, #627)
  • Reuse tls sessions across clients of a connection pool (#588)
  • Add strictContentLength option to treat request content length mismatch as warning (#586)
  • Connecting through a proxy (#568)
  • Agent connect/disconnect events (#558)
  • Use llhttp WASM build for http parsing (#564, #611, #642, #648, #680)
  • Only append non empty search to path (e8ece2a)
  • Add factory arg to Pool and Agent (761738a)
  • Use husky (#605)
  • Add pr and issue templates (#608)
  • Allow process to exit when no requests are pending (#772)
  • Add data to parser errors (7a750ba)
  • Try to re-use timer when possible (#729)
  • Make request errors explicit (#777)
  • Add fuzzing support (#821)
  • connect (#763)
  • unref socket while idle (#772)

Fixes

  • Don't emit 'disconnect' without preceding 'connect'(#771)
  • Don't fail when response ends before request body (#709)
  • Don't headersTimeout while writing request body (#646)
  • Emit 'disconnect' after destroy() (#665)
  • Refresh timeout timer on parser resume (#653)
  • Agent deep copy options (#636)
  • Kill socket on request abort (#689)
  • Add more strict check for streams in util.isStream() (#628)
  • Remove Node 10 support (#623)
  • Remove the esm wrapper, rely on commonjs auto detection (#599)
  • Always detach socket on upgrade (252b676)
  • Invoke onUpgrade after detach (641e018)
  • Missing client arg (#555)
  • Reduce queueMicrotask scope (#572)
  • Wait for queued handlers to run before onError (#548)
  • Add BodyTimeoutError to error types (#546)
  • Omit path in undici.request opts (ts) (#559)
  • Don't queue if destroyed (3d002c1)
  • Agent.dispatch catch error (8c0051f)
  • destroy IncomingMessage (#834)
  • Handle invalid response body length (#816)
  • Guard against user throw in onError (#818)
  • Only emit 'disconnect' if 'connect' (#771)

v3.3.6

24 Apr 14:45
Compare
Choose a tag to compare

📚 PR:

  • Fix issue with util.queueMicrotask and cjs loader (#762)
  • Working with esm on all versions (#768)