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

Remove internal transformResponse option #2348

Closed
1 task
kettanaito opened this issue Nov 6, 2024 · 1 comment · Fixed by #2351
Closed
1 task

Remove internal transformResponse option #2348

kettanaito opened this issue Nov 6, 2024 · 1 comment · Fixed by #2351
Labels
chore Tasks aimed at internal improvement

Comments

@kettanaito
Copy link
Member

Scope

Improves an existing behavior

Compatibility

  • This is a breaking change

Feature description

This shouldn't be needed anymore:

/**
* Transforms a `MockedResponse` instance returned from a handler
* to a response instance supported by the lower tooling (i.e. interceptors).
*/
transformResponse?(response: Response): Response

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 kettanaito added feature chore Tasks aimed at internal improvement and removed feature labels Nov 6, 2024
@kettanaito
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Tasks aimed at internal improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant