Skip to content

fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.3 - #111

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/amqplib-2.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/amqplib-2.x

Conversation

@renovate

@renovate renovate Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
amqplib (source) ^2.2.0 → ^2.4.3 age confidence
@​types/amqplib ^0.10.8 → ^2.2.1 age confidence

Release Notes

amqp-node/amqplib (amqplib)

v2.4.3

Compare Source

  • Complete a close that is waiting for the server's CloseOk when the connection ends first. Previously the promise returned by channel.close() or connection.close() never settled, and the callback of the callback API was never called, if the socket closed, the heartbeat timed out or the server closed the connection before the close was acknowledged. The same happened to channel.close() when connection.close() was called before the channel's CloseOk arrived, and a recovering connection could stop reconnecting when the connection it was closing after a failed setup was lost. The close now resolves (or calls back without an error) once the channel or connection has closed, however that came about. How the connection ended is reported as before, by the connection's error and close events
  • Emit the channel error for a channel the client closed because of a fault, such as a delivery handler that threw, when the connection ends before the server acknowledges the close. Previously the error was dropped and the channel only emitted close
  • Finish closing the connection when a channel callback or listener throws, or a channel error has no listener, while the connection is closing its channels. Previously the remaining channels could be left open, later callbacks on the same channel were never called and the connection might never emit close. Every channel is now closed and the connection emits close. Upgrade note: such a throw is emitted as an error on the connection just before its close, where it could previously be an uncaught exception
  • Fail a channel.get whose message has not fully arrived when the channel or connection closes. Previously the promise never settled, and the callback of the callback API was never called, if the channel closed after the server's BasicGetOk but before the message content, because the get was no longer the channel's outstanding operation. The get now stays outstanding until its content has arrived, so it fails like any other interrupted operation, with the server's reason when the server closed the channel. A later operation queued on the same channel is now sent once the message is complete rather than while its content is still arriving
  • Refuse an operation that a callback issues while its channel is closing. With the callback API, a callback given the error for an interrupted operation could issue another one, as a poll or retry loop does, and have it accepted and sent on the closed channel, where its own callback was never called. When the connection had been lost this could also raise an uncaught stream.push() after EOF. Such a call now throws IllegalOperationError: Channel closed, as any other call on a closed channel does (#​878)

v2.4.2

Compare Source

  • Stop copying everything received of an incomplete frame each time more of it arrives. A frame that took many reads from the socket to arrive was copied in full on every one of them, so the work grew with the square of its size. The bytes waiting to be parsed are now kept in a buffer that doubles when it runs out of room, and each byte is copied fewer than three times however the frame arrives (GHSA-87x3-r7m4-7rm7, reported by Remi Testa (@​funkyremi))

v2.4.1

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • 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)

Configuration

📅 Schedule: (in timezone Europe/Madrid)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch 2 times, most recently from 8905569 to 67ed3af Compare November 5, 2026 19:29
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.2.1 fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.0 Nov 8, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch from 67ed3af to dace84c Compare November 8, 2026 18:14
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.0 fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.1 Nov 8, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch 2 times, most recently from cf1cd32 to cd11e46 Compare November 11, 2026 18:30
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.1 fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.3 Nov 16, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch from cd11e46 to 9d3d136 Compare November 16, 2026 04:21
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.3.3 fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.0 Nov 16, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch 2 times, most recently from c2852c8 to cd85b45 Compare November 20, 2026 22:53
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.0 fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.1 Nov 22, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch 2 times, most recently from ac8f12b to 60277ef Compare November 25, 2026 15:58
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.1 fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.2 Nov 25, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch from 60277ef to 45cd608 Compare November 26, 2026 11:31
@renovate renovate Bot changed the title fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.2 fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.3 Nov 29, 2026
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch from 45cd608 to ce3c683 Compare November 29, 2026 21:57
@renovate
renovate Bot force-pushed the renovate/amqplib-2.x branch from ce3c683 to 9c6818d Compare November 30, 2026 03:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants