Repository navigation
Comparing changes
Open a pull request
base repository: postcss/postcss-selector-parser
base: 4a7e4e3
head repository: postcss/postcss-selector-parser
compare: e33e9bc
- 6 commits
- 7 files changed
- 4 contributors
Commits on Aug 5, 2026
-
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>
Configuration menu - View commit details
-
Copy full SHA for 7e3abb2 - Browse repository at this point
Copy the full SHA 7e3abb2View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for dd50ee1 - Browse repository at this point
Copy the full SHA dd50ee1View commit details
Commits on Aug 7, 2026
-
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.
Configuration menu - View commit details
-
Copy full SHA for e2f9029 - Browse repository at this point
Copy the full SHA e2f9029View commit details -
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 `*`.
Configuration menu - View commit details
-
Copy full SHA for 4d8437f - Browse repository at this point
Copy the full SHA 4d8437fView commit details -
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]>Configuration menu - View commit details
-
Copy full SHA for 6f4e6c1 - Browse repository at this point
Copy the full SHA 6f4e6c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e33e9bc - Browse repository at this point
Copy the full SHA e33e9bcView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 4a7e4e3...e33e9bc