Skip to content

Releases: Innmind/Stream

4.2.0

16 Sep 15:20
4.2.0
67ef9e4
Compare
Choose a tag to compare

Added

  • Support for innmind/immutable 5

4.1.0

08 Jul 16:11
4.1.0
24ed76f
Compare
Choose a tag to compare

Changed

  • Require innmind/black-box 5

Removed

  • Support for PHP 8.1

4.0.0

29 Jan 10:06
4.0.0
9330220
Compare
Choose a tag to compare

Added

  • Innmind\Stream\Capabilities (implemented by already existing Innmind\Stream\Streams)
  • Innmind\Stream\Streams::fromAmbientAuthority()
  • Innmind\Stream\Stream::resource(): resource

Deprecated

  • Innmind\Stream\Streams::of() use ::fromAmbientAuthority() instead

Removed

  • Innmind\Stream\Selectable

3.3.0

04 Dec 14:42
3.3.0
ee6a55e
Compare
Choose a tag to compare

Added

  • Innmind\Stream\Streams to have a central point from where to open watch for streams

3.2.0

04 Dec 14:42
3.2.0
17a5bc8
Compare
Choose a tag to compare

Added

  • Innmind\Stream\Watch\Select::waitForever() named constructor

3.1.0

04 Dec 14:41
3.1.0
569308f
Compare
Choose a tag to compare

Changed

  • Innmind\Stream\Stream::end() is declared as mutation free

3.0.0

29 Jan 11:35
3.0.0
768d8a5
Compare
Choose a tag to compare

Changed

  • Innmind\Stream\Writable\Stream constructor is now private, you must use Stream::of() instead
  • Innmind\Stream\Writable::write() now returns Innmind\Immutable\Either<Innmind\Stream\FailedToWriteToStream|Innmind\Stream\DataPartiallyWritten, Innmind\Stream\Writable> instead of throwing exceptions
  • Innmind\Stream\Watch\Logger constructor is now private, you must use Logger::psr() instead
  • Innmind\Stream\Watch\Select constructor is now private, you must use Select::timeoutAfter() instead
  • Innmind\Stream\Wtach::__invoke() now returns Innmind\Immutable\Maybe<Innmind\Stream\Watch\Ready> instead of throwing an exception
  • Innmind\Stream\Stream\Stream constructor is now private, you must use Stream::of() instead
  • Innmind\Stream\Stream\Position\Mode is now an enum
  • Innmind\Stream\Stream\Size public constants have been moved to the enum Innmind\Stream\Stream\Size\Unit
  • Innmind\Stream\Stream\Bidirectional constructor is now private, you must use Bidirectional::of() instead
  • Innmind\Stream\Readable\NonBlocking constructor is now private, you must use NonBlocking::of() instead
  • Innmind\Stream\Readable\Stream constructor is now private, you must use Stream::of() instead
  • Innmind\Stream\Stream::close() now returns Innmind\Immutable\Either<Innmind\Stream\FailedToCloseStream, Innmind\Immutable\SideEffect>
  • Innmind\Stream\Stream::seek() now returns Innmind\Immutable\Either<Innmind\Stream\PositionNotSeekable, Innmind\Stream\Stream>
  • Innmind\Stream\Stream::rewind() now returns Innmind\Immutable\Either<Innmind\Stream\PositionNotSeekable, Innmind\Stream\Stream>
  • Innmind\Stream\Stream::size() now returns Innmind\Immutable\Maybe<Innmind\Stream\Stream\Size>
  • Innmind\Stream\Stream::size() is now computed on call instead of stream initialization
  • Innmind\Stream\Readable::read() now returns Innmind\Immutable\Maybe<Innmind\Immutable\Str>
  • Innmind\Stream\Readable::readLine() now returns Innmind\Immutable\Maybe<Innmind\Immutable\Str>
  • Innmind\Stream\Readable::toString() now returns Innmind\Immutable\Maybe<string>
  • Innmind\Stream\Exception\DataPartiallyWritten moved to Innmind\Stream\DataPartiallyWritten and is no longer an exception
  • Innmind\Stream\Exception\FailedToCloseStream moved to Innmind\Stream\FailedToCloseStream and is no longer an exception
  • Innmind\Stream\Exception\FailedToWriteToStream moved to Innmind\Stream\FailedToWriteToStream and is no longer an exception
  • Innmind\Stream\Exception\PositionNotSeekable moved to Innmind\Stream\PositionNotSeekable and is no longer an exception

Removed

  • Innmind\Stream\Stream::knowsSize()
  • Innmind\Stream\Exception\SelectFailed
  • Support for out of band streams
  • Support for php 7.4 and 8.0