Skip to content

Latest commit

 

History

History
225 lines (128 loc) · 4.96 KB

CHANGELOG.md

File metadata and controls

225 lines (128 loc) · 4.96 KB

4.3.0 - unreleased

ADDED:

CHANGED:

REMOVED:

FIXED:

4.2.1 - 2020-06-23

ADDED:

  • Support for PHP 8
  • Support for PHPUnit 9

CHANGED:

  • Instead of zend/zend-diactoros, laminas/laminas-diactoros is required

4.2.0 - 2019-11-29

ADDED:

  • #5: YinCompatibilityMiddleware in order to facilitate the usage of Yin in other frameworks

4.1.1 - 2019-10-04

CHANGED:

  • Improved conformance to PSR-12
  • Added more property type declarations

4.1.0 - 2019-08-21

CHANGED:

  • Increased minimum PHP version requirement to 7.4 as property type declarations were added
  • Updated dev dependencies
  • Improved static analysis

4.0.0 - 2019-04-19

CHANGED:

  • Updated Yin to 4.0.0
  • JsonApiRequestValidatorMiddleware will throw a RequestException if the request isn't instance of Yin's RequestInterface
  • Apply the Woohoo Labs. Coding Standard

4.0.0-beta1 - 2018-12-21

CHANGED:

  • Updated Yin to 4.0.0
  • JsonApiRequestValidatorMiddleware will throw a RequestException if the request isn't instance of Yin's RequestInterface
  • Apply the Woohoo Labs. Coding Standard

3.0.1 - 2018-02-12

REMOVED:

  • JsonApiExceptionHandlerMiddleware accidentally catching Throwables (breaking change)

FIXED:

  • JsonApiExceptionHandlerMiddleware caught Throwables by default, but it prevented child middleware to catch other exceptions

3.0.0 - 2018-02-02

ADDED:

  • Support for PSR-15 (breaking change)

CHANGED:

  • JsonApiErrorHandlerMiddleware was renamed to JsonApiExceptionHandlerMiddleware (breaking change)
  • JsonApiExceptionHandlerMiddleware expects a ResponseInterface instance as the first constructor parameter to use it as an error response prototype (breaking change)
  • JsonApiExceptionHandlerMiddleware catches and handles Throwables 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

2.2.0 - 2017-11-21

CHANGED:

  • Yin 3.0.0 is minimally required

2.1.0 - 2017-09-12

ADDED:

  • Tests

CHANGED:

  • Increased minimum PHP version requirement to 7.1

2.0.0 - 2017-03-12

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 uses ExceptionFactory::createResourceNotFoundException()for Error 404 responses
  • JsonApiErrorHandlerMiddleware now accepts an ExceptionFactory as an optional constructor argument

REMOVED:

  • Support for Container-Interop

1.0.0 - 2016-10-29

ADDED:

  • Support for Yin 1.0.0

CHANGED:

  • Updated minimum PHP version requirement to PHP 5.6
  • The exceptionFactory parameter of JsonApiResponseValidatorMiddleware and JsonApiResponseValidatorMiddleware became optional

0.8.0 - 2016-08-22

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

0.7.1 - 2016-03-01

CHANGED:

  • Improved compatibility with other middleware dispatchers

0.7.0 - 2016-02-28

CHANGED:

  • Return a Response object for all middleware

0.6.0 - 2016-01-16

CHANGED:

  • The library now requires Yin 0.10.0

0.5.1 - 2015-11-26

ADDED:

  • Configuration option for JsonApiErrorHandlerMiddleware to provide meta information about the exception thrown

0.5.0 - 2015-11-18

ADDED:

  • Configuration option for JsonApiDispatcherMiddleware to define the request attribute name storing the route handler
  • Configuration option for JsonApiErrorHandler whether to catch or not JsonApiException-s

CHANGED:

  • Woohoo Labs. Yin 0.8.0 is the minimum requirement
  • JsonApiDispatcherMiddleware dispatches the route handler from the container when it is not a callable

FIXED:

  • PHP version constraint in composer.json

0.4.0 - 2015-10-05

CHANGED

  • JsonApiCatchingDispatcherMiddleware is now JsonApiErrorHandlerMiddleware
  • Woohoo Labs. Yin 0.7.0 is the minimum requirement

0.3.0 - 2015-09-23

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

0.2.0 - 2015-08-27

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

0.1.1 - 2015-08-19

FIXED:

  • Fixed option for displaying the original error
  • Original response can be sent along with the validation error response
  • Body gets validated properly

0.1.0 - 2015-08-17

  • Initial release