|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 55 | ## 0.5.0 (2017-03-08) |
4 | 56 |
|
5 | 57 | * Feature / BC break: Consistent `end` event semantics (EOF) |
|
0 commit comments