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 issues will be automatically resolved and closed:
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)