- 5908e84: Remove
net.isIP()
check for TLSservername
- b88ab46: Import
url
instead ofnode:url
🤷♂️
- c3c405e: Add missing
URL
type import
- e625d10: Support SNI for proxy servers
- 23fe1e3: Correct the header parsing logic to stop before the response content to avoid generating an exception.
-
b3860aa: Remove
secureProxy
getterIt was not meant to be a public property. If you were using it, just use
agent.proxy.protocol === 'https:'
instead.
- 0b8a0b7: Properly reject errors during proxy
CONNECT
response
- 8ff9faa: "headers" option can now be a function
- Updated dependencies [66b4c63]
- fd6209c: Emit "proxyConnect" event on HTTP
request
object (part of #153) - c573dbe: Emit "proxyConnect" event on Agent instance
- 7674748: Update
@types/node
to v14.18.45 - Updated dependencies [7674748]
- d99a7c8: Major version bump for all packages
⚠️ This is a breaking change! TheHttpsProxyAgent
constructor argument has been split into two arguments.
In version 5.x, the HttpsProxyAgent
constructor took a single argument of either (A) a string
, or (B) an object matching the output of
the deprecated url.parse()
method
and various extra options.
Now the constructor takes two separate arguments:
- Argument 1: Either (A) a
string
, or (B) a WHATWGURL
object - Argument 2 (optional): An object with standard
http.Agent
,net.TcpNetConnectOpts
, andtls.ConnectionOptions
properties and/or custom options supported by this package.
If you were using an object argument in 5.x, you'll need to change the first argument to match the structure of the URL
class, and move
any other options to the second argument.
5.x usage:
const agent = new HttpsProxyAgent({
protocol: 'https:',
host: 'myproxy.mydomain.com'
port: '1234',
auth: 'proxyUser:proxyPass',
timeout: 1000,
headers: { 'trace', 'foo' }
});
Updated 6.x usage:
const agent = new HttpsProxyAgent(
'https://proxyUser:[email protected]:1234',
{
timeout: 1000,
headers: { 'trace', 'foo' }
}
);
- 4333067: Add support for core
keepAlive: true
- c169ced: Convert mocha tests to jest for all packages
- 06775a8: Add test for
rejectUnauthorized: false
missing on request options - Updated dependencies [c169ced]
- Updated dependencies [d99a7c8]
- Updated dependencies [4333067]