@@ -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-script-supporting
@@ -73,13 +73,16 @@ scriptSupporting({
73
73
scriptSupporting ({
74
74
type: ' element' ,
75
75
tagName: ' template' ,
76
- children: [{type: ' text' , value: ' Delta' }]
76
+ properties: {},
77
+ children: [],
78
+ content: {type: ' root' , children: [{type: ' text' , value: ' Delta' }]}
77
79
}) // => true
78
80
```
79
81
80
82
## API
81
83
82
- This package exports the identifier [ ` scriptSupporting ` ] [ scriptsupporting ] .
84
+ This package exports the identifier
85
+ [ ` scriptSupporting ` ] [ api-script-supporting ] .
83
86
There is no default export.
84
87
85
88
### ` scriptSupporting(value) `
@@ -103,10 +106,13 @@ It exports no additional types.
103
106
104
107
## Compatibility
105
108
106
- Projects maintained by the unified collective are compatible with all maintained
109
+ Projects maintained by the unified collective are compatible with maintained
107
110
versions of Node.js.
108
- As of now, that is Node.js 14.14+ and 16.0+.
109
- Our projects sometimes work with older versions, but this is not guaranteed.
111
+
112
+ When we cut a new major release, we drop support for unmaintained versions of
113
+ Node.
114
+ This means we try to keep the current release line,
115
+ ` hast-util-script-supporting@^2 ` , compatible with Node.js 12.
110
116
111
117
## Security
112
118
@@ -174,9 +180,9 @@ abide by its terms.
174
180
175
181
[ downloads ] : https://www.npmjs.com/package/hast-util-script-supporting
176
182
177
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-script-supporting.svg
183
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-script-supporting
178
184
179
- [ size ] : https://bundlephobia .com/result?p =hast-util-script-supporting
185
+ [ size ] : https://bundlejs .com/?q =hast-util-script-supporting
180
186
181
187
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
182
188
@@ -216,4 +222,4 @@ abide by its terms.
216
222
217
223
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
218
224
219
- [ scriptsupporting ] : #scriptsupportingvalue
225
+ [ api-script-supporting ] : #scriptsupportingvalue
0 commit comments