Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postcss/postcss-nested
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6.0.0
Choose a base ref
...
head repository: postcss/postcss-nested
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6.0.1
Choose a head ref
  • 7 commits
  • 6 files changed
  • 1 contributor

Commits on Feb 16, 2023

  1. Remove dublicate plugin

    ai committed Feb 16, 2023
    Copy the full SHA
    0302ee4 View commit details
  2. Add Node.js 19 to CI

    ai committed Feb 16, 2023
    Copy the full SHA
    851afa0 View commit details
  3. Update dependencies

    ai committed Feb 16, 2023
    Copy the full SHA
    0bec2f5 View commit details
  4. Copy the full SHA
    a5a8b49 View commit details

Commits on Feb 17, 2023

  1. Update note about postcss-nesting

    ai committed Feb 17, 2023
    Copy the full SHA
    07b4427 View commit details

Commits on Feb 19, 2023

  1. Add @container to bubbled at-rules

    ai committed Feb 19, 2023
    Copy the full SHA
    6e3b93c View commit details
  2. Release 6.1 version

    ai committed Feb 19, 2023
    Copy the full SHA
    69c2eba View commit details
Showing with 298 additions and 250 deletions.
  1. +2 −1 .github/workflows/test.yml
  2. +3 −0 CHANGELOG.md
  3. +2 −6 README.md
  4. +4 −1 index.js
  5. +10 −10 package.json
  6. +277 −232 pnpm-lock.yaml
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 19
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
@@ -31,6 +31,7 @@ jobs:
strategy:
matrix:
node-version:
- 18
- 16
- 14
name: Node.js ${{ matrix.node-version }} Quick
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 6.1
* Added `@container` to bubbling at-rules.

## 6.0
* Added `@layer` to bubbling at-rules (by Már Örlygsson).
* Added moving all preceding comments with rule (by Már Örlygsson).
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
title="Philosopher’s stone, logo of PostCSS"
src="https://postcss.org/logo-leftp.svg">

[PostCSS] plugin to unwrap nested rules like how Sass does it.
[PostCSS] plugin to unwrap nested rules closer to Sass syntax.

```css
.phone {
@@ -59,25 +59,21 @@ html {

Related plugins:

* Use [`postcss-atroot`] for `@at-root` at-rule to move nested child
to the CSS root.
* Use [`postcss-current-selector`] **after** this plugin if you want
to use current selector in properties or variables values.
* Use [`postcss-nested-ancestors`] **before** this plugin if you want
to reference any ancestor element directly in your selectors with `^&`.

Alternatives:

* See also [`postcss-nesting`], which implements [CSSWG draft]
(requires the `&` and introduces `@nest`).
* See also [`postcss-nesting`], which implements [CSSWG draft].
* [`postcss-nested-props`] for nested properties like `font-size`.

<a href="https://evilmartians.com/?utm_source=postcss-nested">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
alt="Sponsored by Evil Martians" width="236" height="54">
</a>

[`postcss-atroot`]: https://github.com/OEvgeny/postcss-atroot
[`postcss-current-selector`]: https://github.com/komlev/postcss-current-selector
[`postcss-nested-ancestors`]: https://github.com/toomuchdesign/postcss-nested-ancestors
[`postcss-nested-props`]: https://github.com/jedmao/postcss-nested-props
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -268,7 +268,10 @@ function normalizeRootRule(rule) {
const hasRootRule = Symbol('hasRootRule')

module.exports = (opts = {}) => {
let bubble = atruleNames(['media', 'supports', 'layer'], opts.bubble)
let bubble = atruleNames(
['media', 'supports', 'layer', 'container'],
opts.bubble
)
let atruleChilds = createFnAtruleChilds(bubble)
let unwrap = atruleNames(
[
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-nested",
"version": "6.0.0",
"version": "6.0.1",
"description": "PostCSS plugin to unwrap nested rules like how Sass does it",
"keywords": [
"postcss",
@@ -27,19 +27,19 @@
"postcss": "^8.2.14"
},
"dependencies": {
"postcss-selector-parser": "^6.0.10"
"postcss-selector-parser": "^6.0.11"
},
"devDependencies": {
"@logux/eslint-config": "^47.2.0",
"c8": "^7.12.0",
"clean-publish": "^4.0.1",
"eslint": "^8.24.0",
"@logux/eslint-config": "^48.0.0",
"c8": "^7.13.0",
"clean-publish": "^4.1.1",
"eslint": "^8.34.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.3.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.0.1",
"postcss": "^8.4.17",
"eslint-plugin-promise": "^6.1.1",
"postcss": "^8.4.21",
"uvu": "^0.5.6"
},
"prettier": {
509 changes: 277 additions & 232 deletions pnpm-lock.yaml

Large diffs are not rendered by default.