All Versions
12
Latest Version
Avg Release Cycle
223 days
Latest Release
95 days ago

Changelog History
Page 1

  • v2.3.0 Changes

    February 21, 2022

    ๐Ÿ”„ Changed

    • Enabled the $onRejected callback of HttpRejectedPromise to return a promise for implementing a retry mechanism #168
  • v2.2.0 Changes

    July 13, 2020

    ๐Ÿ”„ Changed

    • ๐Ÿ‘Œ Support PHP 7.1-8.0
  • v2.1.0 Changes

    December 27, 2019

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ป Http\Client\Exception\NetworkException no longer extends Http\Client\Exception\RequestException, in accordance with PSR-18
  • v2.0.0 Changes

    October 31, 2018

    This version is no BC break for consumers using HTTPlug. However, HTTP clients that implement HTTPlug need to adjust because we add return type declarations.

    โž• Added

    • ๐Ÿ‘Œ Support for PSR-18 (HTTP client).

    ๐Ÿ”„ Changed

    • BC Break: HttpClient::sendRequest(RequestInterface $request) has a return type annotation. The new signature is HttpClient::sendRequest(RequestInterface $request): ResponseInterface.
    • BC Break: RequestException::getRequest() has a return type annotation. The new signature is RequestException::getRequest(): RequestInterface.

    โœ‚ Removed

    • ๐Ÿ‘ PHP 5 support
  • v1.1.0 Changes

    August 31, 2016

    ๐Ÿ”Œ During the development of plugins we faced a problem with exceptions thrown in plugins.

    ๐Ÿ‘ป Any exceptions not implementing Http\Client\Exception ended up in an invalid argument error because of these lines:

    https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38

    ๐Ÿ‘ป This type leak allowed to inject an exception to be passed to the onRejected callback of a Promise.

    ๐Ÿš€ In the current release we introduced HTTP specific promises which does not catch all exceptions, but HTTP ones. Every other exception will be thrown immediately.

  • v1.0.0 Changes

    January 26, 2016

    โœ‚ Removed

    • ๐Ÿ”ง Stability configuration from composer
  • v1.0.0-RC1 Changes

    January 12, 2016

    ๐Ÿ”„ Changed

    • โšก๏ธ Updated package files
    • โšก๏ธ Updated promise dependency to RC1
  • v1.0.0-beta Changes

    December 17, 2015

    ๐Ÿš€ This release brings a cleaner exception concept which is documented directly in the interfaces.

    ๐Ÿ‘ There is also an initial support for discovering HTTP Clients using Puli.

  • v1.0.0-alpha3 Changes

    December 13, 2015

    ๐Ÿ”„ Changed

    • Async client does not throw exceptions

    โœ‚ Removed

  • v1.0.0-alpha2 Changes

    November 16, 2015

    Thanks to @joelwurtz we now have an asynchronous client and a promise in the contract.

    ๐Ÿ”Œ Our plugin architecture will use this functionality.