Releases: stubbles/stubbles-streams
Releases · stubbles/stubbles-streams
11.0.0 Hide + Seek
BC breaks
- raised minimum required PHP version to 8.3
- Changed
stubbles\streams\Seekable::seek()to accept the newly introduced enumstubbles\streams\Whence. Passing an int value directory is deprecated and support for passing an int will be removed with 12.0.0. Also, constantsstubbles\streams\Seekable::SET,stubbles\streams\Seekable::CURRENTandstubbles\streams\Seekable::ENDnow refer to the respective enum value ofstubbles\streams\Whenceand have been deprecated as well, with removal slated for 12.0.0. Instead of the constants, respective enum values should be used.
Other changes
- ensured compatibility with PHP 8.5
- added enum
stubbles\streams\Whenceto be used as positioning advice forstubbles\streams\Seekable::seek()
10.0.0 - Logical
BC breaks
- raised minimum required PHP version to 8.2
stubbles\streams\ResourceInputStream::read(),stubbles\streams\ResourceInputStream::readLine(),stubbles\streams\ResourceOutputStream::write(),stubbles\streams\StandardInputStream::seek(),stubbles\streams\StandardInputStream::tell(),stubbles\streams\file\FileInputStream::seek()andstubbles\streams\file\FileInputStream::tell()now throw a\LogicExceptionwhen the underlying resource was closed instead of astubbles\streams\StreamException
9.1.0 - Failed to seek
- both
stubbles\streams\StandardInputStreamandstubbles\streams\file\FileInputStreamwill now throw astubbles\streams\StreamExceptionwhen seeking fails - added more phpstan related type hints
9.0.0 - Freedom of choice
BC breaks
- raised minimum required PHP version to 7.3
- removed methods and classes deprecated with 8.0.0
stubbles\streams\DecodingInputStream::getCharset(), usestubbles\streams\DecodingInputStream::charset()insteadstubbles\streams\EncodingOutputStream::getCharset(), usestubbles\streams\EncodingOutputStream::charset()insteadstubbles\streams\AbstractDecoratedInputStream, usestubbles\streams\DecoratedInputStreaminsteadstubbles\streams\AbstractDecoratedOutputStream, usestubbles\streams\DecoratedOutputStreaminstead
Other changes
stubbles\streams\DecodingInputStreamnow accepts a third parameter so decoding charset can be set to something else than UTF-8stubbles\streams\EncodingOutputStreamnow accepts a third parameter so charset to encode from can be set to something else than UTF-8
8.1.0 - Copy & paste
- implemented #1 new function to copy a complete input stream to an output stream: added
stubbles\streams\copy()
8.0.0 - Seven Ate Nine
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- deprecated
stubbles\streams\DecodingInputStream::getCharset(), usestubbles\streams\DecodingInputStream::charset()instead, will be removed with 9.0.0 - deprecated
stubbles\streams\EncodingOutputStream::getCharset(), usestubbles\streams\EncodingOutputStream::charset()instead, will be removed with 9.0.0 - deprecated
stubbles\streams\AbstractDecoratedInputStream, usestubbles\streams\DecoratedInputStreaminstead, will be removed with 9.0.0 - deprecated
stubbles\streams\AbstractDecoratedOutputStream, usestubbles\streams\DecoratedOutputStreaminstead, will be removed with 9.0.0
Other changes
- fixed
stubbles\streams\InputStreamIteratorswallowing the last line - fixed
stubbles\streams\file\FileInputStream::bytesLeft()returning void when created with filename but not prefixed with compress.*://
7.0.0 - Stream the core
- split off from stubbles/core
BC breaks
- all methods in
stubbles\streams\*which threwstubbles\lang\exception\IOExceptionnow throwstubbles\streams\StreamException
Other changes
- removed seeking restrictions on
stubbles\streams\StandardInputStream