Skip to content

Commit

Permalink
release: bump for type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrevda committed Dec 16, 2019
1 parent 8bc43f0 commit 037ee48
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 127 deletions.
255 changes: 129 additions & 126 deletions CHANGELOG.md
@@ -1,126 +1,129 @@
2.2.1
===
* fix: Removes warnings of unsafe lifecycle methods from console due to react 16.9 update.

2.2.0
===
* fix:Use correct case for crossOrigin and ensure prop is used both for the initial image fetch and in the final `<img>` element

2.1.3
===
* fix: nullify callbacks before removing - #237

2.1.2
===
* fix: don't call handlers multiple times, fixes: #236

2.1.1
===
* fix: unset incorrect prop in https://github.com/mbrevda/react-image/pull/223

2.1.0
===
* Add: abort image download on unmount https://github.com/mbrevda/react-image/pull/223

2.0.0
===
* build: move to rollup
* Fix: Don't return a bool from constructor https://github.com/mbrevda/react-image/pull/220

1.5.1
===
* update babel loader to v7

1.5.0
===
* Add: `loaderContainer`/`unloaderContainer` (#208, #211). Thanks @eedrah!
* Test: test built libs

1.4.1
===
* Fix: strip dev-specific code when compiling

1.4.0
===
* 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

1.3.1
===
* bug: Don't pass decode prop to underlying `<img>`

1.3.0
===
* Use img.decode() by default where available

1.2.0
===
* Add support for React 16

1.0.1
===
* move to new prop-types package
* add 100% test coverage

1.0.0
===
* Renamed to react-image

0.6.3
===
* Housekeeping: update dependencies
* Add recipes

0.6.2
===
* Fix Readme formatting

0.6.1
===
* Start iteration at current location

0.6.0
===
* Add a cache so that we don't attempt the same image twice (per page load)

0.5.0
===
* 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

0.4.2
===
* Remove Browsierfy config

0.4.1
===
* Revert 0.4.0

0.3.0
===
* Don't overshoot sourceList when state.currentIndex
* Ensure state has been set before trying to load images when new props are delivered

0.2.0
===
* Restart the loading process when src prop changes

0.1.0
===
* Don't use <img> 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

0.0.11
===
* Don't require `src` to be set

0.0.10
===
* Made react a peer depends

0.0.8
===

* Return `null` instead of false from React component. Thanks @tikotzky!
# 2.2.2

- add: typescript declarations

# 2.2.1

- fix: Removes warnings of unsafe lifecycle methods from console due to react 16.9 update.

# 2.2.0

- fix:Use correct case for crossOrigin and ensure prop is used both for the initial image fetch and in the final `<img>` element

# 2.1.3

- fix: nullify callbacks before removing - #237

# 2.1.2

- fix: don't call handlers multiple times, fixes: #236

# 2.1.1

- fix: unset incorrect prop in https://github.com/mbrevda/react-image/pull/223

# 2.1.0

- Add: abort image download on unmount https://github.com/mbrevda/react-image/pull/223

# 2.0.0

- build: move to rollup
- Fix: Don't return a bool from constructor https://github.com/mbrevda/react-image/pull/220

# 1.5.1

- update babel loader to v7

# 1.5.0

- Add: `loaderContainer`/`unloaderContainer` (#208, #211). Thanks @eedrah!
- Test: test built libs

# 1.4.1

- Fix: strip dev-specific code when compiling

# 1.4.0

- 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

# 1.3.1

- bug: Don't pass decode prop to underlying `<img>`

# 1.3.0

- Use img.decode() by default where available

# 1.2.0

- Add support for React 16

# 1.0.1

- move to new prop-types package
- add 100% test coverage

# 1.0.0

- Renamed to react-image

# 0.6.3

- Housekeeping: update dependencies
- Add recipes

# 0.6.2

- Fix Readme formatting

# 0.6.1

- Start iteration at current location

# 0.6.0

- Add a cache so that we don't attempt the same image twice (per page load)

# 0.5.0

- 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

# 0.4.2

- Remove Browsierfy config

# 0.4.1

- Revert 0.4.0

# 0.3.0

- Don't overshoot sourceList when state.currentIndex
- Ensure state has been set before trying to load images when new props are delivered

# 0.2.0

- Restart the loading process when src prop changes

# 0.1.0

- Don't use <img> 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

# 0.0.11

- Don't require `src` to be set

# 0.0.10

- Made react a peer depends

# 0.0.8

- Return `null` instead of false from React component. Thanks @tikotzky!
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-image",
"version": "2.2.1",
"version": "2.2.2",
"description": "React Image is an <img> tag replacement for react, featuring preloader and multiple image fallback support",
"scripts": {
"build": "NODE_ENV=production rollup -c && node ./webpack.site.js && for i in cjs esm umd; do cp src/*test.js $i; done",
Expand Down

0 comments on commit 037ee48

Please sign in to comment.