Commit 8a0fd7c 1 parent 667a44e commit 8a0fd7c Copy full SHA for 8a0fd7c
File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
36
## 1.4.0 (2021-07-11)
4
37
5
38
A 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/).
2738
2738
This will install the latest supported version:
2739
2739
2740
2740
``` bash
2741
- $ composer require react/http:^1.3
2741
+ $ composer require react/http:^1.5
2742
2742
```
2743
2743
2744
2744
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments