# What changed in amqplib

> 4 changes in amqplib 1 to 2 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/amqplib/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## amqplib 2

### Breaking changes

- 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. (2.0.0) — [release notes](https://github.com/amqp-node/amqplib/releases/tag/v2.0.0)

## amqplib 1

### Breaking changes

- The minimum Node.js requirement is now v18, so developers must use Node.js 18 or later. (1.0.0) — [release notes](https://github.com/amqp-node/amqplib/blob/HEAD/CHANGELOG.md)

### Tooling

- Type definitions are now bundled with the package, so TypeScript users can use its types without separate definitions. (1.2.0) — [release notes](https://github.com/amqp-node/amqplib/releases/tag/v1.2.0)
- TypeScript type definitions are now bundled with the package. (1.2.0) — [release notes](https://github.com/amqp-node/amqplib/releases/tag/v1.2.0)
