Skip to content

Releases: ladjs/superagent

v1.8.2

21 Mar 15:58
Compare
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
Compare
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
Compare
Choose a tag to compare
1.8.0-beta.2 Pre-release
Pre-release

v1.7.2

26 Jan 16:06
Compare
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
Compare
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)

v1.7.0

19 Jan 14:15
Compare
Choose a tag to compare
  • when attaching files, read default filename from the File object (JD Isaacks)
  • add direction property to progress events (Joseph Dykstra)
  • update component-emitter & formidable (Kornel Lesiński)
  • don't re-encode query string needlessly (Ruben Verborgh)
  • ensure querystring is appended when doing stream.pipe(request) (Keith Grennan)
  • change set header function, not call this.request() until call this.end() (vicanso)
  • add no-op withCredentials to Node API (markdalgleish)
  • fix delete breaking on ie8 (kenjiokabe)
  • don't let request error override responses (Clay Reimann)
  • increased number of tests shared between node and client (Kornel Lesiński)

v1.6.1

16 Dec 00:26
Compare
Choose a tag to compare

(same as v1.6.0, but needed re-publishing to npm)

  • avoid misleading CORS error message
  • add 'progress' event on file/form upload in Node (Olivier Lalonde)
  • return raw response if the response parsing fails (Rei Colina)
  • parse content-types ending with +json as JSON (Eiryyy)
  • fix to avoid throwing errors on aborted requests (gjurgens)
  • retain cookies on redirect when hosts match (Tom Conroy)
  • add Bower manifest (Johnny Freeman)
  • upgrade to latest cookiejar (Andy Burke)

v1.6.0

16 Dec 00:20
Compare
Choose a tag to compare
v1.6.0 Pre-release
Pre-release

See 1.6.1

v1.5.0

03 Dec 16:45
Compare
Choose a tag to compare
  • encode array values as key=1&key=2&key=3 etc... (aalpern, Davis Kim)
  • avoid the error which is omitted from 'socket hang up'
  • faster JSON parsing, handling of zlib errors (jbellenger)
  • fix IE11 sends 'undefined' string if data was undefined (Vadim Goncharov)
  • alias del() method as delete() (Aaron Krause)
  • revert Request#parse since it was actually Response#parse

v1.4.0

03 Dec 16:46
Compare
Choose a tag to compare
  • add Request#parse method to client library
  • add missing statusCode in client response
  • don't apply JSON heuristics if a valid parser is found
  • fix detection of root object for webworkers