@@ -37,7 +37,7 @@ You can use [`unist-util-visit`][unist-util-visit] yourself as well.
37
37
## Install
38
38
39
39
This package is [ ESM only] [ esm ] .
40
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
40
+ In Node.js (version 16 +), install with [ npm] [ ] :
41
41
42
42
``` sh
43
43
npm install unist-util-size
@@ -91,7 +91,7 @@ Calculate the number of nodes in `tree`.
91
91
92
92
* ` tree ` ([ ` Node ` ] [ node ] )
93
93
— tree to traverse
94
- * ` test ` ([ ` Test ` ] [ test ] )
94
+ * ` test ` ([ ` Test ` ] [ test ] , optional )
95
95
— ` unist-util-is ` compatible test (such as a node type)
96
96
97
97
###### Returns
@@ -105,10 +105,13 @@ It exports no additional types.
105
105
106
106
## Compatibility
107
107
108
- Projects maintained by the unified collective are compatible with all maintained
108
+ Projects maintained by the unified collective are compatible with maintained
109
109
versions of Node.js.
110
- As of now, that is Node.js 14.14+ and 16.0+.
111
- Our projects sometimes work with older versions, but this is not guaranteed.
110
+
111
+ When we cut a new major release, we drop support for unmaintained versions of
112
+ Node.
113
+ This means we try to keep the current release line, ` unist-util-size@^3 ` ,
114
+ compatible with Node.js 12.
112
115
113
116
## Related
114
117
@@ -143,9 +146,9 @@ abide by its terms.
143
146
144
147
[ downloads ] : https://www.npmjs.com/package/unist-util-size
145
148
146
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ unist-util-size.svg
149
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= unist-util-size
147
150
148
- [ size ] : https://bundlephobia .com/result?p =unist-util-size
151
+ [ size ] : https://bundlejs .com/?q =unist-util-size
149
152
150
153
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
151
154
0 commit comments