Releases: coreyward/sanity-image
Releases · coreyward/sanity-image
v1.0.0
What's Changed
- TypeScript types have been overhauled to simplify usage of the recommended wrapper component
- The url-builder functions have been extracted into a separate package
- The use of
as="source"
with an SVG image will now render asrcSet
prop as expected - Dev dependencies have been updated and had some dusting done on their configurations
- An additional
examples
folder has been added with a simple wrapper example to start - Minimum React version has been bumped to v18
- Minimum Node version has been bumped to Node 16
- Add AVIF support to README.md by @chrispecoraro in #53
Full Changelog: v0.2.0...v1.0.0
v0.2.0
v0.1.9
Introduces changes around the style
prop when using Sanity Image with a low-quality preview image:
- Previously the default
width
andheight
CSS properties were stripped by React; this has been fixed now. This should resolve issues with images not loading in circumstances where the image otherwise had no dimensions (not common). - Due to a bug in v0.1.8, a
style
prop supplied toSanityImage
would not be included in theimg
element styles once the full size image had loaded - Additional tests have been added covering the behavior of the
ImageWithPreview
component