@@ -47,7 +47,7 @@ the same but uses a heading to mark the start and end of sections.
47
47
## Install
48
48
49
49
This package is [ ESM only] [ esm ] .
50
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
50
+ In Node.js (version 16 +), install with [ npm] [ ] :
51
51
52
52
``` sh
53
53
npm install mdast-zone
82
82
…and a module ` example.js ` :
83
83
84
84
``` js
85
- import {read } from ' to-vfile'
86
- import {remark } from ' remark'
87
85
import {zone } from ' mdast-zone'
86
+ import {remark } from ' remark'
87
+ import {read } from ' to-vfile'
88
88
89
89
const file = await remark ()
90
90
.use (myPluginThatReplacesFoo)
@@ -137,7 +137,7 @@ Search `tree` for a start and end comments matching `name` and change their
137
137
138
138
###### Returns
139
139
140
- Nothing (` void ` ).
140
+ Nothing (` undefined ` ).
141
141
142
142
### ` Handler `
143
143
@@ -183,10 +183,13 @@ It exports the additional types [`Handler`][api-handler] and
183
183
184
184
## Compatibility
185
185
186
- Projects maintained by the unified collective are compatible with all maintained
186
+ Projects maintained by the unified collective are compatible with maintained
187
187
versions of Node.js.
188
- As of now, that is Node.js 14.14+ and 16.0+.
189
- Our projects sometimes work with older versions, but this is not guaranteed.
188
+
189
+ When we cut a new major release, we drop support for unmaintained versions of
190
+ Node.
191
+ This means we try to keep the current release line, ` mdast-zone@^5 ` ,
192
+ compatible with Node.js 12.
190
193
191
194
## Security
192
195
@@ -247,9 +250,9 @@ abide by its terms.
247
250
248
251
[ downloads ] : https://www.npmjs.com/package/mdast-zone
249
252
250
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ mdast-zone.svg
253
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-zone
251
254
252
- [ size ] : https://bundlephobia .com/result?p =mdast-zone
255
+ [ size ] : https://bundlejs .com/?q =mdast-zone
253
256
254
257
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
255
258
0 commit comments