@csstools/cascade-layer-name-parser
Advanced tools
Comparing version 1.0.8 to 1.0.9
# Changes to Cascade Layer Name Parser | ||
### 1.0.9 | ||
_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) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.6.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#261) (patch) | ||
### 1.0.8 | ||
@@ -16,10 +23,2 @@ | ||
### 1.0.6 | ||
_December 15, 2023_ | ||
- Fix type definitions | ||
- 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) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#240) (minor) | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/cascade-layer-name-parser/CHANGELOG.md) |
import { CSSToken } from '@csstools/css-tokenizer'; | ||
import { ParseError } from '@csstools/css-tokenizer'; | ||
export declare function addLayerToModel(layers: Array<LayerName>, currentLayerNames: Array<LayerName>): LayerName[]; | ||
export declare function addLayerToModel(layers: Array<LayerName>, currentLayerNames: Array<LayerName>): void; | ||
@@ -16,7 +16,8 @@ export declare class LayerName { | ||
toString(): string; | ||
toJSON(): { | ||
parts: CSSToken[]; | ||
segments: string[]; | ||
name: string; | ||
}; | ||
/** | ||
* @internal | ||
* | ||
* A debug helper to convert the current object to a JSON representation. | ||
*/ | ||
toJSON(): Record<string, unknown>; | ||
} | ||
@@ -26,3 +27,3 @@ | ||
onParseError?: (error: ParseError) => void; | ||
}): LayerName[]; | ||
}): Array<LayerName>; | ||
@@ -29,0 +30,0 @@ /** |
{ | ||
"name": "@csstools/cascade-layer-name-parser", | ||
"description": "Parse CSS Cascade Layer names.", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"contributors": [ | ||
@@ -51,4 +51,4 @@ { | ||
"peerDependencies": { | ||
"@csstools/css-parser-algorithms": "^2.6.0", | ||
"@csstools/css-tokenizer": "^2.2.3" | ||
"@csstools/css-parser-algorithms": "^2.6.1", | ||
"@csstools/css-tokenizer": "^2.2.4" | ||
}, | ||
@@ -58,3 +58,3 @@ "homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/cascade-layer-name-parser#readme", | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"url": "git+https://github.com/csstools/postcss-plugins.git", | ||
"directory": "packages/cascade-layer-name-parser" | ||
@@ -61,0 +61,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13483
57