Skip to content

Releases: thomasvargiu/RabbitMqModule

[5.0.0] 2023-01-13

13 Jan 10:36
ef4909b
Compare
Choose a tag to compare

Changes

  • feat: add PHP 8 support (thanks to @darckking)
  • feat: drop support for PHP < 7.4
  • feat: add properties types
  • feat: flag internal methods with @internal
  • fix: fix types with Psalm
  • feat: add support for configuration static analysis
  • feat: remove unused dependencies
  • feat: support for Serializer service
  • chore: use GH actions for build

Braking changes

  • There are some breaking changes after adding types to class properties
  • no_wait configuration no longer exists for queues and exchanges
  • The serializer configuration for RPC client and server now doesn't support a Laminas\Serializer factory string. You need to change it to and array: 'serializer' => ['name' => 'PhpSerializer']. Now the serializer setting set as string will try to retrieve a Serializer from the service container.

Static Analysis

All configuration options have a fromArray static method to create serializable configuration with support to static analysis and IDE autocomplete (if phpstan or psalm is supported).

$config = [
    'rabbitmq' => [
        'consumer' => [
            'consumer1' => Options\Consumer::fromArray([
                'callback' => 'callback-service',
                'queue' => [
                    'name' => 'consumer-queue',
                ],
            ])
        ],
    ],
];

[5.0.0-beta1]

17 Sep 13:42
Compare
Choose a tag to compare
[5.0.0-beta1] Pre-release
Pre-release

Changes

  • feat: add PHP 8 support (thanks to @darckking)
  • feat: drop support for PHP < 7.4
  • feat: add properties types
  • feat: flag internal methods with @internal
  • fix: fix types with Psalm
  • feat: add support for configuration static analysis
  • feat: remove unused dependencies
  • feat: support for Serializer service
  • chore: use GH actions for build

Braking changes

  • There are some breaking changes after adding types to class properties
  • no_wait configuration no longer exists for queues and exchanges
  • The serializer configuration for RPC client and server now doesn't support a Laminas\Serializer factory string. You need to change it to and array: 'serializer' => ['name' => 'PhpSerializer']. Now the serializer setting set as string will try to retrieve a Serializer from the service container.

Static Analysis

All configuration options have a fromArray static method to create serializable configuration with support to static analysis and IDE autocomplete (if phpstan or psalm is supported).

$config = [
    'rabbitmq' => [
        'consumer' => [
            'consumer1' => Options\Consumer::fromArray([
                'callback' => 'callback-service',
                'queue' => [
                    'name' => 'consumer-queue',
                ],
            ])
        ],
    ],
];

[3.1.0] 2020-01-21

21 Jan 14:16
Compare
Choose a tag to compare

Added

  • Added feature to reconnect producer connection on publish() when it's not connected

Removed

  • Removed disconnection on __destruct().  php-amqplib will do it

[3.0.2] 2019-10-21

21 Oct 14:51
Compare
Choose a tag to compare

Fixed

  • Reverted changes: #16 Fixed queue_declare arguments using AMQPTable

The 3.0.1 introduces a breaking change, changing how arguments for queues should be passed.
In v3.0.* Arguments for queues and exchanges should be passed as AMQP array annotation like this:

$arguments = [
    'x-message-ttl' => ['I', 40 * 1000],
    'x-dead-letter-exchange' => ['S', 'ha.dead-letter-exchange'],
];

A future release will change this behavior introducing the use of AMQPTable.

[3.0.1] 2019-06-25

25 Jun 09:44
4961528
Compare
Choose a tag to compare

Fixed

  • #16 Fixed queue_declare arguments using AMQPTable

[3.0.0] - 2018-10-24

24 Oct 20:42
Compare
Choose a tag to compare

Added

  • Added PHP 7.1 types
  • Added ability connectivity check and reconnect for producers
  • Added PHP 7.3 compatibility

Removed

  • Removed PHP < 7.1 compatibility

[3.0.0-beta] - 2018-01-10

10 Jan 17:19
Compare
Choose a tag to compare
Pre-release

### Added

  • Added PHP 7.1 types
  • Added ability connectivity check and reconnect for producers

Removed

  • Removed PHP < 7.1 compatibility