@@ -51,7 +51,7 @@ You can instead use [`unist-builder`][u] when creating any unist nodes and
51
51
## Install
52
52
53
53
This package is [ ESM only] [ esm ] .
54
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
54
+ In Node.js (version 16 +), install with [ npm] [ ] :
55
55
56
56
``` sh
57
57
npm install hastscript
@@ -146,7 +146,7 @@ Yields:
146
146
147
147
## API
148
148
149
- This package exports the identifiers [ ` h ` ] [ h ] and [ ` s ` ] [ s ] .
149
+ This package exports the identifiers [ ` h ` ] [ api- h] and [ ` s ` ] [ api- s] .
150
150
There is no default export.
151
151
152
152
The export map supports the automatic JSX runtime.
@@ -177,15 +177,15 @@ When nullish, builds a [`Root`][root] instead.
177
177
178
178
###### ` properties `
179
179
180
- Properties of the element ([ ` Properties ` ] [ properties ] , optional).
180
+ Properties of the element ([ ` Properties ` ] [ api- properties] , optional).
181
181
182
182
###### ` children `
183
183
184
- Children of the node ([ ` Child ` ] [ child ] or ` Array<Child> ` , optional).
184
+ Children of the node ([ ` Child ` ] [ api- child] or ` Array<Child> ` , optional).
185
185
186
186
##### Returns
187
187
188
- Created tree ([ ` Result ` ] [ result ] ).
188
+ Created tree ([ ` Result ` ] [ api- result] ).
189
189
190
190
[ ` Element ` ] [ element ] when a ` selector ` is passed, otherwise [ ` Root ` ] [ root ] .
191
191
@@ -302,15 +302,19 @@ console.log(
302
302
## Types
303
303
304
304
This package is fully typed with [TypeScript][].
305
- It exports the additional types [ ` Child ` ][child], [ ` Properties ` ][properties],
306
- and [ ` Result ` ][result].
305
+ It exports the additional types [ ` Child ` ][api-child],
306
+ [ ` Properties ` ][api-properties], and
307
+ [ ` Result ` ][api-result].
307
308
308
309
## Compatibility
309
310
310
- Projects maintained by the unified collective are compatible with all maintained
311
+ Projects maintained by the unified collective are compatible with maintained
311
312
versions of Node.js.
312
- As of now, that is Node.js 14.14+ and 16.0+.
313
- Our projects sometimes work with older versions, but this is not guaranteed.
313
+
314
+ When we cut a new major release, we drop support for unmaintained versions of
315
+ Node.
316
+ This means we try to keep the current release line, ` hastscript @^7 ` ,
317
+ compatible with Node.js 12.
314
318
315
319
## Security
316
320
@@ -405,9 +409,9 @@ abide by its terms.
405
409
406
410
[ downloads ] : https://www.npmjs.com/package/hastscript
407
411
408
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/hastscript.svg
412
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hastscript
409
413
410
- [ size ] : https://bundlephobia .com/result?p =hastscript
414
+ [ size ] : https://bundlejs .com/?q =hastscript
411
415
412
416
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
413
417
@@ -457,12 +461,12 @@ abide by its terms.
457
461
458
462
[ hast-util-sanitize ] : https://github.com/syntax-tree/hast-util-sanitize
459
463
460
- [ h ] : #hselector-properties-children
464
+ [ api- h] : #hselector-properties-children
461
465
462
- [ s ] : #sselector-properties-children
466
+ [ api- s] : #sselector-properties-children
463
467
464
- [ child ] : #child
468
+ [ api- child] : #child
465
469
466
- [ properties ] : #properties-1
470
+ [ api- properties] : #properties-1
467
471
468
- [ result ] : #result
472
+ [ api- result] : #result
0 commit comments