amqplib
2.2.0 · 28 Sep 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed
52 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x · latest line
2.2.0
28 Sep 2026Add
calculateDelayrecovery option for supplying a custom reconnect delay strategy, e.g. full jitter, decorrelated jitter or a fixed schedule. When set,maxDelayis not applied to its return value; when it throws or returns an invalid value, recovery gives up as ifmaxRetrieswere exhausted (fixes #855, thanks @GiHoon1123)The built-in reconnect delay no longer exceeds
maxDelay. Previously the cap was applied before jitter, so delays could overshoot it by up to the jitter fraction. The exponential base is now capped atmaxDelay / (1 + jitter)so the full jitter range fits under the cap; with default settings the steady-state delay is now spread over 20-30s rather than 24-36sChannel operations attempted after recovery has given up (
reconnect-failed) now reject with the failure instead of waiting forever
Add
calculateDelayrecovery option for supplying a custom reconnect delay strategy, e.g. full jitter, decorrelated jitter or a fixed schedule. When set,maxDelayis not applied to its return value; when it throws or returns an invalid value, recovery gives up as ifmaxRetrieswere exhausted (fixes #855, thanks @GiHoon1123)The built-in reconnect delay no longer exceeds
maxDelay. Previously the cap was applied before jitter, so delays could overshoot it by up to the jitter fraction. The exponential base is now capped atmaxDelay / (1 + jitter)so the full jitter range fits under the cap; with default settings the steady-state delay is now spread over 20-30s rather than 24-36sChannel operations attempted after recovery has given up (
reconnect-failed) now reject with the failure instead of waiting foreverAdd
initialMaxRetriesrecovery option to bound retries before the first successful connection separately frommaxRetries, so startup can fail fast while steady-state recovery retries indefinitely (fixes #856)
2.1.0
27 Sep 2026Add
waitForConnectrecovery option. Whenfalse,connectreturns the recovering connection immediately instead of waiting for the first successful connection, so listeners forconnect,connect-failedandreconnect-scheduledcan be attached before the initial attempt, andclose()can cancel it. ExposewaitForConnect()on recovering connections to await the first connection (fixes #858)Fix
setupbeing run whenclose()is called while the initial connection attempt is in flight
2.0.1
10 May 2026Reading the note…
2.0.0
10 May 2026Reading the note…
- 1.x
1.2.0
9 May 2026Reading the note…
1.1.1
9 May 2026Reading the note…
1.1.0
9 May 2026Reading the note…
1.0.7
8 May 2026Reading the note…
1.0.6
6 May 2026Reading the note…
1.0.5
5 May 2026Reading the note…
1.0.4
4 May 2026Reading the note…
1.0.3
31 Mar 2026Reading the note…
1.0.2
28 Mar 2026Reading the note…
1.0.1
28 Mar 2026Reading the note…
1.0.0
28 Mar 2026Reading the note…
- 0.10.x
0.10.9
25 Aug 2025Reading the note…
0.10.8
4 May 2025Reading the note…
0.10.7
29 Mar 2025Reading the note…
0.10.6
29 Mar 2025Reading the note…
0.10.5
24 Nov 2024Reading the note…
0.10.4
11 Apr 2024Reading the note…
0.10.3
1 Sep 2022Reading the note…
0.10.2
7 Aug 2022Reading the note…
0.10.1
26 Jul 2022Reading the note…
0.10.0
2 Jun 2022Reading the note…
- 0.9.x
0.9.1
22 May 2022Reading the note…
0.9.0
9 May 2022Reading the note…
- 0.8.x
0.8.0
19 May 2021Reading the note…
- 0.7.x
0.7.1
8 Mar 2021Reading the note…
0.7.0
22 Feb 2021Reading the note…
- 0.6.x
0.6.0
15 Jul 2020Reading the note…
- 0.5.x
0.5.6
14 May 2020Reading the note…
0.5.5
30 Jul 2019Reading the note…
0.5.4
29 Jul 2019Reading the note…
0.5.3
2 Dec 2018Reading the note…
0.5.2
11 Nov 2017Reading the note…
0.5.1
12 Nov 2016Reading the note…
0.5.0
1 Nov 2016Reading the note…
- 0.4.x
0.4.2
7 Jun 2016Reading the note…
0.4.1
5 Feb 2016Reading the note…
0.4.0
16 Sep 2015Reading the note…
- 0.3.x
0.3.2
25 Mar 2015Reading the note…
0.3.1
17 Feb 2015Reading the note…
0.3.0
21 Oct 2014Reading the note…
- 0.2.x
0.2.1
7 Aug 2014Reading the note…
0.2.0
3 Jun 2014Reading the note…
- 0.1.x
0.1.3
27 Feb 2014Reading the note…
0.1.2
17 Feb 2014Reading the note…
0.1.1
28 Nov 2013Reading the note…
0.1.0
10 Oct 2013Reading the note…