From 16a546d8e7128b93e3435919fdfd7d1a1c422629 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 4 Mar 2021 09:45:56 +0000 Subject: [PATCH] fix(gatsby-source-contentful): Remove image beta warning --- .../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,