cssnano 4.1.7 → 4.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/dist/index.js +1 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
# 4.1.11
|
|
2
|
+
|
|
3
|
+
## Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fix [CVE-2021-28092](https://nvd.nist.gov/vuln/detail/CVE-2021-28092)
|
|
6
|
+
|
|
7
|
+
# 4.1.10
|
|
8
|
+
|
|
9
|
+
## Bug Fixes
|
|
10
|
+
|
|
11
|
+
* `stylehacks` does not throw error on `[attr]` selector
|
|
12
|
+
|
|
13
|
+
# 4.1.9
|
|
14
|
+
|
|
15
|
+
## Performance Improvements
|
|
16
|
+
|
|
17
|
+
* `postcss-colormin`: increase performance
|
|
18
|
+
* `postcss-discard-comments`: increase performance
|
|
19
|
+
* `postcss-merge-rules` increase performance
|
|
20
|
+
* `postcss-minify-params` increase performance
|
|
21
|
+
* `postcss-minify-selectors`: increase performance
|
|
22
|
+
* `postcss-normalize-display-values`: increase performance
|
|
23
|
+
* `postcss-normalize-positions`: increase performance
|
|
24
|
+
* `postcss-normalize-repeat-style`: increase performance
|
|
25
|
+
* `postcss-normalize-string`: increase performance
|
|
26
|
+
* `postcss-normalize-timing-functions`: increase performance
|
|
27
|
+
* `postcss-normalize-whitespace`: increase performance
|
|
28
|
+
* `postcss-ordered-values`: increase performance
|
|
29
|
+
* `postcss-reduce-transforms`: increase performance
|
|
30
|
+
* `postcss-svgo`: increase performance
|
|
31
|
+
|
|
32
|
+
## Bug Fixes
|
|
33
|
+
|
|
34
|
+
* `postcss-merge-longhand` handle uppercase properties and values
|
|
35
|
+
* `postcss-minify-gradients` handle uppercase properties and values
|
|
36
|
+
* `postcss-minify-params` do break `@page` rules
|
|
37
|
+
* `postcss-reduce-idents` handle uppercase at-rules
|
|
38
|
+
* `postcss-reduce-initial` now uses `repeat` as initial value for `mask-repeat`
|
|
39
|
+
* `postcss-reduce-initial` handle uppercase value when you convert to initial
|
|
40
|
+
* `stylehacks` handle uppercase properties and values
|
|
41
|
+
|
|
42
|
+
# 4.1.8
|
|
43
|
+
|
|
44
|
+
## Performance Improvements
|
|
45
|
+
|
|
46
|
+
* initial loading time (`require('cssnano')`).
|
|
47
|
+
|
|
48
|
+
## Bug Fixes
|
|
49
|
+
|
|
50
|
+
* `postcss-merge-longhand` correctly merging border properties with custom properties.
|
|
51
|
+
|
|
1
52
|
# 4.1.7
|
|
2
53
|
|
|
3
54
|
## Bug Fixes
|
package/dist/index.js
CHANGED
|
@@ -20,10 +20,6 @@ var _isResolvable = require('is-resolvable');
|
|
|
20
20
|
|
|
21
21
|
var _isResolvable2 = _interopRequireDefault(_isResolvable);
|
|
22
22
|
|
|
23
|
-
var _cssnanoPresetDefault = require('cssnano-preset-default');
|
|
24
|
-
|
|
25
|
-
var _cssnanoPresetDefault2 = _interopRequireDefault(_cssnanoPresetDefault);
|
|
26
|
-
|
|
27
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
24
|
|
|
29
25
|
const cssnano = 'cssnano';
|
|
@@ -64,7 +60,7 @@ function resolvePreset(preset) {
|
|
|
64
60
|
}
|
|
65
61
|
// Provide an alias for the default preset, as it is built-in.
|
|
66
62
|
if (fn === 'default') {
|
|
67
|
-
return Promise.resolve((
|
|
63
|
+
return Promise.resolve(require('cssnano-preset-default')(options).plugins);
|
|
68
64
|
}
|
|
69
65
|
// For non-JS setups; we'll need to invoke the preset ourselves.
|
|
70
66
|
if (typeof fn === 'function') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssnano",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.11",
|
|
4
4
|
"description": "A modular minifier, built on top of the PostCSS ecosystem.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"cosmiconfig": "^5.0.0",
|
|
23
|
-
"cssnano-preset-default": "^4.0.
|
|
23
|
+
"cssnano-preset-default": "^4.0.8",
|
|
24
24
|
"is-resolvable": "^1.0.0",
|
|
25
25
|
"postcss": "^7.0.0"
|
|
26
26
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"babel-core": "^6.0.0",
|
|
31
31
|
"babel-loader": "^7.0.0",
|
|
32
32
|
"cross-env": "^5.0.0",
|
|
33
|
-
"cssnano-preset-advanced": "^4.0.
|
|
33
|
+
"cssnano-preset-advanced": "^4.0.7",
|
|
34
34
|
"postcss-font-magician": "^2.0.0",
|
|
35
35
|
"webpack": "^2.0.0",
|
|
36
36
|
"webpack-bundle-size-analyzer": "^2.0.0"
|