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

[Snyk] Upgrade events from 3.0.0 to 3.3.0 #3

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

Conversation

santosh-shingte
Copy link

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade events from 3.0.0 to 3.3.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.
  • The recommended version was released a year ago, on 2021-02-27.
Release notes
Package name: events
  • 3.3.0 - 2021-02-27
    • Support EventTarget emitters in events.once from Node.js 12.11.0.

      Now you can use the events.once function with objects that implement the EventTarget interface. This interface is used widely in
      the DOM and other web APIs.

      var events = require('events');
      var assert = require('assert');

      async function connect() {
      var ws = new WebSocket('wss://example.com');
      await events.once(ws, 'open');
      assert(ws.readyState === WebSocket.OPEN);
      }

      async function onClick() {
      await events.once(document.body, 'click');
      alert('you clicked the page!');
      }

  • 3.2.0 - 2020-07-22
    • Add events.once from Node.js 11.13.0.

      To use this function, Promises must be supported in the environment. Use a polyfill like es6-promise if you support older browsers.

  • 3.1.0 - 2020-01-08

    events now matches the Node.js 11.12.0 API.

    • pass through return value in wrapped emitter.once() listeners

      Now, this works:

      emitter.once('myevent', function () { return 1; });
      var listener = emitter.rawListeners('myevent')[0]
      assert(listener() === 1);

      Previously, listener() would return undefined regardless of the implementation.

      Ported from nodejs/node@acc506c

    • Reduce code duplication in listener type check (#67 by @ friederbluemle).

    • Improve emitter.once() performance in some engines

  • 3.0.0 - 2018-05-25

    This version drops support for IE8. events no longer includes polyfills
    for ES5 features. If you need to support older environments, use an ES5 shim
    like es5-shim. Both the shim and sham
    versions of es5-shim are necessary.

    • Update to events code from Node.js 10.x
      • (semver major) Adds off() method
    • Port more tests from Node.js
    • Switch browser tests to airtap, making things more reliable
from events GitHub release notes
Commit messages
Package name: events

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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.

2 participants