Skip to content

Latest commit

 

History

History
178 lines (102 loc) · 9.29 KB

File metadata and controls

178 lines (102 loc) · 9.29 KB

Changes to Media Query List Parser

4.0.2

November 1, 2024

4.0.1

October 23, 2024

4.0.0

October 10, 2024

3.0.1

August 18, 2024

3.0.0

August 3, 2024

2.1.13

July 6, 2024

2.1.12

June 29, 2024

2.1.11

May 4, 2024

2.1.10

May 4, 2024

2.1.9

March 13, 2024

2.1.8

February 19, 2024

2.1.7

December 31, 2023

2.1.6

December 15, 2023

2.1.5

September 24, 2023

2.1.4

August 5, 2023

  • Do not allow keywords as media feature values in range context queries.

2.1.3

July 24, 2023

2.1.2

July 3, 2023

2.1.1

June 21, 2023

  • Fix parsing of (width == 100px). This was erroneously parsed as a range query and will now instead be a general enclosed node.

2.1.0

June 1, 2023

  • Fix walk for MediaFeatureValue with complex component values.
  • Add state to walk methods.

This makes it possible pass down information from a parent structure to children.
e.g. you can set entry.state.inInPrintQuery = true for print and (min-width: 30cm).

2.0.4

April 10, 2023

  • Updated @csstools/css-tokenizer to 2.1.1 (patch)
  • Updated @csstools/css-parser-algorithms to 2.1.1 (patch)

2.0.3

April 10, 2023

  • Add support for env() functions as values in media queries.
  • Improve the detection of math function as values in media queries.

2.0.2

March 25, 2023

  • Improve case insensitive string matching.

2.0.1

January 28, 2023

  • Improve types declaration in package.json

2.0.0

January 19, 2023

  • Refactor MediaFeatureBoolean so that it follows the same structure as MediaFeaturePlain (breaking)
  • Change the ParseError interface, this is now a subclass of Error (breaking)
  • Add getName and getNameToken to all nodes that have a feature name.
  • Add @custom-media parsing.

1.0.0

November 14, 2022

  • Initial version