Socket
Socket
Sign inDemoInstall

postcss-nesting

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-nesting - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

4

CHANGELOG.md
# 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 @@ }

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc