Skip to content

Releases: coreyward/sanity-image

v0.2.0

05 Oct 02:14
2f25271
Compare
Choose a tag to compare

What's Changed

  • Bump micromatch from 4.0.5 to 4.0.8 by @dependabot in #49
  • Fix: compensate correctly for crops from the left/top by @fvieira in #50

New Contributors

Full Changelog: v0.1.9...v0.2.0

v0.1.9

03 Jul 15:52
dfc3d20
Compare
Choose a tag to compare

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

13 Dec 16:18
6cb97b2
Compare
Choose a tag to compare

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

11 May 15:33
efec61e
Compare
Choose a tag to compare

Fixes a bug that caused queryParams to be omitted from the constructed URLs returned from buildSrcSet.

v0.1.5

17 Apr 23:01
9f65f8b
Compare
Choose a tag to compare

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

08 Apr 00:28
526aecc
Compare
Choose a tag to compare

Declared side-effect free in package.json to assist some bundlers with tree-shaking.

v0.1.3

15 Mar 17:25
4ec0f3e
Compare
Choose a tag to compare

Minor change to ensure type outputs use resolvable imports.

v0.1.2

14 Mar 01:47
c73dcd6
Compare
Choose a tag to compare

v0.1.1

11 Mar 19:58
81e8782
Compare
Choose a tag to compare

This is the initial stable release of SanityImage.