Skip to content

Releases: EnriqCG/nestjs-amqp

Release v2.0.4

25 Jul 10:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.0.0...2.0.4

Release v1.0.1

28 Feb 17:06
Compare
Choose a tag to compare

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

28 Feb 16:53
Compare
Choose a tag to compare

🎉 v1.0 is here!

  • Fixed silent connection drops by wrapping amqp-connection-manager instead of amqplib directly. (3204e8d) Fixes #12
  • Implemented integration tests (ba53424) closes #5
  • amqplib and amqp-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)

view in npm

Release 2.0.0

18 May 11:53
Compare
Choose a tag to compare

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 of AMQPModule 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 than topic, for example for use on fanout exchanges.

    @Consume({
      exchange: 'test_exchange',
      assertQueue: true,
      autoDelete: true
    })
    async testHandler(body: unknown) {
      // do stuff.
    }
  • Removed the assertQueues property in favor of assertQueuesByDefault.

    • @Consume handlers decorator now supports explicit assertion. Consumer assertion takes precedence over assertQueuesByDefault.
  • Renamed the exchange property on the module options to assertExchanges.

    • 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 and pattern.

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 in AMQPModule.
  • Clean up unused code. More readable flow.
  • Bumped dependencies.

Release 0.4.7

02 Dec 15:52
Compare
Choose a tag to compare

Changelog:

  • Bump peerDependencies to include NestJS v8 (f2927f2)

Release 0.4.6

24 May 20:39
Compare
Choose a tag to compare

Changelog:

  • Bump amqplib peerDependency to 0.8.0 (6906eb8)

Release 0.4.5

24 May 20:11
Compare
Choose a tag to compare

Changelog:

Release 0.4.4

24 May 13:26
Compare
Choose a tag to compare

This release fixes issues and vulnerabilities with core dependencies.

Changelog:

  • Update npm dependencies (25f2e66)
  • Bump ampqlib peerDependency to 0.7.1 (48f150b)
  • Fix 10 high severity vulnerabilities in npm packages (0e05ae7)

Release 0.4.3

30 Jan 12:37
Compare
Choose a tag to compare

Changelog:

  • import MetadataScanner from @nestjs/core/metadata-scanner (c14e8f9)
  • Update peerDependencies (ff507ab)
  • Update dependencies (75aff75)

Release 0.4.1

24 Jan 20:33
Compare
Choose a tag to compare

Changelog:

  • Reduce initial value (empty) (6c6c680)