Skip to content

chore(deps): update dependency css-tree to v3.2.1 - #871

Open
renovate[bot] wants to merge 1 commit into
devfrom
renovate/css-tree-3.x
Open

chore(deps): update dependency css-tree to v3.2.1#871
renovate[bot] wants to merge 1 commit into
devfrom
renovate/css-tree-3.x

Conversation

@renovate

@renovate renovate Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
css-tree 3.1.03.2.1 age confidence

Release Notes

csstree/csstree (css-tree)

v3.2.1

Compare Source

  • Fixed parsing of nested function in a group in definition syntax (#​358)

v3.2.0

Compare Source

  • Added "sideEffects": false in package.json
  • Added list option to the parse() method to specify whether the parser should produce a List (by default, list: true) or an array (list: false) for node's children (e.g., SelectorList, Block, etc.)
  • Added support for Functional Notation in definition syntax (for now by wrapping function arguments into an implicit group when necessary, see #​292)
  • Added support for stacked multipliers {A}? and {A,B}? according to spec in definition syntax parsing (#​346)
  • Added math functions support in syntax matching (e.g., min(), max(), etc.) (#​344)
  • Added onToken option to the parse() method, which can be either an array or a function:
    • When the value is an array, it is populated with objects { type, start, end } (token type, and its start and end offsets).
    • When the value is a function, it accepts type, start, end, and index parameters, and is invoked with a token API as this, enabling advanced token handling (see onToken). For example, the following demonstrates checking if all block tokens have matching pairs:
      parse(css, {
          onToken(type, start, end, index) {
              if (this.isBlockOpenerTokenType(type)) {
                  if (this.getBlockPairTokenIndex(index) === -1) {
                      console.warn('No closing pair for', this.getTokenValue(index), this.getRangeLocation(start, end));
                  }
              } else if (this.isBlockCloserTokenType(type)) {
                  if (this.getBlockPairTokenIndex(index) === -1) {
                      console.warn('No opening pair for', this.getTokenValue(index), this.getRangeLocation(start, end));
                  }
              }
          }
      });
  • Extended TokenStream with the following methods:
    • getTokenEnd(tokenIndex) – returns the token's end offset by index, complementing getTokenStart(tokenIndex)
    • getTokenType(tokenIndex) – returns the token's type by index
    • isBlockOpenerTokenType(tokenType) – returns true for <function-token>, <(-token>, <[-token>, and <{-token>
    • isBlockCloserTokenType(tokenType) – returns true for <)-token>, <]-token>, and <}-token>
    • getBlockTokenPairIndex(tokenIndex) – returns the index of the pair token for a block, or -1 if no pair exists
  • Changed generate() to not auto insert whitespaces between tokens for raw values (#​356)
  • Fixed fork() to extend node definitions instead of overriding them. For example, fork({ node: { Dimension: { generate() { /* ... */ } } } }) will now update only the generate() method on the Dimension node, while inheriting all other properties from the previous syntax definition.
  • Bumped mdn/data to 2.27.1 and various fixes in syntaxes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added dependencies Pull requests that update a dependency file Dependencies: Production Renovate labels Aug 11, 2026
@renovate
renovate Bot force-pushed the renovate/css-tree-3.x branch 24 times, most recently from 7225ce0 to d19aad9 Compare August 13, 2026 02:25
@renovate
renovate Bot force-pushed the renovate/css-tree-3.x branch 7 times, most recently from 67a668f to d26f985 Compare August 13, 2026 06:47
@renovate
renovate Bot force-pushed the renovate/css-tree-3.x branch from d26f985 to a75edb0 Compare August 13, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies: Production dependencies Pull requests that update a dependency file Renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants