gatsby-plugin-image 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/resolver-utils.js +1 -1
- package/package.json +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.1.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-image@3.1.0/packages/gatsby-plugin-image) (2022-11-22)
|
|
7
|
+
|
|
8
|
+
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.1)
|
|
9
|
+
|
|
10
|
+
**Note:** Version bump only for package gatsby-plugin-image
|
|
11
|
+
|
|
6
12
|
## [3.0.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-image@3.0.0/packages/gatsby-plugin-image) (2022-11-08)
|
|
7
13
|
|
|
8
14
|
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.0)
|
package/dist/resolver-utils.js
CHANGED
|
@@ -95,7 +95,7 @@ function getGatsbyImageFieldConfig(resolve, extraArgs) {
|
|
|
95
95
|
description: (0, common_tags_1.stripIndent)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n If set along with width or height, this will set the value of the other dimension to match the provided aspect ratio, cropping the image if needed.\n If neither width or height is provided, height will be set based on the intrinsic width of the source image.\n "], ["\n If set along with width or height, this will set the value of the other dimension to match the provided aspect ratio, cropping the image if needed.\n If neither width or height is provided, height will be set based on the intrinsic width of the source image.\n "])))
|
|
96
96
|
}, placeholder: {
|
|
97
97
|
type: exports.ImagePlaceholderType.name,
|
|
98
|
-
description: (0, common_tags_1.stripIndent)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n Format of generated placeholder image, displayed while the main image loads.\n BLURRED: a blurred, low resolution image, encoded as a base64 data URI
|
|
98
|
+
description: (0, common_tags_1.stripIndent)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n Format of generated placeholder image, displayed while the main image loads.\n BLURRED: a blurred, low resolution image, encoded as a base64 data URI.\n DOMINANT_COLOR: a solid color, calculated from the dominant color of the image (default).\n TRACED_SVG: deprecated. Will use DOMINANT_COLOR.\n NONE: no placeholder. Set the argument \"backgroundColor\" to use a fixed background color."], ["\n Format of generated placeholder image, displayed while the main image loads.\n BLURRED: a blurred, low resolution image, encoded as a base64 data URI.\n DOMINANT_COLOR: a solid color, calculated from the dominant color of the image (default).\n TRACED_SVG: deprecated. Will use DOMINANT_COLOR.\n NONE: no placeholder. Set the argument \"backgroundColor\" to use a fixed background color."])))
|
|
99
99
|
}, formats: {
|
|
100
100
|
type: "[".concat(exports.ImageFormatType.name, "]"),
|
|
101
101
|
description: (0, common_tags_1.stripIndent)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n The image formats to generate. Valid values are AUTO (meaning the same format as the source image), JPG, PNG, WEBP and AVIF.\n The default value is [AUTO, WEBP], and you should rarely need to change this. Take care if you specify JPG or PNG when you do\n not know the formats of the source images, as this could lead to unwanted results such as converting JPEGs to PNGs. Specifying\n both PNG and JPG is not supported and will be ignored.\n "], ["\n The image formats to generate. Valid values are AUTO (meaning the same format as the source image), JPG, PNG, WEBP and AVIF.\n The default value is [AUTO, WEBP], and you should rarely need to change this. Take care if you specify JPG or PNG when you do\n not know the formats of the source images, as this could lead to unwanted results such as converting JPEGs to PNGs. Specifying\n both PNG and JPG is not supported and will be ignored.\n "]))),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-plugin-image",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm-run-all --npm-path npm -s clean -p build:*",
|
|
6
6
|
"postbuild": "prepend-directive --files=dist/gatsby-image.browser.js,dist/gatsby-image.browser.modern.js --directive=\"use client\"",
|
|
@@ -73,19 +73,27 @@
|
|
|
73
73
|
"react": "^18.0.0 || ^0.0.0",
|
|
74
74
|
"react-dom": "^18.0.0 || ^0.0.0"
|
|
75
75
|
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"gatsby-plugin-sharp": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"gatsby-source-filesystem": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
76
84
|
"dependencies": {
|
|
77
85
|
"@babel/code-frame": "^7.14.0",
|
|
78
86
|
"@babel/parser": "^7.15.5",
|
|
79
87
|
"@babel/runtime": "^7.15.4",
|
|
80
88
|
"@babel/traverse": "^7.15.4",
|
|
81
89
|
"babel-jsx-utils": "^1.1.0",
|
|
82
|
-
"babel-plugin-remove-graphql-queries": "^5.
|
|
90
|
+
"babel-plugin-remove-graphql-queries": "^5.2.0",
|
|
83
91
|
"camelcase": "^5.3.1",
|
|
84
92
|
"chokidar": "^3.5.3",
|
|
85
93
|
"common-tags": "^1.8.2",
|
|
86
94
|
"fs-extra": "^10.1.0",
|
|
87
|
-
"gatsby-core-utils": "^4.
|
|
88
|
-
"gatsby-plugin-utils": "^4.
|
|
95
|
+
"gatsby-core-utils": "^4.2.0",
|
|
96
|
+
"gatsby-plugin-utils": "^4.2.0",
|
|
89
97
|
"objectFitPolyfill": "^2.3.5",
|
|
90
98
|
"prop-types": "^15.8.1"
|
|
91
99
|
},
|
|
@@ -96,5 +104,5 @@
|
|
|
96
104
|
},
|
|
97
105
|
"author": "Matt Kane <matt@gatsbyjs.com>",
|
|
98
106
|
"license": "MIT",
|
|
99
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "cec2ab08bf08d96a02e224f0b02273d7529e80ae"
|
|
100
108
|
}
|