Releases: thomasvargiu/RabbitMqModule
Releases · thomasvargiu/RabbitMqModule
[5.0.0] 2023-01-13
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 aLaminas\Serializer
factory string. You need to change it to and array:'serializer' => ['name' => 'PhpSerializer']
. Now theserializer
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]
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 aLaminas\Serializer
factory string. You need to change it to and array:'serializer' => ['name' => 'PhpSerializer']
. Now theserializer
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
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
Fixed
- Reverted changes: #16 Fixed
queue_declare
arguments usingAMQPTable
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
Fixed
- #16 Fixed
queue_declare
arguments usingAMQPTable
[3.0.0] - 2018-10-24
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
### Added
- Added PHP 7.1 types
- Added ability connectivity check and reconnect for producers
Removed
- Removed PHP < 7.1 compatibility