7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop

Babel 7.14.0 is out!
This release enables class fields and private methods by default (they were promoted to Stage 4 during the recent April TC39 meeting!) and adds brand checks for private fields and static class blocks to @babel/preset-env’s shippedP…


This content originally appeared on Babel Blog and was authored by Babel Team

Babel 7.14.0 is out!

This release enables class fields and private methods by default (they were promoted to Stage 4 during the recent April TC39 meeting!) and adds brand checks for private fields and static class blocks to @babel/preset-env's shippedProposals option.

We added support for Stage 1 async do expressions (using @babel/plugin-proposal-async-do-expressions), which extends the Stage 1 do expression proposal.

Thanks to Sosuke Suzuki and Pig Fang, Babel can now handle TypeScript 4.3 features. @babel/parser also has a new option to correctly parse TypeScript declaration files.

Finally, we introduced a new importInterop: node option to make it easier to produce dual modules by compiling ECMAScript imports to CommonJS that follow Node.js semantics.

You can read the whole changelog on GitHub.


This content originally appeared on Babel Blog and was authored by Babel Team


Print Share Comment Cite Upload Translate Updates
APA

Babel Team | Sciencx (2021-04-29T06:00:00+00:00) 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop. Retrieved from https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/

MLA
" » 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop." Babel Team | Sciencx - Thursday April 29, 2021, https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/
HARVARD
Babel Team | Sciencx Thursday April 29, 2021 » 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop., viewed ,<https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/>
VANCOUVER
Babel Team | Sciencx - » 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/
CHICAGO
" » 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop." Babel Team | Sciencx - Accessed . https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/
IEEE
" » 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop." Babel Team | Sciencx [Online]. Available: https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/. [Accessed: ]
rf:citation
» 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop | Babel Team | Sciencx | https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.