@@ -38,7 +38,7 @@ You probably want the more powerful [`hastscript`][hastscript] or
38
38
## Install
39
39
40
40
This package is [ ESM only] [ esm ] .
41
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
41
+ In Node.js (version 16 +), install with [ npm] [ ] :
42
42
43
43
``` sh
44
44
npm install hast-util-parse-selector
@@ -77,7 +77,7 @@ Yields:
77
77
78
78
## API
79
79
80
- This package exports the identifier [ ` parseSelector ` ] [ parseselector ] .
80
+ This package exports the identifier [ ` parseSelector ` ] [ api-parse-selector ] .
81
81
There is no default export.
82
82
83
83
### ` parseSelector(selector?[, defaultTagName]) `
@@ -102,15 +102,15 @@ Built element ([`Element`][element]).
102
102
This package is fully typed with [ TypeScript] [ ] .
103
103
It exports no additional types.
104
104
105
- In TypeScript 4.2+, the type system can infer the tag name of literal
106
- ` selector ` s and knows that the return element has that name.
107
-
108
105
## Compatibility
109
106
110
- Projects maintained by the unified collective are compatible with all maintained
107
+ Projects maintained by the unified collective are compatible with maintained
111
108
versions of Node.js.
112
- As of now, that is Node.js 14.14+ and 16.0+.
113
- Our projects sometimes work with older versions, but this is not guaranteed.
109
+
110
+ When we cut a new major release, we drop support for unmaintained versions of
111
+ Node.
112
+ This means we try to keep the current release line,
113
+ ` hast-util-parse-selector@^3 ` , compatible with Node.js 12.
114
114
115
115
## Security
116
116
@@ -154,9 +154,9 @@ abide by its terms.
154
154
155
155
[ downloads ] : https://www.npmjs.com/package/hast-util-parse-selector
156
156
157
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-parse-selector.svg
157
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-parse-selector
158
158
159
- [ size ] : https://bundlephobia .com/result?p =hast-util-parse-selector
159
+ [ size ] : https://bundlejs .com/?q =hast-util-parse-selector
160
160
161
161
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
162
162
@@ -200,4 +200,4 @@ abide by its terms.
200
200
201
201
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
202
202
203
- [ parseselector ] : #parseselectorselector-defaulttagname
203
+ [ api-parse-selector ] : #parseselectorselector-defaulttagname
0 commit comments