mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
527 stars 119 forks source link

feat: treat unhandled interceptor exceptions as 500 responses #532

Closed kettanaito closed 3 months ago

kettanaito commented 3 months ago

Much like request handlers in MSW, everything you write in your interceptors is from the server's perspective. If an exception happens on the server, it's usually handled gracefully as the 500 error response to the client. This consistency is nice for predictability but also aligned behavior across the low-level Interceptors and high-level MSW.

Changes

kettanaito commented 3 months ago

Released: v0.28.0 🎉

This has been released in v0.28.0!

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.