@@ -41,7 +41,7 @@ To change heading ranks, use
41
41
## Install
42
42
43
43
This package is [ ESM only] [ esm ] .
44
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
44
+ In Node.js (version 16 +), install with [ npm] [ ] :
45
45
46
46
``` sh
47
47
npm install hast-util-heading-rank
@@ -73,7 +73,7 @@ headingRank(h('h5', 'Alpha')) //=> 5
73
73
74
74
## API
75
75
76
- This package exports the identifier [ ` headingRank ` ] [ headingrank ] .
76
+ This package exports the identifier [ ` headingRank ` ] [ api-heading-rank ] .
77
77
There is no default export.
78
78
79
79
### ` headingRank(node) `
@@ -87,7 +87,7 @@ Get the rank (`1` to `6`) of headings (`h1` to `h6`).
87
87
88
88
###### Returns
89
89
90
- Rank of the heading or ` undefined ` if not a heading ( ` number | undefined ` ) .
90
+ Rank of the heading ( ` number ` ) or ` undefined ` if not a heading.
91
91
92
92
## Types
93
93
@@ -96,10 +96,13 @@ It exports no additional types.
96
96
97
97
## Compatibility
98
98
99
- Projects maintained by the unified collective are compatible with all maintained
99
+ Projects maintained by the unified collective are compatible with maintained
100
100
versions of Node.js.
101
- As of now, that is Node.js 14.14+ and 16.0+.
102
- Our projects sometimes work with older versions, but this is not guaranteed.
101
+
102
+ When we cut a new major release, we drop support for unmaintained versions of
103
+ Node.
104
+ This means we try to keep the current release line,
105
+ ` hast-util-heading-rank@^2 ` , compatible with Node.js 12.
103
106
104
107
## Security
105
108
@@ -141,9 +144,9 @@ abide by its terms.
141
144
142
145
[ downloads ] : https://www.npmjs.com/package/hast-util-heading-rank
143
146
144
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-heading-rank.svg
147
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-heading-rank
145
148
146
- [ size ] : https://bundlephobia .com/result?p =hast-util-heading-rank
149
+ [ size ] : https://bundlejs .com/?q =hast-util-heading-rank
147
150
148
151
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
149
152
@@ -183,4 +186,4 @@ abide by its terms.
183
186
184
187
[ hast-util-shift-heading ] : https://github.com/syntax-tree/hast-util-shift-heading
185
188
186
- [ headingrank ] : #headingranknode
189
+ [ api-heading-rank ] : #headingranknode
0 commit comments