Skip to content

Releases: stubbles/stubbles-streams

11.0.0 Hide + Seek

30 Nov 14:47
v11.0.0
c69b14a

Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 8.3
  • Changed stubbles\streams\Seekable::seek() to accept the newly introduced enum stubbles\streams\Whence. Passing an int value directory is deprecated and support for passing an int will be removed with 12.0.0. Also, constants stubbles\streams\Seekable::SET, stubbles\streams\Seekable::CURRENT and stubbles\streams\Seekable::END now refer to the respective enum value of stubbles\streams\Whence and 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\Whence to be used as positioning advice for stubbles\streams\Seekable::seek()

10.0.0 - Logical

31 Dec 14:05
v10.0.0
bb5b055

Choose a tag to compare

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() and stubbles\streams\file\FileInputStream::tell() now throw a \LogicException when the underlying resource was closed instead of a stubbles\streams\StreamException

9.1.0 - Failed to seek

11 Dec 15:01

Choose a tag to compare

  • both stubbles\streams\StandardInputStream and stubbles\streams\file\FileInputStream will now throw a stubbles\streams\StreamException when seeking fails
  • added more phpstan related type hints

9.0.0 - Freedom of choice

08 Nov 13:03

Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.3
  • removed methods and classes deprecated with 8.0.0
    • stubbles\streams\DecodingInputStream::getCharset(), use stubbles\streams\DecodingInputStream::charset() instead
    • stubbles\streams\EncodingOutputStream::getCharset(), use stubbles\streams\EncodingOutputStream::charset() instead
    • stubbles\streams\AbstractDecoratedInputStream, use stubbles\streams\DecoratedInputStream instead
    • stubbles\streams\AbstractDecoratedOutputStream, use stubbles\streams\DecoratedOutputStream instead

Other changes

  • stubbles\streams\DecodingInputStream now accepts a third parameter so decoding charset can be set to something else than UTF-8
  • stubbles\streams\EncodingOutputStream now accepts a third parameter so charset to encode from can be set to something else than UTF-8

8.1.0 - Copy & paste

30 Aug 20:20
99b0dac

Choose a tag to compare

  • implemented #1 new function to copy a complete input stream to an output stream: added stubbles\streams\copy()

8.0.0 - Seven Ate Nine

30 Aug 18:42

Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.0.0
  • introduced scalar type hints and strict type checking
  • deprecated stubbles\streams\DecodingInputStream::getCharset(), use stubbles\streams\DecodingInputStream::charset() instead, will be removed with 9.0.0
  • deprecated stubbles\streams\EncodingOutputStream::getCharset(), use stubbles\streams\EncodingOutputStream::charset() instead, will be removed with 9.0.0
  • deprecated stubbles\streams\AbstractDecoratedInputStream, use stubbles\streams\DecoratedInputStream instead, will be removed with 9.0.0
  • deprecated stubbles\streams\AbstractDecoratedOutputStream, use stubbles\streams\DecoratedOutputStream instead, will be removed with 9.0.0

Other changes

  • fixed stubbles\streams\InputStreamIterator swallowing 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

11 Jan 20:09

Choose a tag to compare

BC breaks

  • all methods in stubbles\streams\* which threw stubbles\lang\exception\IOException now throw stubbles\streams\StreamException

Other changes

  • removed seeking restrictions on stubbles\streams\StandardInputStream