Update dependency superagent to v3 - abandoned #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.8.4
->3.0.0
By merging this PR, the below issues will be automatically resolved and closed:
Release Notes
visionmedia/superagent
v3.0.0
Compare Source
.part()
/superagent.Part
APIs..body
property on internal response object used by unbuffered parsers.Note: the normal
response.body
is unaffected..send()
calls mixingBuffer
/Blob
and JSON data are not possible and will now throw instead of messing up the data..send()
data object type check (Fernando Mendes)http+unix:
schema to support Unix sockets (Yuki KAN)attach
options parameter in the Node version (Lapo Luchini)pfx
TLS option with newpfx()
method. (Reid Burke).on
to.once
to prevent possible memory leaks (Matt Blair)v2.3.0
Compare Source
.field()
to handle objects (Affan Shahid).catch()
for more Promise-like interface (Maxim Samoilov, Kornel Lesiński)event.direction
in uploads (Kornel Lesiński)on()
method (Juan Dopazo)v2.2.0
Compare Source
timedout
property to node Request instance (Alexander Pope)null
querystring values in node and browser environments. (George Chung)v2.1.0
Compare Source
end
callback waits for async parsers to finish (Kornel Lesiński).end()
callback don't cause the callback to be called twice (Kornel Lesiński)headers
totoJSON()
(Tao)v2.0.0
Compare Source
Breaking changes
Breaking changes are in rarely used functionality, so we hope upgrade will be smooth for most users.
.parse()
method has been renamed to.serialize()
for consistency with NodeJS version.'undefined'
, now their value is''
(empty string) (shura, Kornel Lesiński).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 realPromise
. Note that use of superagent with promises now requires a globalPromise
object.If you target Internet Explorer or Node 0.10, you'll need
require('es6-promise').polyfill()
or similar.@api private
to have_prefixed
names (Kornel Lesiński)Probably not breaking changes:
FormData
error events (scriptype)request.head()
supports.redirects(5)
call (Kornel Lesiński)response
event is also emitted when using.pipe()
v1.8.5
Compare Source