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

fix(gatsby-transformer-sharp): explicitly register enum types #19343

Merged
merged 1 commit into from
Nov 12, 2019

Conversation

stefanprobst
Copy link
Contributor

explicitly register transformer-sharp enums -- this is needed for schema snapshoting to work correctly

related: #19210

@stefanprobst stefanprobst requested a review from a team as a code owner November 7, 2019 15:41
DuotoneGradientType,
PotraceTurnPolicyType,
PotraceType,
imageSharpType,
Copy link
Contributor

Choose a reason for hiding this comment

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

just my nitpick - should it not be like other Types capitalized?

Suggested change
imageSharpType,
ImageSharpType,

also should changed in this line:

-  const imageSharpType = schema.buildObjectType({
+  const ImageSharpType = schema.buildObjectType({

Copy link
Contributor

Choose a reason for hiding this comment

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

This is not strictly part of this PR, so IMO - let's merge this PR and we can do style commit (if anyone feel very strongly about it) separately?

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

LGTM! Feel free to merge as-is (or address @muescha comment) - up to your discretion

@m-allanson
Copy link
Contributor

Thank you @stefanprobst 🎉 Let's merge and update later if necessary.

@m-allanson m-allanson merged commit fdc7ccd into gatsbyjs:master Nov 12, 2019
rickiesmooth pushed a commit to rickiesmooth/gatsby that referenced this pull request Nov 17, 2019
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.

4 participants