Skip to content

[dependencies] upgrade proxy agent to version 4.0.1 #230

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

Merged
merged 2 commits into from
May 7, 2021

Conversation

m-rousse
Copy link
Contributor

@m-rousse m-rousse commented May 7, 2021

What and why?

Goal of this PR is to update the netmask nested dependency to fix a critical vulnerability.
It does so by updating the proxy-agent dependency from major 3.x to major 4.x. It should not introduce breaking changes from our perspective, it upgrades the underlying dependency agent-base from v4 to v6 (cf. TooTallNate/node-proxy-agent#55) which itself changes the way options are passed to the proxy agent.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@m-rousse m-rousse requested a review from yoannmoinet as a code owner May 7, 2021 07:33
@m-rousse m-rousse marked this pull request as draft May 7, 2021 07:34
@m-rousse m-rousse force-pushed the mrousse/upgrade_proxy_agent branch from 4d757cb to 9eb9f24 Compare May 7, 2021 08:12
@m-rousse m-rousse marked this pull request as ready for review May 7, 2021 08:44
@m-rousse m-rousse requested a review from a team as a code owner May 7, 2021 08:44
Copy link
Member

@yoannmoinet yoannmoinet left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +105 to +106
const proxyUrl = getProxyUrl(this.proxyOpts)
options.agent = new ProxyAgent(proxyUrl)
Copy link
Member

Choose a reason for hiding this comment

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

So much better 😆

@m-rousse m-rousse merged commit 83123bc into master May 7, 2021
@m-rousse m-rousse deleted the mrousse/upgrade_proxy_agent branch May 7, 2021 13:08
@m-rousse m-rousse mentioned this pull request May 7, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants