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

[typescript-fetch] use isomorphic-fetch #899

Merged
merged 1 commit into from
May 1, 2021

Conversation

mildsunrise
Copy link
Contributor

For typescript-fetch, the generated client uses the portable-fetch package. It's a fork of the very popular isomorphic-fetch package. The fork has been unmaintained for 4 years and provides no documentation on its motives.

This PR replaces the fork with the original (more up to date) package. I think it's not good for codegen to rely on random forks for such simple tasks (a polyfill for fetch()). If users have specific needs regarding the fetch() implementation, the generated code allows them to pass it on the constructor.

@HugoMario
Copy link
Contributor

Awesome, thanks a lot!

@HugoMario HugoMario merged commit 5e46b20 into swagger-api:master May 1, 2021
@mildsunrise mildsunrise deleted the use-isomorphic-fetch branch May 1, 2021 23:37
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.

2 participants