@@ -39,7 +39,7 @@ It’s small and protects against prototype pollution.
39
39
## Install
40
40
41
41
This package is [ ESM only] [ esm ] .
42
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
42
+ In Node.js (version 16 +), install with [ npm] [ ] :
43
43
44
44
``` sh
45
45
npm install mdast-util-definitions
@@ -62,8 +62,8 @@ In browsers with [`esm.sh`][esmsh]:
62
62
## Use
63
63
64
64
``` js
65
- import {fromMarkdown } from ' mdast-util-from-markdown'
66
65
import {definitions } from ' mdast-util-definitions'
66
+ import {fromMarkdown } from ' mdast-util-from-markdown'
67
67
68
68
const tree = fromMarkdown (' [example]: https://example.com "Example"' )
69
69
@@ -118,10 +118,13 @@ It exports the additional type [`GetDefinition`][api-getdefinition].
118
118
119
119
## Compatibility
120
120
121
- Projects maintained by the unified collective are compatible with all maintained
121
+ Projects maintained by the unified collective are compatible with maintained
122
122
versions of Node.js.
123
- As of now, that is Node.js 14.14+ and 16.0+.
124
- Our projects sometimes work with older versions, but this is not guaranteed.
123
+
124
+ When we cut a new major release, we drop support for unmaintained versions of
125
+ Node.
126
+ This means we try to keep the current release line,
127
+ ` mdast-util-definitions@^6 ` , compatible with Node.js 12.
125
128
126
129
## Security
127
130
@@ -162,9 +165,9 @@ abide by its terms.
162
165
163
166
[ downloads ] : https://www.npmjs.com/package/mdast-util-definitions
164
167
165
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ mdast-util-definitions.svg
168
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-util-definitions
166
169
167
- [ size ] : https://bundlephobia .com/result?p =mdast-util-definitions
170
+ [ size ] : https://bundlejs .com/?q =mdast-util-definitions
168
171
169
172
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
170
173
0 commit comments