All Versions
10
Latest Version
Avg Release Cycle
185 days
Latest Release
102 days ago

Changelog History

  • v2.1.0

    December 27, 2019

    🔄 Changed

    • 👻 Http\Client\Exception\NetworkException no longer extends Http\Client\Exception\RequestException, in accordance with PSR-18
  • v2.0.0

    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

    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

    January 26, 2016

    ✂ Removed

    • 🔧 Stability configuration from composer
  • v1.0.0-RC1

    January 12, 2016

    🔄 Changed

    • ⚡️ Updated package files
    • ⚡️ Updated promise dependency to RC1
  • v1.0.0-beta

    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

    December 13, 2015

    🔄 Changed

    • Async client does not throw exceptions

    ✂ Removed

  • v1.0.0-alpha2

    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.

  • v1.0.0-alpha

    October 26, 2015

    ➕ Added

    • 👍 Better domain exceptions.

    🔄 Changed

    • Purpose of the library: general HTTP CLient abstraction.

    ✂ Removed

    • 🔧 Request options: they should be configured at construction time.
    • Multiple request sending: should be done asynchronously using Async Client.
    • getName method
  • v0.1.0

    June 03, 2015

    ➕ Added

    • 🎉 Initial release

    🚀 [Unreleased]: https://github.com/php-http/httplug/compare/v2.0.0...HEAD