Skip to content

Releases: ladjs/superagent

v5.0.1

28 Mar 17:19
v5.0.1
1de219e
Compare
Choose a tag to compare

v5.0.0...v5.0.1

v5.0.0

28 Mar 07:36
v5.0.0
1618f8d
Compare
Choose a tag to compare
  • fix: removed core-js, fixed docs with async/await + then/catch usage f0bcdc0
  • Merge pull request #1473 from ladjs/master 2fd631a
  • docs: removed line regarding 8.8.1 being required d22ebd7
  • feat: modern rewrite and refactoring 47f1d28
  • Merge pull request #1468 from bajtos/fix/formdata-error 076e55a
  • Fix handling of FormData errors e6ffbde
  • History formatting 0f0949f
  • Merge pull request #1377 from eromano/master-2 f3ac20c
  • Maintenance status #1450 ad4c96f
  • clear timeout 100 percent e6630ec
  • change after review 03e5efa
  • add upload timeout 650b521

v4.1.0...v5.0.0

IP overrides

26 Dec 20:03
Compare
Choose a tag to compare
  • .connect() IP/DNS override option (Kornel)
  • .trustLocalhost() option for allowing broken HTTPS on localhost
  • .abort() used with promises rejects the promise.

v4 = ES6 natively

17 Nov 15:19
Compare
Choose a tag to compare

Breaking changes

  • Node.js v4 has reached it's end of life, so we no longer support it. It's v6+ or later. We recommend Node.js 10.
  • We now use ES6 in the browser code, too.
    • If you're using Browserify or Webpack to package code for Internet Explorer, you will also have to use Babel.
    • The pre-built node_modules/superagent.js is still ES5-compatible.
  • .end(…) returns undefined instead of the request. If you need the request object after calling .end() (and you probably don't), save it in a variable and call request.end(…). Consider not using .end() at all, and migrating to promises by calling .then() instead.
  • In Node, responses with unknown MIME type are buffered by default. To get old behavior, if you use custom unbuffered parsers, add .buffer(false) to requests or set superagent.buffer[yourMimeType] = false.
  • Invalid uses of .pipe() throw.

Minor changes

  • Throw if req.abort().end() is called
  • Throw if using unsupported mix of send and field
  • Reject .end() promise on all error events (Kornel Lesiński)
  • Set https.servername from the Host header (Kornel Lesiński)
  • Leave backticks unencoded in query strings where possible (Ethan Resnick)
  • Update node-mime to 2.x (Alexey Kucherenko)
  • Allow default buffer settings based on response-type (shrey)
  • response.buffered is more accurate.

v4.0.0-beta.2

25 Jul 15:53
Compare
Choose a tag to compare
v4.0.0-beta.2 Pre-release
Pre-release

v4.0.0-alpha.1

29 Apr 16:28
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

v3.8.3

29 Apr 16:27
Compare
Choose a tag to compare
  • Add flags for 201 & 422 responses (Nikhil Fadnis)
  • Emit progress event while uploading Node Buffer via send method (Sergey Akhalkov)
  • Fixed setting correct cookies for redirects (Damien Clark)
  • Replace .catch with ['catch'] for IE9 Support (Miguel Stevens)

v3.8.2

29 Apr 16:27
Compare
Choose a tag to compare
  • Fixed handling of exceptions thrown from callbacks
  • Stricter matching of +json MIME types.

v3.8.1

29 Apr 16:27
Compare
Choose a tag to compare
  • Clear authorization header on cross-domain redirect

v3.8.0

08 Nov 22:51
Compare
Choose a tag to compare
  • Added support for "globally" defined headers and event handlers via superagent.agent(). It now remembers default settings for all its requests.
  • Added optional callback to .retry() (Alexander Murphy)
  • Unified auth args handling in node/browser (Edmundo Alvarez)
  • Fixed error handling in zlib pipes (Kornel)
  • Documented that 3xx status codes are errors (Mickey Reiss)