From d576170e01d17f3db0f377cf7f6dd9c2fa24cd65 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Fri, 5 Mar 2021 11:29:48 +0000 Subject: [PATCH] fix(gatsby-source-contentful): Remove image beta warning (#29980) Co-authored-by: gatsbybot (cherry picked from commit 2f599952142b9f2350ef268187839dcbe01ccd74) --- .../gatsby-source-contentful/src/extend-node-type.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/gatsby-source-contentful/src/extend-node-type.js b/packages/gatsby-source-contentful/src/extend-node-type.js index 4cc752b5422f2..b9fbec8776872 100644 --- a/packages/gatsby-source-contentful/src/extend-node-type.js +++ b/packages/gatsby-source-contentful/src/extend-node-type.js @@ -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 {} } @@ -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,