mswjs / msw

Industry standard API mocking for JavaScript.
https://mswjs.io
MIT License
15.99k stars 520 forks source link

Remove internal `transformResponse` option #2348

Closed kettanaito closed 2 weeks ago

kettanaito commented 2 weeks ago

Scope

Improves an existing behavior

Compatibility

Feature description

This shouldn't be needed anymore:

https://github.com/mswjs/msw/blob/6702d778c541ebae09d5799490f645b57a12c01f/src/core/utils/handleRequest.ts#L25-L29

This option used to exist to provide response format compatibility between the consumer and the interceptors. Now, it's always the Fetch API Response. We need to remove this option and its usage altogether.

kettanaito commented 2 weeks ago

Released: v2.6.3 🎉

This has been released in v2.6.3!

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


Predictable release automation by @ossjs/release.