Packages

css-tree

3.2.1 · 5 Mar 2026MIT183.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.1

2 Nov 2024Where it was published

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 the fork() method (e.g., syntax.fork((config, assign) => { ... })), as it simply refers to Object.assign()

Release note

  • Bumped mdn/data to 2.12.1

  • Added errors array to the Lexer#validate() method result, providing details on problematic syntax.

  • Added CSS wide keyword customization and introspection:

    • Added a Lexer#cssWideKeywords dictionary to list CSS-wide keywords

    • Updated the Lexer's constructor to consider config.cssWideKeywords for overriding the default list

    • Expanded the lexer's dump output to include the cssWideKeywords dictionary

    • Modified the fork() method to accept a cssWideKeywords option, allowing the addition of new keywords to the existing list

  • Reverted changes to Block to include { and }, and Atrule and Rule to exclude { and } for a block

  • Removed

    Removed second parameter (assign) for the callback in the fork() method (e.g., syntax.fork((config, assign) => { ... })), as it simply refers to Object.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.