Skip to content

Release 1.0

Choose a tag to compare

@brentscheffler brentscheffler released this 10 Mar 20:18
· 64 commits to master since this release

Updates

  • Helper methods on ServerRequest to access parsed body, query, and uploaded file parameters. See README for more information.
  • Full PSR-17 Factory support.
  • Query params automatically merged into ServerRequest from URI instance.
  • ext-json no longer required.
  • Additional test coverage across entire package.

Fixes

  • ResourceStream properly detaches as well as properly throwing RuntimeException on certain methods as described in interface.

Breaking changes

  • Response constructor signature change.
  • ServerRequest::createFromGlobals() moved to ServerRequestFactory::createFromGlobals().
  • FileStream class renamed to ResourceStream.
  • ServerRequest will no longer attempt to automatically parse the request body. Best practice is to create a Middleware layer to handle request body parsing and assigning to Request instance via $request->withParsedBody($parsedBody);