TooTallNate / proxy-agents

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

https-proxy-agent 7.0 not updated to account for new exports in agent-base 7.0? #198

Closed tmotley closed 1 year ago

tmotley commented 1 year ago

I am a bit confused:

index.d.ts in https-proxy-agent

import { Agent, AgentConnectOpts } from 'agent-base';

However, in agent-base package index:

export = createAgent;

I am on latest version of https-proxy-agent and did a clean npm install

Surely the https-proxy-agent should have been updated to reflect the new export objects in agent-base? This necessity is raised explicitly in the change-log:

https://github.com/TooTallNate/proxy-agents/blob/main/packages/agent-base/CHANGELOG.md

Thanks for any insight you can share!

TooTallNate commented 1 year ago

You must have some older version of agent-base installed. https-proxy-agent is definitely specifying to use the latest version:

https://github.com/TooTallNate/proxy-agents/blob/a90baa5e67ed1dc8f2fef5c98625ee71209cf0d2/packages/https-proxy-agent/package.json#L31