Skip to content

Releases: php-http/react-adapter

4.0.0

14 Nov 12:31
@dbu dbu
4.0.0
Compare
Choose a tag to compare

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

20 Oct 08:59
@dbu dbu
3.0.1
Compare
Choose a tag to compare

Changed

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

3.0.0

17 Dec 18:30
7013b1b
Compare
Choose a tag to compare

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

30 Jul 14:44
@dbu dbu
2.3.0
Compare
Choose a tag to compare
  • Allow installation with react dns 1.0
  • Drop unmaintained PHP version support

2.2.0

30 Jul 14:43
@dbu dbu
v2.2.0
e3dc672
Compare
Choose a tag to compare
v2.2.0

Release 2.2.0

2.1.0

21 Dec 14:20
@dbu dbu
3671060
Compare
Choose a tag to compare
  • Support react 0.5

2.0.0

18 Sep 09:20
Compare
Choose a tag to compare

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

Release 1.0.0

08 Jul 17:11
Compare
Choose a tag to compare

No changes since v0.3.0.

See change log for all changes

Update dependencies

18 Jul 14:23
Compare
Choose a tag to compare

Using stable version of php-http/discovery

Updated discovery dependency

28 Jun 21:45
Compare
Choose a tag to compare
v0.2.0

Update CHANGELOG.md