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: add "once", "off", and "removeAllListeners" to the Interceptor class #427

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

kettanaito
Copy link
Member

  • Adds once and off methods on the Interceptor class (and the derived classes, like BatchInterceptor) to attach one-time listener and to remove listener, respectively.

@kettanaito kettanaito changed the title fix: add "once" and "off" to the Interceptor class fix: add "once", "off", and "removeAllListeners" to the Interceptor class Sep 18, 2023
@kettanaito kettanaito merged commit 04152ed into main Sep 18, 2023
1 check passed
@kettanaito kettanaito deleted the feat/event-listner-api branch September 18, 2023 16:30
@kettanaito
Copy link
Member Author

Released: v0.25.2 🎉

This has been released in v0.25.2!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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.

1 participant