Changes to CSS Parser Algorithms
January 14, 2026 ยท View on GitHub
4.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)
3.0.5
May 27, 2025
- Updated
@csstools/css-tokenizerto3.0.4(patch)
3.0.4
November 1, 2024
- Updated
@csstools/css-tokenizerto3.0.3(patch)
3.0.3
October 23, 2024
- Fix typo:
- TokenNode.prototype.isTokenNod()
+ TokenNode.prototype.isTokenNode()
3.0.2
October 10, 2024
- Updated
@csstools/css-tokenizerto3.0.2(patch)
3.0.1
August 18, 2024
- Updated
@csstools/css-tokenizerto3.0.1(patch)
3.0.0
August 3, 2024
- Updated: Support for Node v18+ (major).
- Updated
@csstools/css-tokenizerto3.0.0(major)
2.7.1
July 6, 2024
- Updated
@csstools/css-tokenizerto2.4.1(patch)
2.7.0
June 29, 2024
- Add
isWhiteSpaceOrCommentNodeutility function. - Updated
@csstools/css-tokenizerto2.3.2(patch)
2.6.3
May 4, 2024
- Updated
@csstools/css-tokenizerto2.3.1(patch)
2.6.2
May 4, 2024
- Updated
@csstools/css-tokenizerto2.3.0(minor)
2.6.1
March 13, 2024
- Updated
@csstools/css-tokenizerto2.2.4(patch)
2.6.0
February 19, 2024
- Add support for multiple replacement values in
replaceComponentValues
2.5.0
December 31, 2023
- Add a
forEachandwalkfunction. - Improve documentation.
- Updated
@csstools/css-tokenizerto2.2.3(patch)
2.4.0
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 - Add a
forEachmethod toFunctionNodeandSimpleBlockNode - Updated
@csstools/css-tokenizerto2.2.2(patch)
2.3.2
September 24, 2023
- Updated
@csstools/css-tokenizerto2.2.1(patch)
2.3.1
July 24, 2023
- Updated
@csstools/css-tokenizerto2.2.0(minor)
2.3.0
July 3, 2023
- Add
sourceIndiceshelper function.
This makes it easier to get the start and end indices of a node in the source string.
This function accepts any node that can be converted into an array of tokens.
2.2.0
June 1, 2023
- Add
statetowalkmethods.
This makes it possible pass down information from a parent structure to children.
e.g. you can set entry.state.isInCalcExpression = true for calc((10 + 5) / 2) when walking the FunctionNode for calc.
2.1.1
April 10, 2023
- Updated
@csstools/css-tokenizerto2.1.1(patch)
2.1.0
March 25, 2023
- Add
replaceComponentValuesutility function. - Add
stringifyutility function.
2.0.1
January 28, 2023
- Improve
typesdeclaration inpackage.json
2.0.0
January 19, 2023
- Fix: Removes
UnclosedFunctionNodeandUnclosedSimpleBlockNode. (breaking) - Change the
ParseErrorinterface, this is now a subclass ofError(breaking) - Change
nameTokenValueinFunctionNodetogetName(breaking) - Fix: Do not discard empty items in comma separated lists.
1.0.0
November 14, 2022
- Initial version