Releases: amphp/byte-stream
Releases · amphp/byte-stream
1.4.0
- Added
Amp\ByteStream\buffer()
1.3.1
- Fixed detecting when some types of streams are closed (particularly process pipes on macOS) (#40)
1.3.0
- Added
Payload
as a replacement for Message
.
- Deprecated
Message
.
1.2.5
- Fixed issue with
ResourceInputStream
(#38)
1.2.4
- Fixed issue with immediate reads, which could result in a blocking loop in combination with immediate writes. Such a situation is only likely on pipes or files, network sockets are probably not affected here, unless they receive data very quickly. Reads now deferred to the next tick in case they're immediate. (#37)
1.2.3
- Fixed wrong exception being thrown for writing to closed
ResourceOutputStream
(#35)
- Fixed performance issue with
STDIN
on Windows. This might also improve performance for other streams.
- Fixed condition to detect a broken pipe in
ResourceOutputStream
.
1.2.2
- Polyfill
STDOUT
and STDERR
for SAPIs not being CLI. (#34)
- Correctly throw a
PendingReadError
in IteratorStream
if a previous read is still pending.
1.2.1
- Suppress errors for
feof
, because pthreads. (#32)
1.2.0
- Added
OutputBuffer
.
- Fixed
ResourceInputStream
for STDIO pipes.
1.1.6
- Do not release resource on
__destruct()
in ResourceInputStream
. This ensures getResource()
still returning a valid resource during cyclic garbage collection. See #29.
- Optimize memory consumption of
Amp\ByteStream\pipe()
.