v7.0.0-alpha.17 (2017-07-26)
Summary
- 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
π Spec Compliancy
babel-plugin-check-es2015-constants
- #5930 Spec compliancy 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.
π₯ 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.
π 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 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)
π 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)
Committers: 15
- Andy (andy-ms)
- Brian Ng (existentialism)
- Daniel Tschinder (danez)
- Henry Zhu (hzoo)
- Justin Ridgewell (jridgewell)
- Mauro Bringolf (maurobringolf)
- Naveen jain (nveenjain)
- NicolΓ² Ribaudo (nicolo-ribaudo)
- Peeyush Kushwaha (peey)
- Ryan Gaus (1egoman)
- Samuel Reed (STRML)
- Sarup Banskota (sarupbanskota)
- Selwyn (Siilwyn)
- Sven SAULEAU (xtuc)
- MarckK