postcss-nesting
Advanced tools
Comparing version 7.0.0 to 7.0.1
# Changes to PostCSS Nesting | ||
### 7.0.1 (July 29, 2018) | ||
- Fixed: Non-breaking issue with rules being unnecessarily split | ||
### 7.0.0 (September 17, 2018) | ||
@@ -4,0 +8,0 @@ |
@@ -39,4 +39,12 @@ 'use strict'; | ||
node.selectors = mergeSelectors(parent.selectors, node.selectors); // conditionally cleanup an empty parent rule | ||
node.selectors = mergeSelectors(parent.selectors, node.selectors); // merge similar rules back together | ||
// eslint-disable-next-line no-extra-parens | ||
const areSameRule = node.type === 'rule' && parent.type === 'rule' && node.selector === parent.selector || node.type === 'atrule' && parent.type === 'atrule' && node.params === parent.params; | ||
if (areSameRule) { | ||
node.append(...parent.nodes); | ||
} // conditionally cleanup an empty parent rule | ||
cleanupParent(parent); | ||
@@ -43,0 +51,0 @@ } |
{ | ||
"name": "postcss-nesting", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Nest style rules inside each other", | ||
@@ -5,0 +5,0 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", |
@@ -31,4 +31,6 @@ # PostCSS Nesting [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss] | ||
**NOTICE**: In v7.0.0 nesting at-rules like `@media` will no longer work, as | ||
they are not part of the nesting proposal. | ||
**NOTICE**: In a future version of this project, nesting at-rules like `@media` | ||
may be deprecated, as they are not part of the nesting proposal. In a comment, | ||
a CSSWG member expressed interest in handling nested `@media` while handling | ||
selector nesting. So deprecating nested at-rules has been temporarily delayed. | ||
@@ -76,4 +78,4 @@ ## Usage | ||
[CSS Nesting]: http://tabatkins.github.io/specs/css-nesting/ | ||
[CSS Nesting]: https://drafts.csswg.org/css-nesting-1/ | ||
[PostCSS]: https://github.com/postcss/postcss | ||
[PostCSS Nesting]: https://github.com/jonathantneal/postcss-nesting |
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
18826
97
80