Comparing 7.1.5...7.1.7 · postcss/postcss-selector-parser · GitHub
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-selector-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7.1.5
Choose a base ref
...
head repository: postcss/postcss-selector-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7.1.7
Choose a head ref
  • 10 commits
  • 15 files changed
  • 7 contributors

Commits on Sep 3, 2026

  1. Configuration menu
    Copy the full SHA
    62b1917 View commit details
    Browse the repository at this point in the history
  2. 7.1.6

    MoOx committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    4eb3468 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2026

  1. chore(deps-dev): bump source-map-js from 1.2.1 to 1.2.2 (#347)

    Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2.
    - [Release notes](https://github.com/7rulnik/source-map-js/releases)
    - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
    - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2)
    
    ---
    updated-dependencies:
    - dependency-name: source-map-js
      dependency-version: 1.2.2
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    15c2b45 View commit details
    Browse the repository at this point in the history
  2. fix: lossless mode drops whitespace when a selector ends empty (#337)

    `space()` parks leading whitespace on `this.spaces` for the next node to claim,
    and `newNode` is its only consumer. A selector that ends before any node is
    created therefore loses it:
    
        :not(a, )  ->  :not(a,)
        :not( )    ->  :not()
        a,         ->  a,
    
    Two conditions route whitespace there: the previous token is a comma or an
    opening parenthesis, or the selector so far holds nothing but comments. The
    second is why `:not( /*c*/ )` also loses its trailing space.
    
    Pending whitespace is now flushed wherever a selector can close: at a comma, at
    a pseudo's closing parenthesis, and at end of input. It attaches to the last
    node's `spaces.after` when there is one, otherwise to an empty string node,
    matching what `parseWhitespaceEquivalentTokens` already does.
    
    Lossy output is unchanged. Across 480 generated selectors: 240 newly
    round-trip, no regressions, and `lossless: false` is byte-identical to before.
    
    Fixes #298
    theRizwan authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    8f10b8d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8b2d16d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ba353c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    80ab254 View commit details
    Browse the repository at this point in the history
  6. fix: keep whitespace around the namespace separator in attribute sele…

    …ctors (#339)
    
    The lookahead in `attribute()` required `|` to be the immediately next token,
    so `[ foo | bar ]` stringified as `[ foo  ]` and `[foo |bar]` as `[foobar ]`.
    It now skips spaces, keeping the whitespace in `raws.namespace` /
    `raws.attribute`.
    dkryaklin authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    d5122b0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e8dc65f View commit details
    Browse the repository at this point in the history
  8. 7.1.7

    MoOx committed Oct 19, 2026
    Configuration menu
    Copy the full SHA
    154c2b0 View commit details
    Browse the repository at this point in the history
Loading