You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

643 lines
22 KiB

4 years ago
  1. # 4.1.10
  2. ## Bug Fixes
  3. * `stylehacks` does not throw error on `[attr]` selector
  4. # 4.1.9
  5. ## Performance Improvements
  6. * `postcss-colormin`: increase performance
  7. * `postcss-discard-comments`: increase performance
  8. * `postcss-merge-rules` increase performance
  9. * `postcss-minify-params` increase performance
  10. * `postcss-minify-selectors`: increase performance
  11. * `postcss-normalize-display-values`: increase performance
  12. * `postcss-normalize-positions`: increase performance
  13. * `postcss-normalize-repeat-style`: increase performance
  14. * `postcss-normalize-string`: increase performance
  15. * `postcss-normalize-timing-functions`: increase performance
  16. * `postcss-normalize-whitespace`: increase performance
  17. * `postcss-ordered-values`: increase performance
  18. * `postcss-reduce-transforms`: increase performance
  19. * `postcss-svgo`: increase performance
  20. ## Bug Fixes
  21. * `postcss-merge-longhand` handle uppercase properties and values
  22. * `postcss-minify-gradients` handle uppercase properties and values
  23. * `postcss-minify-params` do break `@page` rules
  24. * `postcss-reduce-idents` handle uppercase at-rules
  25. * `postcss-reduce-initial` now uses `repeat` as initial value for `mask-repeat`
  26. * `postcss-reduce-initial` handle uppercase value when you convert to initial
  27. * `stylehacks` handle uppercase properties and values
  28. # 4.1.8
  29. ## Performance Improvements
  30. * initial loading time (`require('cssnano')`).
  31. ## Bug Fixes
  32. * `postcss-merge-longhand` correctly merging border properties with custom properties.
  33. # 4.1.7
  34. ## Bug Fixes
  35. * republish `cssnano` due broken release.
  36. # 4.1.6
  37. ## Bug Fixes
  38. * `postcss-merge-longhand` doesn't throw error when merge a border property.
  39. # 4.1.5
  40. ## Bug Fixes
  41. * `cssnano` now allow to toggling of plugins in presets using boolean configuration option.
  42. * `postcss-merge-longhand` doesn't merge properties with `unset`.
  43. * `postcss-merge-longhand` correctly merge borders with custom properties.
  44. * `postcss-merge-longhand` doesn't merge redundant values if declarations are of different importance.
  45. ## Other changes
  46. * `postcss-calc` updated to `7.0.0` version.
  47. # 4.1.4
  48. ## Other changes
  49. * `css-declaration-sorter` now use PostCSS 7.
  50. * `postcss-calc` now use PostCSS 7.
  51. # 4.1.3
  52. ## Other changes
  53. * `postcss-minify-font-values` now use PostCSS 7.
  54. * `postcss-discard-duplicates` now use PostCSS 7.
  55. # 4.1.2
  56. ## Bug Fixes
  57. * `postcss-svgo` now handle DataURI with uppercase `data` value (`DATA:image/*;...`).
  58. # 4.1.1
  59. ## Bug Fixes
  60. * `css-declaration-sorter` was removed from default prevent.
  61. * `postcss-normalize-timing-functions` doesn't lowercased property anymore.
  62. * `postcss-normalize-positons` now handles uppercase properties.
  63. * `postcss-normalize-url` now is case-insensitive.
  64. * `postcss-merge-idents` now is case-insensitive.
  65. * `postcss-merge-rules` now is case-insensitive.
  66. * `postcss-minify-selectors` now is case-insensitive.
  67. * `postcss-minify-font-values` now is case-insensitive.
  68. * `postcss-normalize-unicode` now has correct dependencies.
  69. * `postcss-minify-params` now has correct dependencies.
  70. ## Other changes
  71. * `cssnano-preset-advanced` use Autoprefixer 9.
  72. * use PostCSS 7 in all plugins.
  73. # 4.1.0
  74. ## Bug Fixes
  75. * `postcss-merge-longhand` doesn't mangle borders.
  76. ## Features
  77. * `postcss-ordered-values` support ordering animation values.
  78. # 4.0.5
  79. ## Bug Fixes
  80. * `postcss-merge-longhand` now correctly merges borders with custom properties.
  81. * `postcss-merge-longhand` doesn't throw error in some `border` merge cases.
  82. # 4.0.4
  83. ## Bug Fixes
  84. * `postcss-merge-longhand` doesn't drop border-width with custom property from border shorthand.
  85. * `postcss-merge-longhand` doesn't convert `currentColor`.
  86. * `postcss-merge-longhand` doesn't merge border properties if there is a shorthand property between them.
  87. # 4.0.3
  88. ## Bug Fixes
  89. * `postcss-merge-longhand` incorrect minification of `border` (`border-*`) declarations.
  90. # 4.0.2
  91. ## Bug Fixes
  92. * `postcss-merge-longhand` don't explode declarations with custom properties.
  93. * `postcss-colormin` now better transform to `hsl`.
  94. # 4.0.1
  95. ## Bug Fixes
  96. * `browserslist` version incompatibility with `caniuse-api`.
  97. # 4.0.0
  98. ## Breaking changes
  99. * We dropped support for Node 4, now requiring at least Node 6.9.
  100. ## Features
  101. * postcss-merge-longhand now optimises `border-spacing` property.
  102. ## Bug Fixes
  103. * postcss-normalize-unicode doesn't change `U` to lowercase for `IE` <= 11 and `Edge` <= 15.
  104. * postcss-merge-longhand works with custom properties (Example `a { border-style:dotted; border-style:var(--variable) }`) correctly.
  105. * postcss-ordered-values handle `border` property with invalid border width value correctly.
  106. * postcss-merge-rules handles `:-ms-input-placeholder` and `::-ms-input-placeholder` selectors correctly.
  107. * postcss-merge-rules works with `all` property correctly.
  108. * postcss-normalize-url don't handle empty `url` function.
  109. * postcss-normalize-url handles `data` and `*-extension://` URLs correctly.
  110. * postcss-colormin adds whitespace after minified value and before function.
  111. * postcss-minify-font-values better escapes font name.
  112. * postcss-minify-params doesn't remove `all` for IE.
  113. ## Other changes
  114. * update all dependencies to latest.
  115. * better handles uppercase selectors/properties/values/units.
  116. # 4.0.0-rc.2
  117. ## Features
  118. * Includes the new release candidate for postcss-selector-parser 3.
  119. * Refactors comments tokenizing in postcss-discard-comments to be more
  120. memory efficient.
  121. * Adds css-declaration-sorter for improved gzip compression efficiencies
  122. (thanks to @Siilwyn).
  123. * postcss-svgo now optimises base 64 encoded SVG where possible
  124. (thanks to @evilebottnawi).
  125. * stylehacks now supports `@media \0screen\,screen\9 {}` hacks
  126. (thanks to @evilebottnawi).
  127. ## Bug Fixes
  128. * Fixed handling of package.json configuration (thanks to @andyjansson).
  129. * Fixed `resolveConfig` for a `Root` node without a `source` property
  130. (thanks to @darthmaim).
  131. * Improved radial gradient handling (thanks to @pigcan).
  132. * stylehacks now properly accounts for vendor prefixes
  133. (thanks to @evilebottnawi).
  134. # 4.0.0-rc.1
  135. ## Bug Fixes
  136. * cssnano: Resolved an issue with external configuration which wasn't
  137. being loaded correctly (thanks to @andyjansson).
  138. * postcss-minify-params: Resolved an issue with cssnano's handling of the
  139. `@value` syntax from css-modules to better integrate with css-loader.
  140. # 4.0.0-rc.0
  141. Since version 4 has been in-development for some time, we thought it would be
  142. best to release an alpha version so that we could catch any issues before
  143. the actual release.
  144. ## Breaking changes
  145. * cssnano & its plugins have been upgraded to PostCSS 6.x. Please ensure that
  146. for optimal results that you use cssnano with a PostCSS 6 compatible runner
  147. & that any other plugins are also using PostCSS 6.
  148. * cssnano is now essentially a preset loader and does not contain any built-in
  149. transforms (instead, it delegates to `cssnano-preset-default` by default).
  150. Due to the new architecture, it's not possible to exclude asynchronous
  151. transforms and run it synchronously, unlike in 3.x. Any transforms that
  152. were "core" modules have now been extracted out into separate packages.
  153. * Because of the new preset system, cssnano will not accept any transformation
  154. options; these must be set in the preset. The option names remain mostly the
  155. same, except some cases where "core" modules have been extracted out:
  156. * `core` is now `normalizeWhitespace`.
  157. * `reduceBackgroundRepeat` is now `normalizeRepeatStyle`.
  158. * `reduceDisplayValues` is now `normalizeDisplayValues`.
  159. * `reducePositions` is now `normalizePositions`.
  160. * `reduceTimingFunctions` is now `normalizeTimingFunctions`.
  161. * `styleCache` is now `rawCache`.
  162. When excluding transforms, we now have an `exclude` option (in 3.x this was
  163. named `disable`). Similarly, the `safe` option was removed; the defaults
  164. are now much less aggressive.
  165. * By default, the following transforms are no longer applied to any input CSS.
  166. You may see an increased output file size as a result:
  167. * `autoprefixer`
  168. * `postcss-discard-unused`
  169. * `postcss-merge-idents`
  170. * `postcss-reduce-idents`
  171. * `postcss-zindex`
  172. Note that you can load `cssnano-preset-advanced` instead which *does* contain
  173. these transforms.
  174. * We no longer detect previous plugins to silently exclude our own, and now
  175. consider this to be an anti-pattern. So `postcss-filter-plugins` was removed.
  176. * We also changed some options to make the default transforms safer:
  177. * `postcss-minify-font-values`: `removeAfterKeyword` set to `false` from `true`.
  178. * `postcss-normalize-url`: `stripWWW` set to `false` from `true`.
  179. * cssnano now does not accept the `sourcemap` shortcut option; please refer
  180. to the PostCSS documentation on sourcemaps. The `quickstart.js` file included
  181. with this module will give you a good starting point.
  182. * `cssnano.process` is no longer a custom method; we use the built-in `process`
  183. method exposed on each PostCSS plugin. The new signature is
  184. `cssnano.process(css, postcssOpts, cssnanoOpts)`, in 3.x it was
  185. `cssnano.process(css, cssnanoOpts)`.
  186. * We dropped support for Node 0.12, now requiring at least Node 4.
  187. * Finally, cssnano is now developed as a monorepo, due to the fact that some
  188. transforms have a lot of grey area/overlap. Due to this, some modules have
  189. been refactored to delegate responsibility to others, such that duplication
  190. of functionality is minimized. For instance, `postcss-colormin` will no
  191. longer compress whitespace or compress numbers, as those are handled by
  192. `postcss-normalize-whitespace` & `postcss-convert-values` respectively.
  193. ## Other changes
  194. * Due to the PostCSS 6 upgrade, we have been able to reduce usage of custom
  195. methods, such as node `clone` behaviour. In cases where some utility
  196. has been used by several plugins it is now a separate package, reducing
  197. cssnano's footprint.
  198. * cssnano now makes much better use of Browserslist. `postcss-colormin` &
  199. `postcss-reduce-initial` were enhanced with different behaviour depending
  200. on which browsers are passed. And now, the footprint for the `caniuse-db`
  201. dependency is much smaller thanks to `caniuse-lite` - 7 times smaller as
  202. of this writing. This makes cssnano much faster to download from npm!
  203. # 3.10.0
  204. * cssnano will no longer `console.warn` any messages when using deprecated
  205. options; these are now sent to PostCSS. You will be able to see them if you
  206. use a PostCSS runner with built-in messages support, or alternately by
  207. loading `postcss-reporter` or `postcss-browser-reporter` in your plugins list.
  208. * Prepares support for `grid` identifier reduction by adding it to the list
  209. of optimisations turned off when `options.safe` is set to `true`.
  210. * Adds support for normalizing `unicode-range` descriptors. Values will
  211. be converted when the code matches `0` & `f` in the same place on both sides
  212. of the range. So, `u+2000-2fff` can be converted to `u+2???`, but
  213. `u+2100-2fff` will be left as it is.
  214. # 3.9.1
  215. * Resolves an integration issue with `v3.9.0`, where `undefined` values
  216. would attempt to be parsed.
  217. # 3.9.0
  218. * Adds a new option to normalize wrapping quotes for strings & joining
  219. multiple-line strings into a single line. This optimisation can potentially
  220. reduce the final gzipped size of your CSS file.
  221. # 3.8.2
  222. * Resolves an issue where `display: list-item inline flow` would be normalized
  223. to `inline list-item` rather than `inline-list-item` (thanks to @mattbasta).
  224. # 3.8.1
  225. * Adds a quick start file for easy integration with Runkit. Try cssnano online
  226. at https://runkit.com/npm/cssnano.
  227. # 3.8.0
  228. * Adds support for normalizing multiple values for the `display` property. For
  229. example `block flow` can be simplified to `block`.
  230. # 3.7.7
  231. * Further improves CSS mixin handling; semicolons will no longer be stripped
  232. from *rules* as well as declarations.
  233. # 3.7.6
  234. * Resolves an issue where the semicolon was being incorrectly stripped
  235. from CSS mixins.
  236. # 3.7.5
  237. * Resolves an issue where the `safe` flag was not being persisted across
  238. multiple files (thanks to @techmatt101).
  239. # 3.7.4
  240. * Improves performance of the reducePositions transform by testing
  241. against `hasOwnProperty` instead of using an array of object keys.
  242. * Removes the redundant `indexes-of` dependency.
  243. # 3.7.3
  244. * Unpins postcss-filter-plugins from `2.0.0` as a fix has landed in the new
  245. version of uniqid.
  246. # 3.7.2
  247. * Temporarily pins postcss-filter-plugins to version `2.0.0` in order to
  248. mitigate an issue with uniqid `3.0.0`.
  249. # 3.7.1
  250. * Enabling safe mode now turns off both postcss-merge-idents &
  251. postcss-normalize-url's `stripWWW` option.
  252. # 3.7.0
  253. * Added: Reduce `background-repeat` definitions; works with both this property
  254. & the `background` shorthand, and aims to compress the extended two value
  255. syntax into the single value syntax.
  256. * Added: Reduce `initial` values for properties when the *actual* initial value
  257. is shorter; for example, `min-width: initial` becomes `min-width: 0`.
  258. # 3.6.2
  259. * Fixed an issue where cssnano would crash on `steps(1)`.
  260. # 3.6.1
  261. * Fixed an issue where cssnano would crash on `steps` functions with a
  262. single argument.
  263. # 3.6.0
  264. * Added `postcss-discard-overridden` to safely discard overridden rules with
  265. the same identifier (thanks to @Justineo).
  266. * Added: Reduce animation/transition timing functions. Detects `cubic-bezier`
  267. functions that are equivalent to the timing keywords and compresses, as well
  268. as normalizing the `steps` timing function.
  269. * Added the `perspective-origin` property to the list of supported properties
  270. transformed by the `reduce-positions` transform.
  271. # 3.5.2
  272. * Resolves an issue where the 3 or 4 value syntax for `background-position`
  273. were being incorrectly converted.
  274. # 3.5.1
  275. * Improves checking for `background-position` values in the `background`
  276. shorthand property.
  277. # 3.5.0
  278. * Adds a new optimisation path which can minimise keyword values for
  279. `background-position` and the `background` shorthand.
  280. * Tweaks to performance in the `core` module, now performs less AST passes.
  281. * Now compiled with Babel 6.
  282. # 3.4.0
  283. * Adds a new optimisation path which can minimise gradient parameters
  284. automatically.
  285. # 3.3.2
  286. * Fixes an issue where using `options.safe` threw an error when cssnano was
  287. not used as part of a PostCSS instance, but standalone (such as in modules
  288. like gulp-cssnano). cssnano now renames `safe` internally to `isSafe`.
  289. # 3.3.1
  290. * Unpins postcss-colormin from `2.1.2`, as the `2.1.3` & `2.1.4` patches had
  291. optimization regressions that are now resolved in `2.1.5`.
  292. # 3.3.0
  293. * Updated modules to use postcss-value-parser version 3 (thanks to @TrySound).
  294. * Now converts between transform functions with postcss-reduce-transforms.
  295. e.g. `translate3d(0, 0, 0)` becomes `translateZ(0)`.
  296. # 3.2.0
  297. * cssnano no longer converts `outline: none` to `outline: 0`, as there are
  298. some cases where the values are not equivalent (thanks to @TrySound).
  299. * cssnano no longer converts for example `16px` to `1pc` *by default*. Length
  300. optimisations can be turned on via `{convertValues: {length: true}}`.
  301. * Improved minimization of css functions (thanks to @TrySound).
  302. # 3.1.0
  303. * This release swaps postcss-single-charset for postcss-normalize-charset,
  304. which can detect encoding to determine whether a charset is necessary.
  305. Optionally, you can set the `add` option to `true` to prepend a UTF-8
  306. charset to the output automatically (thanks to @TrySound).
  307. * A `safe` option was added, which disables more aggressive optimisations, as
  308. a convenient preset configuration (thanks to @TrySound).
  309. * Added an option to convert from `deg` to `turn` & vice versa, & improved
  310. minification performance in functions (thanks to @TrySound).
  311. # 3.0.3
  312. * Fixes an issue where cssnano was removing spaces around forward slashes in
  313. string literals (thanks to @TrySound).
  314. # 3.0.2
  315. * Fixes an issue where cssnano was removing spaces around forward slashes in
  316. calc functions.
  317. # 3.0.1
  318. * Replaced css-list & balanced-match with postcss-value-parser, reducing the
  319. module's overall size (thanks to @TrySound).
  320. # 3.0.0
  321. * All cssnano plugins and cssnano itself have migrated to PostCSS 5.x. Please
  322. make sure that when using the 3.x releases that you use a 5.x compatible
  323. PostCSS runner.
  324. * cssnano will now compress inline SVG through SVGO. Because of this change,
  325. interfacing with cssnano must now be done through an asynchronous API. The
  326. main `process` method has the same signature as a PostCSS processor instance.
  327. * The old options such as `merge` & `fonts` that were deprecated in
  328. release `2.5.0` were removed. The new architecture allows you to specify any
  329. module name to disable it.
  330. * postcss-minify-selectors' at-rule compression was extracted out into
  331. postcss-minify-params (thanks to @TrySound).
  332. * Overall performance of the module has improved dramatically, thanks to work
  333. by @TrySound and input from the community.
  334. * Improved selector merging/deduplication in certain use cases.
  335. * cssnano no longer compresses hex colours in filter properties, to better
  336. support old versions of Internet Explorer (thanks to @faddee).
  337. * cssnano will not merge properties together that have an `inherit` keyword.
  338. * postcss-minify-font-weight & postcss-font-family were consolidated into
  339. postcss-minify-font-values. Using the old options will print deprecation
  340. warnings (thanks to @TrySound).
  341. * The cssnano CLI was extracted into a separate module, so that dependent
  342. modules such as gulp-cssnano don't download unnecessary extras.
  343. # 2.6.1
  344. * Improved performance of the core module `functionOptimiser`.
  345. # 2.6.0
  346. * Adds a new optimisation which re-orders properties that accept values in
  347. an arbitrary order. This can lead to improved merging behaviour in certain
  348. cases.
  349. # 2.5.0
  350. * Adds support for disabling modules of the user's choosing, with new option
  351. names. The old options (such as `merge` & `fonts`) will be removed in `3.0`.
  352. # 2.4.0
  353. * postcss-minify-selectors was extended to add support for conversion of
  354. `::before` to `:before`; this release removes the dedicated
  355. postcss-pseudoelements module.
  356. # 2.3.0
  357. * Consolidated postcss-minify-trbl & two integrated modules into
  358. postcss-merge-longhand.
  359. # 2.2.0
  360. * Replaced integrated plugin filter with postcss-filter-plugins.
  361. * Improved rule merging logic.
  362. * Improved performance across the board by reducing AST iterations where it
  363. was possible to do so.
  364. * cssnano will now perform better whitespace compression when used with other
  365. PostCSS plugins.
  366. # 2.1.1
  367. * Fixes an issue where options were not passed to normalize-url.
  368. # 2.1.0
  369. * Allow `postcss-font-family` to be disabled.
  370. # 2.0.3
  371. * cssnano can now be consumed with the parentheses-less method in PostCSS; e.g.
  372. `postcss([ cssnano ])`.
  373. * Fixes an issue where 'Din' was being picked up by the logic as a numeric
  374. value, causing the full font name to be incorrectly rearranged.
  375. # 2.0.2
  376. * Extract trbl value reducing into a separate module.
  377. * Refactor core longhand optimiser to not rely on trbl cache.
  378. * Adds support for `ch` units; previously they were removed.
  379. * Fixes parsing of some selector hacks.
  380. * Fixes an issue where embedded base 64 data was being converted as if it were
  381. a URL.
  382. # 2.0.1
  383. * Add `postcss-plugin` keyword to package.json.
  384. * Wraps all core processors with the PostCSS 4.1 plugin API.
  385. # 2.0.0
  386. * Adds removal of outdated vendor prefixes based on browser support.
  387. * Addresses an issue where relative path separators were converted to
  388. backslashes on Windows.
  389. * cssnano will now detect previous plugins and silently disable them when the
  390. functionality overlaps. This is to enable faster interoperation with cssnext.
  391. * cssnano now exports as a PostCSS plugin. The simple interface is exposed
  392. at `cssnano.process(css, opts)` instead of `cssnano(css, opts)`.
  393. * Improved URL detection when using two or more in the same declaration.
  394. * node 0.10 is no longer officially supported.
  395. # 1.4.3
  396. * Fixes incorrect minification of `background:none` to `background:0 0`.
  397. # 1.4.2
  398. * Fixes an issue with nested URLs inside `url()` functions.
  399. # 1.4.1
  400. * Addresses an issue where whitespace removal after a CSS function would cause
  401. rendering issues in Internet Explorer.
  402. # 1.4.0
  403. * Adds support for removal of unused `@keyframes` and `@counter-style` at-rules.
  404. * comments: adds support for user-directed removal of comments, with the
  405. `remove` option (thanks to @dmitrykiselyov).
  406. * comments: `removeAllButFirst` now operates on each CSS tree, rather than the
  407. first one passed to cssnano.
  408. # 1.3.3
  409. * Fixes incorrect minification of `border:none` to `border:0 0`.
  410. # 1.3.2
  411. * Improved selector minifying logic, leading to better compression of attribute
  412. selectors.
  413. * Improved comment discarding logic.
  414. # 1.3.1
  415. * Fixes crash on undefined `decl.before` from prior AST.
  416. # 1.3.0
  417. * Added support for bundling cssnano using webpack (thanks to @MoOx).
  418. # 1.2.1
  419. * Fixed a bug where a CSS function keyword inside its value would throw
  420. an error.
  421. # 1.2.0
  422. * Better support for merging properties without the existance of a shorthand
  423. override.
  424. * Can now 'merge forward' adjacent rules as well as the previous 'merge behind'
  425. behaviour, leading to better compression.
  426. * Selector re-ordering now happens last in the chain of plugins, to help clean
  427. up merged selectors.
  428. # 1.1.0
  429. * Now can merge identifiers such as `@keyframes` and `@counter-style` if they
  430. have duplicated properties but are named differently.
  431. * Fixes an issue where duplicated keyframes with the same name would cause
  432. an infinite loop.
  433. # 1.0.2
  434. * Improve module loading logic (thanks to @tunnckoCore).
  435. * Improve minification of numeric values, with better support for `rem`,
  436. trailing zeroes and slash/comma separated values
  437. (thanks to @TrySound & @tunnckoCore).
  438. * Fixed an issue where `-webkit-tap-highlight-color` values were being
  439. incorrectly transformed to `transparent`. This is not supported in Safari.
  440. * Added support for viewport units (thanks to @TrySound).
  441. * Add MIT license file.
  442. # 1.0.1
  443. * Add repository/author links to package.json.
  444. # 1.0.0
  445. * Initial release.