Skip to content

chore(deps): bump emittery from 2.0.0 to 2.1.0 - #226

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/emittery-2.1.0
Oct 1, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/emittery-2.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 1, 2026

Copy link
Copy Markdown
Contributor

Bumps emittery from 2.0.0 to 2.1.0.

Release notes

Sourced from emittery's releases.

v2.1.0

Improvements

  • Improve TypeScript types cf2297d
    • Emittery.mixin() now returns a class type that includes the emittery property and the mixed-in methods
    • The iterators from .events() and .anyEvent() now type next() and return() precisely, instead of any
    • Emittery.listenerAdded and Emittery.listenerRemoved are now accepted everywhere the runtime accepts them, like .on(), .events(), and .listenerCount()
    • .emit() without data now works on an untyped emitter
    • .bindMethods() now accepts any object, including a class instance
    • methodNames for Emittery.mixin() and .bindMethods() now only accepts real method names. A list typed as string[] needs as const or the new EmitteryMethodName type.

Fixes

  • Fix async iterators hanging forever when next() is called concurrently 7157da9
  • Fix a rejected event data promise causing an unhandled rejection when an iterator never reads it 7157da9
    • A rejection that is read now throws from the iteration and closes the iterator, so a for await loop cannot leave the subscription behind.
  • Fix .clearListeners() with one event name ending an .events() iterator that listens to several events 7157da9
  • Fix .anyEvent() yielding the internal listenerAdded and listenerRemoved events 7157da9
  • Fix listenerAdded and listenerRemoved firing when nothing changed 4987e5f
    • For example, for a duplicate .on(), a repeated .off(), or .off() of a listener that was never added.
  • Fix .off() with several event names stopping at the first error and leaving the rest subscribed 4987e5f
  • Fix .offAny() not removing the listener when the debug logger throws 4987e5f
  • Fix the unsubscribe function from .on() changing when the event name array is mutated afterwards 4987e5f
  • Fix .clearListeners() removing every listener when given an invalid event name 51d4812
    • It now throws a TypeError. Only undefined means "all events".
  • Fix instances created from the same debug options object sharing their debug settings 5b47694
    • The options are now copied. To toggle logging after construction, set emitter.debug.enabled instead of changing the object you passed in.
  • Fix .emit() in environments without iterator helpers 4de0d10
  • Fix Emittery.mixin() silently overwriting an existing property with the same name as the emittery property 3702d31

sindresorhus/emittery@v2.0.0...v2.1.0

Commits
  • 0271984 2.1.0
  • 166d7b3 Improve docs
  • cf2297d Improve types
  • 3702d31 Report a mixin() collision for the emittery property and for a symbol name
  • 4de0d10 Make emit() work on runtimes without the Iterator Helpers proposal
  • 5b47694 Copy the debug options so instances do not share or mutate the caller's object
  • 51d4812 Reject invalid event names in clearListeners() instead of clearing everything
  • 4987e5f Report subscription meta events only for subscriptions that actually changed
  • 7157da9 Fix the async iterator hanging on concurrent next() calls and leaking subscri...
  • 3d8d75b Meta tweaks
  • 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.


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)

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

---
updated-dependencies:
- dependency-name: emittery
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Oct 1, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) October 1, 2026 13:03
@github-actions
github-actions Bot merged commit 1286194 into main Oct 1, 2026
4 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/emittery-2.1.0 branch October 1, 2026 13:05
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.

0 participants