Skip to content

Releases: franzliedke/whoops-middleware

PHP 8 support and compatibility with other PSR-7 implementations

03 Jan 01:35
Compare
Choose a tag to compare

Time for some PHP and dependency maintenance.

Summary

  • Add support for PHP 8, drop support for PHP <7.2.
  • Rely on middleware/utils package to pick an available PSR-7 implementation (#12, #13), don't force Laminas on people.

Content negotiation fixes

07 Jan 23:41
Compare
Choose a tag to compare

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

Compatibility with Diactoros 2.0

30 Mar 19:32
Compare
Choose a tag to compare

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

11 Apr 21:05
Compare
Choose a tag to compare

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

01 Feb 12:17
Compare
Choose a tag to compare

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

27 Apr 14:10
Compare
Choose a tag to compare

Full changelog:

  • Fixed:
    • Usage of an obsolete response factory in Zend Diactoros (#5).

Format negotiation

18 Apr 01:48
Compare
Choose a tag to compare

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

26 Feb 03:00
Compare
Choose a tag to compare

Full changelog:

  • Fixed:
    • The ErrorMiddleware didn't completely fulfill Stratigility's requirements: all four parameters needed to be required. (#3).

Support for Whoops v2

29 Jan 09:01
Compare
Choose a tag to compare

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

31 Oct 11:29
Compare
Choose a tag to compare

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 to ErrorMiddleware.