css-tree
3.2.1 · 5 Mar 2026MIT183.3M / weekRepositoryHomepagenpmAtom feed
Upgrading css-tree From 3.0.0 to 3.0.1
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 5
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking3.0.1
Release by release
- Breaking
Removed second parameter (
assign) for the callback in thefork()method (e.g.,syntax.fork((config, assign) => { ... })), as it simply refers toObject.assign() - New
Added
errorsarray to theLexer#validate()method result, providing details on problematic syntax. - New
Added a
Lexer#cssWideKeywordsdictionary to list CSS-wide keywords - New
Updated the Lexer's constructor to consider
config.cssWideKeywordsfor overriding the default list - New
Expanded the lexer's dump output to include the
cssWideKeywordsdictionary - New
Modified the
fork()method to accept acssWideKeywordsoption, allowing the addition of new keywords to the existing list - Fixed
Fixes in syntaxes:
<basic-shapes>,<absolute-color-function>and<'stroke-opacity'>
- Breaking
2 other lines we could not sort, mostly version bumps
- 3.0.1
Bumped
mdn/datato 2.12.1 - 3.0.1
Reverted changes to
Blockto include{and}, andAtruleandRuleto exclude{and}for ablock
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.