Skip to content

Commit f51078c

Browse files
committed
Refactor docs
1 parent 7e7b87d commit f51078c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: readme.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You probably want the more powerful [`hastscript`][hastscript] or
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 hast-util-parse-selector
@@ -77,7 +77,7 @@ Yields:
7777

7878
## API
7979

80-
This package exports the identifier [`parseSelector`][parseselector].
80+
This package exports the identifier [`parseSelector`][api-parse-selector].
8181
There is no default export.
8282

8383
### `parseSelector(selector?[, defaultTagName])`
@@ -102,15 +102,15 @@ Built element ([`Element`][element]).
102102
This package is fully typed with [TypeScript][].
103103
It exports no additional types.
104104

105-
In TypeScript 4.2+, the type system can infer the tag name of literal
106-
`selector`s and knows that the return element has that name.
107-
108105
## Compatibility
109106

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

115115
## Security
116116

@@ -154,9 +154,9 @@ abide by its terms.
154154

155155
[downloads]: https://www.npmjs.com/package/hast-util-parse-selector
156156

157-
[size-badge]: https://img.shields.io/bundlephobia/minzip/hast-util-parse-selector.svg
157+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-parse-selector
158158

159-
[size]: https://bundlephobia.com/result?p=hast-util-parse-selector
159+
[size]: https://bundlejs.com/?q=hast-util-parse-selector
160160

161161
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
162162

@@ -200,4 +200,4 @@ abide by its terms.
200200

201201
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
202202

203-
[parseselector]: #parseselectorselector-defaulttagname
203+
[api-parse-selector]: #parseselectorselector-defaulttagname

0 commit comments

Comments
 (0)