undici

An HTTP/1.1 client, written from scratch for Node.js

MIT License

Downloads
233.9M
Stars
5.7K
Committers
274

Bot releases are hidden (Show)

undici - v4.8.1

Published by mcollina almost 3 years ago

What's Changed

Full Changelog: https://github.com/nodejs/undici/compare/v4.8.0...v4.8.1

undici - v4.8.0

Published by mcollina about 3 years ago

What's Changed

Full Changelog: https://github.com/nodejs/undici/compare/v4.7.3...v4.8.0

undici - v4.7.3

Published by mcollina about 3 years ago

What's Changed

Full Changelog: https://github.com/nodejs/undici/compare/v4.7.2...v4.7.3

undici - v4.7.2

Published by ronag about 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/undici/compare/v4.7.1...v4.7.2

undici - v4.7.0

Published by mcollina about 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/undici/compare/v4.6.0...v4.7.0

undici -

Published by ronag about 3 years ago

Fixes

  • Simplify and fix assertion (#1033)
  • Only pause on >=200 body (a48f9f009f88dbe3233507414216d068b47e711d)
  • BodyMixin.arrayBuffer Buffer -> ArrayBuffer typedefs (#1025)
  • FormData.set empties this[kState] if k exists (#1017) …
  • Prioritize host header (#1007)
  • Fetch response body may be undefined

Improvements

  • Add blocking request option (#1034)
  • Add experimental diagnostics channel (#1000)
  • Improve code coverage of lib/fetch/headers.js (#1027)
  • Avoid duplicate require (#1023)
  • Add onInfo option (#977)
undici -

Published by ronag about 3 years ago

Fixes

  • Accept undefined signal (#1004)
  • Revert incorrect servername fix (#1005)
  • Fetch request body null check (1973c626dc779b241e9db748a08a4f141f647ea8)
undici - fetch Types

Published by ronag about 3 years ago

Improvements

  • fetch types (#997)
  • Add notes about gc spec compliance (#999)
undici -

Published by ronag about 3 years ago

Fixes

  • Fix servername calculation (#993)
  • Include final URL in redirect history (#994).
undici -

Published by ronag about 3 years ago

Improvements

  • Lazy load llhttp (#989)

Fixes

  • Follow fetch spec in regards to USVString (#986)
undici -

Published by ronag about 3 years ago

Improvements

  • Support async iterable body in Request(eeadb5ec6e52c36df2230fcd4719215b42798fed)

Fixes

  • decodedBodySize on failure (d244b90595fae421ca470434f6cb66621fe633ee)
  • prefer stream.compose when available (32543652635c1d3e1d858680593a1b965f888bae)
  • FormData File fixes (075d80a89297679f5e7f57c843b87d0930e556df)
  • Improve test coverage
undici - FormData

Published by ronag about 3 years ago

Improvements

  • FormData (#961)
undici -

Published by ronag about 3 years ago

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.
undici -

Published by ronag about 3 years ago

Improvements

  • Decompression support (#954)

Fixes

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

Published by ronag about 3 years ago

Improvements

undici - Body Mixin

Published by ronag about 3 years ago

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)
undici -

Published by ronag about 3 years ago

Improvements

  • Creating util function to validate handlers (#894)

Fixes

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

Published by ronag over 3 years ago

Improvements

  • connect option (#881, 104be9ce66167d010a6c5e87865715260bb92280, #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 (3b669058282a29a218a3ba29709e60efb04bb347, #888)

Fixes

  • Validate opts (ad2a490babc2687eaa49805d38ba2149a6d72360)
  • Forward connectionError(5172fd98fbaa449cd2b85ccca8024d34458779a3)
undici - v4.1.0 - Same Origin Redirect & Request Iterator Body

Published by ronag over 3 years ago

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)
undici - v4.0.0 - Unified API, Docs Site, WASM, Redirect and Mocking

Published by ronag over 3 years ago

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 (3d1027f5272f1ffd62a0a990b504636b1a3e158d)
  • Pass headers as Buffer (#696)
  • Simplify api (#695)
  • Accept callbacks in Agent close and destroy (d1a406f982bda23a982c89a58ccc8ae049ed034e)
  • Added closed and destroyed properties on Agent (#634)
  • Allow overriding timeouts per requests (#679)
  • Update deps (#675, 8158defc0ad159470bf52eacf5ff9e12005e11e5)
  • 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, 5095a2b3be8c7e338418905eec423fcc8a631ef9, #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 (e8ece2a7e8c5be2a8eef81d01f38a82a0a329dbb)
  • Add factory arg to Pool and Agent (761738a045712840f24c2c2f2b3670797823ecf5)
  • Use husky (#605)
  • Add pr and issue templates (#608)
  • Allow process to exit when no requests are pending (#772)
  • Add data to parser errors (7a750ba998cbc4c125f747876536655c2f7b7c02)
  • 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 (252b676756053bc8bcf70cff89cad33243a9c9e5)
  • Invoke onUpgrade after detach (641e0185efe1090e412f6b9b7ec243ad18c52880)
  • 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 (3d002c135fcdbcccdf25120ef1fa8ab43e8228d5)
  • Agent.dispatch catch error (8c0051f8d25badb252c4a13b7810fc9556f908e9)
  • destroy IncomingMessage (#834)
  • Handle invalid response body length (#816)
  • Guard against user throw in onError (#818)
  • Only emit 'disconnect' if 'connect' (#771)
Package Rankings
Top 0.54% on Npmjs.org
Top 13.24% on Repo1.maven.org
Top 6.72% on Proxy.golang.org
Badges
Extracted from project README
Node CI neostandard javascript style npm version codecov
Related Projects