Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

6.0.0

Compare
Choose a tag to compare
@TooTallNate TooTallNate released this 23 Jan 20:28

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

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 granular RequestOptions: bd3e273
  • Add AgentLike type: 24cafeb
  • Allow stream.Duplex return value: c350b32

Patches

  • Fix this reference for socket free event: 3d57195
  • Fix unnecessary else: 12a5c8d
  • Emit "free" event once: a6c3353
  • Don't set promisifiedCallback to undefined: 56238bc
  • Remove freeSocket and sock vars: f3d24d4
  • Fixes for @types/node v12: 3367a2f
  • Use keyof: e5dd5f5
  • Make callback return value options in promisify(): c7072a1