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

Open
1 task
kettanaito opened this issue Nov 6, 2024 · 0 comments · May be fixed by #2351
Open
1 task

Remove internal transformResponse option #2348

kettanaito opened this issue Nov 6, 2024 · 0 comments · May be 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 kettanaito linked a pull request Nov 6, 2024 that will close this issue
1 task
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