Releases: franzliedke/whoops-middleware
PHP 8 support and compatibility with other PSR-7 implementations
Content negotiation fixes
Full changelog:
- Fixed:
- Respond with appropriate
Content-Type
header for all supported response formats (#11) - Always use first match when multiple accepted content types are supported
- Respond with appropriate
Compatibility with Diactoros 2.0
This adds support for using the library together with Diactoros v2.0.
A future release will add support for PSR-17 factories.
Support for final PSR-15 interfaces
As the interfaces changed slightly before the final version of PSR-15 was published, this release brings support for the latest version (see #9).
All other middleware adapters were removed. Please user PSR-15, it's the standard!
Please check out the README for the current interface.
Support for PSR-15 middleware
Thanks to @timtegeler, we now support PSR-15 compatible (as of yet, it's still in review) middleware.
Oh, and I also added an official license, this is now licensed under MIT. If this is possible, I hereby want to clarify that I consider all previous versions licensed under MIT as well, so you are not in trouble for using them.
Fix response creation
Full changelog:
- Fixed:
- Usage of an obsolete response factory in Zend Diactoros (#5).
Format negotiation
The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.
Full changelog:
- Format negotiation: Output is now formatted according to the preferred content type (#4).
- Fixed:
- Whoops is not allowed to exit the process anymore, this should be taken care of by the middleware pipeline.
Small fix for Stratigility
Full changelog:
- Fixed:
- The
ErrorMiddleware
didn't completely fulfill Stratigility's requirements: all four parameters needed to be required. (#3).
- The
Support for Whoops v2
We now support Whoops v2.0.0+.
The biggest BC break in the new Whoops version is the increased minimum PHP version.
Classical Middleware support
The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.
Full changelog:
- Classical Middleware support: The
Middleware
class now implements the classical three-arguments signature as known from Relay and others. - Changed:
- The class for use with Stratigility has been renamed from
Middleware
toErrorMiddleware
.
- The class for use with Stratigility has been renamed from