Skip to content

Releases: ChristianMurphy/postcss-combine-duplicated-selectors

Postcss 6

03 Sep 17:16
Compare
Choose a tag to compare

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

06 Aug 20:58
Compare
Choose a tag to compare

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

22 Jul 16:07
Compare
Choose a tag to compare

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

06 Jul 02:30
Compare
Choose a tag to compare

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

26 Apr 16:27
Compare
Choose a tag to compare

Generalizes handling of @media to support @keyframes, @viewport, and other @ rules in CSS.

Media Query Support

03 Dec 04:07
Compare
Choose a tag to compare

@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

06 Aug 19:08
Compare
Choose a tag to compare

More internal normalizations are now handled by postcss-selector-parser

Command Line Interface

08 Jul 02:05
Compare
Choose a tag to compare

plugin can now be used with postcss-cli.

Validate Examples

02 Jul 23:56
Compare
Choose a tag to compare

Example Javascript in README is now checked against linter.

Native Javascript 6

02 Jul 23:11
Compare
Choose a tag to compare

Drops support for Node.js 0.12
Allowing more code to be run natively, and less to be transformed by babel.