css-tree
3.2.1 · 5 Mar 2026MIT183.3M / weekRepositoryHomepagenpmAtom feed
3.2.1 is the newest release of 3.x.
In short
1 removed5 new1 fixed2 changed
- Removed
Removed second parameter (
assign) for the callback in thefork()method (e.g.,syntax.fork((config, assign) => { ... })), as it simply refers toObject.assign()
Release note
Bumped
mdn/datato 2.12.1Added
errorsarray to theLexer#validate()method result, providing details on problematic syntax.Added CSS wide keyword customization and introspection:
Added a
Lexer#cssWideKeywordsdictionary to list CSS-wide keywordsUpdated the Lexer's constructor to consider
config.cssWideKeywordsfor overriding the default listExpanded the lexer's dump output to include the
cssWideKeywordsdictionaryModified the
fork()method to accept acssWideKeywordsoption, allowing the addition of new keywords to the existing list
Reverted changes to
Blockto include{and}, andAtruleandRuleto exclude{and}for ablock- Removed
Removed second parameter (
assign) for the callback in thefork()method (e.g.,syntax.fork((config, assign) => { ... })), as it simply refers toObject.assign() Fixes in syntaxes:
<basic-shapes>,<absolute-color-function>and<'stroke-opacity'>
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.