Skip to content

Commit

Permalink
Chore: Release v4.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Amr Wagdy committed Apr 18, 2023
1 parent b78fff7 commit 47c11fe
Show file tree
Hide file tree
Showing 15 changed files with 473 additions and 997 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Types of changes:
- ...

-------------
## 4.9.2 - 2023-04-18
### Fixed
- Remove CVE vulnerabilities.

## 4.9.1 - 2022-08-15
### Fixed
- `updateImage` method when image doesn't have low-preivew.
Expand Down
11 changes: 3 additions & 8 deletions build/blur-hash/js-cloudimage-responsive.min.js

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions build/blur-hash/js-cloudimage-responsive.min.js.LICENSE.txt

This file was deleted.

2 changes: 1 addition & 1 deletion build/blur-hash/js-cloudimage-responsive.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/low-preview/js-cloudimage-responsive.min.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
*
* js-cloudimage-responsive v4.9.0 with low quality image placeholder technique
* js-cloudimage-responsive v4.9.2 with low quality image placeholder technique
* https://github.com/scaleflex/js-cloudimage-responsive
*
* Copyright (c) 2022 scaleflex
* Released under the MIT license
*
* Date: 2022-08-15T20:33:53.648Z
* Date: 2023-04-18T18:58:20.968Z
*
*/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)}
*/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)}
6 changes: 3 additions & 3 deletions build/low-preview/js-cloudimage-responsive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/low-preview/js-cloudimage-responsive.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/plain/js-cloudimage-responsive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/plain/js-cloudimage-responsive.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/wp/js-cloudimage-responsive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/wp/js-cloudimage-responsive.min.js.map

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions config/low-preview/webpack-build.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/* eslint-disable import/no-commonjs */
// eslint-disable-next-line import/no-nodejs-modules
const path = require('path');
const webpack = require('webpack');
const pkg = require('../../package');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const pkg = require('../../package.json');


const isDist = process.env.NODE_ENV === 'dist';

const now = new Date();
Expand All @@ -16,27 +20,27 @@ const banner = `
Date: ${now.toISOString()}
`;
const getFilename = type => isDist ? 'index.js' : `${pkg.name}.min.${type}`;
const getFilename = (type) => (isDist ? 'index.js' : `${pkg.name}.min.${type}`);


module.exports = {
entry: path.join(__dirname, "../../src/low-preview/index.js"),
entry: path.join(__dirname, '../../src/low-preview/index.js'),
output: {
path: path.join(__dirname, `../../${isDist ? 'dist' : 'build'}/low-preview`),
filename: getFilename('js')
filename: getFilename('js'),
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
use: "babel-loader",
exclude: /node_modules/
use: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.css$/i,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
}
]
},
],
},
plugins: [
new MiniCssExtractPlugin({ filename: getFilename('css') }),
Expand All @@ -45,11 +49,11 @@ module.exports = {
optimization: {
minimizer: [
new CssMinimizerPlugin(),
new TerserPlugin({ extractComments: false })
new TerserPlugin({ extractComments: false }),
],
},
resolve: {
extensions: [".js", ".jsx"]
extensions: ['.js', '.jsx'],
},
devtool: 'source-map'
devtool: 'source-map',
};
39 changes: 21 additions & 18 deletions config/low-preview/webpack-demo.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
/* eslint-disable import/no-nodejs-modules */
/* eslint-disable import/no-commonjs */
const path = require('path');
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');


const htmlWebpackPlugin = new HtmlWebpackPlugin({
template: path.join(__dirname, "../../examples/low-preview/src/index.html"),
filename: "./index.html"
template: path.join(__dirname, '../../examples/low-preview/src/index.html'),
filename: './index.html',
});

const miniCssExtractPlugin = new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "[name].css",
chunkFilename: "[id].css",
})
filename: '[name].css',
chunkFilename: '[id].css',
});
module.exports = {
entry: path.resolve(__dirname, "../../examples/low-preview/src/index.js"),
entry: path.resolve(__dirname, '../../examples/low-preview/src/index.js'),
output: {
path: path.join(__dirname, "../../examples/low-preview/dist"),
filename: "bundle[hash].js"
path: path.join(__dirname, '../../examples/low-preview/dist'),
filename: 'bundle[hash].js',
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
use: "babel-loader",
exclude: /node_modules/
use: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.css$/,
use: [ MiniCssExtractPlugin.loader, "css-loader" ],
use: [MiniCssExtractPlugin.loader, 'css-loader'],
},
]
],
},
plugins: [htmlWebpackPlugin, miniCssExtractPlugin],
resolve: {
extensions: [".js", ".jsx"]
extensions: ['.js', '.jsx'],
},
devServer: {
port: 3001
port: 3001,
},
devtool: 'source-map'
};
devtool: 'source-map',
};
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-cloudimage-responsive",
"version": "4.9.1",
"version": "4.9.2",
"main": "dist/low-preview/index.js",
"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.",
"author": "scaleflex",
Expand Down Expand Up @@ -76,18 +76,16 @@
"babel-plugin-array-includes": "^2.0.3",
"babel-preset-minify": "^0.5.1",
"css-loader": "^2.1.1",
"css-minimizer-webpack-plugin": "^1.3.0",
"css-minimizer-webpack-plugin": "^5.0.0",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.2",
"extract-text-webpack-plugin": "^1.0.1",
"gh-pages": "^2.2.0",
"highlight.js": "^11.1.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^2.6.1",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3",
Expand Down
Loading

0 comments on commit 47c11fe

Please sign in to comment.