Skip to content

Releases: reactphp/promise-stream

v1.7.0

13 Dec 11:33
Compare
Choose a tag to compare
  • Feature: Full PHP 8.3 compatibility.
    (#39 by @clue)

  • Update test suite and collect all garbage cycles.
    (#38 and #39 by @clue)

v1.6.0

07 Jul 10:14
Compare
Choose a tag to compare
  • Feature: Update unwrapped stream to avoid unhandled promise rejections.
    (#37 by @clue)

  • Feature: Improve first() promise resolution to clean up any garbage references.
    (#36 by @lucasnetau)

  • Improve test suite and project setup and report failed assertions.
    (#34 by @clue and #35 by @WyriHaximus)

v1.5.0

09 Sep 11:43
Compare
Choose a tag to compare

v1.4.0

20 Jun 10:41
Compare
Choose a tag to compare

v1.3.0

18 Oct 10:48
Compare
Choose a tag to compare
  • Feature: Improve error reporting by appending previous exception messages.
    (#26 by @clue)

    For most common use cases this means that simply reporting the Exception
    message should give the most relevant details for any issues:

    React\Promise\Stream\buffer($stream)->then(function (string $contents) {
        // …
    }, function (Exception $e) {
        echo 'Error:' . $e->getMessage() . PHP_EOL;
    });
  • Improve documentation, describe promise and stream data types.
    (#27 by @clue and #23 by @WyriHaximus)

  • Improve test suite and add .gitattributes to exclude dev files from exports.
    Use GitHub actions for continuous integration (CI) and run tests on PHPUnit 9 and PHP 8.
    (#21 by @reedy and #22, #24 and #25 by @SimonFrings)

v1.2.0

03 Jul 12:29
Compare
Choose a tag to compare
  • Feature: Support unwrapping object streams by buffering original write chunks in array.
    (#15 by @clue)

  • Feature: Clean up unneeded references for unwrapped streams when closing.
    (#18 by @clue)

  • Fix: Writing to closed unwrapped stream should return false (backpressure).
    (#17 by @clue)

  • Improve test suite to support PHPUnit 7, PHP 7.3 and fix incomplete test
    and improve API documentation.
    (#16 and #19 by @clue)

v1.1.1

22 Dec 12:56
Compare
Choose a tag to compare
  • Fix: Fix all() to assume null values if no event data is passed
    (#13 by @clue)

  • Improve test suite by simplifying test bootstrapping logic via Composer and
    add forward compatibility with PHPUnit 5 and PHPUnit 6 and
    test against PHP 7.1 and 7.2
    (#11 and #12 by @clue and #9 by @carusogabriel)

v1.1.0

28 Nov 18:32
Compare
Choose a tag to compare
  • Feature: Reject first() when stream emits an error event
    (#7 by @clue)

  • Fix: Explicit close() of unwrapped stream should not emit error event
    (#8 by @clue)

  • Internal refactoring to simplify buffer() function
    (#6 by @kelunik)

v1.0.0

24 Oct 14:38
Compare
Choose a tag to compare
  • First stable release, now following SemVer

Contains no other changes, so it's actually fully compatible with the v0.1.2 release.

v0.1.2

18 Oct 15:28
v0.1.2
Compare
Choose a tag to compare
  • Feature: Optional maximum buffer length for buffer() (#3 by @WyriHaximus)
  • Improvement: Readme improvements (#5 by @jsor)