Skip to content

chore(deps): bump amqplib from 0.10.9 to 2.4.1 - #96

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/amqplib-2.2.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/amqplib-2.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps amqplib from 0.10.9 to 2.4.1.

Release notes

Sourced from amqplib's releases.

v2.4.1

No release notes provided.

v2.4.0

No release notes provided.

v2.3.3

No release notes provided.

v2.3.2

No release notes provided.

v2.3.1

No release notes provided.

v2.3.0

Security release addressing GHSA-37f9-7m79-6866 (frame-handling denial of service reachable by a malicious or non-compliant broker).

  • Reject a connection.tune whose frameMax is below the protocol minimum of 4096, and guard sendContent so an undersized frameMax can no longer send publishing into an unbounded loop.
  • Add a maxFrameSize connection option (also a URL query parameter) bounding the size of incoming frames, checked from the frame header alone. Default 64 MiB (or the negotiated frameMax if larger); 0 disables it. Kept separate from the negotiated frameMax so brokers that send larger unsplit frames (see #784) still work.

Reported by Rizwan Bedekar (https://github.com/r-bedekar).

v2.2.1

No release notes provided.

v2.2.0

No release notes provided.

v2.1.0

No release notes provided.

v2.0.1

  • Remove buffer-more-ints dependency; use Node.js built-in BigInt Buffer methods (readBigInt64BE, readBigUInt64BE, writeBigInt64BE, writeBigUInt64BE) which have been available since Node.js v10.4

v2.0.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.

1.2.0

Add bundled TypeScript type definitions (fixes #843)

For full history see CHANGELOG.md.

Changelog

Sourced from amqplib's changelog.

v2.4.1

  • Fix connection recovery when the connection is lost while the setup function is running. The new connection was only watched once setup had finished, so a socket error during setup crashed the process with an unhandled error event, and a close during setup left recovery holding the dead connection, never reconnecting, with every later createChannel failing. Such an attempt now counts as a failed connect: connect-failed is emitted and a reconnect is scheduled.
  • Keep connection recovery working when a listener for one of its events throws. Previously a throwing connect listener closed the new connection and reconnected in an endless loop, a throwing connect-failed listener caused an unhandled rejection and ended recovery, and a throwing disconnect or reconnect-scheduled listener ended recovery without a reconnect. The throw is now delivered to a handler-error listener on the recovering connection, or raised as an uncaught exception when there is none, and recovery carries on either way
  • Deliver a throw from a connection event listener to a handler-error listener registered on the connection, as documented. Previously the listener was only consulted for channels: on a connection returned by connect it was never called and the throw propagated into amqplib internals
  • Stop delivering an error event that has no error listener to a handler-error listener. handler-error only reports throws from your own event listeners; an error event that nothing listens for on a connection or channel is now raised as it would be without a handler-error listener
  • Close the underlying connection when close is called on a recovering connection while the setup function is running. Previously it was only closed once setup finished, and never if setup did not settle. Upgrade note: close now resolves (or calls back) once that connection has closed, and a setup function that is still running will see its connection closed
  • Report a reconnect delay of 0 rather than NaN in reconnect-scheduled when initialDelay is 0 and the exponential backoff overflows
  • Resolve a second close call on a recovering connection once the connection has closed, rather than immediately
  • Use the default for a recovery initialDelay, maxDelay, factor or jitter option given as null. Upgrade note: null was previously read as 0 (1 for factor), so initialDelay: null reconnected without a delay; it now waits the default 100 ms. Pass 0 explicitly to reconnect immediately

v2.4.0

  • Decode a table that contains a key named !, and is the value of a header, argument or array element, as { '!': 'table', value: <the table> }. Previously it was decoded as the bare table, which the encoder reads as an explicit type such as { '!': 'timestamp', value: 1 }. Publishing headers that had been received with such a table therefore threw Unknown type to encode, or sent a different value without an error when the key held a valid type name. A received table can now also be told apart from a received timestamp or decimal. Upgrade note: a consumer that reads a table containing a ! key must now read it from value. Tables without a ! key, and a ! key at the top level of the headers, are decoded as before
  • Add table as an explicit type. { '!': 'table', value: { ... } } is encoded as a table whose keys are taken literally, so it can contain a key named !

v2.3.3

  • Encode numbers below -2^63, NaN, -Infinity and fractions of 2^50 or more as doubles in headers and arguments tables. Previously publish threw a RangeError for these, including when the table had been received from the broker and was being published again. Numbers that could be encoded before are encoded as before
  • Encode an explicit timestamp of 2^64, or an explicit long of 2^63, in a headers or arguments table as the largest value of that type, as versions before 2.0.1 did. The largest timestamp is decoded as 2^64, because 2^64 - 1 cannot be represented as a number, so since 2.0.1 a received table containing it could not be published again. Larger numbers still throw a RangeError
  • Encode a message timestamp property of 2^64, or any other unsigned 64-bit method field of 2^64, as the largest value in the same way, so a message received with a timestamp of 2^64 - 1 can be published again (also a regression in 2.0.1)

v2.3.2

  • Encode and decode nested field tables and arrays without recursion. Previously a table nested a few thousand levels deep, which RabbitMQ accepts and delivers, overflowed the call stack while a consumer decoded the message headers. The connection closed with Maximum call stack size exceeded, the message was requeued, and each reconnecting consumer failed the same way. There is no depth limit, and everything that encoded or decoded before produces the same result (GHSA-gfjv-mq5g-xjfw, reported by Dickson Wu (@​DicksonWu654))
  • Decode a field table key named __proto__ as an ordinary property. Previously it replaced the decoded table's prototype: a table value was inherited from, a null value removed the prototype, and any other value was dropped. With a byte array value followed by a numeric key, decoding threw a TypeError and closed the connection in the same way. Upgrade note: headers received with a __proto__ key now have it as an own property (GHSA-gfjv-mq5g-xjfw)

v2.3.1

  • Throw a clear RangeError from publish when an encoded headers or arguments table exceeds the 64 KiB encoding buffer. Previously the outcome depended on where the boundary fell: a string or Buffer value crossing the end of the buffer was silently truncated, producing a frame whose table length prefix did not match its contents, which RabbitMQ rejected by closing the connection with a 541 INTERNAL_ERROR after publish had returned; at other positions a bare offset is out of range error escaped from publish instead (fixes #867)

v2.3.0

  • Reject a connection.tune whose frameMax is below the protocol minimum of 4096 (the spec allows 0 or at least frame-min-size). Previously such a value was accepted, and the first publish whose encoded frames total 2048 bytes or more entered a loop in sendContent that never advanced, exhausting memory. sendContent now also throws if frameMax leaves no room for a body frame (GHSA-37f9-7m79-6866, reported by Rizwan Bedekar (@​r-bedekar); fix based in part on their patch and tests)
  • Add a maxFrameSize connection option, also settable as a URL query parameter, bounding the payload size of frames accepted from the server. The default is 64 MiB, or the negotiated frameMax if that is larger, so raising frameMax needs no second option; 0 disables the limit. Incoming frame sizes were previously unchecked, so a frame header declaring up to 4 GiB made the client buffer, and repeatedly re-copy, that much data before looking at it. An oversized frame is now refused from its header alone and closes the connection with Frame size N exceeds maxFrameSize M. The limit is deliberately separate from the negotiated frameMax, since some brokers send larger frames without splitting them (see #784). Upgrade note: a broker that delivers an unsplit frame larger than the limit will now have that connection closed; pass maxFrameSize: 0, or a higher value, to restore the previous behaviour (GHSA-37f9-7m79-6866)

v2.2.1

  • Return the server acknowledgement from promise-based channel.cancel, matching the callback API (thanks @​edsonsims).
  • Type cancel replies as Replies.Cancel ({ consumerTag }) in both the promise and callback API declarations, which previously claimed Replies.Empty.
  • Fix callback-based waitForConfirms never calling back when invoked after the confirm channel closed with unconfirmed messages; it now yields a channel closed error, matching the promise API (thanks @​youdie006).
  • waitForConfirms (both APIs) now always fails with channel closed after the channel closes with unconfirmed messages. Previously it reported success if every outstanding message had its own callback, or on any call after the first.
  • The callback API's waitForConfirms callback is now required in the TypeScript declarations, matching the docs. Calling it without one threw at runtime.
  • Replace .npmignore with a files allowlist in package.json so the published package no longer includes tests, tooling config, dotfiles or the defs generator. Install size drops from 577 kB to 358 kB (fixes #859, thanks @​rubiesonthesky)

v2.2.0

  • Add calculateDelay recovery option for supplying a custom reconnect delay strategy, e.g. full jitter, decorrelated jitter or a fixed schedule. When set, maxDelay is not applied to its return value; when it throws or returns an invalid value, recovery gives up as if maxRetries were 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 at maxDelay / (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-36s
  • Channel operations attempted after recovery has given up (reconnect-failed) now reject with the failure instead of waiting forever
  • Add initialMaxRetries recovery option to bound retries before the first successful connection separately from maxRetries, so startup can fail fast while steady-state recovery retries indefinitely (fixes #856)

v2.1.0

  • Add waitForConnect recovery option. When false, connect returns the recovering connection immediately instead of waiting for the first successful connection, so listeners for connect, connect-failed and reconnect-scheduled can be attached before the initial attempt, and close() can cancel it. Expose waitForConnect() on recovering connections to await the first connection (fixes #858)
  • Fix setup being run when close() is called while the initial connection attempt is in flight

v2.0.1

  • Remove buffer-more-ints dependency; use Node.js built-in BigInt Buffer methods (readBigInt64BE, readBigUInt64BE, writeBigInt64BE, writeBigUInt64BE) which have been available since Node.js v10.4

... (truncated)

Commits
  • bc38e38 2.4.1
  • fd1c2b8 Update changelog
  • 60373c8 Remove the broken Snyk Advisor badge from the README
  • 8c6ff45 Document the error listener requirement for all connections and channels
  • 00aa15c Merge pull request #872 from amqp-node/fix/recovery-listener-throws-and-close
  • 9c7afaf Document that a recovering connection requires an error listener
  • fb3424f Release per-attempt state and keep reporting listener throws on closed models
  • ed25106 Share one close between concurrent callers and default null delay options
  • d35cc85 Never deliver an unhandled error event to handler-error
  • 76c93b3 Keep recovery working when listeners throw or close is called during setup
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for amqplib since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 1, 2026
@dependabot dependabot Bot changed the title chore(deps): bump amqplib from 0.10.9 to 2.2.0 chore(deps): bump amqplib from 0.10.9 to 2.2.1 Nov 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/amqplib-2.2.0 branch from 9b6ba2b to 9dd5644 Compare November 11, 2026 09:46
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.10.9 to 2.4.1.
- [Release notes](https://github.com/amqp-node/amqplib/releases)
- [Changelog](https://github.com/amqp-node/amqplib/blob/main/CHANGELOG.md)
- [Commits](amqp-node/amqplib@v0.10.9...v2.4.1)

---
updated-dependencies:
- dependency-name: amqplib
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump amqplib from 0.10.9 to 2.2.1 chore(deps): bump amqplib from 0.10.9 to 2.4.1 Nov 26, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/amqplib-2.2.0 branch from 9dd5644 to 0662a4a Compare November 26, 2026 10:07
@dependabot @github

dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #100.

@dependabot dependabot Bot closed this Dec 1, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/amqplib-2.2.0 branch December 1, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants