Releases: EnriqCG/nestjs-amqp
Release v2.0.4
Release v1.0.1
What's Changed
- Implement
prefetchCount
support on module init - Fixed all vulnerabilities impacting the dependencies
- Removed
release-it
because we don't use it anymore
Full Changelog: 1.0.0...1.0.1
Release v1.0.0
🎉 v1.0 is here!
- Fixed silent connection drops by wrapping
amqp-connection-manager
instead ofamqplib
directly. (3204e8d) Fixes #12 - Implemented integration tests (ba53424) closes #5
amqplib
andamqp-connection-manager
are now designated dependencies of this package which removes the need to install those packages explicitly (9f3f830)- Bumped dependencies to fix vulnerabilities (b97d1d4 97539c0)
Release 2.0.0
Less than 10 days after the v1.0 release, v2.0 is out with a ton of useful updates to make the most out of RabbitMQ and NestJS!
What's new ✨
-
Removed
AMQPService
. Now multiple connections are handled by different instances ofAMQPModule
and can be individually injected using the@InjectAMQPChannel
decorator.constructor(@InjectAMQPChannel() private amqpChannel: Channel) { }
-
Explicit definition of a service on
AMQPModuleOptions
. -
Queues can be detached from the AMQP service when explicitly passing an exchange on the
ConsumerOptions
. This allows the creation of handlers on exchange types other thantopic
, for example for use onfanout
exchanges.@Consume({ exchange: 'test_exchange', assertQueue: true, autoDelete: true }) async testHandler(body: unknown) { // do stuff. }
-
Removed the
assertQueues
property in favor ofassertQueuesByDefault
.@Consume
handlers decorator now supports explicit assertion. Consumer assertion takes precedence overassertQueuesByDefault
.
-
Renamed the
exchange
property on the module options toassertExchanges
.- It now accepts an array of exchanges.
- Removed the
assert
property.
assertExchanges: [ { name: 'test', type: 'topic', }, { name: 'notify', type: 'fanout' } ]
-
Two distinct channels are created on the same connection, one is exported and used for publishing and another one is used to consume messages.
-
Added the ability to
wait
for a full AMQP connection before the NestJS application initializes completely. -
Distinction between a
queueName
andpattern
.
Other updates 🔨
- Updated README to reflect new breaking changes.
- Explicitly defined
@Consume
overloads - Added more E2E tests to cover the new functionality.
- Removed
AMQPCoreModule
and hosted all module logic inAMQPModule
. - Clean up unused code. More readable flow.
- Bumped dependencies.
Release 0.4.7
Changelog:
- Bump peerDependencies to include NestJS v8 (f2927f2)
Release 0.4.6
Changelog:
- Bump amqplib peerDependency to 0.8.0 (6906eb8)
Release 0.4.5
Release 0.4.4
Release 0.4.3
Release 0.4.1
Changelog:
- Reduce initial value (empty) (6c6c680)