- export types ImgProps/useImageProps
- BREAKING: all exports are now named exports
- build hooks for umd
- dont include typescript libs in build modules
- include esm modules
- include missing files
- move to typescript
- add useImage hook
- allow for an image loader to be injected
- BREAKING: requires react 16.8 or higher
- fix: TS Interface Error for 'src' attribute. Related to issue: #260
- fix: typescript declarations
-
add: typescript declarations
-
fix: Removes warnings of unsafe lifecycle methods from console due to react 16.9 update.
-
fix:Use correct case for crossOrigin and ensure prop is used both for the initial image fetch and in the final
<img>
element -
fix: nullify callbacks before removing - #237
-
fix: don't call handlers multiple times, fixes: #236
-
fix: unset incorrect prop in mbrevda#223
-
Add: abort image download on unmount mbrevda#223
-
build: move to rollup
-
Fix: Don't return a bool from constructor mbrevda#220
-
update babel loader to v7
-
Add:
loaderContainer
/unloaderContainer
(#208, #211). Thanks @eedrah! -
Test: test built libs
-
Fix: strip dev-specific code when compiling
-
Add:
container
props -
Fix: issue deleting
src
prop in Safari (#87) -
Add:
babel-runtime
as peer dep for https://pnpm.js.org/ (#199, #200). Thanks @vjpr! -
Add: (crude) demo including transitions
-
bug: Don't pass decode prop to underlying
<img>
-
Use img.decode() by default where available
-
Add support for React 16
-
move to new prop-types package
-
add 100% test coverage
-
Renamed to react-image
-
Housekeeping: update dependencies
-
Add recipes
-
Fix Readme formatting
-
Start iteration at current location
-
Add a cache so that we don't attempt the same image twice (per page load)
-
Fix issue where index would overshoot available sources
-
Don't try setting state if
this.i
was already destroyed, which probably means that we have been unmounted -
Remove Browsierfy config
-
Revert 0.4.0
-
Don't overshoot sourceList when state.currentIndex
-
Ensure state has been set before trying to load images when new props are delivered
-
Restart the loading process when src prop changes
-
Don't use until we know the image can be rendered. This will prevent the "jumping" when loading an image and the preloader is displayed at the same time as the image
-
Don't require
src
to be set -
Made react a peer depends
-
Return
null
instead of false from React component. Thanks @tikotzky!