- Updated @babel/runtime dependency to v7.17.9.
- Updated prop-types dependency to v15.8.1.
- Updated react peer-dependency to support v18.
- BREAKING Changed CSS feature detection to happen only on component mount—using hooks!
- BREAKING Changed JSX transform to use new React JSX runtime.
- BREAKING Updated react peer-dependency to support new React JSX runtime.
- Changed behaviour for server-side rendering to render supported
<img>
element.
- BREAKING Removed handling
height
andwidth
props as strings containing numbers.
- Added source maps to build output.
- Updated @babel/runtime dependency to v7.12.5..
- Updated render function to a named function.
- Updated
propTypes
to only be defined in non-production environments.
- Removed
defaultProps
in favour of default values in object destructuring.
- Allow
aria-label
androle
props to be overwritten on fallback image.
- Add ref forwarding to
FittedImg
component.
- Added @babel/runtime for Babel helpers.
- Fixed a spelling mistake.
- Update
height
andwidth
props to handlenull
.
- Update
height
andwidth
default props.
- Added
alt
,height
,style
andwidth
default props. - Added ES Module build.
Maintenance release.
- Updated CSS supports detection to be lazy.
- Builds are now done with Rollup.
- Updated prop-types dependency to v15.7.2.
- Updated react peer-dependency to support React 16.
- Update
height
andwidth
props to handle values with units, e.g.width="100%"
.
- BREAKING Requires react peer-dependency to be v15.6.0 or newer.
- Updated prop-types dependency to v15.6.0.
- Initial public version!