Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

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.

If all status checks pass Dependabot will automatically merge this pull request.


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 badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview
Copy link
Contributor Author

The following labels could not be found: Dependencies 📦, PHP 🐘.

@dependabot-preview
Copy link
Contributor Author

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants