Skip to content

Releases: coreyward/gatsby-plugin-sanity-image

v0.13.3

28 Nov 17:17
c984e91
Compare
Choose a tag to compare

Improves accuracy and usefulness of generated TypeScript types

v0.13.2

14 Nov 19:45
ee51379
Compare
Choose a tag to compare

Declare Gatsby v5 support in peer deps.

v0.13.1

10 Nov 19:01
dd0cd0d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.0...v0.13.1

v0.13.0

24 Aug 16:18
10c529c
Compare
Choose a tag to compare

Change in license only (MPL 2.0 → MIT).

v0.12.0

17 Aug 21:12
a3eda8f
Compare
Choose a tag to compare

Updates Emotion to v11 and bumps dependencies for security patches.

v0.11.0

19 Nov 21:49
e3e9764
Compare
Choose a tag to compare

This release adds two additional configuration directives that augment the way SanityImage handles alt props.

  1. warnOnMissingAlt — when a SanityImage component is rendered without an alt 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.
  2. emptyAltFallback — when no alt 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 an alt 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

02 Nov 17:31
86d6592
Compare
Choose a tag to compare

This release adds support for Gatsby v4 while maintaining compatibility with Gatsby v2 and v3.

v0.9.0

02 Nov 17:29
27534c5
Compare
Choose a tag to compare

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

22 Jul 15:49
02f82e2
Compare
Choose a tag to compare

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

19 Apr 15:47
9cb327b
Compare
Choose a tag to compare

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.