Releases: coreyward/gatsby-plugin-sanity-image
v0.13.3
v0.13.2
v0.13.1
What's Changed
- Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #32
Full Changelog: v0.13.0...v0.13.1
v0.13.0
v0.12.0
v0.11.0
This release adds two additional configuration directives that augment the way SanityImage
handles alt
props.
warnOnMissingAlt
— when aSanityImage
component is rendered without analt
prop, show a warning in the dev console. This is enabled by default in development and disabled in production, but can be either enabled or disabled here as needed.emptyAltFallback
— when noalt
prop is available,SanityImage
can now fall back to setting an empty string value. This can prevent accessibility audits from detecting images that should have analt
value, so this is disabled by default.
There is also now a more helpful error message when no asset
prop is provided. This should prevent confusion with errors about “accessing metadata on undefined.”
v0.10.0
v0.9.0
This release adds support for a customFields
configuration option, which extends the gatsby-plugin-sanity-image generated fragments. The primary use case for this is to include additional fields from custom image types across all uses of the fragments, such as alt text.
This release also sees an update to the way browser-targeted files are bundled, including an update to the feature target (es2018) and with minification now being applied. This should reduce the weight of the bundled files being delivered to the browser somewhat.
v0.8.0
This release drops the dependency on @sanity/client, reducing the size of the package and eliminating warnings about the need to specify an API version when initializing the Sanity client.
If you were not previously importing the configured Sanity client or image-url builder from this package there should be no functional changes from v0.7.0.
v0.6.0
This release adds support for the __experimentalAspectRatio
option. When set, this will set width
and height
options on both preview and full image elements generated by SanityImage
based on the post-crop computed aspect ratio of the output image.
Note: No attempts are made to compensate for the
fit
mode or image params that transform the final output dimensions in this early proof-of-concept version.