Skip to content

Releases: digital-craftsman-de/cqs-routing

Fixed parameter doc block

27 Nov 07:22
3a16f17
Compare
Choose a tag to compare
  • Fixed parameter doc block to allow configuration up to one array deep.
  • Streamlined parameters for components to NormalizedConfigurationParameters.

Renamed package

23 Aug 11:52
401d94c
Compare
Choose a tag to compare

After 3 years of usage in production, I feel the package is stable enough to be worth a 1.0.0 release 🙂

Updated the name of the package as I've realized that CQRS is not about separation of endpoints, but of models. And the package doesn't have anything to do with the models. It helps with CQS tough, therefore the new naming reflects that.

  • Breaking change: Renamed package from cqrs to cqs-routing.
  • Breaking change: Renamed namespace from DigitalCraftsman\CQRS to DigitalCraftsman\CQSRouting.

Added missing auto registration of `SilentExceptionWrapper`

14 Mar 09:55
599ac24
Compare
Choose a tag to compare
  • Added missing auto registration of SilentExceptionWrapper to registered handler wrappers.

Remove replacement for polyfills to enable usage of replacement in projects

12 Mar 10:22
fb400aa
Compare
Choose a tag to compare
  • Remove replacement (in composer.json) for polyfills to enable usage of replacement in projects.

Dropped Symfony 5, added Symfony 7 and promoted silent exception handler wrapper

12 Mar 10:09
670c221
Compare
Choose a tag to compare
  • Breaking change: Dropped support for Symfony 5.
  • Added support for Symfony 7.
  • Promoted SilentExceptionHandler to a supported handler wrapper.

Switch method from handle to __invoke for command handlers and query handlers

07 Jul 14:20
f164af7
Compare
Choose a tag to compare
  • Breaking change: Switched from handle to __invoke method for CommandHandlerInterface and QueryHandlerInterface. This way the specific command or query can be type hinted in the method signature.

Added support for PHP 8.3 and dropped support for PHP 8.1

26 Jun 09:38
cbde0e1
Compare
Choose a tag to compare
  • Breaking change: Dropped support for PHP 8.1.
  • Added support for PHP 8.3.
  • Removed @psalm-immutable keyword from Command and Query. With PHP 8.2 now being the minimum version, the readonly keyword can now be used for your classes.

Improved routing performance

27 Mar 21:20
f284c96
Compare
Choose a tag to compare
  • Breaking change: Moved route parameter validation to RouteBuilder and made it mandatory. The RouteParameters class was removed in favor of parameters for the addCommandRoute and addQueryRoute functions.
    • Validation therefore happens only on cache warmup and not on execution of the route anymore. This improves the performance slightly.
  • Breaking change: The route name generation changed. When the name must be something specific (because it's used as a reference), it must be set as a parameter for addCommandRoute and addQueryRoute. The name generation might change in future versions.

Add RouteBuilder

21 Mar 15:35
ce9367c
Compare
Choose a tag to compare
  • Breaking change: Moved files in DigitalCraftsman\CQRS\ValueObject to DigitalCraftsman\CQRS\Routing.
  • Added RouteBuilder to reduce noise in routing configuration.

Improve debugging of route configuration

25 Nov 12:49
e4a4407
Compare
Choose a tag to compare
  • Improve debugging of route configuration.
  • Added missing return type annotation for RoutePayload::generate.