You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/gatsby-image/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
## :warning: This package is now deprecated
2
+
3
+
The `gatsby-image` package is now deprecated. The new [Gatsby image plugin](https://www.gatsbyjs.com/plugins/gatsby-plugin-image) has better performance, cool new features and a simpler API. See [the migration guide](https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/) to learn how to upgrade.
Copy file name to clipboardExpand all lines: packages/gatsby-plugin-image/README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,4 @@
1
-
# gatsby-plugin-image (beta)
2
-
3
-
_The new Gatsby Image plugin is currently in beta, but you can try it out now_
1
+
# gatsby-plugin-image
4
2
5
3
Adding responsive images to your site while maintaining high performance scores can be difficult to do manually. The Gatsby Image plugin handles the hard parts of producing images in multiple sizes and formats for you!
Copy file name to clipboardExpand all lines: packages/gatsby-transformer-sharp/src/customize-schema.js
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,18 @@ const {
44
44
const{ stripIndent }=require(`common-tags`)
45
45
const{ prefixId,CODES}=require(`./error-utils`)
46
46
47
+
letwarnedForDeprecation=false
48
+
49
+
functionwarnForDeprecation(){
50
+
if(warnedForDeprecation){
51
+
return
52
+
}
53
+
warnedForDeprecation=true
54
+
console.warn(
55
+
`[gatsby-transformer-sharp] The "fixed" and "fluid" resolvers are now deprecated. Switch to "gatsby-plugin-image" for better performance and a simpler API. See https://gatsby.dev/migrate-images to learn how.`
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`
0 commit comments