@csstools/css-parser-algorithms
Advanced tools
Comparing version
# Changes to CSS Parser Algorithms | ||
### 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) | ||
### 2.6.0 | ||
@@ -17,12 +23,2 @@ | ||
### 2.4.0 | ||
_December 15, 2023_ | ||
- Fix type definitions | ||
- Only `walk` child nodes if they are still part of the current AST tree [#1202](https://github.com/csstools/postcss-plugins/issues/1202) | ||
- Make `walk` methods safe for mutations [#1204](https://github.com/csstools/postcss-plugins/issues/1204) | ||
- Add a `forEach` method to `FunctionNode` and `SimpleBlockNode` | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#222) (patch) | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md) |
@@ -109,6 +109,3 @@ /** | ||
*/ | ||
toJSON(): { | ||
type: ComponentValueType; | ||
tokens: CSSToken[]; | ||
}; | ||
toJSON(): Record<string, unknown>; | ||
/** | ||
@@ -355,3 +352,3 @@ * @internal | ||
onParseError?: (error: ParseError) => void; | ||
}): ComponentValue[][]; | ||
}): Array<Array<ComponentValue>>; | ||
@@ -387,3 +384,3 @@ /** | ||
onParseError?: (error: ParseError) => void; | ||
}): ComponentValue[]; | ||
}): Array<ComponentValue>; | ||
@@ -394,3 +391,3 @@ /** | ||
*/ | ||
export declare function replaceComponentValues(componentValuesList: Array<Array<ComponentValue>>, replaceWith: (componentValue: ComponentValue) => Array<ComponentValue> | ComponentValue | void): ComponentValue[][]; | ||
export declare function replaceComponentValues(componentValuesList: Array<Array<ComponentValue>>, replaceWith: (componentValue: ComponentValue) => Array<ComponentValue> | ComponentValue | void): Array<Array<ComponentValue>>; | ||
@@ -499,6 +496,3 @@ /** | ||
*/ | ||
toJSON(): { | ||
type: ComponentValueType; | ||
tokens: CSSToken[]; | ||
}; | ||
toJSON(): Record<string, unknown>; | ||
/** | ||
@@ -598,6 +592,3 @@ * @internal | ||
*/ | ||
toJSON(): { | ||
type: ComponentValueType; | ||
tokens: CSSToken[]; | ||
}; | ||
toJSON(): Record<string, unknown>; | ||
/** | ||
@@ -604,0 +595,0 @@ * @internal |
{ | ||
"name": "@csstools/css-parser-algorithms", | ||
"description": "Algorithms to help you parse CSS from an array of tokens.", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"contributors": [ | ||
@@ -51,3 +51,3 @@ { | ||
"peerDependencies": { | ||
"@csstools/css-tokenizer": "^2.2.3" | ||
"@csstools/css-tokenizer": "^2.2.4" | ||
}, | ||
@@ -57,3 +57,3 @@ "homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme", | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"url": "git+https://github.com/csstools/postcss-plugins.git", | ||
"directory": "packages/css-parser-algorithms" | ||
@@ -60,0 +60,0 @@ }, |
45522
-0.97%644
-1.38%