Skip to content

Releases: reactphp/promise-timer

v1.10.0

20 Jul 15:43
Compare
Choose a tag to compare

v1.9.0

13 Jun 13:41
Compare
Choose a tag to compare
  • Feature: Improve forward compatibility with upcoming Promise v3 API.
    (#54 and #55 by @clue)

  • Minor documentation improvements for upcoming Promise v3.
    (#58 by @clue and #56 by @SimonFrings)

  • Improve test suite, fix legacy HHVM build by downgrading Composer.
    (#57 by @SimonFrings)

v1.8.0

06 Dec 11:09
Compare
Choose a tag to compare
  • Feature: Add new sleep() function and deprecate resolve() and reject() functions.
    (#51 by @clue)

    // deprecated
    React\Promise\Timer\resolve($time);
    React\Promise\Timer\reject($time);
    
    // new
    React\Promise\Timer\sleep($time);
  • Feature: Support PHP 8.1 release.
    (#50 by @Thomas-Gelf, #52 by @clue and #48 by @SimonFrings)

  • Improve API documentation and add parameter types and return types.
    (#49 by @clue and #47 by @SimonFrings)

v1.7.0

11 Jul 13:10
Compare
Choose a tag to compare

A major new feature release, see release announcement.

  • Feature: Simplify usage by supporting new default loop.
    (#46 by @clue)

    // old (still supported)
    $promise = timeout($promise, $time, $loop);
    $promise = resolve($time, $loop);
    $promise = reject($time, $loop);
    
    // new (using default loop)
    $promise = timeout($promise, $time);
    $promise = resolve($time);
    $promise = reject($time);
  • Improve test suite, use GitHub actions for continuous integration (CI),
    update PHPUnit config, run tests on PHP 8 and add full core team to the license.
    (#43 by @WyriHaximus, #44 and #45 by @SimonFrings)

v1.6.0

10 Jul 12:19
Compare
Choose a tag to compare

v1.5.1

27 Mar 18:11
v1.5.1
Compare
Choose a tag to compare
  • Fix: Typo in readme
    (#35 by @aak74)

  • Improvement: Only include functions file when functions aren't defined
    (#36 by @Niko9911)

v1.5.0

13 Jun 16:47
Compare
Choose a tag to compare
  • Feature: Improve memory consumption by cleaning up garbage references to pending promise without canceller.
    (#34 by @clue)

v1.4.0

11 Jun 14:11
Compare
Choose a tag to compare
  • Feature: Improve memory consumption by cleaning up garbage references.
    (#33 by @clue)

v1.3.0

24 Apr 14:20
Compare
Choose a tag to compare
  • Feature: Improve memory consumption by cleaning up unneeded references.
    (#32 by @clue)

v1.2.1

22 Dec 15:43
Compare
Choose a tag to compare
  • README improvements
    (#28 by @jsor)

  • Improve test suite by adding forward compatiblity with PHPUnit 6 and
    fix test suite forward compatibility with upcoming EventLoop releases
    (#30 and #31 by @clue)