Skip to content

Releases: nimbly/Capsule

Release 0.9

09 Oct 15:25
Compare
Choose a tag to compare

Breaking changes

  • Removed Response::isSuccessful() - method is not listed in interface and "success" is too subjective.
  • FileStream::getMetadata() no longer throws a RuntimeException if a meta data key is not found. Instead, as detailed in interface, it will return null.
  • StreamInterface implementations now throw RuntimeException if the underlying resource cannot be read, written, or seek a position.

Release 0.8.1

07 Oct 21:06
Compare
Choose a tag to compare

Fixes

  • Composer version config
  • Psalm reported errors and issues
  • Updating dependencies

Release 0.8

07 Oct 20:07
Compare
Choose a tag to compare

Breaking changes

  • Request::create() factory removed.
  • ServerRequest constructor method signature change: $serverParams are now passed into constructor.

New features

PSR-17 Message Factory

Capsule now provides Capsule\Factory for providing PSR-17 support.

ServerRequest helpers

ServerRequest now supports 3 new helper methods to get and check for request data:

  • has(string $name):bool Check request for body or query param existence.
  • get(string $name) Get param value from request body or query params.
  • all(): array Get all values from request body and query params.