cssnano 4.1.3 → 4.1.7

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 CHANGED
@@ -1,13 +1,47 @@
1
+ # 4.1.7
2
+
3
+ ## Bug Fixes
4
+
5
+ * republish `cssnano` due broken release.
6
+
7
+ # 4.1.6
8
+
9
+ ## Bug Fixes
10
+
11
+ * `postcss-merge-longhand` doesn't throw error when merge a border property.
12
+
13
+ # 4.1.5
14
+
15
+ ## Bug Fixes
16
+
17
+ * `cssnano` now allow to toggling of plugins in presets using boolean configuration option.
18
+ * `postcss-merge-longhand` doesn't merge properties with `unset`.
19
+ * `postcss-merge-longhand` correctly merge borders with custom properties.
20
+ * `postcss-merge-longhand` doesn't merge redundant values if declarations are of different importance.
21
+
22
+ ## Other changes
23
+
24
+ * `postcss-calc` updated to `7.0.0` version.
25
+
26
+ # 4.1.4
27
+
28
+ ## Other changes
29
+
30
+ * `css-declaration-sorter` now use PostCSS 7.
31
+ * `postcss-calc` now use PostCSS 7.
32
+
1
33
  # 4.1.3
2
34
 
3
35
  ## Other changes
4
36
 
5
- * `postcss-minify-font-values` now use PostCSS 7
6
- * `postcss-discard-duplicates` now use PostCSS 7
37
+ * `postcss-minify-font-values` now use PostCSS 7.
38
+ * `postcss-discard-duplicates` now use PostCSS 7.
7
39
 
8
40
  # 4.1.2
9
41
 
10
- * `postcss-svgo` now handle DataURI with uppercase `data` value (`DATA:image/*;...`)
42
+ ## Bug Fixes
43
+
44
+ * `postcss-svgo` now handle DataURI with uppercase `data` value (`DATA:image/*;...`).
11
45
 
12
46
  # 4.1.1
13
47
 
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ const cssnano = 'cssnano';
31
31
  function initializePlugin(plugin, css, result) {
32
32
  if (Array.isArray(plugin)) {
33
33
  const [processor, opts] = plugin;
34
- if (typeof opts === 'undefined' || typeof opts === 'object' && !opts.exclude) {
34
+ if (typeof opts === 'undefined' || typeof opts === 'object' && !opts.exclude || typeof opts === 'boolean' && opts === true) {
35
35
  return Promise.resolve(processor(opts)(css, result));
36
36
  }
37
37
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cssnano",
3
- "version": "4.1.3",
3
+ "version": "4.1.7",
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.1",
23
+ "cssnano-preset-default": "^4.0.5",
24
24
  "is-resolvable": "^1.0.0",
25
25
  "postcss": "^7.0.0"
26
26
  },
@@ -30,8 +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.0",
34
- "ncp": "^2.0.0",
33
+ "cssnano-preset-advanced": "^4.0.2",
35
34
  "postcss-font-magician": "^2.0.0",
36
35
  "webpack": "^2.0.0",
37
36
  "webpack-bundle-size-analyzer": "^2.0.0"