Skip to content

Commit

Permalink
chore: update dependencies to the latest version (#228)
Browse files Browse the repository at this point in the history
ersachin3112 authored May 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b6ed7fd commit a617d49
Showing 4 changed files with 883 additions and 875 deletions.
1,702 changes: 857 additions & 845 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -69,24 +69,24 @@
}
},
"dependencies": {
"cssnano": "^6.0.0",
"cssnano": "^6.0.1",
"jest-worker": "^29.4.3",
"postcss": "^8.4.21",
"schema-utils": "^4.0.0",
"postcss": "^8.4.23",
"schema-utils": "^4.0.1",
"serialize-javascript": "^6.0.1",
"source-map": "^0.6.1"
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@babel/cli": "^7.21.5",
"@babel/core": "^7.21.5",
"@babel/preset-env": "^7.21.5",
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@parcel/css": "^1.8.3",
"@swc/css": "^0.0.20",
"@types/clean-css": "^4.2.5",
"@types/csso": "^5.0.0",
"@types/node": "^18.15.11",
"@types/node": "^18.16.3",
"@types/serialize-javascript": "^5.0.2",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^29.4.3",
@@ -99,24 +99,24 @@
"csso": "^5.0.3",
"del": "^6.1.0",
"del-cli": "^5.0.0",
"esbuild": "^0.17.14",
"eslint": "^8.37.0",
"esbuild": "^0.17.18",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
"jest": "^29.4.3",
"lightningcss": "^1.19.0",
"lint-staged": "^13.2.1",
"memfs": "^3.4.13",
"lightningcss": "^1.20.0",
"lint-staged": "^13.2.2",
"memfs": "^3.5.1",
"mini-css-extract-plugin": "^2.7.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4",
"sass": "^1.58.3",
"prettier": "^2.8.8",
"sass": "^1.62.1",
"sass-loader": "^13.2.0",
"standard-version": "^9.5.0",
"sugarss": "^4.0.1",
"typescript": "^5.0.2",
"webpack": "^5.77.0"
"typescript": "^5.0.4",
"webpack": "^5.81.0"
},
"keywords": [
"cssnano",
10 changes: 4 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -114,17 +114,15 @@ const { minify: minifyWorker } = require("./minify");

/** @typedef {undefined | boolean | number} Parallel */

/** @typedef {RegExp | string} Rule */

/** @typedef {Rule[] | Rule} Rules */
/** @typedef {string | RegExp | string[] | RegExp[]} Rule */

/** @typedef {(warning: Warning | WarningObject | string, file: string, source?: string) => boolean} WarningsFilter */

/**
* @typedef {Object} BasePluginOptions
* @property {Rules} [test]
* @property {Rules} [include]
* @property {Rules} [exclude]
* @property {Rule} [test]
* @property {Rule} [include]
* @property {Rule} [exclude]
* @property {WarningsFilter} [warningsFilter]
* @property {Parallel} [parallel]
*/
10 changes: 4 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -97,7 +97,6 @@ declare namespace CssMinimizerPlugin {
InternalResult,
Parallel,
Rule,
Rules,
WarningsFilter,
BasePluginOptions,
MinimizerWorker,
@@ -112,9 +111,9 @@ type CssNanoOptionsExtended = CssNanoOptions & {
};
type Compiler = import("webpack").Compiler;
type BasePluginOptions = {
test?: Rules | undefined;
include?: Rules | undefined;
exclude?: Rules | undefined;
test?: Rule | undefined;
include?: Rule | undefined;
exclude?: Rule | undefined;
warningsFilter?: WarningsFilter | undefined;
parallel?: Parallel;
};
@@ -214,8 +213,7 @@ type InternalResult = {
errors: Array<Error | ErrorObject | string>;
};
type Parallel = undefined | boolean | number;
type Rule = RegExp | string;
type Rules = Rule[] | Rule;
type Rule = string | RegExp | string[] | RegExp[];
type WarningsFilter = (
warning: Warning | WarningObject | string,
file: string,

0 comments on commit a617d49

Please sign in to comment.