Skip to content

Releases: nimbly/Limber

Release 3.0.1

Choose a tag to compare

@brentscheffler brentscheffler released this 27 Feb 18:00

Updates

  • Adding support and test coverage for PHP 8.4
  • Bumping dev dependencies

Release 3.0

Choose a tag to compare

@brentscheffler brentscheffler released this 27 May 14:36
1225189

Updates

  • Significant under-the-hood architectural changes, moving majority of business logic out of Application class 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 Kernel class
    • Middleware compiling has been moved to a dedicated MiddlewareManager class
  • Increased test coverage
  • Optional pre-built JsonMiddleware added 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

Choose a tag to compare

@brentscheffler brentscheffler released this 04 May 18:01

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

Choose a tag to compare

@brentscheffler brentscheffler released this 06 Aug 13:37

Updates

  • Require psr/container 1.0 or 2.0 in main dependencies.

Release 2.1

Choose a tag to compare

@brentscheffler brentscheffler released this 31 Mar 19:46

New features

  • Passing ServerRequestInterface attributes (via getAttributes() 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

Choose a tag to compare

@brentscheffler brentscheffler released this 01 Sep 18:39

Updates

  • Simplified router logic and improved routing performance.
  • Using PHP 8.0 constructor promotion and other PHP 8+ features where applicable.
  • Extending Application constructor signature to allow passing in of middleware, container instance, and exception handler.
  • Application now 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, and setContainer on Application class. Use Application constructor to pass in these values.
  • Exception handler must implement ExceptionHandlerInterface.

Release 1.4

Choose a tag to compare

@brentscheffler brentscheffler released this 26 Oct 02:01

Updates

  • Passing RequestInterface instance to user supplied exception handler as second parameter.

Release 1.3.1

Choose a tag to compare

@brentscheffler brentscheffler released this 04 May 22:47

Fixes

  • The PrepareHttpResponse middleware was adding a Content-Length header even for response bodies that returned a null (or unknown) size. For remote resources (such as HTTP connections), the content size is not immediately known. This was causing the middleware to declare a Content-Length: 0 for the response which many browsers will (correctly) not render the response body. Content-Length header is now only added automatically for response bodies that have a definitive (non-null) size.

Release 1.3

Choose a tag to compare

@brentscheffler brentscheffler released this 11 Jan 04:52

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

Choose a tag to compare

@brentscheffler brentscheffler released this 28 Aug 18:12

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 call method on Application that can call any \callable with dependency injection.

Fixes

  • Parameter name mismatch in TreeRouter on add method.