Skip to content

Commit b684637

Browse files
committed
Prepare v0.6.0 release
1 parent dcc0c46 commit b684637

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# Changelog
22

3+
## 0.6.0 (2017-03-26)
4+
5+
* Feature / Fix / BC break: Add `DuplexResourceStream` and deprecate `Stream`
6+
(#85 by @clue)
7+
8+
```php
9+
// old (does still work for BC reasons)
10+
$stream = new Stream($connection, $loop);
11+
12+
// new
13+
$stream = new DuplexResourceStream($connection, $loop);
14+
```
15+
16+
Note that the `DuplexResourceStream` now rejects read-only or write-only
17+
streams, so this may affect BC. If you want a read-only or write-only
18+
resource, use `ReadableResourceStream` or `WritableResourceStream` instead of
19+
`DuplexResourceStream`.
20+
21+
> BC note: This class was previously called `Stream`. The `Stream` class still
22+
exists for BC reasons and will be removed in future versions of this package.
23+
24+
* Feature / BC break: Add `WritableResourceStream` (previously called `Buffer`)
25+
(#84 by @clue)
26+
27+
```php
28+
// old
29+
$stream = new Buffer(STDOUT, $loop);
30+
31+
// new
32+
$stream = new WritableResourceStream(STDOUT, $loop);
33+
```
34+
35+
* Feature: Add `ReadableResourceStream`
36+
(#83 by @clue)
37+
38+
```php
39+
$stream = new ReadableResourceStream(STDIN, $loop);
40+
```
41+
42+
* Fix / BC Break: Enforce using non-blocking I/O
43+
(#47 by @clue)
44+
45+
> BC note: This is known to affect process pipes on Windows which do not
46+
support non-blocking I/O and could thus block the whole EventLoop previously.
47+
48+
* Feature / Fix / BC break: Consistent semantics for
49+
`DuplexStreamInterface::end()` to ensure it SHOULD also end readable side
50+
(#86 by @clue)
51+
52+
* Fix: Do not use unbuffered reads on pipe streams for legacy PHP < 5.4
53+
(#80 by @clue)
54+
355
## 0.5.0 (2017-03-08)
456

557
* Feature / BC break: Consistent `end` event semantics (EOF)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ The recommended way to install this library is [through Composer](http://getcomp
948948
This will install the latest supported version:
949949

950950
```bash
951-
$ composer require react/stream:^0.5
951+
$ composer require react/stream:^0.6
952952
```
953953

954954
More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).

0 commit comments

Comments
 (0)