Update dependency cssnano to v4.1.10
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
cssnano | resolutions | minor | 4.1.10 | source |
Release Notes
cssnano/cssnano
v4.1.10
4.1.10
Bug Fixes
-
stylehacks
does not throw error on[attr]
selector
v4.1.9
4.1.9
Performance Improvements
-
postcss-colormin
: increase performance -
postcss-discard-comments
: increase performance -
postcss-merge-rules
increase performance -
postcss-minify-params
increase performance -
postcss-minify-selectors
: increase performance -
postcss-normalize-display-values
: increase performance -
postcss-normalize-positions
: increase performance -
postcss-normalize-repeat-style
: increase performance -
postcss-normalize-string
: increase performance -
postcss-normalize-timing-functions
: increase performance -
postcss-normalize-whitespace
: increase performance -
postcss-ordered-values
: increase performance -
postcss-reduce-transforms
: increase performance -
postcss-svgo
: increase performance
Bug Fixes
-
postcss-merge-longhand
handle uppercase properties and values -
postcss-minify-gradients
handle uppercase properties and values -
postcss-minify-params
do break@page
rules -
postcss-reduce-idents
handle uppercase at-rules -
postcss-reduce-initial
now usesrepeat
as initial value formask-repeat
-
postcss-reduce-initial
handle uppercase value when you convert to initial -
stylehacks
handle uppercase properties and values
v4.1.8
4.1.8
Performance Improvements
- initial loading time (
require('cssnano')
).
Bug Fixes
-
postcss-merge-longhand
correctly merging border properties with custom properties.
v4.1.7
4.1.7
Bug Fixes
- republish
cssnano
due broken release.
v4.1.6
4.1.6
Bug Fixes
-
postcss-merge-longhand
doesn't throw error when merge a border property.
v4.1.5
4.1.5
Bug Fixes
-
cssnano
now allow to toggling of plugins in presets using boolean configuration option. -
postcss-merge-longhand
doesn't merge properties withunset
. -
postcss-merge-longhand
correctly merge borders with custom properties. -
postcss-merge-longhand
doesn't merge redundant values if declarations are of different importance.
Other changes
-
postcss-calc
updated to7.0.0
version.
v4.1.4
4.1.4 - 2018-09-27
Other changes
-
css-declaration-sorter
now use PostCSS 7 -
postcss-calc
now use PostCSS 7
v4.1.3
4.1.3 - 2018-09-25
Other changes
-
postcss-minify-font-values
now use PostCSS 7 -
postcss-discard-duplicates
now use PostCSS 7
v4.1.2
4.1.2 - 2018-09-25
-
postcss-svgo
now handle DataURI with uppercasedata
value (DATA:image/*;...
)
v4.1.1
4.1.1 - 2018-09-25
Bug Fixes
-
css-declaration-sorter
was removed from default prevent. -
postcss-normalize-timing-functions
doesn't lowercased property anymore. -
postcss-normalize-positons
now handles uppercase properties. -
postcss-normalize-url
now is case-insensitive. -
postcss-merge-idents
now is case-insensitive. -
postcss-merge-rules
now is case-insensitive. -
postcss-minify-selectors
now is case-insensitive. -
postcss-minify-font-values
now is case-insensitive. -
postcss-normalize-unicode
now has correct dependencies. -
postcss-minify-params
now has correct dependencies.
Other changes
-
cssnano-preset-advanced
use Autoprefixer 9. - use PostCSS 7 in all plugins.
v4.1.0
Bug Fixes
-
postcss-merge-longhand
doesn't mangle borders.
Features
-
postcss-ordered-values
support ordering animation values.
v4.0.5
Bug Fixes
-
postcss-merge-longhand
now correctly merges borders with custom properties. -
postcss-merge-longhand
doesn't throw error in someborder
merge cases.
v4.0.4
Bug Fixes
-
postcss-merge-longhand
don't drop border-width with custom property from border shorthand. -
postcss-merge-longhand
don't convertcurrentColor
. -
postcss-merge-longhand
don't merge border properties if there is a shorthand property between them.
v4.0.3
Bug Fixes
-
postcss-merge-longhand
incorrect minification ofborder
(border-*
) declarations.
v4.0.2
Bug Fixes
-
postcss-merge-longhand
don't explode declarations with custom properties. -
postcss-colormin
now better transform tohsl
.
v4.0.1
Bug Fixes
-
browserslist
version incompatibility withcaniuse-api
v4.0.0
Breaking changes
- We dropped support for Node 4, now requiring at least Node 6.9.
Features
- postcss-merge-longhand now optimises
border-spacing
property.
Bug Fixes
- postcss-normalize-unicode doesn't change
U
to lowercase forIE
<= 11 andEdge
<= 15. - postcss-merge-longhand works with custom properties (Example
a { border-style:dotted; border-style:var(--variable) }
) correctly. - postcss-ordered-values handle
border
property with invalid border width value correctly. - postcss-merge-rules handles
:-ms-input-placeholder
and::-ms-input-placeholder
selectors correctly. - postcss-merge-rules works with
all
property correctly. - postcss-normalize-url don't handle empty
url
function. - postcss-normalize-url handles
data
and*-extension://
URLs correctly. - postcss-colormin adds whitespace after minified value and before function.
- postcss-minify-font-values better escapes font name.
- postcss-minify-params doesn't remove
all
for IE.
v4.0.0-rc.2
Features
- Includes the new release candidate for postcss-selector-parser 3.
- Refactors comments tokenizing in postcss-discard-comments to be more memory efficient.
- Adds css-declaration-sorter for improved gzip compression efficiencies (thanks to @Siilwyn).
- postcss-svgo now optimises base 64 encoded SVG where possible (thanks to @evilebottnawi).
- stylehacks now supports
@media \0screen\,screen\9 {}
hacks (thanks to @evilebottnawi).
Bug Fixes
- Fixed handling of package.json configuration (thanks to @andyjansson).
- Fixed
resolveConfig
for aRoot
node without asource
property (thanks to @darthmaim). - Improved radial gradient handling (thanks to @pigcan).
- stylehacks now properly accounts for vendor prefixes (thanks to @evilebottnawi).
v4.0.0-rc.1
Bug Fixes
- cssnano: Resolved an issue with external configuration which wasn't being loaded correctly (thanks to @andyjansson).
- postcss-minify-params: Resolved an issue with cssnano's handling of the
@value
syntax from css-modules to better integrate with css-loader.
v4.0.0-rc.0
Since version 4 has been in-development for some time, we thought it would be best to release an alpha version so that we could catch any issues before the actual release.
Breaking changes
-
cssnano & its plugins have been upgraded to PostCSS 6.x. Please ensure that for optimal results that you use cssnano with a PostCSS 6 compatible runner & that any other plugins are also using PostCSS 6.
-
cssnano is now essentially a preset loader and does not contain any built-in transforms (instead, it delegates to
cssnano-preset-default
by default). Due to the new architecture, it's not possible to exclude asynchronous transforms and run it synchronously, unlike in 3.x. Any transforms that were "core" modules have now been extracted out into separate packages. -
Because of the new preset system, cssnano will not accept any transformation options; these must be set in the preset. The option names remain mostly the same, except some cases where "core" modules have been extracted out:
-
core
is nownormalizeWhitespace
. -
reduceBackgroundRepeat
is nownormalizeRepeatStyle
. -
reduceDisplayValues
is nownormalizeDisplayValues
. -
reducePositions
is nownormalizePositions
. -
reduceTimingFunctions
is nownormalizeTimingFunctions
. -
styleCache
is nowrawCache
.
When excluding transforms, we now have an
exclude
option (in 3.x this was nameddisable
). Similarly, thesafe
option was removed; the defaults are now much less aggressive. -
-
By default, the following transforms are no longer applied to any input CSS. You may see an increased output file size as a result:
autoprefixer
postcss-discard-unused
postcss-merge-idents
postcss-reduce-idents
postcss-zindex
Note that you can load
cssnano-preset-advanced
instead which does contain these transforms. -
We no longer detect previous plugins to silently exclude our own, and now consider this to be an anti-pattern. So
postcss-filter-plugins
was removed. -
We also changed some options to make the default transforms safer:
-
postcss-minify-font-values
:removeAfterKeyword
set tofalse
fromtrue
. -
postcss-normalize-url
:stripWWW
set tofalse
fromtrue
.
-
-
cssnano now does not accept the
sourcemap
shortcut option; please refer to the PostCSS documentation on sourcemaps. Thequickstart.js
file included with this module will give you a good starting point. -
cssnano.process
is no longer a custom method; we use the built-inprocess
method exposed on each PostCSS plugin. The new signature iscssnano.process(css, postcssOpts, cssnanoOpts)
, in 3.x it wascssnano.process(css, cssnanoOpts)
. -
We dropped support for Node 0.12, now requiring at least Node 4.
-
Finally, cssnano is now developed as a monorepo, due to the fact that some transforms have a lot of grey area/overlap. Due to this, some modules have been refactored to delegate responsibility to others, such that duplication of functionality is minimized. For instance,
postcss-colormin
will no longer compress whitespace or compress numbers, as those are handled bypostcss-normalize-whitespace
&postcss-convert-values
respectively.
Other changes
- Due to the PostCSS 6 upgrade, we have been able to reduce usage of custom
methods, such as node
clone
behaviour. In cases where some utility has been used by several plugins it is now a separate package, reducing cssnano's footprint. - cssnano now makes much better use of Browserslist.
postcss-colormin
&postcss-reduce-initial
were enhanced with different behaviour depending on which browsers are passed. And now, the footprint for thecaniuse-db
dependency is much smaller thanks tocaniuse-lite
- 7 times smaller as of this writing. This makes cssnano much faster to download from npm!
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.