@@ -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-transparent
@@ -66,6 +66,7 @@ import {transparent} from 'hast-util-transparent'
66
66
transparent ({
67
67
type: ' element' ,
68
68
tagName: ' div' ,
69
+ properties: {},
69
70
children: [{type: ' text' , value: ' Alpha' }]
70
71
}) // => false
71
72
@@ -79,7 +80,7 @@ transparent({
79
80
80
81
## API
81
82
82
- This package exports the identifier [ ` transparent ` ] [ transparent ] .
83
+ This package exports the identifier [ ` transparent ` ] [ api- transparent] .
83
84
There is no default export.
84
85
85
86
### ` transparent(value) `
@@ -106,10 +107,13 @@ It exports no additional types.
106
107
107
108
## Compatibility
108
109
109
- Projects maintained by the unified collective are compatible with all maintained
110
+ Projects maintained by the unified collective are compatible with maintained
110
111
versions of Node.js.
111
- As of now, that is Node.js 14.14+ and 16.0+.
112
- Our projects sometimes work with older versions, but this is not guaranteed.
112
+
113
+ When we cut a new major release, we drop support for unmaintained versions of
114
+ Node.
115
+ This means we try to keep the current release line, ` hast-util-transparent@^2 ` ,
116
+ compatible with Node.js 12.
113
117
114
118
## Security
115
119
@@ -177,9 +181,9 @@ abide by its terms.
177
181
178
182
[ downloads ] : https://www.npmjs.com/package/hast-util-transparent
179
183
180
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-transparent.svg
184
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-transparent
181
185
182
- [ size ] : https://bundlephobia .com/result?p =hast-util-transparent
186
+ [ size ] : https://bundlejs .com/?q =hast-util-transparent
183
187
184
188
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
185
189
@@ -219,4 +223,4 @@ abide by its terms.
219
223
220
224
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
221
225
222
- [ transparent ] : #transparentvalue
226
+ [ api- transparent] : #transparentvalue
0 commit comments