@csstools/css-parser-algorithms
Advanced tools
Comparing version
# Changes to CSS Parser Algorithms | ||
### 2.7.0 | ||
_June 29, 2024_ | ||
- Add `isWhiteSpaceOrCommentNode` utility function. | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#232) (patch) | ||
### 2.6.3 | ||
@@ -15,8 +22,2 @@ | ||
### 2.6.1 | ||
_March 13, 2024_ | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#224) (patch) | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md) |
@@ -303,3 +303,3 @@ /** | ||
walk(cb: (entry: { | ||
node: Array<unknown> | unknown; | ||
node: unknown; | ||
parent: unknown; | ||
@@ -340,2 +340,8 @@ }, index: number | string) => boolean | void): false | undefined; | ||
/** | ||
* Check if the current object is a `WhiteSpaceNode` or a `CommentNode`. | ||
* This is a type guard. | ||
*/ | ||
export declare function isWhiteSpaceOrCommentNode(x: unknown): x is WhitespaceNode | CommentNode; | ||
/** | ||
* Parse a comma-separated list of component values. | ||
@@ -342,0 +348,0 @@ * |
{ | ||
"name": "@csstools/css-parser-algorithms", | ||
"description": "Algorithms to help you parse CSS from an array of tokens.", | ||
"version": "2.6.3", | ||
"version": "2.7.0", | ||
"contributors": [ | ||
@@ -51,4 +51,5 @@ { | ||
"peerDependencies": { | ||
"@csstools/css-tokenizer": "^2.3.1" | ||
"@csstools/css-tokenizer": "^2.3.2" | ||
}, | ||
"scripts": {}, | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme", | ||
@@ -55,0 +56,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45833
1.13%649
0.93%