Skip to content

Releases: ladjs/superagent

v3.1.0

28 Nov 15:02
Compare
Choose a tag to compare
  • Added .sortQuery() (vicanso)
  • Added support for arrays and bools in .field() (Kornel Lesiński)
  • Made superagent.Request subclassable without need to patch all static methods (Kornel Lesiński)

v3.0.0

23 Nov 18:50
Compare
Choose a tag to compare

There are no big breaking changes and the upgrade should be smooth.

We no longer support Node 0.x. If you're still using Internet Explorer 6 Node 0.x, please please upgrade ASAP, as the old Node isn't even getting security patches any more.

  • Dropped support for Node 0.10 and 0.12.
  • Dropped support for componentjs (Damien Caselli)
  • Multiple .send() calls mixing Buffer/Blob and JSON data are not possible and will now throw instead of messing up the data.
  • Improved .send() data object type check (Fernando Mendes)
  • Added pfx TLS option with new pfx() method. (Reid Burke)
  • Added common prototype for Node and browser versions (Andreas Helmberger)
  • Added http+unix: schema to support Unix sockets (Yuki KAN)
  • Added full attach options parameter in the Node version (Lapo Luchini)
  • Internally changed .on to .once to prevent possible memory leaks (Matt Blair)
  • Made all errors reported as an event (Kornel Lesiński)
  • set xhr.response instead of xhr.responseText to err.rawResponse (Pavel Ayusheev)

3.0.0-alpha.3

15 Nov 23:35
Compare
Choose a tag to compare
3.0.0-alpha.3 Pre-release
Pre-release

3.0.0-alpha.2

08 Nov 00:53
Compare
Choose a tag to compare
3.0.0-alpha.2 Pre-release
Pre-release
Alpha 2

3.0.0-alpha.1

30 Oct 23:04
Compare
Choose a tag to compare
3.0.0-alpha.1 Pre-release
Pre-release
Version bump

v2.3.0

20 Sep 16:54
Compare
Choose a tag to compare
  • Enabled .field() to handle objects (Affan Shahid)
  • Added authentication with client certificates (terusus)
  • Added .catch() for more Promise-like interface (Maxim Samoilov, Kornel Lesiński)
  • Silenced errors from incomplete gzip streams for compatibility with web browsers (Kornel Lesiński)
  • Fixed event.direction in uploads (Kornel Lesiński)
  • Fixed returned value of overwritten response object's on() method (Juan Dopazo)

v2.2.0

13 Aug 14:55
Compare
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
Compare
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
Compare
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
Compare
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)