@csstools/selector-resolve-nested
Advanced tools
Comparing version 1.0.3 to 1.1.0
# Changes to Selector Resolve Nested | ||
## 1.1.0 | ||
_February 1, 2024_ | ||
- Add `flattenNestedSelector` function to support more kinds of static analysis for nested selectors. | ||
## 1.0.3 | ||
@@ -4,0 +10,0 @@ |
@@ -25,2 +25,16 @@ /** | ||
/** | ||
* Flatten a nested selector against a given parent selector. | ||
* | ||
* ⚠️ This is not a method to generate the equivalent un-nested selector. | ||
* It is purely a method to construct a single selector AST that contains the parts of both the current and parent selector. | ||
* It will not have the correct specificity and it will not match the right elements when used as a selector. | ||
* It will not always serialize to a valid selector. | ||
* | ||
* @param selector - The selector to resolve. | ||
* @param parentSelector - The parent selector to resolve against. | ||
* @returns The resolved selector. | ||
*/ | ||
export declare function flattenNestedSelector(selector: Root, parentSelector: Root): Root; | ||
/** | ||
* Resolve a nested selector against a given parent selector. | ||
@@ -27,0 +41,0 @@ * |
{ | ||
"name": "@csstools/selector-resolve-nested", | ||
"description": "Resolve nested CSS selectors", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"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
12951
71