Skip to content

Commit c7f59e7

Browse files
committed
Chore: Release v3.6.2
1 parent b688d5c commit c7f59e7

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Types of changes:
2727
-------------
2828

2929
-------------
30+
## 3.6.2 - 2022-04-29
31+
### Fixed
32+
- Low preview image width
33+
3034
## 3.6.1 - 2022-04-26
3135
### Fixed
3236
- Low preview image width

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Release](https://img.shields.io/badge/release-v3.6.1-blue.svg)](https://github.com/scaleflex/js-cloudimage-responsive/releases)
1+
[![Release](https://img.shields.io/badge/release-v3.6.2-blue.svg)](https://github.com/scaleflex/js-cloudimage-responsive/releases)
22
[![Free plan](https://img.shields.io/badge/price-includes%20free%20plan-green.svg)](https://www.cloudimage.io/en/home#b38181a6-b9c8-4015-9742-7b1a1ad382d5)
33
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing)
44
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cloudimage-responsive",
3-
"version": "3.6.1",
3+
"version": "3.6.2",
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 with fancy animation on image load.",
66
"author": "scaleflex",
@@ -40,7 +40,7 @@
4040
"publish-demo": "npm run build-demo && npm run deploy"
4141
},
4242
"dependencies": {
43-
"cloudimage-responsive-utils": "^2.4.8",
43+
"cloudimage-responsive-utils": "^2.4.9",
4444
"core-js": "^3.15.2",
4545
"prop-types": "^15.8.1",
4646
"react-lazyload": "^3.2.0",

src/img.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ function Img(props) {
122122
.trim();
123123

124124
useEffect(() => {
125-
if (typeof delay !== 'undefined' && !server) {
126-
if (disableAnimation) {
127-
innerRef.current = imgNode.current;
128-
}
125+
if (disableAnimation) {
126+
innerRef.current = imgNode.current;
127+
}
129128

129+
if (typeof delay !== 'undefined' && !server) {
130130
setTimeout(() => {
131131
processImg();
132132
}, delay);

0 commit comments

Comments
 (0)