cssnano 5.0.4 → 5.0.5

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/CHANGELOG.md +0 -818
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cssnano",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "A modular minifier, built on top of the PostCSS ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "cosmiconfig": "^7.0.0",
28
- "cssnano-preset-default": "^5.1.1",
28
+ "cssnano-preset-default": "^5.1.2",
29
29
  "is-resolvable": "^1.1.0"
30
30
  },
31
31
  "homepage": "https://github.com/cssnano/cssnano",
@@ -48,11 +48,11 @@
48
48
  "node": "^10 || ^12 || >=14.0"
49
49
  },
50
50
  "devDependencies": {
51
- "autoprefixer": "^10.0.2",
51
+ "autoprefixer": "^10.2.0",
52
52
  "postcss": "^8.2.15"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "postcss": "^8.2.15"
56
56
  },
57
- "gitHead": "08ec284f116d1ce2605deb55dfe17ffe2835b38a"
57
+ "gitHead": "9b3c54fd94f3e2bdb503d1e21f171d7fe02f33ca"
58
58
  }
package/CHANGELOG.md DELETED
@@ -1,818 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [5.0.4] (2021-05-21)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **postcss-colormin:** Strict color parsing ([#1122](https://github.com/cssnano/cssnano/issues/1122)) ([32771da](https://github.com/cssnano/cssnano/commit/32771da46ee94f07a6907ec47701189f90ad2ec0))
12
- * **postcss-colormin:** fix ERR_PACKAGE_PATH_NOT_EXPORTED ([#1110](https://github.com/cssnano/cssnano/issues/1110)) ([8a31ca38796](https://github.com/cssnano/cssnano/commit/8a31ca38796e12e6fe52620cf8a545cb058fe295))
13
-
14
- ## [5.0.3](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0...cssnano@5.0.3) (2021-05-19)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **cssnano:** many bug fixes in dependent packages. Most notably fixed buggy reordering of border declarations and improved color value minification. See the changelogs for the single presets and plugins for details.
20
-
21
-
22
-
23
-
24
-
25
- ## [5.0.2](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0...cssnano@5.0.2) (2021-04-26)
26
-
27
-
28
- ### Bug Fixes
29
-
30
- * **cssnano:** replace opencollective with funding field. ([#1047](https://github.com/cssnano/cssnano/issues/1047)) ([3dee7c5](https://github.com/cssnano/cssnano/commit/3dee7c553350e43ad0750a9478a63cf897e5510f)), closes [#1046](https://github.com/cssnano/cssnano/issues/1046)
31
-
32
-
33
-
34
-
35
-
36
- ## [5.0.1](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0...cssnano@5.0.1) (2021-04-13)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * **cssnano:** replace opencollective with funding field. ([#1047](https://github.com/cssnano/cssnano/issues/1047)) ([3dee7c5](https://github.com/cssnano/cssnano/commit/3dee7c553350e43ad0750a9478a63cf897e5510f)), closes [#1046](https://github.com/cssnano/cssnano/issues/1046)
42
-
43
-
44
-
45
-
46
-
47
- # [5.0.0](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.2...cssnano@5.0.0) (2021-04-06)
48
-
49
- **Note:** Version bump only for package cssnano
50
-
51
-
52
-
53
-
54
-
55
- # [5.0.0-rc.2](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.1...cssnano@5.0.0-rc.2) (2021-03-15)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * update SVGO ([aa07cfd](https://github.com/cssnano/cssnano/commit/aa07cfd62c82ed4b1e87219eea8d0ed99635e4ca))
61
-
62
-
63
-
64
-
65
-
66
- # [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.0...cssnano@5.0.0-rc.1) (2021-03-04)
67
-
68
- **Note:** Version bump only for package cssnano
69
-
70
-
71
-
72
-
73
-
74
- # 5.0.0-rc.0 (2021-02-19)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * **postcss-ordered-values:** columns transform returning string instead of the AST ([#928](https://github.com/cssnano/cssnano/issues/928)) ([a5d6d36](https://github.com/cssnano/cssnano/commit/a5d6d364e0815ecb198a95de301f3554ccce4f78))
80
- * **unique-selector:** removed sorting and involving selector comments ([#857](https://github.com/cssnano/cssnano/issues/857)) ([3fa875d](https://github.com/cssnano/cssnano/commit/3fa875dade2138e1a531dce1f8b79814cb39dbc9))
81
-
82
-
83
- ### chore
84
-
85
- * minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
86
-
87
-
88
- ### Features
89
-
90
- * css declaration sorter ([#855](https://github.com/cssnano/cssnano/issues/855)) ([613d562](https://github.com/cssnano/cssnano/commit/613d562ae79e7e169c80b523b7c2c9b0093bc1d8))
91
- * migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
92
- * **postcss-reduce-transforms:** improve optimizations ([#745](https://github.com/cssnano/cssnano/issues/745)) ([b0f0d89](https://github.com/cssnano/cssnano/commit/b0f0d892316d7b77e8033a6dc8d67745043a5072))
93
-
94
-
95
- ### BREAKING CHANGES
96
-
97
- * minimum supported `postcss` version is `8.2.1`
98
- * minimum require version of node is 10.13
99
-
100
-
101
-
102
- ## 4.1.10 (2019-02-14)
103
-
104
-
105
-
106
- ## 4.1.9 (2019-02-12)
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * initial loading time ([#654](https://github.com/cssnano/cssnano/issues/654)) ([de2ef07](https://github.com/cssnano/cssnano/commit/de2ef074a0c7da94c22a5b0336e6c4ca2a94f1b5))
112
-
113
-
114
-
115
- ## 4.1.7 (2018-10-22)
116
-
117
-
118
-
119
- ## 4.1.6 (2018-10-22)
120
-
121
-
122
-
123
- ## 4.1.5 (2018-10-17)
124
-
125
-
126
- ### Bug Fixes
127
-
128
- * toggling of plugins in presets using boolean configuration option ([#622](https://github.com/cssnano/cssnano/issues/622)) ([15076f1](https://github.com/cssnano/cssnano/commit/15076f145118507e010722cc9ed548ffe1b91f8c))
129
-
130
-
131
-
132
- ## 4.1.4 (2018-09-27)
133
-
134
-
135
-
136
- ## 4.1.3 (2018-09-25)
137
-
138
-
139
-
140
- ## 4.1.2 (2018-09-25)
141
-
142
-
143
-
144
- ## 4.1.1 (2018-09-24)
145
-
146
-
147
- ### Bug Fixes
148
-
149
- * parse error with iPhone X feature ([#614](https://github.com/cssnano/cssnano/issues/614)) ([a3704a7](https://github.com/cssnano/cssnano/commit/a3704a76a631b1cd907ab0c0a8637a622769676d))
150
-
151
-
152
-
153
- # 4.1.0 (2018-08-24)
154
-
155
-
156
-
157
- ## 4.0.5 (2018-07-30)
158
-
159
-
160
-
161
- ## 4.0.4 (2018-07-25)
162
-
163
-
164
-
165
- ## 4.0.3 (2018-07-18)
166
-
167
-
168
- ### Bug Fixes
169
-
170
- * **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)
171
-
172
-
173
-
174
-
175
-
176
- # 4.1.10
177
-
178
- ## Bug Fixes
179
-
180
- * `stylehacks` does not throw error on `[attr]` selector
181
-
182
- # 4.1.9
183
-
184
- ## Performance Improvements
185
-
186
- * `postcss-colormin`: increase performance
187
- * `postcss-discard-comments`: increase performance
188
- * `postcss-merge-rules` increase performance
189
- * `postcss-minify-params` increase performance
190
- * `postcss-minify-selectors`: increase performance
191
- * `postcss-normalize-display-values`: increase performance
192
- * `postcss-normalize-positions`: increase performance
193
- * `postcss-normalize-repeat-style`: increase performance
194
- * `postcss-normalize-string`: increase performance
195
- * `postcss-normalize-timing-functions`: increase performance
196
- * `postcss-normalize-whitespace`: increase performance
197
- * `postcss-ordered-values`: increase performance
198
- * `postcss-reduce-transforms`: increase performance
199
- * `postcss-svgo`: increase performance
200
-
201
- ## Bug Fixes
202
-
203
- * `postcss-merge-longhand` handle uppercase properties and values
204
- * `postcss-minify-gradients` handle uppercase properties and values
205
- * `postcss-minify-params` do break `@page` rules
206
- * `postcss-reduce-idents` handle uppercase at-rules
207
- * `postcss-reduce-initial` now uses `repeat` as initial value for `mask-repeat`
208
- * `postcss-reduce-initial` handle uppercase value when you convert to initial
209
- * `stylehacks` handle uppercase properties and values
210
-
211
- # 4.1.8
212
-
213
- ## Performance Improvements
214
-
215
- * initial loading time (`require('cssnano')`).
216
-
217
- ## Bug Fixes
218
-
219
- * `postcss-merge-longhand` correctly merging border properties with custom properties.
220
-
221
- # 4.1.7
222
-
223
- ## Bug Fixes
224
-
225
- * republish `cssnano` due broken release.
226
-
227
- # 4.1.6
228
-
229
- ## Bug Fixes
230
-
231
- * `postcss-merge-longhand` doesn't throw error when merge a border property.
232
-
233
- # 4.1.5
234
-
235
- ## Bug Fixes
236
-
237
- * `cssnano` now allow to toggling of plugins in presets using boolean configuration option.
238
- * `postcss-merge-longhand` doesn't merge properties with `unset`.
239
- * `postcss-merge-longhand` correctly merge borders with custom properties.
240
- * `postcss-merge-longhand` doesn't merge redundant values if declarations are of different importance.
241
-
242
- ## Other changes
243
-
244
- * `postcss-calc` updated to `7.0.0` version.
245
-
246
- # 4.1.4
247
-
248
- ## Other changes
249
-
250
- * `css-declaration-sorter` now use PostCSS 7.
251
- * `postcss-calc` now use PostCSS 7.
252
-
253
- # 4.1.3
254
-
255
- ## Other changes
256
-
257
- * `postcss-minify-font-values` now use PostCSS 7.
258
- * `postcss-discard-duplicates` now use PostCSS 7.
259
-
260
- # 4.1.2
261
-
262
- ## Bug Fixes
263
-
264
- * `postcss-svgo` now handle DataURI with uppercase `data` value (`DATA:image/*;...`).
265
-
266
- # 4.1.1
267
-
268
- ## Bug Fixes
269
-
270
- * `css-declaration-sorter` was removed from default prevent.
271
- * `postcss-normalize-timing-functions` doesn't lowercased property anymore.
272
- * `postcss-normalize-positons` now handles uppercase properties.
273
- * `postcss-normalize-url` now is case-insensitive.
274
- * `postcss-merge-idents` now is case-insensitive.
275
- * `postcss-merge-rules` now is case-insensitive.
276
- * `postcss-minify-selectors` now is case-insensitive.
277
- * `postcss-minify-font-values` now is case-insensitive.
278
- * `postcss-normalize-unicode` now has correct dependencies.
279
- * `postcss-minify-params` now has correct dependencies.
280
-
281
- ## Other changes
282
-
283
- * `cssnano-preset-advanced` use Autoprefixer 9.
284
- * use PostCSS 7 in all plugins.
285
-
286
- # 4.1.0
287
-
288
- ## Bug Fixes
289
-
290
- * `postcss-merge-longhand` doesn't mangle borders.
291
-
292
- ## Features
293
-
294
- * `postcss-ordered-values` support ordering animation values.
295
-
296
- # 4.0.5
297
-
298
- ## Bug Fixes
299
-
300
- * `postcss-merge-longhand` now correctly merges borders with custom properties.
301
- * `postcss-merge-longhand` doesn't throw error in some `border` merge cases.
302
-
303
- # 4.0.4
304
-
305
- ## Bug Fixes
306
-
307
- * `postcss-merge-longhand` doesn't drop border-width with custom property from border shorthand.
308
- * `postcss-merge-longhand` doesn't convert `currentColor`.
309
- * `postcss-merge-longhand` doesn't merge border properties if there is a shorthand property between them.
310
-
311
- # 4.0.3
312
-
313
- ## Bug Fixes
314
-
315
- * `postcss-merge-longhand` incorrect minification of `border` (`border-*`) declarations.
316
-
317
- # 4.0.2
318
-
319
- ## Bug Fixes
320
-
321
- * `postcss-merge-longhand` don't explode declarations with custom properties.
322
- * `postcss-colormin` now better transform to `hsl`.
323
-
324
- # 4.0.1
325
-
326
- ## Bug Fixes
327
-
328
- * `browserslist` version incompatibility with `caniuse-api`.
329
-
330
- # 4.0.0
331
-
332
- ## Breaking changes
333
-
334
- * We dropped support for Node 4, now requiring at least Node 6.9.
335
-
336
- ## Features
337
-
338
- * postcss-merge-longhand now optimises `border-spacing` property.
339
-
340
- ## Bug Fixes
341
-
342
- * postcss-normalize-unicode doesn't change `U` to lowercase for `IE` <= 11 and `Edge` <= 15.
343
- * postcss-merge-longhand works with custom properties (Example `a { border-style:dotted; border-style:var(--variable) }`) correctly.
344
- * postcss-ordered-values handle `border` property with invalid border width value correctly.
345
- * postcss-merge-rules handles `:-ms-input-placeholder` and `::-ms-input-placeholder` selectors correctly.
346
- * postcss-merge-rules works with `all` property correctly.
347
- * postcss-normalize-url don't handle empty `url` function.
348
- * postcss-normalize-url handles `data` and `*-extension://` URLs correctly.
349
- * postcss-colormin adds whitespace after minified value and before function.
350
- * postcss-minify-font-values better escapes font name.
351
- * postcss-minify-params doesn't remove `all` for IE.
352
-
353
- ## Other changes
354
-
355
- * update all dependencies to latest.
356
- * better handles uppercase selectors/properties/values/units.
357
-
358
- # 4.0.0-rc.2
359
-
360
- ## Features
361
-
362
- * Includes the new release candidate for postcss-selector-parser 3.
363
- * Refactors comments tokenizing in postcss-discard-comments to be more
364
- memory efficient.
365
- * Adds css-declaration-sorter for improved gzip compression efficiencies
366
- (thanks to @Siilwyn).
367
- * postcss-svgo now optimises base 64 encoded SVG where possible
368
- (thanks to @evilebottnawi).
369
- * stylehacks now supports `@media \0screen\,screen\9 {}` hacks
370
- (thanks to @evilebottnawi).
371
-
372
- ## Bug Fixes
373
-
374
- * Fixed handling of package.json configuration (thanks to @andyjansson).
375
- * Fixed `resolveConfig` for a `Root` node without a `source` property
376
- (thanks to @darthmaim).
377
- * Improved radial gradient handling (thanks to @pigcan).
378
- * stylehacks now properly accounts for vendor prefixes
379
- (thanks to @evilebottnawi).
380
-
381
- # 4.0.0-rc.1
382
-
383
- ## Bug Fixes
384
-
385
- * cssnano: Resolved an issue with external configuration which wasn't
386
- being loaded correctly (thanks to @andyjansson).
387
- * postcss-minify-params: Resolved an issue with cssnano's handling of the
388
- `@value` syntax from css-modules to better integrate with css-loader.
389
-
390
- # 4.0.0-rc.0
391
-
392
- Since version 4 has been in-development for some time, we thought it would be
393
- best to release an alpha version so that we could catch any issues before
394
- the actual release.
395
-
396
- ## Breaking changes
397
-
398
- * cssnano & its plugins have been upgraded to PostCSS 6.x. Please ensure that
399
- for optimal results that you use cssnano with a PostCSS 6 compatible runner
400
- & that any other plugins are also using PostCSS 6.
401
- * cssnano is now essentially a preset loader and does not contain any built-in
402
- transforms (instead, it delegates to `cssnano-preset-default` by default).
403
- Due to the new architecture, it's not possible to exclude asynchronous
404
- transforms and run it synchronously, unlike in 3.x. Any transforms that
405
- were "core" modules have now been extracted out into separate packages.
406
- * Because of the new preset system, cssnano will not accept any transformation
407
- options; these must be set in the preset. The option names remain mostly the
408
- same, except some cases where "core" modules have been extracted out:
409
-
410
- * `core` is now `normalizeWhitespace`.
411
- * `reduceBackgroundRepeat` is now `normalizeRepeatStyle`.
412
- * `reduceDisplayValues` is now `normalizeDisplayValues`.
413
- * `reducePositions` is now `normalizePositions`.
414
- * `reduceTimingFunctions` is now `normalizeTimingFunctions`.
415
- * `styleCache` is now `rawCache`.
416
-
417
- When excluding transforms, we now have an `exclude` option (in 3.x this was
418
- named `disable`). Similarly, the `safe` option was removed; the defaults
419
- are now much less aggressive.
420
- * By default, the following transforms are no longer applied to any input CSS.
421
- You may see an increased output file size as a result:
422
-
423
- * `autoprefixer`
424
- * `postcss-discard-unused`
425
- * `postcss-merge-idents`
426
- * `postcss-reduce-idents`
427
- * `postcss-zindex`
428
-
429
- Note that you can load `cssnano-preset-advanced` instead which *does* contain
430
- these transforms.
431
- * We no longer detect previous plugins to silently exclude our own, and now
432
- consider this to be an anti-pattern. So `postcss-filter-plugins` was removed.
433
- * We also changed some options to make the default transforms safer:
434
-
435
- * `postcss-minify-font-values`: `removeAfterKeyword` set to `false` from `true`.
436
- * `postcss-normalize-url`: `stripWWW` set to `false` from `true`.
437
-
438
- * cssnano now does not accept the `sourcemap` shortcut option; please refer
439
- to the PostCSS documentation on sourcemaps. The `quickstart.js` file included
440
- with this module will give you a good starting point.
441
- * `cssnano.process` is no longer a custom method; we use the built-in `process`
442
- method exposed on each PostCSS plugin. The new signature is
443
- `cssnano.process(css, postcssOpts, cssnanoOpts)`, in 3.x it was
444
- `cssnano.process(css, cssnanoOpts)`.
445
- * We dropped support for Node 0.12, now requiring at least Node 4.
446
- * Finally, cssnano is now developed as a monorepo, due to the fact that some
447
- transforms have a lot of grey area/overlap. Due to this, some modules have
448
- been refactored to delegate responsibility to others, such that duplication
449
- of functionality is minimized. For instance, `postcss-colormin` will no
450
- longer compress whitespace or compress numbers, as those are handled by
451
- `postcss-normalize-whitespace` & `postcss-convert-values` respectively.
452
-
453
- ## Other changes
454
-
455
- * Due to the PostCSS 6 upgrade, we have been able to reduce usage of custom
456
- methods, such as node `clone` behaviour. In cases where some utility
457
- has been used by several plugins it is now a separate package, reducing
458
- cssnano's footprint.
459
- * cssnano now makes much better use of Browserslist. `postcss-colormin` &
460
- `postcss-reduce-initial` were enhanced with different behaviour depending
461
- on which browsers are passed. And now, the footprint for the `caniuse-db`
462
- dependency is much smaller thanks to `caniuse-lite` - 7 times smaller as
463
- of this writing. This makes cssnano much faster to download from npm!
464
-
465
- # 3.10.0
466
-
467
- * cssnano will no longer `console.warn` any messages when using deprecated
468
- options; these are now sent to PostCSS. You will be able to see them if you
469
- use a PostCSS runner with built-in messages support, or alternately by
470
- loading `postcss-reporter` or `postcss-browser-reporter` in your plugins list.
471
- * Prepares support for `grid` identifier reduction by adding it to the list
472
- of optimisations turned off when `options.safe` is set to `true`.
473
- * Adds support for normalizing `unicode-range` descriptors. Values will
474
- be converted when the code matches `0` & `f` in the same place on both sides
475
- of the range. So, `u+2000-2fff` can be converted to `u+2???`, but
476
- `u+2100-2fff` will be left as it is.
477
-
478
- # 3.9.1
479
-
480
- * Resolves an integration issue with `v3.9.0`, where `undefined` values
481
- would attempt to be parsed.
482
-
483
- # 3.9.0
484
-
485
- * Adds a new option to normalize wrapping quotes for strings & joining
486
- multiple-line strings into a single line. This optimisation can potentially
487
- reduce the final gzipped size of your CSS file.
488
-
489
- # 3.8.2
490
-
491
- * Resolves an issue where `display: list-item inline flow` would be normalized
492
- to `inline list-item` rather than `inline-list-item` (thanks to @mattbasta).
493
-
494
- # 3.8.1
495
-
496
- * Adds a quick start file for easy integration with Runkit. Try cssnano online
497
- at https://runkit.com/npm/cssnano.
498
-
499
- # 3.8.0
500
-
501
- * Adds support for normalizing multiple values for the `display` property. For
502
- example `block flow` can be simplified to `block`.
503
-
504
- # 3.7.7
505
-
506
- * Further improves CSS mixin handling; semicolons will no longer be stripped
507
- from *rules* as well as declarations.
508
-
509
- # 3.7.6
510
-
511
- * Resolves an issue where the semicolon was being incorrectly stripped
512
- from CSS mixins.
513
-
514
- # 3.7.5
515
-
516
- * Resolves an issue where the `safe` flag was not being persisted across
517
- multiple files (thanks to @techmatt101).
518
-
519
- # 3.7.4
520
-
521
- * Improves performance of the reducePositions transform by testing
522
- against `hasOwnProperty` instead of using an array of object keys.
523
- * Removes the redundant `indexes-of` dependency.
524
-
525
- # 3.7.3
526
-
527
- * Unpins postcss-filter-plugins from `2.0.0` as a fix has landed in the new
528
- version of uniqid.
529
-
530
- # 3.7.2
531
-
532
- * Temporarily pins postcss-filter-plugins to version `2.0.0` in order to
533
- mitigate an issue with uniqid `3.0.0`.
534
-
535
- # 3.7.1
536
-
537
- * Enabling safe mode now turns off both postcss-merge-idents &
538
- postcss-normalize-url's `stripWWW` option.
539
-
540
- # 3.7.0
541
-
542
- * Added: Reduce `background-repeat` definitions; works with both this property
543
- & the `background` shorthand, and aims to compress the extended two value
544
- syntax into the single value syntax.
545
- * Added: Reduce `initial` values for properties when the *actual* initial value
546
- is shorter; for example, `min-width: initial` becomes `min-width: 0`.
547
-
548
- # 3.6.2
549
-
550
- * Fixed an issue where cssnano would crash on `steps(1)`.
551
-
552
- # 3.6.1
553
-
554
- * Fixed an issue where cssnano would crash on `steps` functions with a
555
- single argument.
556
-
557
- # 3.6.0
558
-
559
- * Added `postcss-discard-overridden` to safely discard overridden rules with
560
- the same identifier (thanks to @Justineo).
561
- * Added: Reduce animation/transition timing functions. Detects `cubic-bezier`
562
- functions that are equivalent to the timing keywords and compresses, as well
563
- as normalizing the `steps` timing function.
564
- * Added the `perspective-origin` property to the list of supported properties
565
- transformed by the `reduce-positions` transform.
566
-
567
- # 3.5.2
568
-
569
- * Resolves an issue where the 3 or 4 value syntax for `background-position`
570
- were being incorrectly converted.
571
-
572
- # 3.5.1
573
-
574
- * Improves checking for `background-position` values in the `background`
575
- shorthand property.
576
-
577
- # 3.5.0
578
-
579
- * Adds a new optimisation path which can minimise keyword values for
580
- `background-position` and the `background` shorthand.
581
- * Tweaks to performance in the `core` module, now performs less AST passes.
582
- * Now compiled with Babel 6.
583
-
584
- # 3.4.0
585
-
586
- * Adds a new optimisation path which can minimise gradient parameters
587
- automatically.
588
-
589
- # 3.3.2
590
-
591
- * Fixes an issue where using `options.safe` threw an error when cssnano was
592
- not used as part of a PostCSS instance, but standalone (such as in modules
593
- like gulp-cssnano). cssnano now renames `safe` internally to `isSafe`.
594
-
595
- # 3.3.1
596
-
597
- * Unpins postcss-colormin from `2.1.2`, as the `2.1.3` & `2.1.4` patches had
598
- optimization regressions that are now resolved in `2.1.5`.
599
-
600
- # 3.3.0
601
-
602
- * Updated modules to use postcss-value-parser version 3 (thanks to @TrySound).
603
- * Now converts between transform functions with postcss-reduce-transforms.
604
- e.g. `translate3d(0, 0, 0)` becomes `translateZ(0)`.
605
-
606
- # 3.2.0
607
-
608
- * cssnano no longer converts `outline: none` to `outline: 0`, as there are
609
- some cases where the values are not equivalent (thanks to @TrySound).
610
- * cssnano no longer converts for example `16px` to `1pc` *by default*. Length
611
- optimisations can be turned on via `{convertValues: {length: true}}`.
612
- * Improved minimization of css functions (thanks to @TrySound).
613
-
614
- # 3.1.0
615
-
616
- * This release swaps postcss-single-charset for postcss-normalize-charset,
617
- which can detect encoding to determine whether a charset is necessary.
618
- Optionally, you can set the `add` option to `true` to prepend a UTF-8
619
- charset to the output automatically (thanks to @TrySound).
620
- * A `safe` option was added, which disables more aggressive optimisations, as
621
- a convenient preset configuration (thanks to @TrySound).
622
- * Added an option to convert from `deg` to `turn` & vice versa, & improved
623
- minification performance in functions (thanks to @TrySound).
624
-
625
- # 3.0.3
626
-
627
- * Fixes an issue where cssnano was removing spaces around forward slashes in
628
- string literals (thanks to @TrySound).
629
-
630
- # 3.0.2
631
-
632
- * Fixes an issue where cssnano was removing spaces around forward slashes in
633
- calc functions.
634
-
635
- # 3.0.1
636
-
637
- * Replaced css-list & balanced-match with postcss-value-parser, reducing the
638
- module's overall size (thanks to @TrySound).
639
-
640
- # 3.0.0
641
-
642
- * All cssnano plugins and cssnano itself have migrated to PostCSS 5.x. Please
643
- make sure that when using the 3.x releases that you use a 5.x compatible
644
- PostCSS runner.
645
- * cssnano will now compress inline SVG through SVGO. Because of this change,
646
- interfacing with cssnano must now be done through an asynchronous API. The
647
- main `process` method has the same signature as a PostCSS processor instance.
648
- * The old options such as `merge` & `fonts` that were deprecated in
649
- release `2.5.0` were removed. The new architecture allows you to specify any
650
- module name to disable it.
651
- * postcss-minify-selectors' at-rule compression was extracted out into
652
- postcss-minify-params (thanks to @TrySound).
653
- * Overall performance of the module has improved dramatically, thanks to work
654
- by @TrySound and input from the community.
655
- * Improved selector merging/deduplication in certain use cases.
656
- * cssnano no longer compresses hex colours in filter properties, to better
657
- support old versions of Internet Explorer (thanks to @faddee).
658
- * cssnano will not merge properties together that have an `inherit` keyword.
659
- * postcss-minify-font-weight & postcss-font-family were consolidated into
660
- postcss-minify-font-values. Using the old options will print deprecation
661
- warnings (thanks to @TrySound).
662
- * The cssnano CLI was extracted into a separate module, so that dependent
663
- modules such as gulp-cssnano don't download unnecessary extras.
664
-
665
- # 2.6.1
666
-
667
- * Improved performance of the core module `functionOptimiser`.
668
-
669
- # 2.6.0
670
-
671
- * Adds a new optimisation which re-orders properties that accept values in
672
- an arbitrary order. This can lead to improved merging behaviour in certain
673
- cases.
674
-
675
- # 2.5.0
676
-
677
- * Adds support for disabling modules of the user's choosing, with new option
678
- names. The old options (such as `merge` & `fonts`) will be removed in `3.0`.
679
-
680
- # 2.4.0
681
-
682
- * postcss-minify-selectors was extended to add support for conversion of
683
- `::before` to `:before`; this release removes the dedicated
684
- postcss-pseudoelements module.
685
-
686
- # 2.3.0
687
-
688
- * Consolidated postcss-minify-trbl & two integrated modules into
689
- postcss-merge-longhand.
690
-
691
- # 2.2.0
692
-
693
- * Replaced integrated plugin filter with postcss-filter-plugins.
694
- * Improved rule merging logic.
695
- * Improved performance across the board by reducing AST iterations where it
696
- was possible to do so.
697
- * cssnano will now perform better whitespace compression when used with other
698
- PostCSS plugins.
699
-
700
- # 2.1.1
701
-
702
- * Fixes an issue where options were not passed to normalize-url.
703
-
704
- # 2.1.0
705
-
706
- * Allow `postcss-font-family` to be disabled.
707
-
708
- # 2.0.3
709
-
710
- * cssnano can now be consumed with the parentheses-less method in PostCSS; e.g.
711
- `postcss([ cssnano ])`.
712
- * Fixes an issue where 'Din' was being picked up by the logic as a numeric
713
- value, causing the full font name to be incorrectly rearranged.
714
-
715
- # 2.0.2
716
-
717
- * Extract trbl value reducing into a separate module.
718
- * Refactor core longhand optimiser to not rely on trbl cache.
719
- * Adds support for `ch` units; previously they were removed.
720
- * Fixes parsing of some selector hacks.
721
- * Fixes an issue where embedded base 64 data was being converted as if it were
722
- a URL.
723
-
724
- # 2.0.1
725
-
726
- * Add `postcss-plugin` keyword to package.json.
727
- * Wraps all core processors with the PostCSS 4.1 plugin API.
728
-
729
- # 2.0.0
730
-
731
- * Adds removal of outdated vendor prefixes based on browser support.
732
- * Addresses an issue where relative path separators were converted to
733
- backslashes on Windows.
734
- * cssnano will now detect previous plugins and silently disable them when the
735
- functionality overlaps. This is to enable faster interoperation with cssnext.
736
- * cssnano now exports as a PostCSS plugin. The simple interface is exposed
737
- at `cssnano.process(css, opts)` instead of `cssnano(css, opts)`.
738
- * Improved URL detection when using two or more in the same declaration.
739
- * node 0.10 is no longer officially supported.
740
-
741
- # 1.4.3
742
-
743
- * Fixes incorrect minification of `background:none` to `background:0 0`.
744
-
745
- # 1.4.2
746
-
747
- * Fixes an issue with nested URLs inside `url()` functions.
748
-
749
- # 1.4.1
750
-
751
- * Addresses an issue where whitespace removal after a CSS function would cause
752
- rendering issues in Internet Explorer.
753
-
754
- # 1.4.0
755
-
756
- * Adds support for removal of unused `@keyframes` and `@counter-style` at-rules.
757
- * comments: adds support for user-directed removal of comments, with the
758
- `remove` option (thanks to @dmitrykiselyov).
759
- * comments: `removeAllButFirst` now operates on each CSS tree, rather than the
760
- first one passed to cssnano.
761
-
762
- # 1.3.3
763
-
764
- * Fixes incorrect minification of `border:none` to `border:0 0`.
765
-
766
- # 1.3.2
767
-
768
- * Improved selector minifying logic, leading to better compression of attribute
769
- selectors.
770
- * Improved comment discarding logic.
771
-
772
- # 1.3.1
773
-
774
- * Fixes crash on undefined `decl.before` from prior AST.
775
-
776
- # 1.3.0
777
-
778
- * Added support for bundling cssnano using webpack (thanks to @MoOx).
779
-
780
- # 1.2.1
781
-
782
- * Fixed a bug where a CSS function keyword inside its value would throw
783
- an error.
784
-
785
- # 1.2.0
786
-
787
- * Better support for merging properties without the existance of a shorthand
788
- override.
789
- * Can now 'merge forward' adjacent rules as well as the previous 'merge behind'
790
- behaviour, leading to better compression.
791
- * Selector re-ordering now happens last in the chain of plugins, to help clean
792
- up merged selectors.
793
-
794
- # 1.1.0
795
-
796
- * Now can merge identifiers such as `@keyframes` and `@counter-style` if they
797
- have duplicated properties but are named differently.
798
- * Fixes an issue where duplicated keyframes with the same name would cause
799
- an infinite loop.
800
-
801
- # 1.0.2
802
-
803
- * Improve module loading logic (thanks to @tunnckoCore).
804
- * Improve minification of numeric values, with better support for `rem`,
805
- trailing zeroes and slash/comma separated values
806
- (thanks to @TrySound & @tunnckoCore).
807
- * Fixed an issue where `-webkit-tap-highlight-color` values were being
808
- incorrectly transformed to `transparent`. This is not supported in Safari.
809
- * Added support for viewport units (thanks to @TrySound).
810
- * Add MIT license file.
811
-
812
- # 1.0.1
813
-
814
- * Add repository/author links to package.json.
815
-
816
- # 1.0.0
817
-
818
- * Initial release.