- 7d12b51: Set minimum Node.js version to 20
- 7ca27d0: Simplify package.json exports to remove unnecessary imports restriction
- Updated dependencies [ca12148]
- Updated dependencies [7d12b51]
- Updated dependencies [7ca27d0]
- 9c92c09: Convert to ESM. All packages now use
"type": "module"and compile to ESM output instead of CommonJS.
- Updated dependencies [9c92c09]
- b88ab46: Import
urlinstead ofnode:url🤷♂️
- c3c405e: Add missing
URLtype import
-
b3860aa: Remove
secureProxygetterIt was not meant to be a public property. If you were using it, just use
agent.proxy.protocol === 'https:'instead.
- eb6906b: Fix
keepAlive: true - Updated dependencies [da699b1]
- 1069932: Added "headers" option
- Updated dependencies [66b4c63]
- 7674748: Update
@types/nodeto v14.18.45 - Updated dependencies [7674748]
- d99a7c8: Major version bump for all packages
⚠️ This is a breaking change! TheHttpProxyAgentconstructor argument has been split into two arguments.
In version 5.x, the HttpProxyAgent 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 WHATWGURLobject - Argument 2 (optional): An object with standard
http.Agent,net.TcpNetConnectOpts, andtls.ConnectionOptionsproperties.
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 HttpProxyAgent({
protocol: 'https:',
host: 'myproxy.mydomain.com'
port: '1234',
auth: 'proxyUser:proxyPass',
timeout: 1000
});Updated 6.x usage:
const agent = new HttpProxyAgent(
{
protocol: 'https:',
hostname: 'myproxy.mydomain.com'
port: '1234',
username: 'proxyUser',
password: 'proxyPass'
},
{
timeout: 1000
}
);- 4333067: Add support for core
keepAlive: true
- c169ced: Convert mocha tests to jest for all packages
- Updated dependencies [c169ced]
- Updated dependencies [d99a7c8]
- Updated dependencies [4333067]