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

Replace graphql-request with fetch #15

Merged
merged 2 commits into from Jun 6, 2023
Merged

Conversation

TrySound
Copy link
Collaborator

@TrySound TrySound commented Jun 6, 2023

graphql-request is big package and depends on graphql. Practically it does not do anything here. Only send request and handle errors.

https://packagephobia.com/result?p=graphql-request (756kB) https://packagephobia.com/result?p=graphql (1.28MB)

Here I replaced it with fetch from undici. Happily codegen have an option to generate generic sdk with own requester function.

In the future undici may even be replaced with builtin into node version.

@TrySound TrySound requested a review from renatorib June 6, 2023 13:51
graphql-request is big package and depends on graphql.
Practically it does not do anything here. Only send request
and handle errors.

https://packagephobia.com/result?p=graphql-request (756kB)
https://packagephobia.com/result?p=graphql (1.28MB)

Here I replaced it with fetch from undici. Happily codegen have an
option to generate generic sdk with own requester function.

In the future undici may even be replaced with builtin into node
version.
@renatorib
Copy link
Owner

renatorib commented Jun 6, 2023

.husky/_/husky.sh file is back! 😅
it was a mistake?

@TrySound
Copy link
Collaborator Author

TrySound commented Jun 6, 2023

It's a ghost of husky 👻 🐕

@TrySound TrySound merged commit 0f4cad5 into master Jun 6, 2023
1 check passed
@TrySound TrySound deleted the drop-graphql-request branch June 6, 2023 20:42
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.

None yet

2 participants