Skip to content

Commit

Permalink
feat: support ES2023 and ES2024
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Jul 2, 2024
1 parent 5c5dbd5 commit a03f0b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Leaves properties defined in [The ESTree Spec](https://github.com/estree/estree)
- [ES2020](https://github.com/estree/estree/blob/master/es2020.md)
- [ES2021](https://github.com/estree/estree/blob/master/es2021.md)
- [ES2022](https://github.com/estree/estree/blob/master/es2022.md)
- ES2023
- ES2024


### const customizedCloneFunctionWithAllowList = espurify.cloneWithAllowlist(allowList)
Expand Down Expand Up @@ -88,7 +90,7 @@ Configuration options. If not passed, default options will be used.
|:---------------------|:--------------|
| `string` or `number` | `2022` |
Indicates the ECMAScript version to clone. Must be either 5, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022.
Indicates the ECMAScript version to clone. Must be either 5, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024.
#### options.extra
Expand Down
2 changes: 2 additions & 0 deletions lib/ast-properties/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const ecmaVersions = {
2024: require('./es2022'), // no change in AST Node level
2023: require('./es2022'), // no change in AST Node level
2022: require('./es2022'),
2021: require('./es2020'), // no change in AST Node level
2020: require('./es2020'),
Expand Down

0 comments on commit a03f0b2

Please sign in to comment.