Skip to content

Releases: woohoolabs/yin-middleware

2.0.0

12 Mar 00:25
Compare
Choose a tag to compare

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

28 Oct 23:19
Compare
Choose a tag to compare

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

22 Aug 19:10
Compare
Choose a tag to compare

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

01 Mar 17:16
Compare
Choose a tag to compare

CHANGED:

  • Improved compatibility for other middleware dispatchers

0.7.0

28 Feb 18:49
Compare
Choose a tag to compare

CHANGED:

  • Return a Response object for all the middlewares

0.6.0

16 Jan 09:26
Compare
Choose a tag to compare

CHANGED:

  • The library now requires Yin 0.10.0

0.5.0

18 Nov 19:13
Compare
Choose a tag to compare

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

05 Oct 19:30
Compare
Choose a tag to compare

CHANGED

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

0.3.0

23 Sep 21:12
Compare
Choose a tag to compare

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

27 Aug 21:54
Compare
Choose a tag to compare

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