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

feat(gatsby-codemods): Handle or warn on nested options changes #29046

Merged
merged 3 commits into from
Jan 18, 2021

Conversation

laurieontech
Copy link
Contributor

We now nest a lot of the options to clean up the gatsby-plugin-sharp API. The codemod warns for things related the specific image type processing because we don't have an exhaustive list and they're less often used.

For transformOptions, we use the codemod to nest them for the user.

This PR also fixes the scenario where maxHeight was mapped to height for fullWidth images instead of being deleted.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 15, 2021
@laurieontech laurieontech added topic: media Related to gatsby-plugin-image, or general image/media processing topics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 15, 2021
@ascorbic ascorbic merged commit 2439b44 into master Jan 18, 2021
@ascorbic ascorbic deleted the codemod-changes branch January 18, 2021 16:26
This was referenced Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: media Related to gatsby-plugin-image, or general image/media processing topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants