css-tree
3.2.1 · 5 Mar 2026MIT183.3M / weekRepositoryHomepagenpmAtom feed
Upgrading css-tree From 3.1.0 to 3.2.0
1 release in betweenevery note read
Release by release
- New
Added
"sideEffects": falseinpackage.json - New
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.) - New
Added support for Functional Notation in definition syntax (for now by wrapping function arguments into an implicit group when necessary, see #292)
- New
Added support for stacked multipliers
{A}?and{A,B}?according to spec in definition syntax parsing
- New
7 other lines we could not sort, mostly version bumps
- 3.2.0
getTokenEnd(tokenIndex)– returns the token's end offset by index, complementinggetTokenStart(tokenIndex) - 3.2.0
getTokenType(tokenIndex)– returns the token's type by index - 3.2.0
isBlockOpenerTokenType(tokenType)– returnstruefor<function-token>,<(-token>,<[-token>, and<{-token> - 3.2.0
isBlockCloserTokenType(tokenType)– returnstruefor<)-token>,<]-token>, and<}-token> - 3.2.0
getBlockTokenPairIndex(tokenIndex)– returns the index of the pair token for a block, or-1if no pair exists - 3.2.0
Changed
generate()to not auto insert whitespaces between tokens for raw values - 3.2.0
Bumped
mdn/datato 2.27.1 and various fixes in syntaxes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.