nestjs icon indicating copy to clipboard operation
nestjs copied to clipboard

chore(rabbitmq): update amqp-connection-manager to v4

Open vincent-benbria opened this issue 3 years ago • 5 comments

This brings compatibility (maybe?) with amqp-connection-manager > 4.0.0

amqp-connection-manager 4.0.0 (2022-01-07)

BREAKING CHANGES We will no longer emit a disconnect event on an initial connection failure - instead we now emit connectFailed on each connection failure, and only emit disconnect when we transition from connected to disconnected.

vincent-benbria avatar Jun 20 '22 18:06 vincent-benbria

@vincent-benbria Is there a way to proxy the old disconnect event, I'm trying to think of a way to bring compatibility to pre-existing code. If not, if we decide that this is a breaking change, please ensure we're only going to have 4.xx

I did play with this for a while, this seems good to me but i don't want to either support v3/v4 when there's no proxy or whatsoever so bridge both v3 and v4.

underfisk avatar Jun 24 '22 11:06 underfisk

@vincent-benbria Could you just make sure we're on amqp-connection-manager v4 and update the yarn.lock file?

underfisk avatar Jul 27 '22 21:07 underfisk

@underfisk would it make sense to bump amqplib to ^0.10.1 in this PR as well? That should keep it in sync with the latest version of Nest:

https://github.com/nestjs/nest/blob/81df0dde0881b0680808798565bc88a0e65dc2ed/package.json#L108

If you'd rather that be in a separate PR, I can do that as well.

andrewda avatar Jul 30 '22 20:07 andrewda

It does make sense, bump it

underfisk avatar Jul 30 '22 23:07 underfisk

@vincent-benbria I have bumped amqlib as @andrewda suggested and made sure that we are only aiming for v4 from now forward, after reading this major it feels that its important to guide people through v4 using the new api methods

underfisk avatar Sep 14 '22 10:09 underfisk

Any ETA for this to be merged?

witem avatar Jun 02 '23 12:06 witem