Changes to Media Query List Parser
January 14, 2026 ยท View on GitHub
5.0.0
January 14, 2026
- Updated: Support for Node
20.19.0or later (major). - Removed:
commonjsAPI. In supported Node versionsrequire(esm)will work without needing to make code changes. - Updated
@csstools/css-tokenizerto4.0.0(major) - Updated
@csstools/css-parser-algorithmsto4.0.0(major)
4.0.3
May 27, 2025
- Updated
@csstools/css-tokenizerto3.0.4(patch) - Updated
@csstools/css-parser-algorithmsto3.0.5(patch)
4.0.2
November 1, 2024
- Updated
@csstools/css-tokenizerto3.0.3(patch) - Updated
@csstools/css-parser-algorithmsto3.0.4(patch)
4.0.1
October 23, 2024
- Updated
@csstools/css-parser-algorithmsto3.0.3(patch)
4.0.0
October 10, 2024
MediaQuery.prototype.negateQuery()now returns an array ofMediaQuery. e.g. negatingscreen and (color)returns['not screen', 'not (color)']- Updated
@csstools/css-tokenizerto3.0.2(patch) - Updated
@csstools/css-parser-algorithmsto3.0.2(patch)
3.0.1
August 18, 2024
- Updated
@csstools/css-tokenizerto3.0.1(patch) - Updated
@csstools/css-parser-algorithmsto3.0.1(patch)
3.0.0
August 3, 2024
- Updated: Support for Node v18+ (major).
- Updated
@csstools/css-tokenizerto3.0.0(major) - Updated
@csstools/css-parser-algorithmsto3.0.0(major)
2.1.13
July 6, 2024
- Updated
@csstools/css-tokenizerto2.4.1(patch) - Updated
@csstools/css-parser-algorithmsto2.7.1(patch)
2.1.12
June 29, 2024
- Updated
@csstools/css-tokenizerto2.3.2(patch) - Updated
@csstools/css-parser-algorithmsto2.7.0(minor)
2.1.11
May 4, 2024
- Updated
@csstools/css-tokenizerto2.3.1(patch) - Updated
@csstools/css-parser-algorithmsto2.6.3(patch)
2.1.10
May 4, 2024
- Updated
@csstools/css-tokenizerto2.3.0(minor) - Updated
@csstools/css-parser-algorithmsto2.6.2(patch)
2.1.9
March 13, 2024
- Updated
@csstools/css-tokenizerto2.2.4(patch) - Updated
@csstools/css-parser-algorithmsto2.6.1(patch)
2.1.8
February 19, 2024
- Updated
@csstools/css-parser-algorithmsto2.6.0(minor)
2.1.7
December 31, 2023
- Updated
@csstools/css-tokenizerto2.2.3(patch) - Updated
@csstools/css-parser-algorithmsto2.5.0(minor)
2.1.6
December 15, 2023
- Fix type definitions
- Only
walkchild nodes if they are still part of the current AST tree #1202 - Make
walkmethods safe for mutations #1204 - Updated
@csstools/css-tokenizerto2.2.2(patch) - Updated
@csstools/css-parser-algorithmsto2.4.0(minor)
2.1.5
September 24, 2023
- Updated
@csstools/css-tokenizerto2.2.1(patch) - Updated
@csstools/css-parser-algorithmsto2.3.2(patch)
2.1.4
August 5, 2023
- Do not allow keywords as media feature values in range context queries.
2.1.3
July 24, 2023
- Updated
@csstools/css-tokenizerto2.2.0(minor) - Updated
@csstools/css-parser-algorithmsto2.3.1(patch)
2.1.2
July 3, 2023
- Updated
@csstools/css-parser-algorithmsto2.3.0(minor)
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
walkforMediaFeatureValuewith complex component values. - Add
statetowalkmethods.
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-tokenizerto2.1.1(patch) - Updated
@csstools/css-parser-algorithmsto2.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
typesdeclaration inpackage.json
2.0.0
January 19, 2023
- Refactor
MediaFeatureBooleanso that it follows the same structure asMediaFeaturePlain(breaking) - Change the
ParseErrorinterface, this is now a subclass ofError(breaking) - Add
getNameandgetNameTokento all nodes that have a feature name. - Add
@custom-mediaparsing.
1.0.0
November 14, 2022
- Initial version