NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #302 most downloaded on Packagist
A stream abstraction to make working with non-blocking I/O simple.
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 11 months
Rarely documented
notes for 7 of 37 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
51 releases · first in 2017
Fixed the exception type thrown if ReadableIterableStream is closed ( Amp\Pipeline\DisposedException was leaked, now an Amp\ByteStream\ClosedException
ReadableIterableStream is closed (Amp\Pipeline\DisposedException was leaked, now an Amp\ByteStream\ClosedException is thrown).Full Changelog: v2.1.1...v2.1.2
Fixed cancellation not being forwarded to split() in splitLines() .
split() in splitLines().Full Changelog: v2.1.0...v2.1.1
One column per quarter.
Payload now implements Stringable
Payload now implements Stringablesplit by @xtrime-ru in #108Full Changelog: v2.0.2...v2.1.0
Fixed throwing an Error when invoking getStdin() , getStdout() , and getStderr() if the corresponding STDIO stream had been previously closed. Instead
Error when invoking getStdin(), getStdout(), and getStderr() if the corresponding STDIO stream had been previously closed. Instead, an already closed stream instance is returned.Fixed ReadableResourceStream calling Suspension::resume() when destroyed, which could throw an exception when suspending from {main} and an uncaught e
ReadableResourceStream calling Suspension::resume() when destroyed, which could throw an exception when suspending from {main} and an uncaught exception was thrown from the event loop.Initial stable release compatible with AMPHP v3 and fibers.
Initial stable release compatible with AMPHP v3 and fibers.
There are a number of renaming and compatibility breaks with 1.x versions:
ResourceStreamInputStream has been renamed to ReadableStream and now extends Amp\Closable. The read() method now supports an optional Cancellation parameter.OutputStream has been renamed to WritableStream and now extends Amp\Closable. WritableStream::end() no longer accepts an optional data chunk as parameter.IteratorStream has been repalced by ReadableIterableStream, which accepts any iterable of strings (particularly useful with Generator or Pipeline).ResourceInputStream has been renamed to ReadableResourceStream. The read() method has an additional, optional $limit parameter to specify the maximum number of bytes to read.ResourceOutputStream has been renamed to WritableResourceStream.InMemoryStream has been renamed to ReadableBuffer.OutputBuffer has been renamed to WritableBuffer.Payload now accepts a string in addition to a ReadableStream and is final now. Payload::buffer() may only be called once.$limit param to Amp\ByteStream\buffer() and Payload::buffer() to set a limit on the maximum bytes that can be buffered.BufferedReader, a helper class for reading from ReadableStream using fixed lengths or delimiters found within the stream (#94)Pipe.StreamChannel implementing the Channel interface from amphp/sync.Compression sub-namespace and renamed to CompressingWritableStream and DecompressingReadableStream.CompressingReadableStream (#99)DecompressingWritableStream (#99)InputStreamChain has been renamed to ReadableStreamChain.$options param of parseLineDelimitedJson to $flags to match the json_decode function.Payload as finalamphp/pipeline@v1.0 (#101)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Iterator Stream documentation by @tncrazvan in #80
Full Changelog: v1.8.1...v1.8.2
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →