TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
917 stars 238 forks source link

[proxy-agent] Allow asynchronous `getProxyForUrl` #275

Closed mook-as closed 7 months ago

mook-as commented 7 months ago

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.

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 22b5af9a6267a3cdd3bda3ed6f81b67fd8fef39b

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

vercel[bot] commented 7 months ago

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