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

Export ListenerCollection from the main entry point #1836

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Dec 17, 2024

We have similar ListenerCollection utilities in other projects, so exposing the one from this library so that we can remove a bit of duplicated code.

@acelaya acelaya requested a review from robertknight December 17, 2024 09:01
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d9945a3) to head (655c316).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1836   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           70        70           
  Lines         1303      1303           
  Branches       482       482           
=========================================
  Hits          1303      1303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

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

LGTM. I noted in Slack that there is now a built-in API for batch de-registration via addEventListener's signal option. This is still quite a new API however which we can't quite rely on yet (requires Safari >= 15). We can consider adopting it as a requirement some time next year.

@acelaya acelaya merged commit 8d010d1 into main Dec 18, 2024
4 checks passed
@acelaya acelaya deleted the expose-listener-collection branch December 18, 2024 10:08
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