Changelog History
Page 1
-
v2.3.0 Changes
February 21, 2022๐ Changed
- Enabled the
$onRejected
callback ofHttpRejectedPromise
to return a promise for implementing a retry mechanism #168
- Enabled the
-
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 extendsHttp\Client\Exception\RequestException
, in accordance with PSR-18
- ๐ป
-
v2.0.0 Changes
October 31, 2018This 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 isHttpClient::sendRequest(RequestInterface $request): ResponseInterface
. - BC Break:
RequestException::getRequest()
has a return type annotation. The new signature isRequestException::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
- ๐ Promise interface moved to its own repository: php-http/promise
-
v1.0.0-alpha2 Changes
November 16, 2015Thanks to @joelwurtz we now have an asynchronous client and a promise in the contract.
๐ Our plugin architecture will use this functionality.