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

[proxy-agent] Allow asynchronous getProxyForUrl #275

Merged
merged 3 commits into from Feb 12, 2024

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Feb 1, 2024

This allows users to use an asynchronous getProxyForUrl in case they need to do asynchronous operations to resolve the correct proxy URL. This can be the case, for example, if using Electron.Session.resolveProxy(url).

Fixes #264

Test suites seem to pass; added a new one to exercise this functionality, but I can delete it if that seems like overkill.

I opted for a patch level release, because this should not affect any existing users.

This allows users to use an asynchronous getProxyForUrl in case they need
to do asynchronous operations to resolve the correct proxy URL.  This can
be the case, for example, if using Electron.Session.resolveProxy(url).
Copy link

changeset-bot bot commented Feb 1, 2024

🦋 Changeset detected

Latest commit: 22b5af9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
proxy-agent Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
proxy-agents ✅ Ready (Inspect) Visit Preview Feb 12, 2024 5:47pm

@TooTallNate TooTallNate merged commit e7e0e56 into TooTallNate:main Feb 12, 2024
15 checks passed
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.

Feature Request: Allow getProxyForUrl to be asynchronous
2 participants