agent-base
9.0.0 · 1 Apr 2026MIT411.9M / weekRepositoryHomepagenpmAtom feed
Upgrading agent-base From 4.2.0 to 9.0.0
18 releases in betweennotes for 11
Reading releases, release notes and advisories…
- 4+
- changes to make
- 0
- advisories fixed
- 3+
- new
- 7+
- fixes
Counted from 11 of 18 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking9.0.0
- Breaking8.0.0
- Breaking7.0.0
- Breaking5.0.0
Release by release
- Breaking
Set minimum Node.js version to 20
- Fixed
Use duck typing for agent detection in createSocket to prevent silent hang with non-http.Agent agents like tunnel-agent's TunnelingAgent
- Fixed
Simplify package.json exports to remove unnecessary imports restriction
- Breaking
- Breaking
Convert to ESM. All packages now use
"type": "module"and compile to ESM output instead of CommonJS.
- Breaking
- Fixed
Fix compatibility with
@types/node@20.19.2.
- Fixed
- Fixed
Remove unused
debugdependency.
- Fixed
- Fixed
Handle exceptions caused by Agent.addRequest()
- Fixed
- Fixed
Synchronously update internal sockets length so
http.Agentpooling is used
- Fixed
- New
Add
isSecureEndpoint()as an instance method
- New
- New
Allow for never relying on stack trace
- New
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.