1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
# https-proxy-agent
## 7.0.6
### Patch Changes
- 913a49a: Only overwrite servername in tls connect when host is not an IP address
- Updated dependencies [1699a09]
- agent-base@7.1.2
## 7.0.5
### Patch Changes
- 5908e84: Remove `net.isIP()` check for TLS `servername`
## 7.0.4
### Patch Changes
- b88ab46: Import `url` instead of `node:url` 🤷♂️
## 7.0.3
### Patch Changes
- c3c405e: Add missing `URL` type import
## 7.0.2
### Patch Changes
- e625d10: Support SNI for proxy servers
## 7.0.1
### Patch Changes
- 23fe1e3: Correct the header parsing logic to stop before the response content to avoid generating an exception.
## 7.0.0
### Major Changes
- b3860aa: Remove `secureProxy` getter
It was not meant to be a public property. If you were using it, just use `agent.proxy.protocol === 'https:'` instead.
## 6.2.1
### Patch Changes
- 0b8a0b7: Properly reject errors during proxy `CONNECT` response
## 6.2.0
### Minor Changes
- 8ff9faa: "headers" option can now be a function
### Patch Changes
- Updated dependencies [66b4c63]
- agent-base@7.0.2
## 6.1.0
### Minor Changes
- fd6209c: Emit "proxyConnect" event on HTTP `request` object (part of #153)
- c573dbe: Emit "proxyConnect" event on Agent instance
### Patch Changes
- 7674748: Update `@types/node` to v14.18.45
- Updated dependencies [7674748]
- agent-base@7.0.1
## 6.0.0
### Major Changes
- d99a7c8: Major version bump for all packages
- ⚠️ This is a breaking change! The `HttpsProxyAgent` constructor argument has been split into two arguments.
#### Upgrading from 5.x to 6.x
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](https://nodejs.org/docs/latest-v14.x/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost)
_and_ various extra options.
Now the constructor takes two _separate_ arguments:
- Argument 1: Either (A) a `string`, or (B) a [WHATWG `URL` object](https://nodejs.org/docs/latest-v14.x/api/url.html#url_the_whatwg_url_api)
- Argument 2 (optional): An object with standard [`http.Agent`](https://nodejs.org/docs/latest-v14.x/api/url.html#url_the_whatwg_url_api),
`net.TcpNetConnectOpts`, and `tls.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:
```ts
const agent = new HttpsProxyAgent({
protocol: 'https:',
host: 'myproxy.mydomain.com'
port: '1234',
auth: 'proxyUser:proxyPass',
timeout: 1000,
headers: { 'trace', 'foo' }
});
```
Updated 6.x usage:
```ts
const agent = new HttpsProxyAgent(
'https://proxyUser:proxyPass@myproxy.mydomain.com:1234',
{
timeout: 1000,
headers: { 'trace', 'foo' }
}
);
```
### Minor Changes
- 4333067: Add support for core `keepAlive: true`
### Patch Changes
- 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]
- agent-base@7.0.0
|