Repository navigation
Conversation
postcss-values-parser 8 is a rewrite on top of css-tree, which tokenizes unquoted url() as a single url token, so unquoted data: URLs no longer throw. - @import and @value params aren't plain values (media queries, layer(), 'name: value'), so only the relevant component is parsed, split with postcss's list.space() - url() is now a Word node; detect it via its source text - wrap values parser errors in MalformedCssError - add @types/css-tree, which the parser's type definitions need BREAKING CHANGE: requires Node.js >= 22.12.0 (postcss-values-parser 8 requires Node.js >= 22) Fixes #351
- Remove unused AtRule type import from postcss - Combine separate @import and @value rule walkers into single walkAtRules call using regex pattern - Unify logic for parsing rule params and extracting file references - Simplify node selection by using array indexing (first for @import, last for @value) - Remove isImportRule and isValueRule helper functions in favor of inline checks - Improve code clarity by consolidating duplicate reference detection logic - Reduce cyclomatic complexity while maintaining feature parity
joscha
commented
Nov 16, 2026
| @@ -0,0 +1,50 @@ | |||
| import { describe, it, expect } from 'vitest'; | |||
Collaborator
Author
There was a problem hiding this comment.
This one is copied from #352 to prevent regressions
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.