Skip to main content

7.5.0 发布:动态导入和 F# 流水线

· 14 min read

今天我们发布了 Babel 7.5.0!

🌐 Today we are releasing Babel 7.5.0!

这个版本增加了对一些 ECMAScript 提案的更好支持:Stage 1 流水线操作符的 F# 变体,以及 Stage 4 动态 import() 提案的官方插件(同时支持 preset-env)。 它还支持 TypeScript 的 namespace(实验性)以及 Browserslist 中 preset-env 的 default 查询。

🌐 This release includes improved support for a few ECMAScript proposals: the F# variant of the Stage 1 pipeline operator and an official plugin for the Stage 4 dynamic import() proposal (along with preset-env support). It also has support for TypeScript namespaces (experimental) and for Browserslist's default query in preset-env.

你可以在 GitHub 上阅读完整的更新日志。

🌐 You can read the whole changelog on GitHub.

巴别播客

· 8 min read

今天我们要宣布推出 Babel播客!

🌐 Today we're announcing the The Babel Podcast!

你可能在直接使用 Babel,或者通过依赖在使用它。但你有没有想过是谁在维护它?Henry Zhu 与团队其他成员、TC39 和 JS 社区聊起了 JavaScript 的未来以及它是如何被维护的。请加入我们,一起唠唠 Babel(以及其他一切)吧!

订阅方式: Apple | Google | Spotify | RSS​

🌐 Subscribe with: Apple | Google | Spotify | RSS

7.4.0 发布:core-js 3、静态私有方法和部分应用

· 20 min read

今天我们发布了 Babel 7.4.0!

🌐 Today we are releasing Babel 7.4.0!

这个版本增加了对 TypeScript 3.4 的支持、函数调用中部分应用的提案,以及静态私有方法。

🌐 This release includes support for TypeScript 3.4, the proposal for partial application in function calls, and static private methods.

我们在 @babel/parser 中增加了对有意义的括号表达式的支持,而且现在它比以往任何时候都更符合规范了!

🌐 We added support for meaningful parenthesized expressions in @babel/parser, and also made it more spec compliant than ever!

最后但同样重要的是,@babel/preset-env 和 @babel/transform-runtime 现在都支持 core-js@3,而 @babel/template 有了一些很棒的新语法!

🌐 Last but not least, both @babel/preset-env and @babel/transform-runtime now support core-js@3, and @babel/template has some sweet new syntax!

你可以在 GitHub 上阅读完整的更新日志。

🌐 You can read the whole changelog on GitHub.

7.3.0 发布:命名捕获组、私有实例访问器和智能管道

· 9 min read

经过超过80次提交,最新的Babel小版本发布啦!

🌐 After over 80 commits, the latest Babel minor release is here!

这个版本增加了对正则表达式中命名捕获组的支持、私有实例访问器、智能管道操作符,以及对 TypeScript 解析的一堆改进。你可以在 GitHub 查看完整的更新日志。

🌐 This release includes support for named capturing groups in regular expressions, private instance accessors, the smart pipeline operator and a bunch of improvements to TypeScript parsing. You can read the whole changelog on GitHub.

7.2.0 发布:私有实例方法

· 6 min read

我们刚刚发布了 Babel 的一个新小版本!

🌐 We just released a new minor version of Babel!

此版本增加了对私有实例方法的支持,并修复了许多与 Flow 和 TypeScript 类型相关的 bug。你可以在 GitHub 上阅读完整的更新日志。

🌐 This release includes support for private instance methods and a bunch of bug fixes regarding Flow and TypeScript types. You can read the whole changelog on GitHub.

7.1.0 发布:装饰器、私有静态字段

· 5 min read

已经有另一个版本了!7.1.0 包含对阶段 2 装饰器的支持,并增加了对阶段 3 私有静态字段的支持,同时修复了一些各种的 bug。

🌐 There's already another release! 7.1.0 includes support for Stage 2 Decorators and adds support for Stage 3 Private Static Fields as well as some various bug fixes.

Babel 7 发布了

· 47 min read

经过将近 2 年、4000 次提交、50 多个预发布版本,以及大量的帮助,我们很高兴地宣布 Babel 7 的发布。自 Babel 6 发布以来已经将近 3 年 了!由于涉及的部分很多,请在发布的最初几周多多包涵。Babel 7 是一次重大的发布:我们让它更快了,创建了升级工具、JS 配置、配置“覆盖”、更多的大小/压缩选项、JSX 片段、TypeScript、新提案等等!

🌐 After almost 2 years, 4k commits, over 50 pre-releases, and a lot of help we are excited to announce the release of Babel 7. It's been almost 3 years since the release of Babel 6! There's a lot of moving parts so please bear with us in the first weeks of release. Babel 7 is a huge release: we've made it faster, created an upgrade tool, JS configs, config "overrides", more options for size/minification, JSX Fragments, TypeScript, new proposals, and more!

移除 Babel 的阶段预设

· 25 min read

在 v7 之后,我们决定最好停止在 Babel 中发布 Stage 预设(例如 @babel/preset-stage-0)。

🌐 Moving forward with v7, we've decided it's best to stop publishing the Stage presets in Babel (e.g. @babel/preset-stage-0).

我们不是轻率做出这个决定的,我们想展示 TC39、Babel 和社区之间互动的背景。

🌐 We didn't make this decision lightly and wanted to show the context behind the interplay between TC39, Babel, and the community.

管道 (|>) 提案现在怎么样了?

· 14 min read

随着 babel@7.0.0-beta52 的发布,我们在 @babel/plugin-proposal-pipeline-operator 中引入了一个新的必需配置标志,这对于管道操作符来说是一个破坏性更改。为了消除任何混淆,我们来看看管道提案,以及为什么我们需要引入这个配置选项。

🌐 With the release of babel@7.0.0-beta52, we introduced a new required configuration flag to @babel/plugin-proposal-pipeline-operator, a breaking change for the pipeline operator. To clear up any confusion, let's take a look at the pipeline proposal and why we needed to introduce this configuration option.