Comparing version 3.0.1 to 3.0.2
{ | ||
"packageManager": "yarn@2.4.3", | ||
"name": "svgo", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Nodejs-based tool for optimizing SVG vector graphics files", | ||
@@ -118,3 +118,3 @@ "license": "MIT", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@types/css-tree": "^1.0.7", | ||
"@types/css-tree": "^2.0.0", | ||
"@types/csso": "^5.0.0", | ||
@@ -135,2 +135,2 @@ "@types/jest": "^29.1.1", | ||
} | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import type * as csso from 'csso'; | ||
import type { | ||
@@ -87,13 +86,36 @@ Plugin as PluginDef, | ||
}; | ||
minifyStyles: csso.MinifyOptions & | ||
Omit<csso.CompressOptions, 'usage'> & { | ||
usage?: | ||
| boolean | ||
| { | ||
force?: boolean; | ||
ids?: boolean; | ||
classes?: boolean; | ||
tags?: boolean; | ||
}; | ||
}; | ||
minifyStyles: { | ||
/** | ||
* Disable or enable a structure optimisations. | ||
* @default true | ||
*/ | ||
restructure?: boolean | undefined; | ||
/** | ||
* Enables merging of @media rules with the same media query by splitted by other rules. | ||
* The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk. | ||
* @default false | ||
*/ | ||
forceMediaMerge?: boolean | undefined; | ||
/** | ||
* Specify what comments to leave: | ||
* - 'exclamation' or true – leave all exclamation comments | ||
* - 'first-exclamation' – remove every comment except first one | ||
* - false – remove all comments | ||
* @default true | ||
*/ | ||
comments?: string | boolean | undefined; | ||
/** | ||
* Advanced optimizations | ||
*/ | ||
usage?: | ||
| boolean | ||
| { | ||
force?: boolean; | ||
ids?: boolean; | ||
classes?: boolean; | ||
tags?: boolean; | ||
}; | ||
}; | ||
moveElemsAttrsToGroup: void; | ||
@@ -100,0 +122,0 @@ moveGroupAttrsToElems: void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1008248
14670
7