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.4
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.5
Choose a head ref
  • 6 commits
  • 7 files changed
  • 4 contributors

Commits on Aug 5, 2026

  1. chore(deps-dev): bump postcss from 8.5.15 to 8.5.18 (#328)

    Bumps [postcss](https://github.com/postcss/postcss) from 8.5.15 to 8.5.18.
    - [Release notes](https://github.com/postcss/postcss/releases)
    - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
    - [Commits](postcss/postcss@8.5.15...8.5.18)
    
    ---
    updated-dependencies:
    - dependency-name: postcss
      dependency-version: 8.5.18
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 5, 2026
    Configuration menu
    Copy the full SHA
    7e3abb2 View commit details
    Browse the repository at this point in the history
  2. chore(deps-dev): bump postcss from 8.5.18 to 8.5.23 (#331)

    Bumps [postcss](https://github.com/postcss/postcss) from 8.5.18 to 8.5.23.
    - [Release notes](https://github.com/postcss/postcss/releases)
    - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
    - [Commits](postcss/postcss@8.5.18...8.5.23)
    
    ---
    updated-dependencies:
    - dependency-name: postcss
      dependency-version: 8.5.23
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 5, 2026
    Configuration menu
    Copy the full SHA
    dd50ee1 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2026

  1. fix: don't treat a non-prefix token before | as a namespace (#324)

    `namespace()` used the previous token's content as the namespace prefix
    whenever a `|` was seen. For an empty namespace written as a bare `|`
    (e.g. `|b`), the previous token is whatever precedes it — a comment,
    comma, combinator or whitespace — and that was emitted as the prefix.
    So `/* c */|b` round-tripped to `/* c */\/\*\ c\ \*\/|b`, `.a,|b` to
    `.a,\,|b`, `.a > |b` to `.a >  |b`, and so on.
    
    Only use the previous token as a prefix when it can be one: a type/word,
    the universal `*`, or the nesting `&` (the tokens whose parsing hands off
    to `namespace()`). Otherwise the namespace is empty.
    spokodev authored Aug 7, 2026
    Configuration menu
    Copy the full SHA
    e2f9029 View commit details
    Browse the repository at this point in the history
  2. fix: preserve whitespace before a * namespace in attribute selectors (

    #325)
    
    The `*` branch of the attribute parser stored the raw leading whitespace
    from `spaceBefore`, but that variable had just been cleared a few lines
    above, so `raws.spaces.attribute.before` became empty and `[ *|a ]`
    round-tripped to `[*|a ]`. The word-namespace branch already uses
    `commentBefore` here; do the same for `*`.
    spokodev authored Aug 7, 2026
    Configuration menu
    Copy the full SHA
    4d8437f View commit details
    Browse the repository at this point in the history
  3. fix: TypeError on unclosed [, ( and trailing | (#330)

    Selectors that ran out of tokens before a bracket closed threw
    `TypeError: Cannot read properties of undefined` instead of the parser's
    own `Expected a closing ...` error. The error path already existed in each
    case; it just could not be reached, because building the message
    dereferenced the token that was missing.
    
        parser().astSync('a]')       // Expected an opening square bracket.  (ok)
        parser().astSync('a[href')   // TypeError: ...reading '0'
    
    Closing delimiters with no opener were already handled properly, so this
    brings the two directions into line.
    
    - attribute(): the while loop exits on either a closing bracket or end of
      input, and the check after it assumed the former. Errors now point at the
      opening bracket.
    - namespace(): a trailing `|` with nothing after it now reaches the
      existing unexpectedPipe(), which reports against currToken.
    - parentheses(): the unbalanced branch falls back to the opening token.
    
    No behaviour change for input that already parsed, and no existing error
    message changes.
    
    Tests assert the message rather than the type. exceptions.mjs already
    covered this input shape via `throws("unclosed attribute selector", ...)`,
    which passed throughout: `throws` falls back to `{instanceOf: Error}` when
    no message is given, and TypeError satisfies that.
    
    Co-authored-by: Max T. <[email protected]>
    theRizwan and MoOx authored Aug 7, 2026
    Configuration menu
    Copy the full SHA
    6f4e6c1 View commit details
    Browse the repository at this point in the history
  4. 7.1.5

    MoOx committed Aug 7, 2026
    Configuration menu
    Copy the full SHA
    e33e9bc View commit details
    Browse the repository at this point in the history
Loading