2.0.0 Beta 1
Pre-release
Pre-release
Initial beta release compatible with amphp v3.
There are a number of renaming and compatibility breaks with v1.x
.
- Added interfaces
ClosableStream
andResourceStream
InputStream
has been renamed toReadableStream
and now extendsClosableStream
. Theread()
method now supports an optionalCancellation
parameter.OutputStream
has been renamed toWritableStream
and now extendsClosableStream
.IteratorStream
has been repalced byIterableStream
, which accepts anyiterable
ofstring
s (particularly useful withGenerator
orPipeline
).ResourceInputStream
has been renamed toReadableResourceStream
. Theread()
method has an additional, optional$length
parameter to specify the maximum number of bytes to read.ResourceOutputStream
has been renamed toWritableResourceStream
.InMemoryStream
has been renamed toReadableBuffer
.OutputBuffer
has been renamed toWritableBuffer
.Payload
now accepts astring
in addition to aReadableStream
.Payload::buffer()
may only be called once.- Added
Pipe
andEmitterStream
classes. - The zlib streams have been moved into the
Compression
sub-namespace and renamed toCompressingWritableStream
andDecompressingReadableStream
. - The base-64 streams have been renamed to reflect the new interface names.
InputStreamChain
has been renamed toReadableStreamChain
.