Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cqs Routing Laravel Package

digital-craftsman/cqs-routing

View on GitHub
Deep Wiki
Context7
2.1.0
  • Added support for PHP 8.5.
  • Added support for Symfony ^8.0.
  • Dropped support for Symfony 7.3 and below. Only the 7.4 LTS version is still supported.
2.0.1
  • Increased allowed array depth of NormalizedConfigurationParameters by one level. This only affects the Psalm type and is not validated at runtime.
2.0.0
1.1.0
1.0.1
  • Fixed parameter doc block to allow configuration up to one array deep.
  • Streamlined parameters for components to NormalizedConfigurationParameters.
1.0.0
  • Breaking change: Renamed package from cqrs to cqs-routing.
  • Breaking change: Renamed namespace from DigitalCraftsman\CQRS to DigitalCraftsman\CQSRouting.
0.9.0
  • Breaking change: Moved files in DigitalCraftsman\CQRS\ValueObject to DigitalCraftsman\CQRS\Routing.
  • Added RouteBuilder to reduce noise in routing configuration.
0.8.1
  • Improve debugging of route configuration.
  • Added missing return type annotation for RoutePayload::generate.
0.8.0
  • Breaking change: Renamed Configuration to RoutePayload and converted to a value object
  • Breaking change: Added areParametersValid method to RequestValidatorInterface, RequestDataTransformerInterface, DTOValidatorInterface and HandlerWrapperInterface
  • Breaking change: Replaced HandlerWrapperConfiguration with simple map configuration.
  • Breaking change: Removed serializer_context configuration. It was identical with the one that can be defined in the Symfony framework configuration.
  • Breaking change: Added the parameters requestValidatorClassesToMergeWithDefault, requestDataTransformerClassesToMergeWithDefault, dtoValidatorClassesToMergeWithDefault or handlerWrapperClassesToMergeWithDefault to RoutePayload. This change is only breaking when you don't use named parameters in your routing (which is highly recommended). Using those parameters instead the version without *ToMergeWithDefault merges the configuration with the default instead of replacing it (see routing docs).
  • Enabled usage of parameters in route configuration for request validators, request data transformers and DTO validators.
  • Enabled usage of parameters in default configuration for request validators, request data transformers, DTO validators and handler wrappers.
0.7.0
0.6.0
  • Breaking change: The interface DTODataTransformerInterface was renamed to RequestDataTransformerInterface. The method in it was renamed from transformDTOData to transformRequestData and the parameter from $dtoData to $requestData.
  • Breaking change: The parameter $dtoData of DTOConstructorInterface was renamed to $requestData.
  • New component RequestValidatorInterface to validate information that is only accessible from the request itself and will not be part of the DTO or must be validated before a DTO is constructed from the request data.
  • Added process description as part of the documentation including graph.
0.5.0
  • Breaking change: DTOConstructorInterface now returns Command|Query instead of object.
  • Breaking change: HandlerWrapperInterface lost "finally logic". It turns out that there are no cases that can't be handled with just then and catch and on the other hand, there might be issues when multiple handler wrappers are used and can't be matched with the priority, because finally was always triggered last. The methods finally and finallyPriority have been removed from the interface. The logic of implementations must be adapted in a way that the logic is moved from finally into then and catch.
  • Increased test code coverage of the moving parts to 100%.
  • Marked internal parts as [@internal](https://github.com/internal).
0.4.0
  • Breaking change: The DTO data transformer that was added in 0.3.0 was removed again as it became clear, that the Symfony Serializer in the full supported range is already able to handle the issue, that DTO Transformer was built for.
  • Supported range was increased to allow for Symfony ^6.0.
0.3.0
  • Breaking change: The DTODataTransformerInterface got a new parameter string $dtoClass which needs to be added to all implementations of the interface.
  • Added new DTODataTransformer with which you can automatically handle cases where your command / query is nullable but the Javascript / Typescript client sends undefined (which means doesn't send the properties if they are null) through reflection.
0.2.0
  • Validated that the package also works with PHP 8.1 and adapted the allowed range in composer.
0.13.2
  • Added missing auto registration of SilentExceptionWrapper to registered handler wrappers.
0.13.1
  • Remove replacement (in composer.json) for polyfills to enable usage of replacement in projects.
0.13.0
  • Breaking change: Dropped support for Symfony 5.
  • Added support for Symfony 7.
  • Promoted SilentExceptionHandler to a supported handler wrapper.
0.12.0
  • 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.
0.11.0
  • Breaking change: Dropped support for PHP 8.1.
  • Added support for PHP 8.3.
  • Removed [@psalm-immutable](https://github.com/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.
0.10.0
  • 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.
0.1.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium