Skip to content

Commit e1918e9

Browse files
committed
Refactor docs
1 parent fe69cd6 commit e1918e9

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

readme.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ But this helps when integrating with the rest of unified and unist.
3838
## Install
3939

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

4343
```sh
4444
npm install unist-util-find-all-before
@@ -90,7 +90,7 @@ Yields:
9090

9191
## API
9292

93-
This package exports the identifier [`findAllBefore`][api-findallbefore].
93+
This package exports the identifier [`findAllBefore`][api-find-all-before].
9494
There is no default export.
9595

9696
### `findAllBefore(parent, child|index[, test])`
@@ -120,10 +120,13 @@ It exports no additional types (types for the test are in `unist-util-is`).
120120

121121
## Compatibility
122122

123-
Projects maintained by the unified collective are compatible with all maintained
123+
Projects maintained by the unified collective are compatible with maintained
124124
versions of Node.js.
125-
As of now, that is Node.js 14.14+ and 16.0+.
126-
Our projects sometimes work with older versions, but this is not guaranteed.
125+
126+
When we cut a new major release, we drop support for unmaintained versions of
127+
Node.
128+
This means we try to keep the current release line,
129+
`unist-util-find-all-before@^4`, compatible with Node.js 12.
127130

128131
## Related
129132

@@ -178,9 +181,9 @@ abide by its terms.
178181

179182
[downloads]: https://www.npmjs.com/package/unist-util-find-all-before
180183

181-
[size-badge]: https://img.shields.io/bundlephobia/minzip/unist-util-find-all-before.svg
184+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-find-all-before
182185

183-
[size]: https://bundlephobia.com/result?p=unist-util-find-all-before
186+
[size]: https://bundlejs.com/?q=unist-util-find-all-before
184187

185188
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
186189

@@ -218,4 +221,4 @@ abide by its terms.
218221

219222
[test]: https://github.com/syntax-tree/unist-util-is#test
220223

221-
[api-findallbefore]: #findallbeforeparent-childindex-test
224+
[api-find-all-before]: #findallbeforeparent-childindex-test

0 commit comments

Comments
 (0)