Releases: nimbly/Limber
Releases · nimbly/Limber
Release list
Release 3.0.1
Updates
- Adding support and test coverage for PHP 8.4
- Bumping dev dependencies
Release 3.0
Updates
- Significant under-the-hood architectural changes, moving majority of business logic out of
Applicationclass and into various classes.- Resolve library now handles all dependency resolution, injection, and calls.
- Route resolution has been moved to a middleware
- Request handler callback moved into dedicated
Kernelclass - Middleware compiling has been moved to a dedicated
MiddlewareManagerclass
- Increased test coverage
- Optional pre-built
JsonMiddlewareadded to require and parse JSON request bodies - Dropping support for PHP 8.0 and 8.1 (now only supports PHP >= 8.2)
- Code cleanup
Breaking changes
- None!
Release 2.1.2
Fixes
- Fixing bug where untyped parameter with no default value was triggering an exception about not being able to resolve Union or Intersection types.
Updates
- Adding test coverage for PHP 8.3
- Updating Github Actions to latest versions
- Adding Codecov API token
- Updating Psalm to latest version
Release 2.1.1
Updates
- Require psr/container 1.0 or 2.0 in main dependencies.
Release 2.1
New features
- Passing
ServerRequestInterfaceattributes (viagetAttributes()method) to pool of resolvable dependencies when using DI. I.e. You can now attach attributes to your request and have those attributes injected into your request handlers.
Release 2.0
Updates
- Simplified router logic and improved routing performance.
- Using PHP 8.0 constructor promotion and other PHP 8+ features where applicable.
- Extending
Applicationconstructor signature to allow passing in of middleware, container instance, and exception handler. Applicationnow responsible for making route handler callable and can use reflection based autowiring when
creating.
Breaking changes
- Explicit route group config options, dropping key=>value pair options array.
- Minimum PHP version now 8.0
- Package base namespace moved to
Nimbly\Limber. - Removing helper methods:
setMiddleware,addMiddleware,setExceptionHandler, andsetContaineronApplicationclass. UseApplicationconstructor to pass in these values. - Exception handler must implement
ExceptionHandlerInterface.
Release 1.4
Updates
- Passing
RequestInterfaceinstance to user supplied exception handler as second parameter.
Release 1.3.1
Fixes
- The
PrepareHttpResponsemiddleware was adding aContent-Lengthheader even for response bodies that returned anull(or unknown) size. For remote resources (such as HTTP connections), the content size is not immediately known. This was causing the middleware to declare aContent-Length: 0for the response which many browsers will (correctly) not render the response body.Content-Lengthheader is now only added automatically for response bodies that have a definitive (non-null) size.
Release 1.3
Features
- Adding support for PHP 8.0
- Middleware resolver now supports autowiring and dependency injection.
Breaking changes
- Dropping support for PHP 7.2
Release 1.2
Features
- Route attributes: key => value pairs can be assigned to individual Routes or in a Route group which will be attached to the ServerRequestInterface instance's own attributes.
- Adding a public
callmethod on Application that can call any\callablewith dependency injection.
Fixes
- Parameter name mismatch in
TreeRouteronaddmethod.