Skip to content

Commit bdd5362

Browse files
committed
Refactor docs
1 parent 84272f7 commit bdd5362

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

readme.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can use [`unist-util-visit`][unist-util-visit] yourself as well.
3737
## Install
3838

3939
This package is [ESM only][esm].
40-
In Node.js (version 14.14+ and 16.0+), install with [npm][]:
40+
In Node.js (version 16+), install with [npm][]:
4141

4242
```sh
4343
npm install unist-util-size
@@ -91,7 +91,7 @@ Calculate the number of nodes in `tree`.
9191

9292
* `tree` ([`Node`][node])
9393
— tree to traverse
94-
* `test` ([`Test`][test])
94+
* `test` ([`Test`][test], optional)
9595
`unist-util-is` compatible test (such as a node type)
9696

9797
###### Returns
@@ -105,10 +105,13 @@ It exports no additional types.
105105

106106
## Compatibility
107107

108-
Projects maintained by the unified collective are compatible with all maintained
108+
Projects maintained by the unified collective are compatible with maintained
109109
versions of Node.js.
110-
As of now, that is Node.js 14.14+ and 16.0+.
111-
Our projects sometimes work with older versions, but this is not guaranteed.
110+
111+
When we cut a new major release, we drop support for unmaintained versions of
112+
Node.
113+
This means we try to keep the current release line, `unist-util-size@^3`,
114+
compatible with Node.js 12.
112115

113116
## Related
114117

@@ -143,9 +146,9 @@ abide by its terms.
143146

144147
[downloads]: https://www.npmjs.com/package/unist-util-size
145148

146-
[size-badge]: https://img.shields.io/bundlephobia/minzip/unist-util-size.svg
149+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-size
147150

148-
[size]: https://bundlephobia.com/result?p=unist-util-size
151+
[size]: https://bundlejs.com/?q=unist-util-size
149152

150153
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
151154

0 commit comments

Comments
 (0)