Skip to content

Commit 87b618b

Browse files
committed
Refactor docs
1 parent 66b5678 commit 87b618b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

readme.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ looking for!
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-has-property
@@ -88,12 +88,12 @@ hasProperty(
8888

8989
## API
9090

91-
This package exports the identifier [`hasProperty`][hasproperty].
91+
This package exports the identifier [`hasProperty`][api-has-property].
9292
There is no default export.
9393

9494
### `hasProperty(node, field)`
9595

96-
Check if `node`is an element and has a `field` property.
96+
Check if `node`is an element and has a `name` property.
9797

9898
###### Parameters
9999

@@ -111,10 +111,13 @@ It exports no additional types.
111111

112112
## Compatibility
113113

114-
Projects maintained by the unified collective are compatible with all maintained
114+
Projects maintained by the unified collective are compatible with maintained
115115
versions of Node.js.
116-
As of now, that is Node.js 14.14+ and 16.0+.
117-
Our projects sometimes work with older versions, but this is not guaranteed.
116+
117+
When we cut a new major release, we drop support for unmaintained versions of
118+
Node.
119+
This means we try to keep the current release line,
120+
`hast-util-has-property@^2`, compatible with Node.js 12.
118121

119122
## Security
120123

@@ -182,9 +185,9 @@ abide by its terms.
182185

183186
[downloads]: https://www.npmjs.com/package/hast-util-has-property
184187

185-
[size-badge]: https://img.shields.io/bundlephobia/minzip/hast-util-has-property.svg
188+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-has-property
186189

187-
[size]: https://bundlephobia.com/result?p=hast-util-has-property
190+
[size]: https://bundlejs.com/?q=hast-util-has-property
188191

189192
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
190193

@@ -222,4 +225,4 @@ abide by its terms.
222225

223226
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
224227

225-
[hasproperty]: #haspropertynode-field
228+
[api-has-property]: #haspropertynode-field

0 commit comments

Comments
 (0)