Releases: amphp/byte-stream
Releases · amphp/byte-stream
2.1.2
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
What's Changed
- Fixed cancellation not being forwarded to
split()insplitLines().
Full Changelog: v2.1.0...v2.1.1
2.1.0
What's Changed
Payloadnow implementsStringable- Add cancelation support for
splitby @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 InputStreamhas been renamed toReadableStreamand now extendsAmp\Closable. Theread()method now supports an optionalCancellationparameter.OutputStreamhas been renamed toWritableStreamand now extendsAmp\Closable.WritableStream::end()no longer accepts an optional data chunk as parameter.IteratorStreamhas been repalced byReadableIterableStream, which accepts anyiterableofstrings (particularly useful withGeneratororPipeline).ResourceInputStreamhas been renamed toReadableResourceStream. Theread()method has an additional, optional$limitparameter to specify the maximum number of bytes to read.ResourceOutputStreamhas been renamed toWritableResourceStream.InMemoryStreamhas been renamed toReadableBuffer.OutputBufferhas been renamed toWritableBuffer.Payloadnow accepts astringin addition to aReadableStreamand isfinalnow.Payload::buffer()may only be called once.- Added a
$limitparam toAmp\ByteStream\buffer()andPayload::buffer()to set a limit on the maximum bytes that can be buffered. - Added
BufferedReader, a helper class for reading fromReadableStreamusing fixed lengths or delimiters found within the stream (#94) - Added
Pipe. - Added
StreamChannelimplementing theChannelinterface fromamphp/sync. - The zlib streams have been moved into the
Compressionsub-namespace and renamed toCompressingWritableStreamandDecompressingReadableStream. - Add
CompressingReadableStream(#99) - Add
DecompressingWritableStream(#99) - The base64 streams have been renamed to reflect the new interface names.
InputStreamChainhas been renamed toReadableStreamChain.- Renamed the
$optionsparam ofparseLineDelimitedJsonto$flagsto match thejson_decodefunction.
2.0.0 Beta 14
- Marked
Payloadas final - Fixed compatibility with
amphp/[email protected](#101)
2.0.0 Beta 13
Improved performance of continuous reads in ReadableResourceStream
2.0.0 Beta 12
- Add compatibility with Revolt v1.x