镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Releases: php-http/react-adapter

4.0.1

Choose a tag to compare

@dbu dbu released this 30 Oct 08:24
4.0.1

Fixed

  • Deprecation about nullable arguments with PHP 8.4

4.0.0

Choose a tag to compare

@dbu dbu released this 14 Nov 12:31
4.0.0

With this release the promise wait function will wait for requests to complete using
react/async's await utilizing fibers. Instead of constantly
start stopping the event loop. As such users are expected to run usage of this adapter in a fiber using
react/async's async like:

use function React\Async\async;

async(static function () {
    // Returns a Http\Promise\Promise
    $promise = $adapter->sendAsyncRequest(request);

    // Returns a Psr\Http\Message\ResponseInterface
    $response = $promise->wait();
})();

Another major change in this release is that you no longer inject the event loop into the client. It now
only uses the global loop accessor. This ensures the same event loop is used everywhere and makes creating
the client a bit simpler:

use Http\Adapter\React\ReactFactory;

$reactHttp = ReactFactory::buildHttpClient();

Changed

  • Removed injecting of the event loop and fully switched to using the global loop accessor (Loop::get())
  • Use PHP 8.1 fibers as async mechanism.
  • Detect supported PHP versions in range during CI instead of hardcoding them.

3.0.1

Choose a tag to compare

@dbu dbu released this 20 Oct 08:59
3.0.1

Changed

  • Replaced EventFactory::create with Loop::get as the factory has been deprecated.

3.0.0

Choose a tag to compare

@shulard shulard released this 17 Dec 18:30
7013b1b

react/http + httplug v2

  • Work with HTTPlug 2, drop HTTPlug 1 support
  • Move to react/http library instead of react/http-client

2.3.0

Choose a tag to compare

@dbu dbu released this 30 Jul 14:44
2.3.0
  • Allow installation with react dns 1.0
  • Drop unmaintained PHP version support

2.2.0

Choose a tag to compare

@dbu dbu released this 30 Jul 14:43
v2.2.0
e3dc672
v2.2.0

Release 2.2.0

2.1.0

Choose a tag to compare

@dbu dbu released this 21 Dec 14:20
3671060
  • Support react 0.5

2.0.0

Choose a tag to compare

@joelwurtz joelwurtz released this 18 Sep 09:20

Change the promise implementation and make it internal [BC BREAK]

Release 1.0.0

Choose a tag to compare

@Nyholm Nyholm released this 08 Jul 17:11

No changes since v0.3.0.

See change log for all changes

Update dependencies

Choose a tag to compare

@Nyholm Nyholm released this 18 Jul 14:23

Using stable version of php-http/discovery