@@ -38,7 +38,7 @@ looking for!
38
38
## Install
39
39
40
40
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] [ ] :
42
42
43
43
``` sh
44
44
npm install hast-util-has-property
@@ -88,12 +88,12 @@ hasProperty(
88
88
89
89
## API
90
90
91
- This package exports the identifier [ ` hasProperty ` ] [ hasproperty ] .
91
+ This package exports the identifier [ ` hasProperty ` ] [ api-has-property ] .
92
92
There is no default export.
93
93
94
94
### ` hasProperty(node, field) `
95
95
96
- Check if ` node ` is an element and has a ` field ` property.
96
+ Check if ` node ` is an element and has a ` name ` property.
97
97
98
98
###### Parameters
99
99
@@ -111,10 +111,13 @@ It exports no additional types.
111
111
112
112
## Compatibility
113
113
114
- Projects maintained by the unified collective are compatible with all maintained
114
+ Projects maintained by the unified collective are compatible with maintained
115
115
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.
118
121
119
122
## Security
120
123
@@ -182,9 +185,9 @@ abide by its terms.
182
185
183
186
[ downloads ] : https://www.npmjs.com/package/hast-util-has-property
184
187
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
186
189
187
- [ size ] : https://bundlephobia .com/result?p =hast-util-has-property
190
+ [ size ] : https://bundlejs .com/?q =hast-util-has-property
188
191
189
192
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
190
193
@@ -222,4 +225,4 @@ abide by its terms.
222
225
223
226
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
224
227
225
- [ hasproperty ] : #haspropertynode-field
228
+ [ api-has-property ] : #haspropertynode-field
0 commit comments