Skip to content

fix: add "once", "off", and "removeAllListeners" to the Interceptor class#427

Merged
kettanaito merged 4 commits intomainfrom
feat/event-listner-api
Sep 18, 2023
Merged

fix: add "once", "off", and "removeAllListeners" to the Interceptor class#427
kettanaito merged 4 commits intomainfrom
feat/event-listner-api

Conversation

@kettanaito
Copy link
Copy Markdown
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 force-pushed the feat/event-listner-api branch from 53176d3 to 4bb5821 Compare September 18, 2023 15:58
@kettanaito
Copy link
Copy Markdown
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