This repository has been archived by the owner on May 5, 2023. It is now read-only.
6.0.0
The breaking change in this release is that the AgentBase
instance's own options
property has been removed, and thus those properties are not implicitly mixed in to the opts
object in the agent's callback function. This "feature" was not relied on for anything, and did not really make sense to do, and finally it caused subtle and hard to debug bugs that will now be avoided.
Major Changes
- Remove unnecessary
ownOpts
: 83c516c - Remove
options
: 7e1a2da - Remove "options mix in" test case: 11153fe
Minor Changes
- Add
debug
: 1b115b0 - Add "after first tick" unit test: b4bce49
- Moar
debug()
: b65cc8d - Re-use SSL options in tests: 3a5dd43
- Use
interface
and more granularRequestOptions
: bd3e273 - Add
AgentLike
type: 24cafeb - Allow
stream.Duplex
return value: c350b32
Patches
- Fix
this
reference for socketfree
event: 3d57195 - Fix unnecessary
else
: 12a5c8d - Emit "free" event once: a6c3353
- Don't set
promisifiedCallback
to undefined: 56238bc - Remove
freeSocket
andsock
vars: f3d24d4 - Fixes for
@types/node
v12: 3367a2f - Use
keyof
: e5dd5f5 - Make callback return value options in
promisify()
: c7072a1