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

refactor: move setMaxListeners to @libp2p/interface #2154

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

wemeetagain
Copy link
Member

Description

Notes

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@wemeetagain wemeetagain requested a review from a team as a code owner October 11, 2023 21:08
@wemeetagain wemeetagain changed the base branch from master to release-v1.0 October 11, 2023 21:09
@achingbrain achingbrain changed the base branch from release-v1.0 to master October 12, 2023 12:32
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Just needs the "events" polyfill modules removing from any modules that depend on it (kad-dht and libp2p?).

We can release this as a patch to master as it's non-breaking.

packages/interface/src/events.ts Outdated Show resolved Hide resolved
@achingbrain achingbrain force-pushed the refactor/move-set-max-listeners branch from c3b64ce to 696607f Compare October 31, 2023 10:36
- Discussed in #2138
- Move `setMaxListeners` handling into a single wrapped function exported from `@libp2p/interface/events`
- Instead of setting `"browser": {"events": false}` as was discussed in #2138, an actual file is given. Without doing this, an annoying warning is produced in this package and every consumer package in the monorepo!
@achingbrain achingbrain force-pushed the refactor/move-set-max-listeners branch from 696607f to 8019d6f Compare October 31, 2023 10:37
@achingbrain achingbrain merged commit 50442d7 into master Oct 31, 2023
22 checks passed
@achingbrain achingbrain deleted the refactor/move-set-max-listeners branch October 31, 2023 11:45
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