From 83eb10be3a3607237c1073077dc41d1f2607dbe7 Mon Sep 17 00:00:00 2001 From: sosukesuzuki Date: Fri, 30 Apr 2021 12:10:17 +0900 Subject: [PATCH 1/4] Update parser docs for plugins enabled by default --- docs/parser.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/parser.md b/docs/parser.md index e8b9b804b5..8614613509 100644 --- a/docs/parser.md +++ b/docs/parser.md @@ -184,7 +184,7 @@ require("@babel/parser").parse("code", { History | Version | Changes | | --- | --- | -| `v7.14.0` | Added `asyncDoExpressions` | +| `v7.14.0` | Added `asyncDoExpressions` Move `classProperties`, `classPrivateProperties`, `classPrivateMethods` to Latest ECMAScript features | | `v7.13.0` | Added `moduleBlocks` | | `v7.12.0` | Added `classStaticBlock`, `moduleStringNames` | | `v7.11.0` | Added `decimal` | @@ -235,6 +235,9 @@ 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` | +| `classProperties` ([proposal](https://github.com/tc39/proposal-class-public-fields)) | `class A { b = 1; }` | +| `classPrivateProperties` ([proposal](https://github.com/tc39/proposal-private-fields)) | `class A { #b = 1; }` | +| `classPrivateMethods` ([proposal](https://github.com/tc39/proposal-private-methods)) | `class A { #c() {} }` | #### Plugins options From fe5eb29a236259b2ace2f951775f7954c2576659 Mon Sep 17 00:00:00 2001 From: sosukesuzuki Date: Sat, 1 May 2021 12:46:57 +0900 Subject: [PATCH 2/4] Add moduleStringNames --- docs/parser.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/parser.md b/docs/parser.md index 8614613509..331d45c39e 100644 --- a/docs/parser.md +++ b/docs/parser.md @@ -184,7 +184,7 @@ require("@babel/parser").parse("code", { History | Version | Changes | | --- | --- | -| `v7.14.0` | Added `asyncDoExpressions` Move `classProperties`, `classPrivateProperties`, `classPrivateMethods` to Latest ECMAScript features | +| `v7.14.0` | Added `asyncDoExpressions` Move `classProperties`, `classPrivateProperties`, `classPrivateMethods`, `moduleStringNames` to Latest ECMAScript features | | `v7.13.0` | Added `moduleBlocks` | | `v7.12.0` | Added `classStaticBlock`, `moduleStringNames` | | `v7.11.0` | Added `decimal` | @@ -238,6 +238,7 @@ You should enable these features only if you are using an older version. | `classProperties` ([proposal](https://github.com/tc39/proposal-class-public-fields)) | `class A { b = 1; }` | | `classPrivateProperties` ([proposal](https://github.com/tc39/proposal-private-fields)) | `class A { #b = 1; }` | | `classPrivateMethods` ([proposal](https://github.com/tc39/proposal-private-methods)) | `class A { #c() {} }` | +| `moduleStringNames` ([proposal](https://github.com/tc39/ecma262/pull/2154)) | `import { "😄" as smile } from "emoji";` | #### Plugins options From 3936c2ac441163f51fd22a2095251a3c606f0ea8 Mon Sep 17 00:00:00 2001 From: sosukesuzuki Date: Sat, 1 May 2021 13:53:53 +0900 Subject: [PATCH 3/4] Tweaks for rebasing --- docs/parser.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/parser.md b/docs/parser.md index 331d45c39e..33aa601a48 100644 --- a/docs/parser.md +++ b/docs/parser.md @@ -235,10 +235,6 @@ 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` | -| `classProperties` ([proposal](https://github.com/tc39/proposal-class-public-fields)) | `class A { b = 1; }` | -| `classPrivateProperties` ([proposal](https://github.com/tc39/proposal-private-fields)) | `class A { #b = 1; }` | -| `classPrivateMethods` ([proposal](https://github.com/tc39/proposal-private-methods)) | `class A { #c() {} }` | -| `moduleStringNames` ([proposal](https://github.com/tc39/ecma262/pull/2154)) | `import { "😄" as smile } from "emoji";` | #### Plugins options From 14e59078c291afcef2ba79da64ec48a7d77825bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 3 May 2021 13:26:39 -0400 Subject: [PATCH 4/4] Update docs/parser.md --- docs/parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/parser.md b/docs/parser.md index 33aa601a48..6b6aef2c38 100644 --- a/docs/parser.md +++ b/docs/parser.md @@ -184,7 +184,7 @@ require("@babel/parser").parse("code", { History | Version | Changes | | --- | --- | -| `v7.14.0` | Added `asyncDoExpressions` Move `classProperties`, `classPrivateProperties`, `classPrivateMethods`, `moduleStringNames` 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` | | `v7.11.0` | Added `decimal` |