PostCSS Nested is a PostCSS plugin that unwraps nested CSS rules to match Sass-like syntax. It helps transform nested selectors into flattened CSS, including support for options like bubbling certain at-rules (such as @media) and unwrapping specific at-rules.
Project status
- Actively maintained: Yes, the most recent upstream push and this source’s latest updates are on 2026-07-29, indicating current development activity.
- Update cadence: A cluster of activity appears around late July 2026 (notably 8.0.0), but there is a long gap before that (previous updates were in 2024, including 7.0.2 in 2024-11).
AI summary generated
Recent updates
8.0.1
Release 8.0.1 is a patch release for postcss-nested. The release notes only mention fixing the Node.js `DEP0151` warning.
8.0.0
Release 8.0.0 switches postcss-nested to ESM, adds npm provenance, and drops support for Node.js 18 and 20. The code diff confirms the ESM migration by converting CommonJS exports to an ESM default export, including TypeScript declaration updates.
BreakingSecurityFeatures7.0.2
Release 7.0.2 only claims one change: fixing a nested selector regression. The code diff shows the fix is implemented by refactoring the internal selector/comment “break out” logic and adding new test coverage around attached comments.
7.0.1
Release 7.0.1 claims to fix a RegExp-related issue involving nested comments. The code change in index.js adjusts the comment unwrapping logic used during selector/comment relocation, and it adds test coverage for comments containing RegExp-special characters.
7.0.0
postcss-nested 7.0.0 updates the plugin logic around moving comments when unwrapping nested rules, making the decision process more selective. It also raises the minimum supported Node.js version and modernizes the project tooling and CI.
Breaking6.2.0
Release 6.2.0 adds support for the CSS `@starting-style` feature specifically in bubbling at-rules. This extends how the tool handles newer CSS behavior related to transitions and initial styling.
Features