Packages

css-tree

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

Upgrading css-tree From 3.0.1 to 3.1.0

1 release in betweenevery note read

Other targets from 3.0.1Newest 3.x, Latest3.2.1
  1. 3.0.1yours
  2. 3.1.0target
0
changes to make
0
advisories fixed
2
new
4
fixes

Release by release

  1. 3.1.0

    6 Dec 20242 new · 4 fixes
    • New

      Added support for boolean expression multiplier in syntax definition, i.e. <boolean-expr[ test ]>

    • New

      Added source, startOffset, startLine, and startColumn parameters to OffsetToLocation constructor, eliminating the need to call setSource() after creating a new OffsetToLocation instance

    • Fixed

      Fixed Raw node value consumption by ignoring stop tokens inside blocks, resolving an issue where Raw value consumption stopped prematurely. This fix also enables parsing of functions whose content includes stop characters (e.g., semicolons and curly braces) within declaration values, aligning with the latest draft of CSS Values and Units L5.

    • Fixed

      Fixed TokenStream#balance computation to handle unmatched brackets correctly. Previously, when encountering a closing bracket, the TokenStream would prioritize it over unmatched opening brackets, leading to improper parsing. For example, the parser would incorrectly consume the declaration value of .a { prop: ([{); } as ([{) instead of consuming it until all opened brackets were closed (([{); }). Now, unmatched closing brackets are discarded unless they match the most recent opening bracket on the stack. This change aligns CSSTree with CSS specifications and browser behavior.

    • Fixed

      Fixed syntax definition parser to allow a token to be followed by a multiplier

    • Fixed

      Fixed location for Layer node

2 other lines we could not sort, mostly version bumps
  • Exposed OffsetToLocation class in the main entry point, which was previously accessible only via css-tree/tokenizer

    3.1.0
  • Bumped mdn/data to 2.12.2

    3.1.0

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.