Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

events

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events - npm Package Versions

2

3.3.0

Diff

goto-bus-stop
published 3.2.0 •

Changelog

Source

3.2.0

  • 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.

goto-bus-stop
published 3.1.0 •

Changelog

Source

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 https://github.com/nodejs/node/commit/acc506c2d2771dab8d7bba6d3452bc5180dff7cf

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

  • Improve emitter.once() performance in some engines

goto-bus-stop
published 3.0.0 •

Changelog

Source

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
goto-bus-stop
published 2.1.0 •

Changelog

Source

2.1.0 (2018-05-25)

  • add Emitter#rawListeners from Node.js v9.4
goto-bus-stop
published 2.0.0 •

Changelog

Source

2.0.0 (2018-02-02)

  • Update to events code from node.js 8.x
    • Adds prependListener() and prependOnceListener()
    • Adds eventNames() method
    • (semver major) Unwrap once() listeners in listeners()
    • copy tests from node.js

Note that this version doubles the gzipped size, jumping from 1.1KB to 2.1KB, due to new methods and runtime performance improvements. Be aware of that when upgrading.

defunctzombie
published 1.1.1 •

Changelog

Source

1.1.1 (2016-06-22)

  • add more context to errors if they are not instanceof Error
defunctzombie
published 1.1.0 •

Changelog

Source

1.1.0 (2015-09-29)

  • add Emitter#listerCount (to match node v4 api)
shtylman
published 1.0.2 •

Changelog

Source

1.0.2 (2014-08-28)

  • remove un-reachable code
    • update devDeps
shtylman
published 1.0.1 •

Changelog

Source

1.0.1 / 2014-05-11

  • check for console.trace before using it
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc