Update dependency superagent to v3#27
Open
dev-mend-for-github-com[bot] wants to merge 1 commit into
Open
Conversation
809dd84 to
d709f12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.2.0→~3.7.0By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
ladjs/superagent (superagent)
v3.7.0Compare Source
.ok()callback (Jeremy Ruppel)v3.6.3Compare Source
v3.6.2Compare Source
v3.6.1Compare Source
v3.6.0Compare Source
v3.5.2Compare Source
v3.5.1Compare Source
v3.5.0Compare Source
v3.4.4Compare Source
v3.4.3Compare Source
text/(Damien Clark)withCredentials(false)(Andy Woods)formData.oninstead of.once(Kornel Lesiński)attach("file",null)(Kornel Lesiński)v3.4.2Compare Source
v3.4.1Compare Source
retry()andretry(0)(Alexander Pope)v3.4.0Compare Source
.retry(n)method anderr.retries(Alexander Pope)v3.3.2Compare Source
v3.3.1Compare Source
v3.3.0Compare 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.1Compare Source
v3.2.0Compare 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.linksto browser version (Lukas Eipert)btoais no longer required in IE9 (Kornel Lesiński).sortQuery()on URLs without query strings (Kornel Lesiński)ResponseBase(Lukas Eipert)v3.1.0Compare Source
.sortQuery()(vicanso).field()(Kornel Lesiński)superagent.Requestsubclassable without need to patch all static methods (Kornel Lesiński)v3.0.0Compare Source
.part()/superagent.PartAPIs..bodyproperty on internal response object used by unbuffered parsers.Note: the normal
response.bodyis unaffected..send()calls mixingBuffer/Bloband 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)attachoptions parameter in the Node version (Lapo Luchini)pfxTLS option with newpfx()method. (Reid Burke).onto.onceto prevent possible memory leaks (Matt Blair)v2.3.0Compare Source
.field()to handle objects (Affan Shahid).catch()for more Promise-like interface (Maxim Samoilov, Kornel Lesiński)event.directionin uploads (Kornel Lesiński)on()method (Juan Dopazo)v2.2.0Compare Source
timedoutproperty to node Request instance (Alexander Pope)nullquerystring values in node and browser environments. (George Chung)v2.1.0Compare Source
endcallback waits for async parsers to finish (Kornel Lesiński).end()callback don't cause the callback to be called twice (Kornel Lesiński)headerstotoJSON()(Tao)v2.0.0Compare 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).redirectevent 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 globalPromiseobject.If you target Internet Explorer or Node 0.10, you'll need
require('es6-promise').polyfill()or similar.@api privateto have_prefixednames (Kornel Lesiński)Probably not breaking changes:
FormDataerror events (scriptype)request.head()supports.redirects(5)call (Kornel Lesiński)responseevent is also emitted when using.pipe()v1.8.5Compare Source
v1.8.4Compare Source
v1.8.3Compare Source
v1.8.2Compare Source
vnd+jsonMIME types (Kornel Lesiński).parse()as.serialize()for forward compatibilityv1.8.1Compare Source
v1.8.0Compare Source
{type:'auto'}toauthmethod, which enables browser-native auth types (Jungle, Askar Yusupov)responseType()to set XHRresponseType(chris)FormData(Peter Lyons)statusCodeto error response when JSON response is malformed (mattdell)v1.7.2Compare Source
a4ddd6a. (Edward J. Jinotti)v1.7.1Compare Source
v1.7.0Compare Source
Fileobject (JD Isaacks)directionproperty toprogressevents (Joseph Dykstra)stream.pipe(request)(Keith Grennan)this.request()until callthis.end()(vicanso)withCredentialsto Node API (markdalgleish)deletebreaking on ie8 (kenjiokabe)v1.6.1Compare Source
+jsonas JSON (Eiryyy)v1.6.0Compare Source
+jsonas JSON (Eiryyy)v1.5.0Compare Source
key=1&key=2&key=3etc... (aalpern, Davis Kim)del()method asdelete()(Aaron Krause)v1.4.0Compare Source
v1.3.0Compare Source
thenfunction