Releases: amphp/byte-stream
Releases · amphp/byte-stream
1.8.2
What's Changed
- Iterator Stream documentation by @tncrazvan in #80
- Add psalm.xml and .github configs to .gitattributes by @sidz in #85
- Update https instead of http in composer.json by @S-Tian86 in #88
- Fix psalm annotation by @sokil in #98
- Add explicit nullable types by @alexandre-daubois in #111
New Contributors
- @tncrazvan made their first contribution in #80
- @sidz made their first contribution in #85
- @S-Tian86 made their first contribution in #88
- @sokil made their first contribution in #98
- @alexandre-daubois made their first contribution in #111
Full Changelog: v1.8.1...v1.8.2
2.1.1
2.1.0
What's Changed
Payload
now implementsStringable
- Add cancelation support for
split
by @xtrime-ru in #108
New Contributors
- @xtrime-ru made their first contribution in #108
Full Changelog: v2.0.2...v2.1.0
2.0.2
2.0.1
2.0.0
Initial stable release compatible with AMPHP v3 and fibers.
There are a number of renaming and compatibility breaks with 1.x
versions:
- Added interface
ResourceStream
InputStream
has been renamed toReadableStream
and now extendsAmp\Closable
. Theread()
method now supports an optionalCancellation
parameter.OutputStream
has been renamed toWritableStream
and now extendsAmp\Closable
.WritableStream::end()
no longer accepts an optional data chunk as parameter.IteratorStream
has been repalced byReadableIterableStream
, which accepts anyiterable
ofstring
s (particularly useful withGenerator
orPipeline
).ResourceInputStream
has been renamed toReadableResourceStream
. Theread()
method has an additional, optional$limit
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
and isfinal
now.Payload::buffer()
may only be called once.- Added a
$limit
param toAmp\ByteStream\buffer()
andPayload::buffer()
to set a limit on the maximum bytes that can be buffered. - Added
BufferedReader
, a helper class for reading fromReadableStream
using fixed lengths or delimiters found within the stream (#94) - Added
Pipe
. - Added
StreamChannel
implementing theChannel
interface fromamphp/sync
. - The zlib streams have been moved into the
Compression
sub-namespace and renamed toCompressingWritableStream
andDecompressingReadableStream
. - Add
CompressingReadableStream
(#99) - Add
DecompressingWritableStream
(#99) - The base64 streams have been renamed to reflect the new interface names.
InputStreamChain
has been renamed toReadableStreamChain
.- Renamed the
$options
param ofparseLineDelimitedJson
to$flags
to match thejson_decode
function.
2.0.0 Beta 14
- Marked
Payload
as final - Fixed compatibility with
amphp/pipeline@v1.0
(#101)
2.0.0 Beta 13
Improved performance of continuous reads in ReadableResourceStream
2.0.0 Beta 12
- Add compatibility with Revolt v1.x