Releases: coreyward/sanity-image
Releases · coreyward/sanity-image
v0.1.9
Introduces changes around the style
prop when using Sanity Image with a low-quality preview image:
- Previously the default
width
and height
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 to SanityImage
would not be included in the img
element styles once the full size image had loaded
- Additional tests have been added covering the behavior of the
ImageWithPreview
component
v0.1.7
This fixes an issue where TypeScript is unable to locate the type exports in projects using "moduleResolution": "bundler"
in their tsconfig.json
. See #43 for additional details.
Thanks to @JeffBeltran for the contribution.
v0.1.6
Fixes a bug that caused queryParams
to be omitted from the constructed URLs returned from buildSrcSet
.
v0.1.5
Relax ESM target to ES2019 to provide out-of-the-box compatibility with older browsers that don't support the nullish coalescing operator.
v0.1.4
Declared side-effect free in package.json
to assist some bundlers with tree-shaking.
v0.1.3
Minor change to ensure type outputs use resolvable imports.
v0.1.1
This is the initial stable release of SanityImage
.