Babel v7.0.0-alpha.17 Release Notes
Release Date: 2017-07-26 // over 6 years ago-
- ๐ Lots of bug fixes
- ๐ฆ
function.sent
(temporary atbabel-plugin-transform-function-sent2
until we get access to the npm package) EDIT: republishedbabel-plugin-transform-function-sent
- ๐ Optional catch binding
try {} catch {}
:babel-plugin-transform-optional-catch-binding
- es2015-parameters
loose
mode that doesn't usearguments
:eyeglasses: Spec Compliance
- ๐
babel-plugin-check-es2015-constants
- #5930 Spec compliance of check-es2015-constants plugin. (@maurobringolf)
Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation.
:boom: Breaking Change
- ๐
babel-plugin-transform-flow-comments
- #5970 Remove noop. (@jridgewell)
๐ > Removes the "Noop" AST node, which was only used in the flow-comments plugin and probably unlikely in the ecosystem.
:rocket: New Feature
- ๐
babel-plugin-transform-react-constant-elements
If you know a certain property will be ok to hoist
{ "plugins": [ ["transform-react-constant-elements", {"allowMutablePropsOnTags": ["FormattedMessage"]}], ] }
babel-generator
,babel-types
- ๐
babel-generator
,babel-plugin-transform-flow-strip-types
,babel-types
- #5984 Add support for flow predicates in babel-generator. (@existentialism)
declare function foo(x: mixed): boolean %checks(x !== null);
- ๐
babel-generator
,babel-plugin-transform-flow-strip-types
- #5985 Add support for export type star in babel-generator. (@existentialism)
declare module "foo" { declare export type * from "bar"; }
- ๐
babel-helper-remap-async-to-generator
,babel-helper-wrap-function
,babel-helpers
,babel-plugin-transform-function-sent
,babel-preset-stage-2
- #5920 Function sent. (@nicolo-ribaudo)
function* gen() { let a = function.sent; }
let gen = _skipFirstGeneratorNext(function* gen() { const _functionSent = yield; let a = _functionSentt; });
- ๐
babel-core
,babel-generator
,babel-plugin-syntax-optional-catch-binding
,babel-plugin-transform-optional-catch-binding
,babel-template
,babel-traverse
,babel-types
try { } catch {}
- ๐
babel-plugin-transform-es2015-parameters
- #5943 2nd try: Add loose option for es2015-parameters transformation. (@maurobringolf)
Non-spec compliant transform (disregards arity) but doesn't use
arguments
var t = function (f = "foo") { return f + " bar"; };
var t = function (f) { if (f === void 0) { f = "foo"; } return f + " bar"; };
:bug: Bug Fix
- ๐
babel-core
,babel-helpers
,babel-plugin-transform-object-rest-spread
,babel-plugin-transform-react-constant-elements
babel-traverse
- ๐
babel-helper-builder-binary-assignment-operator-visitor
,babel-helper-explode-assignable-expression
,babel-plugin-transform-exponentiation-operator
- #5969 Fixup builder-binary-assignment-operator-visitor. (@jridgewell)
- ๐
babel-plugin-transform-es2015-for-of
,babel-traverse
- #5835 Fix a few type inferences. (@jridgewell)
- ๐
babel-plugin-transform-numeric-separator
,babel-types
- #5968 Fix numeric-separator transform. (@jridgewell)
- ๐
babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-modules-umd
- #5953 Support exporting deep destructuring. (@jridgewell)
- ๐
babel-plugin-transform-es2015-for-of
- #5964 Fix for-of loose optimization. (@jridgewell)
- ๐
babel-core
,babel-plugin-transform-object-rest-spread
,babel-traverse
- #5945 Remove maybePopFromStatements. (@jridgewell)
babel-generator
- #5950 [generator] remove parens from break & continue. (@sarupbanskota)
- ๐
babel-helpers
,babel-plugin-transform-es2015-classes
,babel-plugin-transform-es2015-typeof-symbol
- #5955 Optimize and remove state from typeof-symbol transform. (@jridgewell)
- ๐
babel-plugin-transform-react-inline-elements
- #5958 Fix react-inline-elements bug. (@jridgewell)
:house: Internal
- โ
babel-helper-transform-fixture-test-runner
babel-code-frame
babel-register
babel-types
babel-cli
babel-generator
babel-traverse
- Other
- #5991 Fix clean to remove package-lock files. (@danez)
- #5959 Bump istanbul and nyc. (@existentialism)
- ๐
babel-core
,babel-generator
,babel-helper-builder-react-jsx
,babel-helper-function-name
,babel-helper-replace-supers
,babel-plugin-transform-es2015-block-scoping
,babel-plugin-transform-es2015-classes
,babel-plugin-transform-jscript
,babel-plugin-transform-react-constant-elements
,babel-plugin-transform-react-jsx
,babel-template
,babel-traverse
,babel-types
- #5963 Stop mutating nodes. (@jridgewell)
- ๐
babel-plugin-transform-es2015-modules-systemjs
- #5954 Add several test cases for systemjs exports. (@jridgewell)