-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCHANGELOG
31 lines (19 loc) · 1.42 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Changelog
## 0.3.0 (October 22nd, 2024)
- Changed: Added missing `sizes` prop when specifying `media` props for `Picture`. This was omitted due to a misunderstanding of how the `sizes` prop on `<source>` elements falls back (it doesn't inherit from the sibling `<img>` element, it defaults to `100vw`).
## 0.2.0 (June 7th, 2023)
- New: Components now support `builderOptions` prop with customisable source widths (thanks to [@james2doyle](https://github.com/james2doyle)).
- Changed: Renamed `SOURCE_WIDTHS` constant to `DEFAULT_SOURCE_WIDTHS`.
- Changed: Components now use a default image quality parameter of `90`.
- Fixed: Improved image layout in Storybook.
## 0.1.3 (September 20th, 2022)
- Fixed: Image dimension and aspect ratio calculations now correctly take into account any `crop` defined on the Sanity image object.
- Changed: Renamed `IMAGE_WIDTHS` constant to `SOURCE_WIDTHS` so as to be slightly more descriptive. `IMAGE_WIDTHS` is still exported as an alternative name to preserve backwards-compatibility, but this will be removed in the next major version.
- New: Added `Img` story to demonstrate image cropping.
- New: Added JSDoc documentation to utility functions.
## 0.1.2 (August 3rd, 2022)
- New: Added `width` and `height` attributes to `img` elements rendered by `Img`.
## 0.1.1 (July 31st, 2022)
- Fixed: Corrected typings for `Img` props.
## 0.1.0 (July 31st, 2022)
- New: Initial version.