Download Latest Version v2.0.1 source code.zip (152.2 kB)
Email in envelope

Get an email when there's a new version of amqplib

Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-10 574 Bytes
v2.0.0 source code.tar.gz 2026-05-10 111.0 kB
v2.0.0 source code.zip 2026-05-10 152.5 kB
Totals: 3 Items   264.1 kB 0

BREAKING CHANGE

heartbeat: 0 now correctly disables heartbeats, sending 0 in the ConnectionTuneOk frame regardless of the server's suggestion. This aligns with the AMQP 0-9-1 spec, which defines heartbeat=0 as "disabled".

Previously, 0 was passed through negotiate() which treated it as "no preference", causing the server's suggested value to be used instead.

Migration: if you are passing heartbeat: 0 and want to preserve the old behaviour of accepting the server's value, omit the option or pass null instead.

Fixes [#467]. Supersedes [#469].

Source: README.md, updated 2026-05-10