WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Bump react/event-loop from 1.1.1 to 1.2.0 #186

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps react/event-loop from 1.1.1 to 1.2.0.

Release notes

Sourced from react/event-loop's releases.

v1.2.0

A major new feature release, see release announcement.

  • Feature: Introduce new concept of default loop with the new Loop class. (#226 by @​WyriHaximus, #229, #231 and #232 by @​clue)

    The Loop class exists as a convenient global accessor for the event loop. It provides all methods that exist on the LoopInterface as static methods and will automatically execute the loop at the end of the program:

    $timer = Loop::addPeriodicTimer(0.1, function () {
        echo 'Tick' . PHP_EOL;
    });
    

    Loop::addTimer(1.0, function () use ($timer) { Loop::cancelTimer($timer); echo 'Done' . PHP_EOL; });

    The explicit loop instructions are still valid and may still be useful in some applications, especially for a transition period towards the more concise style. The Loop::get() method can be used to get the currently active event loop instance.

    // deprecated
    $loop = React\EventLoop\Factory::create();
    

    // new $loop = React\EventLoop\Loop::get();

  • Minor documentation improvements and mark legacy extensions as deprecated. (#234 by @​SimonFrings, #214 by @​WyriHaximus and #233 and #235 by @​nhedger)

  • Improve test suite, use GitHub actions for continuous integration (CI), update PHPUnit config and run tests on PHP 8. (#212 and #215 by @​SimonFrings and #230 by @​clue)

Changelog

Sourced from react/event-loop's changelog.

1.2.0 (2021-07-11)

A major new feature release, see release announcement.

  • Feature: Introduce new concept of default loop with the new Loop class. (#226 by @​WyriHaximus, #229, #231 and #232 by @​clue)

    The Loop class exists as a convenient global accessor for the event loop. It provides all methods that exist on the LoopInterface as static methods and will automatically execute the loop at the end of the program:

    $timer = Loop::addPeriodicTimer(0.1, function () {
        echo 'Tick' . PHP_EOL;
    });
    

    Loop::addTimer(1.0, function () use ($timer) { Loop::cancelTimer($timer); echo 'Done' . PHP_EOL; });

    The explicit loop instructions are still valid and may still be useful in some applications, especially for a transition period towards the more concise style. The Loop::get() method can be used to get the currently active event loop instance.

    // deprecated
    $loop = React\EventLoop\Factory::create();
    

    // new $loop = React\EventLoop\Loop::get();

  • Minor documentation improvements and mark legacy extensions as deprecated. (#234 by @​SimonFrings, #214 by @​WyriHaximus and #233 and #235 by @​nhedger)

  • Improve test suite, use GitHub actions for continuous integration (CI), update PHPUnit config and run tests on PHP 8. (#212 and #215 by @​SimonFrings and #230 by @​clue)

Commits
  • be6dee4 Prepare v1.2.0 release
  • e3287d6 Merge pull request #234 from SimonFrings/readme
  • 181941f Mark extensions deprecated and minor docs improvement
  • 3441b26 Merge pull request #235 from nhedger/patch-2
  • 53d4ba0 Little typo
  • f52f930 Merge pull request #233 from nhedger/patch-2
  • 6912b3e Fix typo in docblock
  • 78f7f43 Merge pull request #232 from clue-labs/loop-autorun
  • 9712eea Don't run loop automatically when explicitly calling stop()
  • f0853b1 Don't run loop automatically when an uncaught exceptions occurs
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Looks like react/event-loop is up-to-date now, so this is no longer needed.