npm / amqplib
amqplib
What changed in amqplib 1 to 2, from its official release notes, upgrade guides and advisories. Also covers @types/amqplib. Sources checked 2026-10-27.
2 breaking2 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initamqplib 21 changes
Breaking changes 1
Setting heartbeat to 0 now disables heartbeats and sends 0 in ConnectionTuneOk, regardless of the server's suggestion. Omit the option or pass null to retain the previous behavior.
amqplib 13 changes
Breaking changes 1
The minimum Node.js requirement is now v18, so developers must use Node.js 18 or later.
Tooling 2
Type definitions are now bundled with the package, so TypeScript users can use its types without separate definitions.
TypeScript type definitions are now bundled with the package.