Skip to content

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