postcss-minify-selectors
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,5 @@ | ||
# 1.4.1 | ||
* Fixes incorrect deduplication of pseudo selector rules. | ||
# 1.4.0 | ||
@@ -2,0 +6,0 @@ |
@@ -76,3 +76,3 @@ 'use strict'; | ||
} | ||
if (selector.type === 'selector' && selector.type !== 'pseudo') { | ||
if (selector.type === 'selector' && selector.parent.type !== 'pseudo') { | ||
if (!~uniques.indexOf(String(selector))) { | ||
@@ -85,6 +85,6 @@ uniques.push(String(selector)); | ||
}); | ||
uniques = []; | ||
selectors.eachPseudo(function (pseudo) { | ||
uniques = []; | ||
pseudo.eachInside(function (selector) { | ||
if (selector.type === 'selector' && selector.type !== 'pseudo') { | ||
if (selector.type === 'selector') { | ||
if (!~uniques.indexOf(String(selector))) { | ||
@@ -91,0 +91,0 @@ uniques.push(String(selector)); |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Minify selectors with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7760
0