Skip to content

Commit 47c11fe

Browse files
author
Amr Wagdy
committed
Chore: Release v4.9.2
1 parent b78fff7 commit 47c11fe

15 files changed

+473
-997
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Types of changes:
2525
- ...
2626

2727
-------------
28+
## 4.9.2 - 2023-04-18
29+
### Fixed
30+
- Remove CVE vulnerabilities.
31+
2832
## 4.9.1 - 2022-08-15
2933
### Fixed
3034
- `updateImage` method when image doesn't have low-preivew.

Diff for: build/blur-hash/js-cloudimage-responsive.min.js

+3-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/blur-hash/js-cloudimage-responsive.min.js.LICENSE.txt

-11
This file was deleted.

Diff for: build/blur-hash/js-cloudimage-responsive.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/low-preview/js-cloudimage-responsive.min.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
22
*
3-
* js-cloudimage-responsive v4.9.0 with low quality image placeholder technique
3+
* js-cloudimage-responsive v4.9.2 with low quality image placeholder technique
44
* https://github.com/scaleflex/js-cloudimage-responsive
55
*
66
* Copyright (c) 2022 scaleflex
77
* Released under the MIT license
88
*
9-
* Date: 2022-08-15T20:33:53.648Z
9+
* Date: 2023-04-18T18:58:20.968Z
1010
*
11-
*/img[ci-src]{opacity:0}div.ci-image-wrapper{display:block;width:100%;overflow:hidden;position:relative}img.ci-image{display:block;width:100%;padding:0!important;position:absolute;top:0;left:0;height:auto}img.ci-image-loaded{opacity:1}img.ci-image-ratio.ci-image-preview{height:100%}.ci-bg,.ci-bg>*{position:relative}.ci-bg:before{content:"";position:absolute;top:0;bottom:0;right:0;left:0;background:inherit;filter:blur(0);transition:filter .4s ease-in-out}.ci-bg.ci-bg-animation:before{filter:blur(10px)}
11+
*/img[ci-src]{opacity:0}div.ci-image-wrapper{display:block;overflow:hidden;position:relative;width:100%}img.ci-image{display:block;height:auto;left:0;padding:0!important;position:absolute;top:0;width:100%}img.ci-image-loaded{opacity:1}img.ci-image-ratio.ci-image-preview{height:100%}.ci-bg,.ci-bg>*{position:relative}.ci-bg:before{background:inherit;bottom:0;content:"";filter:blur(0);left:0;position:absolute;right:0;top:0;transition:filter .4s ease-in-out}.ci-bg.ci-bg-animation:before{filter:blur(10px)}

Diff for: build/low-preview/js-cloudimage-responsive.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/low-preview/js-cloudimage-responsive.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/plain/js-cloudimage-responsive.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/plain/js-cloudimage-responsive.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/wp/js-cloudimage-responsive.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/wp/js-cloudimage-responsive.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/low-preview/webpack-build.config.js

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
/* eslint-disable import/no-commonjs */
2+
// eslint-disable-next-line import/no-nodejs-modules
13
const path = require('path');
24
const webpack = require('webpack');
3-
const pkg = require('../../package');
45
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
56
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
67
const TerserPlugin = require('terser-webpack-plugin');
8+
const pkg = require('../../package.json');
9+
10+
711
const isDist = process.env.NODE_ENV === 'dist';
812

913
const now = new Date();
@@ -16,27 +20,27 @@ const banner = `
1620
1721
Date: ${now.toISOString()}
1822
`;
19-
const getFilename = type => isDist ? 'index.js' : `${pkg.name}.min.${type}`;
23+
const getFilename = (type) => (isDist ? 'index.js' : `${pkg.name}.min.${type}`);
2024

2125

