@@ -46,7 +46,7 @@ of does the inverse: it takes a node and gets its text.
46
46
## Install
47
47
48
48
This package is [ ESM only] [ esm ] .
49
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
49
+ In Node.js (version 16 +), install with [ npm] [ ] :
50
50
51
51
``` sh
52
52
npm install hast-util-from-text
@@ -114,7 +114,7 @@ Yields:
114
114
115
115
## API
116
116
117
- This package exports the identifier [ ` fromText ` ] [ fromtext ] .
117
+ This package exports the identifier [ ` fromText ` ] [ api-from-text ] .
118
118
There is no default export.
119
119
120
120
### ` fromText(node[, value]) `
@@ -151,10 +151,13 @@ It exports no additional types.
151
151
152
152
## Compatibility
153
153
154
- Projects maintained by the unified collective are compatible with all maintained
154
+ Projects maintained by the unified collective are compatible with maintained
155
155
versions of Node.js.
156
- As of now, that is Node.js 14.14+ and 16.0+.
157
- Our projects sometimes work with older versions, but this is not guaranteed.
156
+
157
+ When we cut a new major release, we drop support for unmaintained versions of
158
+ Node.
159
+ This means we try to keep the current release line, ` hast-util-from-text@^2 ` ,
160
+ compatible with Node.js 12.
158
161
159
162
## Security
160
163
@@ -202,9 +205,9 @@ abide by its terms.
202
205
203
206
[ downloads ] : https://www.npmjs.com/package/hast-util-from-text
204
207
205
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-from-text.svg
208
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-from-text
206
209
207
- [ size ] : https://bundlephobia .com/result?p =hast-util-from-text
210
+ [ size ] : https://bundlejs .com/?q =hast-util-from-text
208
211
209
212
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
210
213
@@ -248,4 +251,4 @@ abide by its terms.
248
251
249
252
[ hast-util-to-text ] : https://github.com/syntax-tree/hast-util-to-text
250
253
251
- [ fromtext ] : #fromtextnode-value
254
+ [ api-from-text ] : #fromtextnode-value
0 commit comments