Skip to content

Releases: nimbly/Capsule

Release 2.0.2

27 May 15:54
fe25b8e
Compare
Choose a tag to compare

Note

This will be the last 2.x release of Capsule (barring security or bug fixes). Active feature development will be moved to the 3.x release.

Fixes

  • Fixed uploaded file moving test for Windows

Updates

  • Adding support for psr/http-message 2.0

Release 2.0.1

29 May 21:15
Compare
Choose a tag to compare

Fixes

  • Port number was always being returned in authority if a port number was supplied. This was breaking convention in only using port number if the port is non-standard for the given scheme (http vs https.)
  • Fixing formatting issues in code.

Release 2.0

18 Oct 23:33
96b93df
Compare
Choose a tag to compare

Features

  • Support for PHP 8.x, leveraging features from 8.0
  • Adding createFromString method in StreamFactory
  • Adding provide property in composer file for psr/http-message-implementation and psr/http-factory-implementation
  • A lot of code and comment cleanup, standardizing formatting
  • Stricter type hinting in constructors and methods where possible (using union type)
  • Tightening up Uri::__toString() and Uri::getAuthority() methods, fixing long standing bugs

Breaking changes

  • Removing support for PHP 7.x
  • Moving namespace to Nimbly\Capsule
  • Removing warning suppression (@) when making calls to fopen

Release 1.1.2

21 Jun 16:14
Compare
Choose a tag to compare

Fixes

  • In accordance with PSR, __toString() and getContents() methods on the ResourceStream will attempt to safely rewind the underlying stream.

Release 1.1.1

22 Feb 23:57
Compare
Choose a tag to compare

Fixes

  • MessageAbstract::withHeader() now treats header names as case insensitive and will correctly overwrite the header.

Release 1.1

03 Jan 23:17
Compare
Choose a tag to compare

Features

  • Adding PHP 8.0 support.

Breaking changes

  • Dropping PHP 7.2 support.
  • ServerRequestFactory::createServerRequestFromPsr7() is now a public static method.

Release 1.0

10 Mar 20:18
Compare
Choose a tag to compare

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);

Release 0.11

05 Nov 20:39
Compare
Choose a tag to compare

Fixes

  • Custom Response reason phrases are now respected
  • Better support for static analyzers methods that return new instance of self

Release 0.10

20 Oct 02:43
Compare
Choose a tag to compare

Updates

  • Adding Factory::createServerRequestFromPsr7() method to convert any other PSR-7 ServerRequestInterface instance into a Capsule specific ServerRequest.

Fixes

  • Cleaning up code that attempts to automatically parse the ServerRequest body

Breaking changes

None

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.