Releases: jschreuder/Middle
Releases · jschreuder/Middle
Version 2.0
Updated code to aim at PHP 8.1 instead of 7.1, updated dependencies, got rid of the Jwt session, and some general improvements.
Full Changelog: 1.0.0...2.0.0
1.0.0 Stable release
As the RC ended up running good in 2 usages, scored perfectly on Scrutinizr and PHPSpec runs, and had no functional changes compared to previous interop-based releases I've made this also the 1.0 release.
1.0 Release Candidate
- Updated interop packages to PSR-15 and PSR-17
0.10 Beta
- Added prevention of calling a delegate twice (BC BREAK when abusing delegates)
- Added default Exceptions
- BC BREAK: Moved ValidationFailedException and made it extend InputException
0.9 Beta
- BC BREAK: Modified
JsonRequestParserMiddleware
to expect an array of regexes instead of using simple string-matching. This allows for content types likeapplication/json;chartset=utf-8
to be accepted as valid JSON.
0.8 Alpha
- Added RoutingProviderCollection
- BC BREAK: Made use of typehinted variable with splat operator for constructing
ApplicationStack
instances instead of array which needed to be checked one by one
0.7 Alpha
Upped minimum PHP version to 7.1.
0.6 Alpha
Getting there for a beta. Improvements include:
- Collected all ServerMiddlewares under a single namespace
- Split up the
FilterValidationMiddleware
into a filter & a validator middleware - Added a JSON content parser middleware
- Refactored session classes
- Code cleanup & formatting
0.5 Alpha
Updated everything to latest state of http-interop/http-middleware & http-factory.
0.4 Alpha
Rewrite of all things controllers:
- Controllers are now required to implement
ControllerInterface
interface that must take aServerRequestInterface
and return aResponseInterface
- Added convenience class
CallableController
that turns any callable into a Controller - Removed
ViewController
concept and renderer through ControllerRunner, must now be done within each controller - Fixed unnecessary extends in
RequestValidatorInterface
toControllerInterface
- Router now expects factory callables instead of directly taking Controllers
- Moved
ControllerRunner
intoController
sub-namespace