@csstools/css-tokenizer
Advanced tools
Comparing version
# Changes to CSS Tokenizer | ||
### 3.0.1 | ||
### 3.0.2 | ||
_August 18, 2024_ | ||
_October 10, 2024_ | ||
- Updated the return type of `nextToken()` to indicate that it always returns a value. | ||
- `isTokenNumeric` and `isTokenWhiteSpaceOrComment` now accept `null` and `undefined` as input, in parallel with other type predicates. | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md) |
@@ -109,3 +109,3 @@ /** | ||
*/ | ||
export declare function isTokenNumeric(x: CSSToken): x is NumericToken; | ||
export declare function isTokenNumeric(x?: CSSToken | null): x is NumericToken; | ||
@@ -133,3 +133,3 @@ export declare function isTokenOpenCurly(x?: CSSToken | null): x is TokenOpenCurly; | ||
*/ | ||
export declare function isTokenWhiteSpaceOrComment(x: CSSToken): x is TokenWhitespace | TokenComment; | ||
export declare function isTokenWhiteSpaceOrComment(x?: CSSToken | null): x is TokenWhitespace | TokenComment; | ||
@@ -136,0 +136,0 @@ /** |
{ | ||
"name": "@csstools/css-tokenizer", | ||
"description": "Tokenize CSS", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71974
-0.22%708
-0.14%