|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.7.0 (2017-05-04) |
| 4 | + |
| 5 | +* Removed / BC break: Remove deprecated and unneeded functionality |
| 6 | + (#45, #87, #90, #91 and #93 by @clue) |
| 7 | + |
| 8 | + * Remove deprecated `Stream` class, use `DuplexResourceStream` instead |
| 9 | + (#87 by @clue) |
| 10 | + |
| 11 | + * Remove public `$buffer` property, use new constructor parameters instead |
| 12 | + (#91 by @clue) |
| 13 | + |
| 14 | + * Remove public `$stream` property from all resource streams |
| 15 | + (#90 by @clue) |
| 16 | + |
| 17 | + * Remove undocumented and now unused `ReadableStream` and `WritableStream` |
| 18 | + (#93 by @clue) |
| 19 | + |
| 20 | + * Remove `BufferedSink` |
| 21 | + (#45 by @clue) |
| 22 | + |
| 23 | +* Feature / BC break: Simplify `ThroughStream` by using data callback instead of |
| 24 | + inheritance. It is now a direct implementation of `DuplexStreamInterface`. |
| 25 | + (#88 and #89 by @clue) |
| 26 | + |
| 27 | + ```php |
| 28 | + $through = new ThroughStream(function ($data) { |
| 29 | + return json_encode($data) . PHP_EOL; |
| 30 | + }); |
| 31 | + $through->on('data', $this->expectCallableOnceWith("[2, true]\n")); |
| 32 | + |
| 33 | + $through->write(array(2, true)); |
| 34 | + ``` |
| 35 | + |
| 36 | +* Feature / BC break: The `CompositeStream` starts closed if either side is |
| 37 | + already closed and forwards pause to pipe source on first write attempt. |
| 38 | + (#96 and #103 by @clue) |
| 39 | + |
| 40 | + If either side of the composite stream closes, it will also close the other |
| 41 | + side. We now also ensure that if either side is already closed during |
| 42 | + instantiation, it will also close the other side. |
| 43 | + |
| 44 | +* BC break: Mark all classes as `final` and |
| 45 | + mark internal API as `private` to discourage inheritance |
| 46 | + (#95 and #99 by @clue) |
| 47 | + |
| 48 | +* Feature / BC break: Only emit `error` event for fatal errors |
| 49 | + (#92 by @clue) |
| 50 | + |
| 51 | + > The `error` event was previously also allowed to be emitted for non-fatal |
| 52 | + errors, but our implementations actually only ever emitted this as a fatal |
| 53 | + error and then closed the stream. |
| 54 | + |
| 55 | +* Feature: Explicitly allow custom events and exclude any semantics |
| 56 | + (#97 by @clue) |
| 57 | + |
| 58 | +* Support legacy PHP 5.3 through PHP 7.1 and HHVM and improve usage documentation |
| 59 | + (#100 and #102 by @clue) |
| 60 | + |
| 61 | +* Actually require all dependencies so this is self-contained and improve |
| 62 | + forward compatibility with EventLoop v1.0 and v0.5 |
| 63 | + (#94 and #98 by @clue) |
| 64 | + |
3 | 65 | ## 0.6.0 (2017-03-26) |
4 | 66 |
|
5 | 67 | * Feature / Fix / BC break: Add `DuplexResourceStream` and deprecate `Stream` |
|
0 commit comments