Skip to content

Commit

Permalink
Update docs for babel/parser 7.15 (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Sep 2, 2021
1 parent 4f9ce6f commit 31d737e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ require("@babel/parser").parse("code", {
<summary>History</summary>
| Version | Changes |
| --- | --- |
| `v7.15.0` | Added `hack` to the `proposal` option of `pipelineOperator`. Moved `topLevelAwait`, `privateIn` to Latest ECMAScript features |
| `v7.14.0` | Added `asyncDoExpressions`. Moved `classProperties`, `classPrivateProperties`, `classPrivateMethods`, `moduleStringNames` to Latest ECMAScript features |
| `v7.13.0` | Added `moduleBlocks` |
| `v7.12.0` | Added `classStaticBlock`, `moduleStringNames` |
Expand All @@ -214,10 +215,8 @@ require("@babel/parser").parse("code", {
| `moduleBlocks` ([proposal](https://github.com/tc39/proposal-js-module-blocks)) | `let m = module { export let y = 1; };` |
| `partialApplication` ([proposal](https://github.com/babel/proposals/issues/32)) | `f(?, a)` |
| `pipelineOperator` ([proposal](https://github.com/babel/proposals/issues/29)) | <code>a &#124;> b</code> |
| `privateIn` ([proposal](https://github.com/tc39/proposal-private-fields-in-in)) | `#p in obj` |
| `recordAndTuple` ([proposal](https://github.com/tc39/proposal-record-tuple)) | `#{x: 1}`, `#[1, 2]` |
| `throwExpressions` ([proposal](https://github.com/babel/proposals/issues/23)) | `() => throw new Error("")` |
| `topLevelAwait` ([proposal](https://github.com/tc39/proposal-top-level-await/)) | `await promise` in modules |

#### Latest ECMAScript features

Expand All @@ -241,6 +240,8 @@ You should enable these features only if you are using an older version.
| `objectRestSpread` ([proposal](https://github.com/tc39/proposal-object-rest-spread)) | `var a = { b, ...c };` |
| `optionalCatchBinding` ([proposal](https://github.com/babel/proposals/issues/7)) | `try {throw 0;} catch{do();}` |
| `optionalChaining` ([proposal](https://github.com/tc39/proposal-optional-chaining)) | `a?.b` |
| `privateIn` ([proposal](https://github.com/tc39/proposal-private-fields-in-in)) | `#p in obj` |
| `topLevelAwait` ([proposal](https://github.com/tc39/proposal-top-level-await/)) | `await promise` in modules |

#### Plugins options

Expand Down

0 comments on commit 31d737e

Please sign in to comment.