Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency superagent to v5 #33324

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 24, 2019

This PR contains the following updates:

Package Type Update Change
superagent dependencies major 3.8.3 -> 5.1.0

Release Notes

visionmedia/superagent

v5.1.0

Compare Source

v5.0.9

Compare Source

  • feat: added fast-safe-stringify instead of JSON.stringify (closes #​1464) 2e5d6fd

v5.0.8

Compare Source

v5.0.6

Compare Source

v5.0.5

Compare Source

  • fix: remove redundant defs, bump deps fcf6cff

v5.0.4

Compare Source

v5.0.3

Compare Source

v5.0.2

Compare Source

v4.1.0

Compare Source

  • .connect() IP/DNS override option (Kornel)
  • .trustLocalhost() option for allowing broken HTTPS on localhost
  • .abort() used with promises rejects the promise.

v4.0.0

Compare Source

Breaking changes

  • Node.js v4 has reached it's end of life, so we no longer support it. It's v6+ or later. We recommend Node.js 10.
  • We now use ES6 in the browser code, too.
    • If you're using Browserify or Webpack to package code for Internet Explorer, you will also have to use Babel.
    • The pre-built node_modules/superagent.js is still ES5-compatible.
  • .end(…) returns undefined instead of the request. If you need the request object after calling .end() (and you probably don't), save it in a variable and call request.end(…). Consider not using .end() at all, and migrating to promises by calling .then() instead.
  • In Node, responses with unknown MIME type are buffered by default. To get old behavior, if you use custom unbuffered parsers, add .buffer(false) to requests or set superagent.buffer[yourMimeType] = false.
  • Invalid uses of .pipe() throw.

Minor changes

  • Throw if req.abort().end() is called
  • Throw if using unsupported mix of send and field
  • Reject .end() promise on all error events (Kornel Lesiński)
  • Set https.servername from the Host header (Kornel Lesiński)
  • Leave backticks unencoded in query strings where possible (Ethan Resnick)
  • Update node-mime to 2.x (Alexey Kucherenko)
  • Allow default buffer settings based on response-type (shrey)
  • response.buffered is more accurate.

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@matticbot
Copy link
Contributor

@renovate renovate bot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Task Framework labels May 24, 2019
@matticbot
Copy link
Contributor

matticbot commented May 24, 2019

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 03456ac to 9013354 Compare June 6, 2019 06:41
@renovate renovate bot requested a review from a team as a code owner June 6, 2019 06:41
@renovate renovate bot force-pushed the renovate/superagent-5.x branch 5 times, most recently from 62532d5 to 5f61b49 Compare June 15, 2019 18:46
@blowery blowery removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 7, 2019
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 5f61b49 to 43f6bfd Compare November 21, 2019 21:58
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 43f6bfd to b86b8af Compare December 1, 2019 18:59
@blowery blowery force-pushed the renovate/superagent-5.x branch from b86b8af to 8c22e44 Compare December 6, 2019 17:34
@blowery blowery added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 9, 2019
@blowery blowery self-assigned this Dec 9, 2019
@blowery
Copy link
Contributor

blowery commented Dec 9, 2019

@sgomes would you mind taking this for a spin? You're more familiar with how we use superagent than I am.

@sgomes
Copy link
Contributor

sgomes commented Dec 10, 2019

@sgomes would you mind taking this for a spin? You're more familiar with how we use superagent than I am.

I removed all of the usage I was familiar with! 😄 What's left is server-side usage only.

I'll take a look and see what I can find!

@sgomes
Copy link
Contributor

sgomes commented Dec 10, 2019

@blowery Looks like we're going to have duplicate versions of superagent unless we update wpcom-xhr-request too 😞 Perhaps we should prioritise bringing wpcom and wpcom-xhr-request into the monorepo, in order to modernise them?

@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 8c22e44 to 5265502 Compare December 20, 2019 19:51
@renovate renovate bot force-pushed the renovate/superagent-5.x branch 3 times, most recently from 939de5d to 4171d9c Compare January 7, 2020 10:28
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 4171d9c to 01b7585 Compare January 16, 2020 12:47
@blowery blowery removed their assignment Jan 29, 2020
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 01b7585 to 03a3a53 Compare February 17, 2020 20:47
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 03a3a53 to be841c8 Compare April 23, 2020 07:14
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from be841c8 to 88acddd Compare April 27, 2020 06:30
@scinos scinos self-assigned this May 7, 2020
@scinos scinos force-pushed the renovate/superagent-5.x branch from 88acddd to 07edff0 Compare May 7, 2020 08:22
@scinos
Copy link
Contributor

scinos commented May 7, 2020

This is ready for a re-review.

@sgomes
Copy link
Contributor

sgomes commented May 7, 2020

Note: superagent has been removed entirely from the client-side, so this should only affect the server-side now.

client/package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@sgomes sgomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we tested that things work correctly after this change? Looking at version release notes, I see a few possible breaking changes when going from v3 to v4:

  • .end(…) returns undefined instead of the request.
  • In Node, responses with unknown MIME type are buffered by default.

With v5, it looks like the authors decided it wasn't worth it to write proper release notes, so it's harder to tell where the breaking changes are 😬

@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 07edff0 to 6dea576 Compare May 15, 2020 13:08
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 6dea576 to e22350c Compare May 29, 2020 07:56
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from e22350c to 1f758a9 Compare June 28, 2020 04:16
@renovate renovate bot force-pushed the renovate/superagent-5.x branch from 1f758a9 to fe01650 Compare June 28, 2020 07:10
@renovate renovate bot closed this Aug 9, 2020
@renovate renovate bot deleted the renovate/superagent-5.x branch August 9, 2020 00:16
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants