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 #7

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

Conversation

snyk-bot
Copy link
Contributor

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

ℹ️ 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
  • aed9f91 3.3.0
  • ec60f7b Merge pull request #82 from browserify/once-event-target
  • 0a32360 make node 0.12 happy
  • 1f9e025 add tests for events.once(eventTarget) using browser built-in EventTarget
  • 0f82983 change order for listeners
  • 133faed fix error listener handler case
  • f1d67b0 fix EventTarget support
  • cfa2d6f node 0.12 has no deepStrictEqual
  • 6adca6c support async test
  • 7a0ed07 old ie compat
  • 2a68899 add support for EventTarget in once
  • 1e934b7 readme: add whitespace before link reference section
  • 6f7f7db 3.2.0
  • 2789456 Merge pull request #70 from Gozala/events.once
  • 2686023 Merge pull request #75 from zhangwinning/update-package
  • 67f0d94 revert airtap to ^1.0.0
  • 2b38c10 update package.json
  • 8e9aa44 ci: add lts
  • 45dd1cb Merge pull request #74 from Gozala/inspect-js
  • 5dd4308 use robuster feature checks in tests
  • e55646e Remove deepStrictEqual
  • 18b8d91 remove `async` keyword
  • 273b48c Remove arrow functions
  • 4f03fbf 3.1.0

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.

None yet

1 participant