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

Releases: TooTallNate/node-agent-base

6.0.2

23 Oct 19:35
Compare
Choose a tag to compare

Patches

  • Add maxTotalSockets: 95f99dd and #49
  • Fix compatibility with Node 14 typings: #46
  • Fix ERR_INVALID_PROTOCOL caused by agent.protocol in Node 15: #47
  • Test Node 15: #50

Credits

Huge thanks to @dabenard, @dobromyslov, and @ShenHongFei for helping!

6.0.1

02 Jul 23:58
Compare
Choose a tag to compare

Patches

  • Add https defaultPort test: acc3271
  • Add throw in callback function causes "error" event tests: 636dab9
  • Add https.globalAgent overriding test case: #40
  • Make err optional: dc4588b
  • Test Node 14: #42
  • Publish the src directory to npm: #45

6.0.0

23 Jan 20:28
Compare
Choose a tag to compare

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

5.1.1

11 Dec 18:16
Compare
Choose a tag to compare

Patches

  • Only set secureEndpoint when not already set: 665feaa

5.1.0

11 Dec 03:58
Compare
Choose a tag to compare

Minor Changes

  • Remove es6-promisify dependency: 5afd7e9
  • Add protocol property to Agent class: #39
  • Add TypeScript https test case and re-organize tests: aca913c

5.0.0

10 Dec 19:41
Compare
Choose a tag to compare

Major Changes

Minor Changes

  • Add GitHub Actions for Node CI: 12bb6ef
  • Test Windows and macOS: cfb5ccd
  • Add GH Actions badge to readme: 385b939
  • Allow setting custom defaultPort: 41aea03

Patches

  • Remove https core module patching logic: #36

4.3.0

05 Jun 20:17
Compare
Choose a tag to compare

Minor Changes

  • Test Node 10: 6a5a685
  • Add TypeScript declaration: #21

Patches

  • Remove package-lock.json: 21c0343
  • Fix failing test case on Node 10: 50f5389
  • Ignore package-lock.json: c7ffe87
  • Only patch https.request() once: #25
  • Support 3-argument .get() methods: #27

Credits

Huge thanks to @Shinigami92, @vfernandestoptal, and @BYK for helping!

4.2.1

05 Jul 20:45
Compare
Choose a tag to compare

Patches

  • Revert template literal to plain string for IE11 support: #13
  • Close free sockets: #18

Credits

Huge thanks to @jacopotarantino and @tareqhs for helping!