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

Add GraphQL client type utilities to hydrogen-codegen #1584

Merged
merged 14 commits into from
Dec 20, 2023

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Dec 15, 2023

This extracts our Storefront client's types as generics and moves them to hydrogen-codegen. This way, we can reuse it in the Customer Account client and it can be helpful for others using hydrogen-codegen standalone.

Note: the hydrogen build bundles the imported types so that we don't need hydrogen-codegen as a dependency in prod.

@frandiox frandiox requested a review from a team December 15, 2023 21:39
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen-codegen': minor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to have minor in hydrogen-codegen. Since this is a new feature, it should be minor I think?

@frandiox frandiox merged commit 9ad7c5e into main Dec 20, 2023
9 checks passed
@frandiox frandiox deleted the fd-codegen-client-type-refactor branch December 20, 2023 18:33
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