Skip to content

fix: honor configured selector updates in synchronous processors - #372

Merged
MoOx merged 2 commits into
postcss:mainfrom
Aschenbath:fix/50-selector-sync-options-20261125-42bb
Nov 26, 2026
Merged

MoOx merged 2 commits into
postcss:mainfrom
Aschenbath:fix/50-selector-sync-options-20261125-42bb

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

A processor configured with { updateSelector: true } currently leaves a rule's selector unchanged when called through astSync, transformSync, or processSync. Merge constructor options with per-call options when deciding whether to update the rule.

The regression covers all three methods, an explicit per-call false override, and the existing default of leaving synchronous input rules unchanged.

Validation: the new regression fails on the unmodified baseline; npm test passes (lint, declaration type checks, and full tests with coverage thresholds). Formatting checks pass for the changed files.

AI assistance: implemented and tested with OpenAI Codex.

@MoOx
MoOx merged commit b95d5fa into postcss:main Nov 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants