Skip to content

Commit 4b8eebc

Browse files
committed
Add improved types
1 parent 167e6f7 commit 4b8eebc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

readme.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* [Types](#types)
2525
* [Compatibility](#compatibility)
2626
* [Related](#related)
27+
* [Security](#security)
2728
* [Contribute](#contribute)
2829
* [License](#license)
2930

@@ -41,7 +42,7 @@ If you have code, using something like [SWC][] or [esbuild][] instead.
4142
## Install
4243

4344
This package is [ESM only][esm].
44-
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:
45+
In Node.js (version 14.14+, 16.0+), install with [npm][]:
4546

4647
```sh
4748
npm install estree-util-build-jsx
@@ -224,22 +225,22 @@ they work on slightly different syntax trees.
224225
225226
Some differences:
226227
227-
* No pure annotations things
228+
* no pure annotations things
228229
* `this` is not a component: `<this>` -> `h('this')`, not `h(this)`
229-
* Namespaces are supported: `<a:b c:d>` -> `h('a:b', {'c:d': true})`,
230+
* namespaces are supported: `<a:b c:d>` -> `h('a:b', {'c:d': true})`,
230231
which throws by default in Babel or can be turned on with `throwIfNamespace`
231-
* No `useSpread`, `useBuiltIns`, or `filter` options
232+
* no `useSpread`, `useBuiltIns`, or `filter` options
232233
233234
## Types
234235
235236
This package is fully typed with [TypeScript][].
236-
It exports the types `Options` and `Node`.
237+
It exports the additional type `Options`.
237238
238239
## Compatibility
239240
240241
Projects maintained by the unified collective are compatible with all maintained
241242
versions of Node.js.
242-
As of now, that is Node.js 12.20+, 14.14+, and 16.0+.
243+
As of now, that is Node.js 14.14+ and 16.0+.
243244
Our projects sometimes work with older versions, but this is not guaranteed.
244245
245246
## Related
@@ -250,6 +251,10 @@ Our projects sometimes work with older versions, but this is not guaranteed.
250251
* [`coderaiser/estree-to-babel`](https://github.com/coderaiser/estree-to-babel)
251252
— turn [estree][] to Babel trees
252253
254+
## Security
255+
256+
This package is safe.
257+
253258
## Contribute
254259
255260
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get

0 commit comments

Comments
 (0)