2226
module.exports = {
23-
entry: path.join(__dirname, "../../src/low-preview/index.js"),
27+
entry: path.join(__dirname, '../../src/low-preview/index.js'),
2428
output: {
2529
path: path.join(__dirname, `../../${isDist ? 'dist' : 'build'}/low-preview`),
26-
filename: getFilename('js')
30+
filename: getFilename('js'),
2731
},
2832
module: {
2933
rules: [
3034
{
3135
test: /\.(js|jsx)$/,
32-
use: "babel-loader",
33-
exclude: /node_modules/
36+
use: 'babel-loader',
37+
exclude: /node_modules/,
3438
},
3539
{
3640
test: /\.css$/i,
3741
use: [MiniCssExtractPlugin.loader, 'css-loader'],
38-
}
39-
]
42+
},
43+
],
4044
},
4145
plugins: [
4246
new MiniCssExtractPlugin({ filename: getFilename('css') }),
@@ -45,11 +49,11 @@ module.exports = {
4549
optimization: {
4650
minimizer: [
4751
new CssMinimizerPlugin(),
48-
new TerserPlugin({ extractComments: false })
52+
new TerserPlugin({ extractComments: false }),
4953
],
5054
},
5155
resolve: {
52-
extensions: [".js", ".jsx"]
56+
extensions: ['.js', '.jsx'],
5357
},
54-
devtool: 'source-map'
58+
devtool: 'source-map',
5559
};

Diff for: config/low-preview/webpack-demo.config.js

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,46 @@
1+
/* eslint-disable import/no-nodejs-modules */
2+
/* eslint-disable import/no-commonjs */
13
const path = require('path');
2-
const HtmlWebpackPlugin = require("html-webpack-plugin");
3-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4+
const HtmlWebpackPlugin = require('html-webpack-plugin');
5+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
6+
47

58
const htmlWebpackPlugin = new HtmlWebpackPlugin({
6-
template: path.join(__dirname, "../../examples/low-preview/src/index.html"),
7-
filename: "./index.html"
9+
template: path.join(__dirname, '../../examples/low-preview/src/index.html'),
10+
filename: './index.html',
811
});
912

1013
const miniCssExtractPlugin = new MiniCssExtractPlugin({
1114
// Options similar to the same options in webpackOptions.output
1215
// both options are optional
13-
filename: "[name].css",
14-
chunkFilename: "[id].css",
15-
})
16+
filename: '[name].css',
17+
chunkFilename: '[id].css',
18+
});
1619
module.exports = {
17-
entry: path.resolve(__dirname, "../../examples/low-preview/src/index.js"),
20+
entry: path.resolve(__dirname, '../../examples/low-preview/src/index.js'),
1821
output: {
19-
path: path.join(__dirname, "../../examples/low-preview/dist"),
20-
filename: "bundle[hash].js"
22+
path: path.join(__dirname, '../../examples/low-preview/dist'),
23+
filename: 'bundle[hash].js',
2124
},
2225
module: {
2326
rules: [
2427
{
2528
test: /\.(js|jsx)$/,
26-
use: "babel-loader",
27-
exclude: /node_modules/
29+
use: 'babel-loader',
30+
exclude: /node_modules/,
2831
},
2932
{
3033
test: /\.css$/,
31-
use: [ MiniCssExtractPlugin.loader, "css-loader" ],
34+
use: [MiniCssExtractPlugin.loader, 'css-loader'],
3235
},
33-
]
36+
],
3437
},
3538
plugins: [htmlWebpackPlugin, miniCssExtractPlugin],
3639
resolve: {
37-
extensions: [".js", ".jsx"]
40+
extensions: ['.js', '.jsx'],
3841
},
3942
devServer: {
40-
port: 3001
43+
port: 3001,
4144
},
42-
devtool: 'source-map'
43-
};
45+
devtool: 'source-map',
46+
};

Diff for: package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-cloudimage-responsive",
3-
"version": "4.9.1",
3+
"version": "4.9.2",
44
"main": "dist/low-preview/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",
@@ -76,18 +76,16 @@
7676
"babel-plugin-array-includes": "^2.0.3",
7777
"babel-preset-minify": "^0.5.1",
7878
"css-loader": "^2.1.1",
79-
"css-minimizer-webpack-plugin": "^1.3.0",
79+
"css-minimizer-webpack-plugin": "^5.0.0",
8080
"eslint": "^7.32.0 || ^8.2.0",
8181
"eslint-config-airbnb-base": "^15.0.0",
8282
"eslint-plugin-import": "^2.25.2",
83-
"extract-text-webpack-plugin": "^1.0.1",
8483
"gh-pages": "^2.2.0",
8584
"highlight.js": "^11.1.0",
8685
"html-webpack-plugin": "^5.5.0",
8786
"mini-css-extract-plugin": "^2.6.1",
8887
"style-loader": "^3.3.1",
8988
"terser-webpack-plugin": "^5.3.3",
90-
"uglifyjs-webpack-plugin": "^2.2.0",
9189
"webpack": "^5.74.0",
9290
"webpack-cli": "^4.10.0",
9391
"webpack-dev-server": "^4.9.3",

0 commit comments

Comments
 (0)