Releases: Innmind/Stream
Releases · Innmind/Stream
4.2.0
4.1.0
4.0.0
Added
Innmind\Stream\Capabilities
(implemented by already existingInnmind\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
3.2.0
3.1.0
3.0.0
Changed
Innmind\Stream\Writable\Stream
constructor is now private, you must useStream::of()
insteadInnmind\Stream\Writable::write()
now returnsInnmind\Immutable\Either<Innmind\Stream\FailedToWriteToStream|Innmind\Stream\DataPartiallyWritten, Innmind\Stream\Writable>
instead of throwing exceptionsInnmind\Stream\Watch\Logger
constructor is now private, you must useLogger::psr()
insteadInnmind\Stream\Watch\Select
constructor is now private, you must useSelect::timeoutAfter()
insteadInnmind\Stream\Wtach::__invoke()
now returnsInnmind\Immutable\Maybe<Innmind\Stream\Watch\Ready>
instead of throwing an exceptionInnmind\Stream\Stream\Stream
constructor is now private, you must useStream::of()
insteadInnmind\Stream\Stream\Position\Mode
is now an enumInnmind\Stream\Stream\Size
public constants have been moved to the enumInnmind\Stream\Stream\Size\Unit
Innmind\Stream\Stream\Bidirectional
constructor is now private, you must useBidirectional::of()
insteadInnmind\Stream\Readable\NonBlocking
constructor is now private, you must useNonBlocking::of()
insteadInnmind\Stream\Readable\Stream
constructor is now private, you must useStream::of()
insteadInnmind\Stream\Stream::close()
now returnsInnmind\Immutable\Either<Innmind\Stream\FailedToCloseStream, Innmind\Immutable\SideEffect>
Innmind\Stream\Stream::seek()
now returnsInnmind\Immutable\Either<Innmind\Stream\PositionNotSeekable, Innmind\Stream\Stream>
Innmind\Stream\Stream::rewind()
now returnsInnmind\Immutable\Either<Innmind\Stream\PositionNotSeekable, Innmind\Stream\Stream>
Innmind\Stream\Stream::size()
now returnsInnmind\Immutable\Maybe<Innmind\Stream\Stream\Size>
Innmind\Stream\Stream::size()
is now computed on call instead of stream initializationInnmind\Stream\Readable::read()
now returnsInnmind\Immutable\Maybe<Innmind\Immutable\Str>
Innmind\Stream\Readable::readLine()
now returnsInnmind\Immutable\Maybe<Innmind\Immutable\Str>
Innmind\Stream\Readable::toString()
now returnsInnmind\Immutable\Maybe<string>
Innmind\Stream\Exception\DataPartiallyWritten
moved toInnmind\Stream\DataPartiallyWritten
and is no longer an exceptionInnmind\Stream\Exception\FailedToCloseStream
moved toInnmind\Stream\FailedToCloseStream
and is no longer an exceptionInnmind\Stream\Exception\FailedToWriteToStream
moved toInnmind\Stream\FailedToWriteToStream
and is no longer an exceptionInnmind\Stream\Exception\PositionNotSeekable
moved toInnmind\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
and8.0