Releases: ChristianMurphy/postcss-combine-duplicated-selectors
Postcss 6
This release removes uses of deprecated postcss 5 methods. (#94 thanks to @XhmikosR)
📓 The new postcss 6 API's no longer guarantee that spacing format will be preserved.
📔 spacing format will no longer be considered breaking as part of the sematic versioning of this package.
Conventional Commits and Commitizen
Project now follows the conventional commits standard for commit messages and offers commitizen as a way to generate standard commits in a easy to use command line interface npm run cz
.
Documentation has been updated to link to other standards which project adheres to.
Vendored At Rule Support
At rules with different vendor prefixes will not be combined. #85
E.G. the following will remain unchanged.
@-webkit-keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
Property Combination Support
Duplicated properties can optionally be combined. (#76 thanks to @aldebaran798)
When option is enabled
postcss([require('postcss-combine-duplicated-selectors')({removeDuplicatedProperties: true})])
The following css
.a {
height: 10px;
background: orange;
background: rgba(255, 165, 0, 0.5);
}
will combine into
.a {
height: 10px;
background: rgba(255, 165, 0, 0.5);
}
General At Rule Support
Generalizes handling of @media
to support @keyframes
, @viewport
, and other @
rules in CSS.
Media Query Support
@media
selectors are now processed separately from global selectors. (#6 thanks to @kristoferjoseph)
Meaning
.example {
color: blue;
}
.example {
background: green;
}
@media print {
.example {
color: red;
}
.example {
background: yellow;
}
}
will correctly reduce to
.example {
color: blue;
background: green;
}
@media print {
.example {
color: red;
background: yellow;
}
}
Selector Parser Cleanup
More internal normalizations are now handled by postcss-selector-parser
Command Line Interface
plugin can now be used with postcss-cli.
Validate Examples
Example Javascript in README is now checked against linter.
Native Javascript 6
Drops support for Node.js 0.12
Allowing more code to be run natively, and less to be transformed by babel.