File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.5.0 (2021-08-04)
4+
5+ * Feature: Update ` Browser ` signature to take optional ` $connector ` as first argument and
6+ to match new Socket API without nullable loop arguments.
7+ (#418 and #419 by @clue )
8+
9+ ``` php
10+ // unchanged
11+ $browser = new React\Http\Browser();
12+
13+ // deprecated
14+ $browser = new React\Http\Browser(null, $connector);
15+ $browser = new React\Http\Browser($loop, $connector);
16+
17+ // new
18+ $browser = new React\Http\Browser($connector);
19+ $browser = new React\Http\Browser($connector, $loop);
20+ ```
21+
22+ * Feature: Rename `Server` to `HttpServer` to avoid class name collisions and
23+ to avoid any ambiguities with regards to the new `SocketServer` API.
24+ (#417 and #419 by @clue)
25+
26+ ```php
27+ // deprecated
28+ $server = new React\Http\Server($handler);
29+ $server->listen(new React\Socket\Server(8080));
30+
31+ // new
32+ $http = new React\Http\HttpServer($handler);
33+ $http->listen(new React\Socket\SocketServer('127.0.0.1:8080'));
34+ ```
35+
336## 1.4.0 (2021-07-11)
437
538A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop).
Original file line number Diff line number Diff line change @@ -2738,7 +2738,7 @@ This project follows [SemVer](https://semver.org/).
27382738This will install the latest supported version:
27392739
27402740``` bash
2741- $ composer require react/http:^1.3
2741+ $ composer require react/http:^1.5
27422742```
27432743
27442744See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments