Skip to content

Releases: forwardemail/superagent

v2.2.0

13 Aug 14:55

Choose a tag to compare

  • Added timedout property to node Request instance (Alexander Pope)
  • Unified null querystring values in node and browser environments. (George Chung)

v2.1.0

15 Jul 16:06

Choose a tag to compare

  • Wait for async parsers to avoid double callback (Kornel Lesiński)
  • DRY parser selection and response creation code (Kornel Lesiński)
  • Treat multipart like other parsers (Kornel Lesiński)
  • Errors thrown in .end() callback don't cause the callback to be called twice (Kornel Lesiński)

2.1.0-beta.1

11 Jun 16:16

Choose a tag to compare

2.1.0-beta.1 Pre-release
Pre-release
2.1.0-beta.1

v2.0.0

11 Jun 16:16

Choose a tag to compare

Breaking changes

Breaking changes are in rarely used functionality, so we hope upgrade will be smooth for most users.

  • Browser: The .parse() method has been renamed to .serialize() to avoid inconsistency with NodeJS version (v1.8.3 supports .serialize() too)
  • Browser: Query string keys without a value used to be parsed as 'undefined', now their value is '' (empty string) (shura, Kornel Lesiński).
  • NodeJS: The redirect event is called after new query string and headers have been set and is allowed to override the request URL (Kornel Lesiński)
  • .then() returns a real Promise. Note that use of superagent with promises now requires a global Promise object.
    If you target Internet Explorer or Node 0.10, you'll need require('es6-promise').polyfill() or similar.
  • Upgraded all dependencies (Peter Lyons)
  • Renamed properties documented as @api private to have _prefixed names (Kornel Lesiński)

Probably not breaking changes:

  • Extracted common functions to request-base (Peter Lyons)
  • Fixed race condition in pipe tests (Peter Lyons)
  • Handle FormData error events (scriptype)
  • Fixed wrong jsdoc of Request#attach (George Chung)
  • Updated and improved tests (Peter Lyons)

2.0.0-alpha.1

26 Mar 21:59

Choose a tag to compare

2.0.0-alpha.1 Pre-release
Pre-release

v1.8.2

21 Mar 15:58

Choose a tag to compare

  • Fixed handling of HTTP status 204 with content-encoding: gzip (Andrew Shelton)
  • Handling of FormData error events (scriptype)
  • Fixed parsing of vnd+json MIME types (Kornel Lesiński)
  • Aliased browser implementation of .parse() as .serialize() for forward compatibility

v1.8.0

09 Mar 19:10

Choose a tag to compare

  • Extracted common code into request-base class (Peter Lyons)
    • It does not affect the public API, but please let us know if you notice any plugins/subclasses breaking!
  • Added option {type:'auto'} to auth method, which enables browser-native auth types (Jungle, Askar Yusupov)
  • Added responseType() to set XHR responseType (chris)
  • Switched to form-data for browserify-compatible FormData (Peter Lyons)
  • Added statusCode to error response when JSON response is malformed (mattdell)
  • Prevented TCP port conflicts in all tests (Peter Lyons)
  • Updated form-data dependency

1.8.0-beta.2

27 Feb 18:41

Choose a tag to compare

1.8.0-beta.2 Pre-release
Pre-release

v1.7.2

26 Jan 16:06

Choose a tag to compare

  • Fix case-sensitivity of header fields introduced by a4ddd6a. (Edward J. Jinotti)
  • bump extend dependency, as former version did not contain any license information (Lukas Eipert)

v1.7.1

21 Jan 15:21

Choose a tag to compare

  • Fixed a conflict with express when using npm 3.x (Glenn)
  • Fixed redirects after a multipart/form-data POST request (cyclist2)