Skip to content

Commit ac010a0

Browse files
author
Amr Wagdy
committed
Chore: Release v2.0.1
1 parent 4f85d19 commit ac010a0

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ Types of changes:
2525
- ...
2626

2727
-------------
28-
## 2.0.0 - 2022-08-19
28+
## 2.0.1 - 2022-08-19
2929
### Fixed
30-
- Low preview image width
30+
- Prevent the config to be visible on DOM.
31+
32+
## 2.0.0 - 2022-08-19
33+
### Changed
34+
- Support React 18
35+
- **BREAKING**: the library might not work with React version < 18
3136

3237
## 1.6.9 - 2022-04-29
3338
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cloudimage-responsive-plain",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"main": "dist/index.js",
55
"description": "Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique.",
66
"author": "scaleflex",

src/img.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function Img(props) {
4444
onImgLoad,
4545
disableAnimation,
4646
doNotReplaceURL,
47+
config: _config,
4748
...filteredProps
4849
} = otherProps;
4950

@@ -105,6 +106,7 @@ function Img(props) {
105106

106107
const picture = (
107108
<img
109+
{...filteredProps}
108110
className={pictureClassName}
109111
src={cloudimgURL}
110112
{...(cloudimgSRCSET && {
@@ -113,7 +115,6 @@ function Img(props) {
113115
alt={pictureAlt}
114116
ref={imgNode}
115117
onLoad={_onImgLoad}
116-
{...filteredProps}
117118
/>
118119
);
119120

0 commit comments

Comments
 (0)