Skip to content

Commit 8a0fd7c

Browse files
committed
Prepare v1.5.0 release
1 parent 667a44e commit 8a0fd7c

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
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

538
A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ This project follows [SemVer](https://semver.org/).
27382738
This 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

27442744
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)