@@ -54,7 +54,7 @@ On the other hand, this is quite powerful and fast enough for many other cases.
54
54
## Install
55
55
56
56
This package is [ ESM only] [ esm ] .
57
- In Node.js (version 14.14+, 16.0 +), install with [ npm] [ ] :
57
+ In Node.js (version 16 +), install with [ npm] [ ] :
58
58
59
59
``` sh
60
60
npm install unist-util-select
@@ -101,7 +101,8 @@ console.log(selectAll('code ~ :nth-child(even)', tree))
101
101
102
102
## API
103
103
104
- This package exports the identifiers ` matches ` , ` select ` , and ` selectAll ` .
104
+ This package exports the identifiers [ ` matches ` ] [ api-matches ] ,
105
+ [ ` select ` ] [ api-select ] , and [ ` selectAll ` ] [ api-select-all ] .
105
106
There is no default export.
106
107
107
108
### ` matches(selector, node) `
@@ -280,10 +281,13 @@ It exports no additional types.
280
281
281
282
## Compatibility
282
283
283
- Projects maintained by the unified collective are compatible with all maintained
284
+ Projects maintained by the unified collective are compatible with maintained
284
285
versions of Node.js.
285
- As of now, that is Node.js 14.14+ and 16.0+.
286
- Our projects sometimes work with older versions, but this is not guaranteed.
286
+
287
+ When we cut a new major release, we drop support for unmaintained versions of
288
+ Node.
289
+ This means we try to keep the current release line, ` unist-util-select@^5 ` ,
290
+ compatible with Node.js 12.
287
291
288
292
## Related
289
293
@@ -324,9 +328,9 @@ abide by its terms.
324
328
325
329
[ downloads ] : https://www.npmjs.com/package/unist-util-select
326
330
327
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ unist-util-select.svg
331
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= unist-util-select
328
332
329
- [ size ] : https://bundlephobia .com/result?p =unist-util-select
333
+ [ size ] : https://bundlejs .com/?q =unist-util-select
330
334
331
335
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
332
336
@@ -367,3 +371,9 @@ abide by its terms.
367
371
[ hast ] : https://github.com/syntax-tree/hast
368
372
369
373
[ hast-util-select ] : https://github.com/syntax-tree/hast-util-select
374
+
375
+ [ api-matches ] : #matchesselector-node
376
+
377
+ [ api-select ] : #selectselector-tree
378
+
379
+ [ api-select-all ] : #selectallselector-tree
0 commit comments