chore(deps): update dependency superagent to v4 (master) #5
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:
^3.0.0
->^4.0.0
By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
ladjs/superagent (superagent)
v4.0.0
Compare Source
Breaking changes
.end(…)
returnsundefined
instead of the request. If you need the request object after calling.end()
(and you probably don't), save it in a variable and callrequest.end(…)
. Consider not using.end()
at all, and migrating to promises by calling.then()
instead..buffer(false)
to requests or setsuperagent.buffer[yourMimeType] = false
..pipe()
throw.Minor changes
req.abort().end()
is called.end()
promise on all error events (Kornel Lesiński)https.servername
from theHost
header (Kornel Lesiński)response.buffered
is more accurate.v3.8.3
Compare Source
Buffer
via send method (Sergey Akhalkov)v3.8.2
Compare Source
+json
MIME types.v3.8.1
Compare Source
v3.8.0
Compare Source
superagent.agent()
. It now remembers default settings for all its requests..retry()
(Alexander Murphy)v3.7.0
Compare Source
.ok()
callback (Jeremy Ruppel)v3.6.3
Compare Source
v3.6.2
Compare Source
v3.6.1
Compare Source
v3.6.0
Compare Source
v3.5.2
Compare Source
v3.5.1
Compare Source
v3.5.0
Compare Source
v3.4.4
Compare Source
v3.4.3
Compare Source
text/
(Damien Clark)withCredentials(false)
(Andy Woods)formData.on
instead of.once
(Kornel Lesiński)attach("file",null)
(Kornel Lesiński)v3.4.2
Compare Source
v3.4.1
Compare Source
retry()
andretry(0)
(Alexander Pope)v3.4.0
Compare Source
.retry(n)
method anderr.retries
(Alexander Pope)v3.3.2
Compare Source
v3.3.1
Compare Source
v3.3.0
Compare Source
.ok(callback)
that allows customizing which responses are errors (Kornel Lesiński).responseType()
to Node version (Kornel Lesiński).parse()
to browser version (jakepearson)responseType('blob')
(Kornel Lesiński)v3.2.1
Compare Source
v3.2.0
Compare Source
.timeout({response:ms})
, which allows limiting maximum response time independently from total download time (Kornel Lesiński).end()
is called more than once (Kornel Lesiński)response.links
to browser version (Lukas Eipert)btoa
is no longer required in IE9 (Kornel Lesiński).sortQuery()
on URLs without query strings (Kornel Lesiński)ResponseBase
(Lukas Eipert)v3.1.0
Compare Source
.sortQuery()
(vicanso).field()
(Kornel Lesiński)superagent.Request
subclassable without need to patch all static methods (Kornel Lesiński)