Repository navigation
fix(peer-deps): ⬆️ update dependency amqplib to ^2.4.3 - #111
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
2 times, most recently
from
November 5, 2026 19:29
8905569 to
67ed3af
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
from
November 8, 2026 18:14
67ed3af to
dace84c
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
2 times, most recently
from
November 11, 2026 18:30
cf1cd32 to
cd11e46
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
from
November 16, 2026 04:21
cd11e46 to
9d3d136
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
2 times, most recently
from
November 20, 2026 22:53
c2852c8 to
cd85b45
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
2 times, most recently
from
November 25, 2026 15:58
ac8f12b to
60277ef
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
from
November 26, 2026 11:31
60277ef to
45cd608
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
from
November 29, 2026 21:57
45cd608 to
ce3c683
Compare
renovate
Bot
force-pushed
the
renovate/amqplib-2.x
branch
from
November 30, 2026 03:04
ce3c683 to
9c6818d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.2.0→^2.4.3^0.10.8→^2.2.1Release Notes
amqp-node/amqplib (amqplib)
v2.4.3Compare Source
closethat is waiting for the server's CloseOk when the connection ends first. Previously the promise returned bychannel.close()orconnection.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 tochannel.close()whenconnection.close()was called before the channel's CloseOk arrived, and a recovering connection could stop reconnecting when the connection it was closing after a failedsetupwas 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'serrorandcloseeventserrorfor 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 emittedcloseerrorhas 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 emitclose. Every channel is now closed and the connection emitsclose. Upgrade note: such a throw is emitted as anerroron the connection just before itsclose, where it could previously be an uncaught exceptionchannel.getwhose 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'sBasicGetOkbut before the message content, because thegetwas no longer the channel's outstanding operation. Thegetnow 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 arrivingstream.push() after EOF. Such a call now throwsIllegalOperationError: Channel closed, as any other call on a closed channel does (#878)v2.4.2Compare Source
v2.4.1Compare Source
setupfunction is running. The new connection was only watched once setup had finished, so a socket error during setup crashed the process with an unhandlederrorevent, and a close during setup left recovery holding the dead connection, never reconnecting, with every latercreateChannelfailing. Such an attempt now counts as a failed connect:connect-failedis emitted and a reconnect is scheduled.connectlistener closed the new connection and reconnected in an endless loop, a throwingconnect-failedlistener caused an unhandled rejection and ended recovery, and a throwingdisconnectorreconnect-scheduledlistener ended recovery without a reconnect. The throw is now delivered to ahandler-errorlistener on the recovering connection, or raised as an uncaught exception when there is none, and recovery carries on either wayhandler-errorlistener registered on the connection, as documented. Previously the listener was only consulted for channels: on a connection returned byconnectit was never called and the throw propagated into amqplib internalserrorevent that has noerrorlistener to ahandler-errorlistener.handler-erroronly reports throws from your own event listeners; anerrorevent that nothing listens for on a connection or channel is now raised as it would be without ahandler-errorlistenercloseis called on a recovering connection while thesetupfunction is running. Previously it was only closed once setup finished, and never if setup did not settle. Upgrade note:closenow resolves (or calls back) once that connection has closed, and a setup function that is still running will see its connection closedNaNinreconnect-scheduledwheninitialDelayis 0 and the exponential backoff overflowsclosecall on a recovering connection once the connection has closed, rather than immediatelyinitialDelay,maxDelay,factororjitteroption given asnull. Upgrade note:nullwas previously read as 0 (1 forfactor), soinitialDelay: nullreconnected without a delay; it now waits the default 100 ms. Pass 0 explicitly to reconnect immediatelyv2.4.0Compare Source
!, 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 threwUnknown 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 fromvalue. Tables without a!key, and a!key at the top level of the headers, are decoded as beforetableas an explicit type.{ '!': 'table', value: { ... } }is encoded as a table whose keys are taken literally, so it can contain a key named!v2.3.3Compare Source
NaN,-Infinityand fractions of 2^50 or more as doubles in headers andargumentstables. Previouslypublishthrew aRangeErrorfor 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 beforetimestampof 2^64, or an explicitlongof 2^63, in a headers orargumentstable 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 aRangeErrortimestampproperty 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.2Compare Source
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))__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 aTypeErrorand 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.1Compare Source
RangeErrorfrompublishwhen an encoded headers orargumentstable 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 541INTERNAL_ERRORafterpublishhad returned; at other positions a bareoffset is out of rangeerror escaped frompublishinstead (fixes #867)v2.3.0Compare Source
connection.tunewhoseframeMaxis 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 insendContentthat never advanced, exhausting memory.sendContentnow also throws ifframeMaxleaves 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)maxFrameSizeconnection 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 negotiatedframeMaxif that is larger, so raisingframeMaxneeds no second option;0disables 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 withFrame size N exceeds maxFrameSize M. The limit is deliberately separate from the negotiatedframeMax, 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; passmaxFrameSize: 0, or a higher value, to restore the previous behaviour (GHSA-37f9-7m79-6866)v2.2.1Compare Source
channel.cancel, matching the callback API (thanks @edsonsims).cancelreplies asReplies.Cancel({ consumerTag }) in both the promise and callback API declarations, which previously claimedReplies.Empty.waitForConfirmsnever calling back when invoked after the confirm channel closed with unconfirmed messages; it now yields achannel closederror, matching the promise API (thanks @youdie006).waitForConfirms(both APIs) now always fails withchannel closedafter 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.waitForConfirmscallback is now required in the TypeScript declarations, matching the docs. Calling it without one threw at runtime..npmignorewith afilesallowlist inpackage.jsonso 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)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.