Skip to content

deps: bump emittery from 1.2.1 to 2.0.0#757

Open
dependabot[bot] wants to merge 2 commits intodefaultfrom
dependabot/npm_and_yarn/emittery-2.0.0
Open

deps: bump emittery from 1.2.1 to 2.0.0#757
dependabot[bot] wants to merge 2 commits intodefaultfrom
dependabot/npm_and_yarn/emittery-2.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 16, 2026

Bumps emittery from 1.2.1 to 2.0.0.

Release notes

Sourced from emittery's releases.

v2.0.0

Breaking Changes

Listeners now receive a unified {name, data} object instead of raw data

All listeners (.on(), .onAny(), .once(), async iterators) now receive a single event object with name and data properties instead of the raw event data.

- emitter.on('🦄', data => {
-   console.log(data);
+ emitter.on('🦄', ({data}) => {
+   console.log(data);
  });

For .onAny():

- emitter.onAny((eventName, eventData) => {
-   console.log(eventName, eventData);
+ emitter.onAny(({name, data}) => {
+   console.log(name, data);
  });

For .once():

- const data = await emitter.once('🦄');
+ const {data} = await emitter.once('🦄');

For .events() and .anyEvent() async iterators:

- for await (const data of emitter.events('🦄')) {
+ for await (const {data} of emitter.events('🦄')) {
    console.log(data);
  }

for await (const [eventName, eventData] of emitter.anyEvent()) {


for await (const {name, data} of emitter.anyEvent()) {
…
}

For predicates in .once():

- emitter.once('data', data => data.ok === true);
</tr></table> 

... (truncated)

Commits
  • bad6377 2.0.0
  • fc8bd7e Tweaks
  • d80d58c Add FAQ about synchronous emit
  • 20dfcf5 Add init/deinit lifecycle hooks
  • db721d3 Require Node.js 22
  • 30ff37f Fix emit() silently dropping errors from multiple listeners
  • 5a681c4 Document and test async listener scheduling behavior
  • d3f7ada Fix Emittery not working when wrapped in a Proxy
  • 40a59da Fix debug logger emitting noise for internal meta events
  • fc6a8c3 Fix mixin decorator to work with TC39 standard decorator syntax
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [emittery](https://github.com/sindresorhus/emittery) from 1.2.1 to 2.0.0.
- [Release notes](https://github.com/sindresorhus/emittery/releases)
- [Commits](sindresorhus/emittery@v1.2.1...v2.0.0)

---
updated-dependencies:
- dependency-name: emittery
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 16, 2026
@goto-bus-stop goto-bus-stop enabled auto-merge (squash) March 17, 2026 08:58
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 87.235%. remained the same
when pulling 994033a on dependabot/npm_and_yarn/emittery-2.0.0
into d68af31 on default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants