chore(deps-dev): bump css-tree from 3.1.0 to 3.2.1
Open
Number: #11205
Type: Pull Request
State: Open
Type: Pull Request
State: Open
Author:
dependabot[bot]
Association: Unknown
Comments: 1
Association: Unknown
Comments: 1
Created:
May 02, 2026 at 02:29 AM UTC
(24 days ago)
(24 days ago)
Updated:
May 02, 2026 at 02:31 AM UTC
(24 days ago)
(24 days ago)
Labels:
JavaScript dependencies
JavaScript dependencies
Description:
Bumps css-tree from 3.1.0 to 3.2.1.
Release notes
Sourced from css-tree's releases.
3.2.1
- Fixed parsing of nested function in a group in definition syntax (#358)
3.2.0
- Added
"sideEffects": falseinpackage.json- Added
listoption to theparse()method to specify whether the parser should produce aList(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
onTokenoption to theparse()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, andindexparameters, and is invoked with a token API asthis, 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
TokenStreamwith the following methods:
getTokenEnd(tokenIndex)– returns the token's end offset by index, complementinggetTokenStart(tokenIndex)getTokenType(tokenIndex)– returns the token's type by indexisBlockOpenerTokenType(tokenType)– returnstruefor<function-token>,<(-token>,<[-token>, and<{-token>isBlockCloserTokenType(tokenType)– returnstruefor<)-token>,<]-token>, and<}-token>getBlockTokenPairIndex(tokenIndex)– returns the index of the pair token for a block, or-1if no pair exists- Changed
generate()to not auto insert whitespaces between tokens for raw values (#356)- Fixed
fork()to extendnodedefinitions instead of overriding them. For example,fork({ node: { Dimension: { generate() { /* ... */ } } } })will now update only thegenerate()method on theDimensionnode, while inheriting all other properties from the previous syntax definition.- Bumped
mdn/datato 2.27.1 and various fixes in syntaxes
Changelog
Sourced from css-tree's changelog.
3.2.1 (March 5, 2026)
- Fixed parsing of nested function in a group in definition syntax (#358)
3.2.0 (March 4, 2026)
- Added
"sideEffects": falseinpackage.json- Added
listoption to theparse()method to specify whether the parser should produce aList(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
onTokenoption to theparse()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, andindexparameters, and is invoked with a token API asthis, 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
TokenStreamwith the following methods:
getTokenEnd(tokenIndex)– returns the token's end offset by index, complementinggetTokenStart(tokenIndex)getTokenType(tokenIndex)– returns the token's type by indexisBlockOpenerTokenType(tokenType)– returnstruefor<function-token>,<(-token>,<[-token>, and<{-token>isBlockCloserTokenType(tokenType)– returnstruefor<)-token>,<]-token>, and<}-token>getBlockTokenPairIndex(tokenIndex)– returns the index of the pair token for a block, or-1if no pair exists- Changed
generate()to not auto insert whitespaces between tokens for raw values (#356)- Fixed
fork()to extendnodedefinitions instead of overriding them. For example,fork({ node: { Dimension: { generate() { /* ... */ } } } })will now update only thegenerate()method on theDimensionnode, while inheriting all other properties from the previous syntax definition.- Bumped
mdn/datato 2.27.1 and various fixes in syntaxes
Commits
8a6caba3.2.17c7f9eeFix parsing of nested function in a group in definition syntax (fixes #358)c42fee23.2.0aad332eAdd Function Notation in syntax definition (#292)264d09dFix GitHub actions5766a65Fix syntax definition issues307d8dfBump depsc008c01Add support for stacked multipliers{A}?and{A,B}?in definition syntax ...20f5671Addlistoption for parser (fixes #348)39a0c72Update nodejs versions- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 15600211 |
| UUID: | 4367603200 |
| Node ID: | PR_kwDOAeCJis7XlBGT |
| Host: | GitHub |
| Repository: | NativeScript/NativeScript |