Skip to content

Commit 83a0f28

Browse files
author
Amr Wagdy
committed
Chore: Release v3.6.5
1 parent 54dff4c commit 83a0f28

File tree

7 files changed

+1566
-3292
lines changed

7 files changed

+1566
-3292
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.5 - 2023-04-18
31+
### Fixed
32+
- Remove CVE vulnerabilities
33+
3034
## 3.6.4 - 2022-08-04
3135
### Fixed
3236
- prop-types dependency

examples/src/index-bugs.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cloudimage-responsive",
3-
"version": "3.6.4",
3+
"version": "3.6.5",
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",
@@ -41,14 +41,14 @@
4141
},
4242
"dependencies": {
4343
"cloudimage-responsive-utils": "^2.5.1",
44-
"prop-types": "15.8.1",
4544
"core-js": "^3.15.2",
45+
"prop-types": "15.8.1",
4646
"react-lazyload": "^3.2.0",
4747
"throttle-debounce": "^3.0.1"
4848
},
4949
"devDependencies": {
5050
"@babel/cli": "^7.14.5",
51-
"@babel/core": "^7.14.6",
51+
"@babel/core": "^7.21.4",
5252
"@babel/plugin-proposal-class-properties": "^7.14.5",
5353
"@babel/plugin-proposal-decorators": "^7.14.5",
5454
"@babel/plugin-proposal-export-namespace-from": "^7.14.5",
@@ -58,24 +58,23 @@
5858
"@babel/plugin-proposal-throw-expressions": "^7.14.5",
5959
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
6060
"@babel/plugin-syntax-import-meta": "^7.0.0",
61-
"@babel/preset-env": "^7.14.7",
61+
"@babel/preset-env": "^7.21.4",
6262
"@babel/preset-react": "^7.14.5",
63-
"babel-loader": "^8.2.2",
64-
"css-loader": "^2.0.0",
63+
"babel-loader": "^9.1.2",
64+
"css-loader": "^6.7.3",
6565
"eslint": "^8.10.0",
6666
"eslint-config-airbnb": "^19.0.4",
67-
"eslint-plugin-import": "^2.25.4",
6867
"eslint-plugin-jsx-a11y": "^6.5.1",
6968
"eslint-plugin-react": "^7.29.3",
7069
"eslint-plugin-react-hooks": "^4.3.0",
7170
"gh-pages": "^2.0.1",
72-
"html-webpack-plugin": "^3.2.0",
71+
"html-webpack-plugin": "^5.5.1",
7372
"react": "^18.2.0",
7473
"react-dom": "^18.2.0",
75-
"react-syntax-highlighter": "^10.2.0",
76-
"style-loader": "^0.23.1",
77-
"webpack": "^4.46.0",
78-
"webpack-cli": "^3.3.11",
79-
"webpack-dev-server": "^3.11.2"
74+
"react-syntax-highlighter": "^15.5.0",
75+
"style-loader": "^3.3.2",
76+
"webpack": "^5.79.0",
77+
"webpack-cli": "^5.0.1",
78+
"webpack-dev-server": "^4.13.3"
8079
}
8180
}

src/img.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
isServer, processReactNode, imgStyles as styles, generateAlt,
66
} from 'cloudimage-responsive-utils';
77
import LazyLoad from 'react-lazyload';
8+
89
import { getFilteredProps } from './utils';
910
import usePrevious from './hooks/usePrevious';
1011

@@ -24,7 +25,9 @@ function Img(props) {
2425
const server = useMemo(() => isServer(), []);
2526

2627
const {
27-
lazyLoading: configLazyLoadingValue, lazyLoadOffset, delay, innerWidth,
28+
lazyLoading: configLazyLoadingValue,
29+
lazyLoadOffset,
30+
delay, innerWidth,
2831
} = config;
2932

3033
const { lazyLoading = configLazyLoadingValue } = props;
@@ -50,7 +53,12 @@ function Img(props) {
5053
} = getFilteredProps(props);
5154

5255
const {
53-
innerRef, onImgLoad, disableAnimation, doNotReplaceURL, ...filteredProps
56+
innerRef,
57+
onImgLoad,
58+
disableAnimation,
59+
doNotReplaceURL,
60+
config: _config,
61+
...filteredProps
5462
} = otherProps;
5563

5664
const getcloudimgSRCSET = () => cloudimgSRCSET
@@ -86,13 +94,6 @@ function Img(props) {
8694
}
8795
};
8896

89-
const getAlt = (name) => {
90-
if (!name) return;
91-
92-
const index = name.indexOf('.');
93-
return name.slice(0, index);
94-
};
95-
9697
const onPreviewLoaded = (event) => {
9798
if (previewLoaded) return;
9899

src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import './polyfills';
2-
import {
3-
useContext, forwardRef, useCallback,
4-
} from 'react';
1+
import { useContext, forwardRef, useCallback } from 'react';
2+
53
import ImgComponent from './img';
64
import BackgroundImgComponent from './background';
75
import CloudimageProvider, { CloudimageContext } from './provider';
6+
import './polyfills';
87

98

109
const Img = forwardRef((props, ref) => {

webpack-demo.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable import/no-nodejs-modules */
2+
/* eslint-disable import/no-commonjs */
13
const path = require('path');
24
const HtmlWebpackPlugin = require('html-webpack-plugin');
35

0 commit comments

Comments
 (0)