Skip to content

Releases: amphp/byte-stream

1.8.2

13 Apr 18:06
v1.8.2
4f0e968
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.8.1...v1.8.2

2.1.1

17 Feb 04:56
v2.1.1
daa00f2
Compare
Choose a tag to compare

What's Changed

  • Fixed cancellation not being forwarded to split() in splitLines().

Full Changelog: v2.1.0...v2.1.1

2.1.0

19 Nov 14:40
v2.1.0
0a4b0e8
Compare
Choose a tag to compare

What's Changed

  • Payload now implements Stringable
  • Add cancelation support for split by @xtrime-ru in #108

New Contributors

Full Changelog: v2.0.2...v2.1.0

2.0.2

01 Sep 04:46
v2.0.2
408a3b4
Compare
Choose a tag to compare
  • Fixed throwing an Error when invoking getStdin(), getStdout(), and getStderr() if the corresponding STDIO stream had been previously closed. Instead, an already closed stream instance is returned.

2.0.1

03 Feb 04:11
v2.0.1
7e7a775
Compare
Choose a tag to compare
  • Fixed 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.

2.0.0

07 Jan 16:35
v2.0.0
c102b62
Compare
Choose a tag to compare

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 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.
  • Added a $limit param to Amp\ByteStream\buffer() and Payload::buffer() to set a limit on the maximum bytes that can be buffered.
  • Added BufferedReader, a helper class for reading from ReadableStream using fixed lengths or delimiters found within the stream (#94)
  • Added Pipe.
  • Added StreamChannel implementing the Channel interface from amphp/sync.
  • The zlib streams have been moved into the Compression sub-namespace and renamed to CompressingWritableStream and DecompressingReadableStream.
  • Add CompressingReadableStream (#99)
  • Add DecompressingWritableStream (#99)
  • The base64 streams have been renamed to reflect the new interface names.
  • InputStreamChain has been renamed to ReadableStreamChain.
  • Renamed the $options param of parseLineDelimitedJson to $flags to match the json_decode function.

2.0.0 Beta 14

25 Dec 22:50
v2.0.0-beta.14
970327a
Compare
Choose a tag to compare
2.0.0 Beta 14 Pre-release
Pre-release

2.0.0 Beta 13

16 Nov 17:16
v2.0.0-beta.13
12a5d46
Compare
Choose a tag to compare
2.0.0 Beta 13 Pre-release
Pre-release

Improved performance of continuous reads in ReadableResourceStream

2.0.0 Beta 12

07 Nov 21:05
v2.0.0-beta.12
a4aa2af
Compare
Choose a tag to compare
2.0.0 Beta 12 Pre-release
Pre-release
  • Add compatibility with Revolt v1.x

2.0.0 Beta 11

11 Sep 20:28
v2.0.0-beta.11
198ea3d
Compare
Choose a tag to compare
2.0.0 Beta 11 Pre-release
Pre-release
  • Add CompressingReadableStream (#99)
  • Add DecompressingWritableStream (#99)
  • Improve StreamChannel implementation to properly support backpressure, cancellation and avoid keeping the read watcher alive (#100)