Releases: thephpleague/route
Releases · thephpleague/route
4.3.1
[4.3.1] 2019-07
Fixed
- Fixed bug when attempting to get a container for custom strategy that is not container aware.
4.3.0
[4.3.0] 2019-06
Added
- Ability to add middleware to the stack as a class name so it is only instantiated when used.
Changed
- Switch to use
zendframework/zend-httphandlerrunner
as removed fromdiactoros
(@JohnstonCode)
Fixed
- When adding a prefix to a group after adding routes, it is now applied to those routes. (@delboy1978uk)
- Fix to how shifting middleware is handled to prevent error triggering. (@delboy1978uk)
- Fix to ensure that when invoking FastRoute methods on League\Route all callables are converted to League\Route objects (@pgk)
- Various documentation fixes.
4.2.0
[4.2.0] 2018-10
Added
- Allow adding default response headers to strategies.
- Expand error handling to include Throwable.
(Thanks @shadowhand)
4.1.1
[4.1.1] 2018-10
Fixed
- Fixed issue where group middleware was being duplicated on internal routes.
4.1.0
[4.1.0] 2018-09
Changed
- JSON strategy no allows array and object returns and builds JSON response. (Thanks @willemwollebrants)
Fixed
- Fixed issue where setting strategy on specific route had no effect. (Thanks @aag)
4.0.1
[4.0.1] 2018-08
Fixed
- Fixed a bug where content-type header would not be added to response in Json Strategy.
4.0.0
[4.0.0] 2018-08
Changed
- Increased minimum PHP version to 7.1.0
- Now implements PSR-15 middleware and request handlers.
- No longer enforces use of container, one can be used optionally.
- Strategies now return PSR-15 middleare as handlers.
- Increased types of proxy callables that can be used as controllers.
- General housekeeping and refactoring for continued improvement.
Fixed
- Group level strategies now handle exceptions if a route is not matched but the request falls within the group.
3.1.0
[3.1.0] 2018-07
Fixed
- Ensure JsonStrategy handles all exceptions by default.
- Handle multiline exception messages.
Added
- Add port condition to routes.
3.0.4
[3.0.4] 2017-03
Fixed
- Middleware execution order.
3.0.0
[3.0.0] 2017-03
Added
- Middleware functionality for PSR-7 compatible callables, globally to route collection or individually per route/group.
- Allow setting of strategy for a route group.
- Add UUID as default pattern matcher.
Changed
- Now depend directly on PSR-11 implementation.
- Simplified default strategies to just
Application
andJson
. - Have strategies return a middleware to add to the stack.
- Have strategies handle decoration of exceptions.