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

fix!: remove event emitter type from interfaces #2196

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Nov 3, 2023

All code should be using TypedEventEmitter instead of EventEmitter so remove the re-export from the interfaces package.

BREAKING CHANGE: removed EventEmitter re-export - please use TypedEventEmitter instead

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

@achingbrain achingbrain requested a review from a team as a code owner November 3, 2023 14:38
@achingbrain achingbrain closed this Nov 3, 2023
@achingbrain achingbrain reopened this Nov 3, 2023
@achingbrain achingbrain changed the title fix!: remove EventEmitter and CustomEvent polyfill fix!: remove event emitter type from interfaces Nov 3, 2023
@achingbrain
Copy link
Member Author

Blocked on ChainSafe/js-libp2p-gossipsub#470

@achingbrain achingbrain force-pushed the release-v1.0 branch 6 times, most recently from d39bc23 to d7d004e Compare November 10, 2023 07:25
@wemeetagain
Copy link
Member

Blocked on ChainSafe/js-libp2p-gossipsub#470

should be unblocked now

All code should be using `TypedEventEmitter` instead of `EventEmitter`
so remove the re-export from the interfaces package.

BREAKING CHANGE: removed EventEmitter re-export - please use TypedEventEmitter instead
@achingbrain achingbrain changed the base branch from release-v1.0 to main November 25, 2023 12:20
@achingbrain achingbrain merged commit f3ec538 into main Nov 25, 2023
2 checks passed
@achingbrain achingbrain deleted the fix/remove-event-listener branch November 25, 2023 12:47
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Nov 27, 2023
All code should be using `TypedEventEmitter` instead of `EventEmitter`
so remove the re-export from the interfaces package.

BREAKING CHANGE: removed EventEmitter re-export - please use TypedEventEmitter instead
This was referenced Jan 18, 2024
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.

3 participants