ADDED:
CHANGED:
REMOVED:
FIXED:
ADDED:
- Support for PHP 8
- Support for PHPUnit 9
CHANGED:
- Instead of zend/zend-diactoros, laminas/laminas-diactoros is required
ADDED:
- #5:
YinCompatibilityMiddleware
in order to facilitate the usage of Yin in other frameworks
CHANGED:
- Improved conformance to PSR-12
- Added more property type declarations
CHANGED:
- Increased minimum PHP version requirement to 7.4 as property type declarations were added
- Updated dev dependencies
- Improved static analysis
CHANGED:
- Updated Yin to 4.0.0
JsonApiRequestValidatorMiddleware
will throw aRequestException
if the request isn't instance of Yin'sRequestInterface
- Apply the Woohoo Labs. Coding Standard
CHANGED:
- Updated Yin to 4.0.0
JsonApiRequestValidatorMiddleware
will throw aRequestException
if the request isn't instance of Yin'sRequestInterface
- Apply the Woohoo Labs. Coding Standard
REMOVED:
JsonApiExceptionHandlerMiddleware
accidentally catchingThrowable
s (breaking change)
FIXED:
JsonApiExceptionHandlerMiddleware
caughtThrowable
s by default, but it prevented child middleware to catch other exceptions
ADDED:
- Support for PSR-15 (breaking change)
CHANGED:
JsonApiErrorHandlerMiddleware
was renamed toJsonApiExceptionHandlerMiddleware
(breaking change)JsonApiExceptionHandlerMiddleware
expects aResponseInterface
instance as the first constructor parameter to use it as an error response prototype (breaking change)JsonApiExceptionHandlerMiddleware
catches and handlesThrowable
s by default (breaking change)JsonApiDispatcherMiddleware
throws an exception instead of responding with an error 404 response if it can not find any dispatchable action (breaking change)- PHPUnit 7 is minimally required to run tests
CHANGED:
- Yin 3.0.0 is minimally required
ADDED:
- Tests
CHANGED:
- Increased minimum PHP version requirement to 7.1
ADDED:
- Support for PSR-11
CHANGED:
- Increased minimum PHP version requirement to 7.0
- Yin 2.0.0 is minimally required
- The default request attribute name storing the callable to be dispatched to "__action" in
JsonApiDispatcherMiddleware
DispatcherMiddleware
now usesExceptionFactory::createResourceNotFoundException()
forError 404
responsesJsonApiErrorHandlerMiddleware
now accepts anExceptionFactory
as an optional constructor argument
REMOVED:
- Support for Container-Interop
ADDED:
- Support for Yin 1.0.0
CHANGED:
- Updated minimum PHP version requirement to PHP 5.6
- The
exceptionFactory
parameter ofJsonApiResponseValidatorMiddleware
andJsonApiResponseValidatorMiddleware
became optional
ADDED:
- Support for PHPUnit 5.0
- Support for PHP 7 exception handling
CHANGED:
- Renamed project to Yin-Middleware
- The library now requires Yin 0.11.0
- Improved Travis config
CHANGED:
- Improved compatibility with other middleware dispatchers
CHANGED:
- Return a Response object for all middleware
CHANGED:
- The library now requires Yin 0.10.0
ADDED:
- Configuration option for
JsonApiErrorHandlerMiddleware
to provide meta information about the exception thrown
ADDED:
- Configuration option for
JsonApiDispatcherMiddleware
to define the request attribute name storing the route handler - Configuration option for
JsonApiErrorHandler
whether to catch or notJsonApiException
-s
CHANGED:
- Woohoo Labs. Yin 0.8.0 is the minimum requirement
JsonApiDispatcherMiddleware
dispatches the route handler from the container when it is not acallable
FIXED:
- PHP version constraint in composer.json
CHANGED
JsonApiCatchingDispatcherMiddleware
is nowJsonApiErrorHandlerMiddleware
- Woohoo Labs. Yin 0.7.0 is the minimum requirement
CHANGED:
- Woohoo Labs. Yin 0.6.0 is the minimum requirement
JsonApiCatchingDispatcherMiddleware
handles more exceptions- Updated JSON API schema
FIXED:
JsonApiDispatcherMiddleware
returns an error when the current route can't be found- Request body now doesn't get validated
ADDED:
JsonApiCatchingDispatcherMiddleware
makes error handling easier
CHANGED:
- Woohoo Labs. Yin 0.4.2 is the minimum requirement
FIXED:
JsonApiDispatcherMiddleware
returns an error when the current route can't be found
FIXED:
- Fixed option for displaying the original error
- Original response can be sent along with the validation error response
- Body gets validated properly
- Initial release