@@ -45,7 +45,7 @@ for any [unist][] node.
45
45
## Install
46
46
47
47
This package is [ ESM only] [ esm ] .
48
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
48
+ In Node.js (version 16 +), install with [ npm] [ ] :
49
49
50
50
``` sh
51
51
npm install mdast-util-assert
@@ -111,7 +111,7 @@ Nothing.
111
111
###### Throws
112
112
113
113
When ` tree ` (or its descendants) is not an mdast node
114
- ([ ` AssertionError ` ] [ assertionerror ] ).
114
+ ([ ` AssertionError ` ] [ api-assertion-error ] ).
115
115
116
116
### ` parent(tree[, parent]) `
117
117
@@ -135,7 +135,7 @@ Nothing.
135
135
###### Throws
136
136
137
137
When ` tree ` is not a parent or its descendants are not nodes
138
- ([ ` AssertionError ` ] [ assertionerror ] )
138
+ ([ ` AssertionError ` ] [ api-assertion-error ] )
139
139
140
140
### ` literal(node[, parent]) `
141
141
@@ -156,7 +156,7 @@ Nothing.
156
156
157
157
###### Throws
158
158
159
- When ` node ` is not an mdast literal ([ ` AssertionError ` ] [ assertionerror ] ).
159
+ When ` node ` is not an mdast literal ([ ` AssertionError ` ] [ api-assertion-error ] ).
160
160
161
161
### ` _void(node[, parent]) `
162
162
@@ -173,14 +173,17 @@ Re-exported from [`unist-util-assert`][unist-util-assert-assertionerror].
173
173
## Types
174
174
175
175
This package is fully typed with [ TypeScript] [ ] .
176
- It exports the additional type [ ` AssertionError ` ] [ assertionerror ] .
176
+ It exports the additional type [ ` AssertionError ` ] [ api-assertion-error ] .
177
177
178
178
## Compatibility
179
179
180
- Projects maintained by the unified collective are compatible with all maintained
180
+ Projects maintained by the unified collective are compatible with maintained
181
181
versions of Node.js.
182
- As of now, that is Node.js 14.14+ and 16.0+.
183
- Our projects sometimes work with older versions, but this is not guaranteed.
182
+
183
+ When we cut a new major release, we drop support for unmaintained versions of
184
+ Node.
185
+ This means we try to keep the current release line, ` mdast-util-assert@^4 ` ,
186
+ compatible with Node.js 12.
184
187
185
188
## Security
186
189
@@ -224,9 +227,9 @@ abide by its terms.
224
227
225
228
[ downloads ] : https://www.npmjs.com/package/mdast-util-assert
226
229
227
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ mdast-util-assert.svg
230
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-util-assert
228
231
229
- [ size ] : https://bundlephobia .com/result?p =mdast-util-assert
232
+ [ size ] : https://bundlejs .com/?q =mdast-util-assert
230
233
231
234
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
232
235
@@ -284,7 +287,7 @@ abide by its terms.
284
287
285
288
[ api-wrap ] : #wrapfn
286
289
287
- [ assertionerror ] : #assertionerror
290
+ [ api-assertion-error ] : #assertionerror
288
291
289
292
[ unist-util-assert-void ] : https://github.com/syntax-tree/unist-util-assert#_voidnode-parent
290
293
0 commit comments