Skip to content

Commit

Permalink
fix(gatsby-source-contentful): Remove image beta warning (#29980) (#3…
Browse files Browse the repository at this point in the history
…0048)

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
(cherry picked from commit 2f59995)

Co-authored-by: Matt Kane <matt@gatsbyjs.com>
  • Loading branch information
GatsbyJS Bot and ascorbic committed Mar 5, 2021
1 parent ec57576 commit ab41976
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/gatsby-source-contentful/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,7 @@ const fluidNodeType = ({ name, getTracedSVG }) => {
}
}

let warnedForBeta = false

exports.extendNodeType = ({ type, store, reporter }) => {
exports.extendNodeType = ({ type, store }) => {
if (type.name !== `ContentfulAsset`) {
return {}
}
Expand Down Expand Up @@ -768,14 +766,6 @@ exports.extendNodeType = ({ type, store, reporter }) => {

// gatsby-plugin-image
const getGatsbyImageData = () => {
if (!warnedForBeta) {
reporter.warn(
stripIndent`
Thank you for trying the beta version of the \`gatsbyImageData\` API. Please provide feedback and report any issues at: https://github.com/gatsbyjs/gatsby/discussions/27950`
)
warnedForBeta = true
}

const fieldConfig = getGatsbyImageFieldConfig(resolveGatsbyImageData, {
jpegProgressive: {
type: GraphQLBoolean,
Expand Down

0 comments on commit ab41976

Please sign in to comment.