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: allow invalid source data by making gatsbyImageData nullable #218

Merged

Conversation

raae
Copy link
Collaborator

@raae raae commented Dec 20, 2022

When sourcing data every sourced item might not be be valid. Instead of stopping the build an error will be logged.

Make sure to check if gatsbyImageData is not null before using in the GatsbyImage component.

Closes #214

@cloudinary-raae cloudinary-raae changed the title fix: remove panic on missing data feat: allow invalid source data by making gatsbyImageData nullable Dec 20, 2022
@cloudinary-raae cloudinary-raae merged commit acf28f9 into cloudinary-community:main Dec 20, 2022
github-actions bot pushed a commit that referenced this pull request Dec 20, 2022
# [3.1.0](v3.0.1...v3.1.0) (2022-12-20)

### Features

* allow invalid source data by making gatsbyImageData nullable ([#218](#218)) ([acf28f9](acf28f9)), closes [#214](#214)
@github-actions
Copy link

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Dec 20, 2022
# [4.2.0](v4.1.0...v4.2.0) (2022-12-20)

### Bug Fixes

* gatsbyImageData generates http urls, not https ([#210](#210)) ([3508cd3](3508cd3)), closes [#209](#209)
* peer dependency (gatsby-plugin-image) ([#212](#212)) ([3f40130](3f40130))

### Features

* allow invalid source data by making gatsbyImageData nullable ([#218](#218)) ([acf28f9](acf28f9)), closes [#214](#214)
@github-actions
Copy link

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error [ValidationError]: "error" must be of type object
2 participants