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

upgrade https-proxy-agent #747

Merged
merged 2 commits into from
Nov 27, 2024
Merged

upgrade https-proxy-agent #747

merged 2 commits into from
Nov 27, 2024

Conversation

benmccann
Copy link
Collaborator

closes #706

@benmccann
Copy link
Collaborator Author

@cclauss if you're able to give this one a look, this is the last of the libraries needing to be upgraded

@benmccann
Copy link
Collaborator Author

@cclauss I just fixed the merge conflict on this one, so it should be ready to go now

lib/install.js Outdated
@@ -56,11 +56,13 @@ function place_binary(uri, targetDir, opts, callback) {
process.env.npm_config_proxy;
let agent;
if (proxyUrl) {
const ProxyAgent = require('https-proxy-agent');
agent = new ProxyAgent(proxyUrl);
// TODO: replace with undici's ProxyAgent
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have some minor concerns about using a different proxy agent that I will bring up in #743.

The gist is that npm and node-gyp use the same http stack by design so that historically things like env vars are picked up the exact same. These concerns might be outdated and I know at least this specific one about env vars is.

My only feedback in this PR is to remove these comments and we can address all of it in the other PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated. thanks!

@benmccann benmccann force-pushed the proxy-upgrade branch 2 times, most recently from e37223e to 12c2b08 Compare July 19, 2024 20:27
@benmccann
Copy link
Collaborator Author

@lukekarrys I've rebased this PR against master, so it's passing the CI now

@benmccann
Copy link
Collaborator Author

@cclauss @lukekarrys could we merge this PR? thanks!

@benmccann
Copy link
Collaborator Author

@cclauss if you could take a look at this one, it's the last one I'd like to get in before our next release as it's the last outdated dependency that we have

@cclauss cclauss merged commit 0b568f5 into mapbox:master Nov 27, 2024
12 checks passed
@cclauss
Copy link
Collaborator

cclauss commented Nov 27, 2024

Thanks. I am glad you are now a maintainer. FInally, things are moving foreword.

@benmccann benmccann deleted the proxy-upgrade branch November 27, 2024 23:56
@benmccann
Copy link
Collaborator Author

that's great! thank you so much!!

I think that's pretty much all the code changes we need to try for another release. It seems only the changelog and release tooling are left. I just updated the changelog PR if you're able to take a look at it

Happy Thanksgiving!

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