Skip to content

Commit 26be77a

Browse files
author
Amr Wagdy
committed
fix: Errors on installing packages
1 parent 83a0f28 commit 26be77a

File tree

5 files changed

+10
-5310
lines changed

5 files changed

+10
-5310
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.6 - 2023-10-18
31+
### Fixed
32+
- Replace `react-lazyload` plugin with `react-lazy-load` to support React 18.
33+
3034
## 3.6.5 - 2023-04-18
3135
### Fixed
3236
- Remove CVE vulnerabilities

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cloudimage-responsive",
3-
"version": "3.6.5",
3+
"version": "3.6.6",
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",
@@ -43,8 +43,8 @@
4343
"cloudimage-responsive-utils": "^2.5.1",
4444
"core-js": "^3.15.2",
4545
"prop-types": "15.8.1",
46-
"react-lazyload": "^3.2.0",
47-
"throttle-debounce": "^3.0.1"
46+
"throttle-debounce": "^3.0.1",
47+
"react-lazy-load": "4.0.1"
4848
},
4949
"devDependencies": {
5050
"@babel/cli": "^7.14.5",

src/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {
22
useState, useMemo, useEffect, useRef,
33
} from 'react';
44
import { isServer, processReactNode } from 'cloudimage-responsive-utils';
5-
import LazyLoad from 'react-lazyload';
5+
import LazyLoad from 'react-lazy-load';
6+
67
import { getFilteredBgProps } from './utils';
78
import BackgroundInner from './background-inner';
89

src/img.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
import {
55
isServer, processReactNode, imgStyles as styles, generateAlt,
66
} from 'cloudimage-responsive-utils';
7-
import LazyLoad from 'react-lazyload';
7+
import LazyLoad from 'react-lazy-load';
88

99
import { getFilteredProps } from './utils';
1010
import usePrevious from './hooks/usePrevious';

0 commit comments

Comments
 (0)