#5030 (https://github.com/babel/babel/pull/5030) Prevent multiple return statements in a loop when replacing expressions. (@existentialism)
babel-register
#5260 (https://github.com/babel/babel/pull/5260) Fix TypeError with babel-register's cache. (@xtuc)
babel-traverse
#5206](https://github.com/babel/babel/pull/5206) Deopt evaluation of undefined with a local binding. Closes [#5204 (https://github.com/babel/babel/issues/5204). (@boopathi)
babel-plugin-transform-runtime
#5195 (https://github.com/babel/babel/pull/5195) Don't transpile ES7 symbol properties. (@taion)
babel
#5258 (https://github.com/babel/babel/pull/5258) checks if babel is installed globally and displays correct cli message. (@xtina-starr)
babel-generator
#5270 (https://github.com/babel/babel/pull/5270) Emit parens for await of ternary expressions. (@erikdesjardins)
#5193 (https://github.com/babel/babel/pull/5193) Fix missing parens when function expressions is tag. (@existentialism)
Temporary fix with babel-traverse via #5019 (https://github.com/babel/babel/pull/5019) for transform-react-constant-elements.
Version 6.22.0
6.22.0 (2017-01-19)
Thanks to 10 new contributors! (23 total)
A quick update since it's been over a month already: adds support for shorthand import syntax in Flow + some fixes!
We'll be merging in our current 7.0 PRs on a 7.0 branch soon and I'l be making some more issues (most should be beginner-friendly).
To follow our progress check out our 7.0 milestone](https://github.com/babel/babel/milestone/9), the [wiki (https://github.com/babel/babel/wiki/Babel-7) and upcoming announcements on twitter!
We support stripping out and generating the new shorthand import syntax in Flow (parser support was added in babylon@6.15.0 (https://github.com/babel/babylon/releases/tag/v6.15.0).
import {
someValue,
type someType,
typeof someOtherValue,
} from "blah";
:rocket: New Feature
babel-generator, babel-types
#5110 (https://github.com/babel/babel/pull/5110) Validate importKind and ensure code generation exists.. (@loganfsmyth)
#4979 (https://github.com/babel/babel/pull/4979) babel-generator: Expose raw mappings. (@davidaurelio)
Exposes raw mappings when source map generation is enabled. To avoid the cost of source map generation for consumers of the raw mappings only, .map is changed to a getter that generates the source map lazily on first access.
Raw mappings can be useful for post-processing source maps more efficiently by avoiding one decoding/encoding cycle of the b64 vlq mappings. This will be used in the React Native packager.
#4940 (https://github.com/babel/babel/pull/4940) Fix React constant element bugs. (@appden)
When multiple declarators are present in a declaration, we want to insert the constant element inside the declaration rather than placing it before because it may rely on a declarator inside that same declaration.
When block scoped variables caused the block to be wrapped in a closure, the variable bindings remained in parent function scope, which caused the JSX element to be hoisted out of the closure.
function render(flag) {
if (flag) {
let bar = "bar";
[].map(() => bar);
return <foo bar={bar} />;
}
return null;
}
If you missed it, please check out our latest blog post: The State of Babel. It talks about where we can possibly move forward as a project and how you can help!
Also just wanted to reiterate that Babel is a community-lead project that is run by volunteers - many of us came into the project to learn about JavaScript rather than because we knew it already. Let's work together to make it sustainable!
Maybe fix that crazy babel-generator deopt message you've all probably seen!
Change to babel-code-frame for facebookincubator/create-react-app#1101 (https://github.com/facebookincubator/create-react-app/issues/1101)
Change to babel-generator for webpack/webpack#3413 (https://github.com/webpack/webpack/pull/3413)
Move implementation of Regenerator back to the original repo.
You've probably seen this more than a few times and had no idea what it meant...
[BABEL] Note: The code generator has deoptimised the styling of "app.js" as it exceeds the max of "100KB".
Generating code used to get really slow as file size increased. We've mostly fixed that, but we still automatically fall back to compact output on large files. We're going to bump the limit to 500KB and if there aren't issues just remove it.
Ben Newman, @benjamn](https://github.com/benjamn): wrote Regenerator while at Facebook. It used a bunch of other libraries such as ast-types but has now been rewritten as a standalone Babel plugin (also thanks to Sebastian's previous work in [facebook/regenerator#222 (https://github.com/facebook/regenerator/pull/222)). We're also moving the implementation of Regenerator back into the original repository since Ben is the creator/maintainer.
traverse(parse(`
var a = 1, {b} = c, [d] = e, function f() {};
`), {
VariableDeclaration(path) {
let nodes = path.getBindingIdentifiers(); // a, d, b
let paths = path.getBindingIdentifierPaths();
},
FunctionDeclaration(path) {
let outerNodes = path.getOuterBindingIdentifiers(); // f
let outerPaths = path.getOuterBindingIdentifierPaths();
}
});
babel-code-frame
#4913 (https://github.com/babel/babel/pull/4913) Add forceColor option to babel-code-frame. (@Timer)
Forcibly syntax highlight the code as JavaScript (for non-terminals); overrides highlightCode. For facebookincubator/create-react-app#1101 (https://github.com/facebookincubator/create-react-app/issues/1101)
Usage
const result = codeFrame(rawLines, lineNumber, colNumber, {
forceColor: true
});
:bug: Bug Fix
babel-plugin-transform-es2015-block-scoping
#4880 (https://github.com/babel/babel/pull/4880) Add (and fix) failing test of function parameter bindings in a catch block. (@benjamn)
#4901](https://github.com/babel/babel/pull/4901) Only base async fn arity on non-default/non-rest params - Closes [#4891 (https://github.com/babel/babel/issues/4891). (@loganfsmyth)
// both length's should be 0
const foo = (...args) => { }
console.log(foo.length) // 0
const asyncFoo = async (...args) => { }
console.log(asyncFoo.length) // 0
babel-generator, babel-types
#4945 (https://github.com/babel/babel/pull/4945) Add babel-generator support for Import. (@TheLarkInn)
Relevant for webpack 2 support of Import. Just allows Babel to print it correctly.
import("module.js");
babel-plugin-transform-object-rest-spread
#4883 (https://github.com/babel/babel/pull/4883) Fix for object-rest with parameters destructuring nested rest. (@christophehurpeau)
function a5({a3, b2: { ba1, ...ba2 }, ...c3}) {}
babel-traverse
#4875 (https://github.com/babel/babel/pull/4875) Fix path.evaluate for references before declarations. (@boopathi)
// should deopt if ids are referenced before the bindings
var a = b + 2; var b = 2 + 2;
#4655 (https://github.com/babel/babel/pull/4655) Add useBuiltIns option to helper-builder-react-jsx. (@existentialism)
Previously we added a useBuiltIns for object-rest-spread so that it use the native/built in version if you use a polyfill or have it supported natively.
This change just uses the same option from the plugin to be applied with spread inside of jsx.
// in
var div = <Component {...props} foo="bar" />
// out
var div = React.createElement(Component, Object.assign({}, props, { foo: "bar" }));
Added in flow here](https://github.com/facebook/flow/commit/c603505583993aa953904005f91c350f4b65d6bd) and in babylon [here (https://github.com/babel/babylon/pull/171).
function f<T>(x: empty): T {
return x;
}
f(); // nothing to pass...
#4765](https://github.com/babel/babel/pull/4765) Don't treat JSXIdentifier in JSXMemberExpression as HTML tag. Closes [#4027 (https://github.com/babel/babel/issues/4027). (@DrewML)
// issue with imported components that were JSXMemberExpression
import { form } from "./export";
function ParentComponent() {
return <form.TestComponent />;
}
#4763](https://github.com/babel/babel/pull/4763) Handle remapping of JSXIdentifier to MemberExpression in CommonJS transform. Closes [#3728 (https://github.com/babel/babel/issues/3728). (@DrewML)
#4719 (https://github.com/babel/babel/pull/4719) Fixed incorrect compilation of async iterator methods. (@Jamesernator)
// in
class C {
async *g() { await 1; }
}
// out
class C {
g() { // was incorrectly outputting the method with a generator still `*g(){`
return _asyncGenerator.wrap(function* () {
yield _asyncGenerator.await(1);
})();
}
}
#4690 (https://github.com/babel/babel/pull/4690) Consolidate contiguous var declarations in destructuring transform. (@motiz88)
// was wrapping variables in an IIFE incorrectly
for ( let i = 0, { length } = list; i < length; i++ ) {
console.log( i + ': ' + list[i] )
}
babel-plugin-transform-es2015-parameters
#4666 (https://github.com/babel/babel/pull/4666) Fix error when constructor default arg refers to self or own static property. (@danharper)
// was producing invalid code
class Ref {
static nextId = 0
constructor(id = ++Ref.nextId, n = id) {
this.id = n
}
}
assert.equal(1, new Ref().id)
assert.equal(2, new Ref().id)
#4674 (https://github.com/babel/babel/pull/4674) Handle side effects correctly in rest params index expressions (#4348). (@motiz88)
function first(...values) {
let index = 0;
return values[index++]; // ++ was happening twice
}
console.log(first(1, 2));
babel-plugin-transform-es2015-block-scoping
#4669 (https://github.com/babel/babel/pull/4669) Fix block scoping transform for declarations in labeled statements. (@motiz88)
#4690 (https://github.com/babel/babel/pull/4690) Consolidate contiguous var declarations in destructuring transform. (@motiz88)
// in
const [a, b] = [1, 2];
// out
var a = 1,
b = 2;
babel-plugin-transform-es2015-parameters
#4738 (https://github.com/babel/babel/pull/4738) Avoid unnecessary +0 in transform-es2015-parameters. (@existentialism)
// was outputting an extra `index++ + 0`
function first(...values) {
var index = 0;
return values[index++];
}
babel-core
#4685 (https://github.com/babel/babel/pull/4685) Better error messaging when preset options are given without a corresponding preset. (@kaicataldo)
We've had a few reports of users not wrapping a preset in [] when passing in options so we added an extra error message for this.
ReferenceError: [BABEL] /test.js: Unknown option: base.loose2. Check out http://babeljs.io/docs/usage/options/ for more information about options.
A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:
Invalid:
`{ presets: [{option: value}] }`
Valid:
`{ presets: ["pluginName", {option: value}] }`
For more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.
#4646 (https://github.com/babel/babel/pull/4646) Change babel-generator to output boolean instead of bool for the BooleanTypeAnnotation AST node. (@existentialism)
var a: Promise<boolean>[];
// instead of
var a: Promise<bool>[];
Documentation
Other
#4653 (https://github.com/babel/babel/pull/4653) Tweak license for GitHub display. (@existentialism)
#4725 (https://github.com/babel/babel/pull/4725) Remove babel-doctor from babel-cli. (@kaicataldo)
It's a one-time use tool (helpful after the initial release when upgrading from v5 to v6) that doesn't need to be a part of babel-cli. We'll publish it as a standalone package it someone asks for it.
Other
#4764 (https://github.com/babel/babel/pull/4764) Add TEST_DEBUG env var option for test.sh, to enable node 6 debugger. (@DrewML)
#4762 (https://github.com/babel/babel/pull/4762) Update browserify to version 13.1.1 🚀. (@greenkeeperio-bot)
#4748 (https://github.com/babel/babel/pull/4748) Add clean-all command to reinstall node_modules. (@kaicataldo)
#4744 (https://github.com/babel/babel/pull/4744) Fix line endings on checkout. (@nhajidin)
#4730 (https://github.com/babel/babel/pull/4730) Add .gitattributes forcing LF line endings. (@motiz88)
#4660 (https://github.com/babel/babel/pull/4660) 🚀 Update home-or-tmp to version 2.0.0. (@danez)
babel-cli
#4680](https://github.com/babel/babel/pull/4680) Update: Eslint to 3.0 and update CI builds (Closes [#4638 (https://github.com/babel/babel/issues/4638)). (@gyandeeps)
#4662 (https://github.com/babel/babel/pull/4662) 🚀 Update fs-readdir-recursive to 1.0.0. (@danez)
babel-core
#4649 (https://github.com/babel/babel/pull/4649) 🚀 Update json5 to version 0.5.0. (@danez)
Asynchronous Iteration was already added in 6.16.0](http://babeljs.io/blog/2016/09/28/6.16.0#spec-compliancy) under stage-2 but it was moved to stage-3 at the [latest TC-39 meeting (https://github.com/tc39/agendas/blob/master/2016/09.md#agenda-for-the-54th-meeting-of-ecma-tc39).
// async generator syntax
async function* agf() {}
// for-await statement
async function f() {
for await (let x of y) {
g(x);
}
}
#3473](https://github.com/babel/babel/pull/3473) via [#4576 (https://github.com/babel/babel/pull/4576) Implement support for async generator functions and for-await statements. (@zenparsing)
This change implements the async iteration proposal, currently at stage 2 (and pushing to stage 3 at the current TC-39 meeting). It includes the following features:
Transforms async generator functions (async function* g() { }) to wrapped generator functions, similar to the current async-to-generator transform.
#4500 (https://github.com/babel/babel/pull/4500) Computed class properties. (@motiz88)
Parser support was added in babylon@6.11.0](https://github.com/babel/babylon/releases/tag/v6.11.0) with [babel/babylon#121 (https://github.com/babel/babylon/pull/121)
// Example
class Foo {
[x]
['y']
}
class Bar {
[p]
[m] () {}
}
babel-generator
#3702 (https://github.com/babel/babel/pull/3702) flow plugin: generate exact object type annotations. (@bhosmer)
Parser support was added in babylon@6.10.0](https://github.com/babel/babylon/releases/tag/v6.10.0) with [babel/babylon#104 (https://github.com/babel/babylon/pull/104)
// Example
var a : {| x: number, y: string |} = { x: 0, y: 'foo' };
:rocket: New Feature
babel-core, babel-generator
#3561 (https://github.com/babel/babel/pull/3561) babel-core: add options for different parser/generator. (@hzoo)
Babel will now also take the options: parserOpts and generatorOpts (as objects).
parserOpts will pass all properties down to the default babylon parser. You can also pass a parser option to substitute for a different parser.
This will allow passing down any of babylon'soptions:
useBuiltIns - Do not use Babel's helper's and just transform to use the built-in method (Disabled by default).
{
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true }]
]
}
// source
z = { x, ...y };
// compiled
z = Object.assign({ x }, y);
babel-code-frame
#4561 (https://github.com/babel/babel/pull/4561) babel-code-frame: add options for linesBefore, linesAfter. (@hzoo)
babel-code-frame is a standalone package that we use in Babel when reporting errors.
Now there is an option (https://github.com/babel/babel/blob/master/packages/babel-code-frame/README.md#options) to specify the number of lines above and below the error
// `typeof Symbol.prototype` should be 'object'
typeof Symbol.prototype === 'object'
babel-cli
#3456](https://github.com/babel/babel/pull/3456) Use the real sourcemap API and handle input sourcemaps - Fixes [#7259 (https://github.com/babel/babel/issues/7259). (@loganfsmyth)
#4507 (https://github.com/babel/babel/pull/4507) Only set options in cli if different from default. (@danez)
Fix an issue with defaults not being overidden. This was causing options like comments: false not to work correctly.
#4508 (https://github.com/babel/babel/pull/4508) Support custom ports for V8 --inspect. (@andykant)
#4504 (https://github.com/babel/babel/pull/4504) Flow: Fix generating arrow functions with param. (@danharper)
babel-register
#3685 (https://github.com/babel/babel/pull/3685) Allow overwritting of sourceRoot. (@danez)
#4577 (https://github.com/babel/babel/pull/4577) babel-register: update source-map-support to latest. (@MoOx)
babel-core
#4570 (https://github.com/babel/babel/pull/4570) Fix fileName options passed to babylon. (@DatenMetzgerX)
babel-traverse
#4534 (https://github.com/babel/babel/pull/4534) Fix issue with minified libraries and code coverage. (@withinboredom)
babel-plugin-transform-es2015-destructuring
#4552 (https://github.com/babel/babel/pull/4552) Fix destructuring evaluation with call expressions. (@danez)
We noticed that we can not make this optimizations if there are function calls or member expressions on the right hand side of the assignment since the function call or the member expression (which might be a getter with side-effect) could potentially change the variables we are assigning to.
[x, y] = [a(), obj.x];
// was tranforming to
x = a();
y = obj.x;
// now transforms to
var _ref = [a(), obj.x];
x = _ref[0];
y = _ref[1];
babel-types
#4587 (https://github.com/babel/babel/pull/4587) Prevent flow-strip-types/flow-comments from removing entire ClassProperty. (@danharper)
:nail_care: Polish
babel-code-frame
#4579 (https://github.com/babel/babel/pull/4579) babel-code-frame: Highlight strings with green (not red). (@lydell)
#3624 (https://github.com/babel/babel/pull/3624) A new preset for es2017: it includes the 2 previous stage-3 plugins: async/await (via transform-async-to-generator) and trailing commas in functions. (thanks to @bettiolo for the npm package)
npm install babel-preset-es2017 --save-dev
// .babelrc
{ "presets": ["es2017"] }
#3625](https://github.com/babel/babel/pull/3625), [#3673 (https://github.com/babel/babel/pull/3673) A new preset called latest that transforms ES2015+ (currently ES2015, ES2016, ES2017). You can also pass options down to the es2015 preset.
We also will be working on getting a target/env (autoprefixer) preset soon.
#3671 (https://github.com/babel/babel/pull/3671) We also are including a spec option for the es2015 preset since the arrow function/template string plugins support this option.
spec for arrow functions adds a runtime check to make sure arrow functions are not instantiated (since they transform into normal functions).
spec for template literals wraps all expressions in String rather than simple string concatenation.
#3659 (https://github.com/babel/babel/pull/3659) @kittens added an optional wrapPluginVisitorMethod callback to transform to allow for performance tracking/introspection of plugins. More docs will be added on the website soon.
#3658 (https://github.com/babel/babel/pull/3658) sourcemaps will also now have a names field for identifiers to allow debuggers to do re-aliasing of mangled identifiers.
#3518 (https://github.com/babel/babel/pull/3518) For spec compilancy, we now will throw on a file with multiple export default.
Notable Bug Fixes
#3527 (https://github.com/babel/babel/pull/3527) Fix class inheritance in IE <=10 without loose mode.
#3644 (https://github.com/babel/babel/pull/3644) Support the ignore config option in .babelrc.
#3655 (https://github.com/babel/babel/pull/3655) Flow-only class props were not be stripped without transform-class-properties.
Guy Fieri
babel-core
#3641 (https://github.com/babel/babel/pull/3641) Fix exports of babel-core. (@thejameskyle)
#3646 (https://github.com/babel/babel/pull/3646) Remove Guy Fieri from Babel's source code. (@jdan)
Commiters: 17
It's also a lot folk's first PR (or first code PR)!
#3639 (https://github.com/babel/babel/pull/3639) Use es2015 loose mode after publish. (@hzoo)
Version 6.13.2
v6.13.2 (2016-08-05)
Backwards compat is hard
Hi again, just fixing up logic from the backwards-compatibility fix which broke options in presets.
Also added more tests and will update Babel to use the new preset options after this release.
Bug Fix
babel-core, babel-preset-es2015
#3638 (https://github.com/babel/babel/pull/3638) [Bug Fix] option manager: val = val.buildPreset should be before the check if the preset supports options (@christophehurpeau)
Version 6.13.1
v6.13.1 (2016-08-04)
We had a regression in our new babel-preset-es2015@6.13.0 that made it unexpectedly backward-incompatible. This release introduces a new alternative plugin-options approach that is uglier but supports backward-compatiblity. Ideally new plugins would use the new module.exports = function(babel, options){ } approach and simple skip supporting babel-core@<6.13.x.
Bug Fix
babel-core, babel-preset-es2015
#3635 (https://github.com/babel/babel/pull/3635) Fix backward-compatibility of babel-preset-es2015. (@loganfsmyth)
Version 6.13.0
v6.13.0 (2016-08-04)
If you are getting an error like "Invalid options type for " then check that you have an updated version of babel-core/cli/etc. If you are using greenkeeper, it will fail because it will only update the preset and not the other packages.
Since the last release we've created https://github.com/babel/notes to track discussions on our slack and features/changes that could be added - definetely check it out if you're interested in Babel's development!
Initially, presets were supposed to be one-off sets of plugins that didn't have any configuration. If you wanted to do something different you would make your own presets. There are > 600 presets on npm now. We want to give users more flexibility in certain cases: like when you want to pass the same option to multiple presets or to remove a default plugin.
loose and modules options for babel-preset-es2015 (#3331](https://github.com/babel/babel/pull/3331), [#3627 (https://github.com/babel/babel/pull/3627))
This has been rather annoying. Having to install babel-preset-es2015-loose-native-modules seems rather crazy when it could be an option.
With #3627 (https://github.com/babel/babel/pull/3627), you can pass 2 options in:
loose - Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).
modules - Enable transformation of ES6 module syntax to another module type (Enabled by default to "commonjs").
Can be false to not transform modules, or one of ["amd", "umd", "systemjs", "commonjs"]
// for loose and native modules
{
presets: [
["es2015", { "loose": true, "modules": false }]
]
}
#3626 (https://github.com/babel/babel/pull/3626) Make a more informative error message when using the default decorators transform and link to the legacy transform
babel-preset-es2017, babel-preset-latest (still deciding the name), supporting codemods, and more!
New Feature
babel-core, babel-preset-es2015
#3627 (https://github.com/babel/babel/pull/3627) es2015: transpile the preset, modify modules option to support "amd,umd,systemjs" as well, tests. (@hzoo)
#3331 (https://github.com/babel/babel/pull/3331) Support passing options to presets.. (@loganfsmyth)
babel-preset-stage-1, babel-preset-stage-2
#3613 (https://github.com/babel/babel/pull/3613) Move decorators to stage 2. (@doug-wade)
#3611 (https://github.com/babel/babel/pull/3611) Move babel-plugin-transform-class-properties to stage 2. (@kripod)
Bug Fix
babel-traverse
#3557 (https://github.com/babel/babel/pull/3557) Fix bug where path.evaluate treats repeated identifiers as undefined. (@erikdesjardins)
Polish
babel-plugin-transform-decorators
#3626 (https://github.com/babel/babel/pull/3626) Show a more informative error message when using the decorator transf…. (@hzoo)
FYI: Babel releases don't mean each package updates. If a package isn't changed it keeps it's version number. The changelog entries below tell you what specific packages have changed. You shouldn't have to do anything in most cases other than npm install again.
In this release (among other things) are some more optimizations for babel-generator (#3584](https://github.com/babel/babel/pull/3584), [#3580 (https://github.com/babel/babel/pull/3580)) as well as refactors.
@jamestalmage did some awesome clean for OptionsManager and some tests which may help future improvements to babel-register performance.
Hi!
A new version was just released of
babel-core
, so Doppins has upgraded your project's dependency ranges.Make sure that it doesn't break anything, and happy merging! :shipit:
Upgraded babel-core from
~6.10.4
to~6.23.1
Changelog:
Version 6.23.0
6.23.0 (2017-02-13)
:rocket: New Feature
babel-plugin-transform-react-constant-elements
#4812
(https://github.com/babel/babel/pull/4812
) feature: Support pure expressions in transform-react-constant-elements. (@STRML
)babel-preset-flow
,babel-preset-react
#5288
(https://github.com/babel/babel/pull/5288
) Add new flow preset. (@thejameskyle
)babel-traverse
#5230
(https://github.com/babel/babel/pull/5230
) Add path/family sibling traversal methods. (@chitchu
)babel-plugin-transform-es2015-block-scoping
#5236
(https://github.com/babel/babel/pull/5236
) Add option to block-scoping to throw on slow code. (@spicyj
):bug: Bug Fix
babel-core
,babel-traverse
#5050
(https://github.com/babel/babel/pull/5050
) Rewrite Hub as interface#5047
. (@yongxu
)babel-plugin-transform-es2015-for-of
#5298
(https://github.com/babel/babel/pull/5298
) Fix loose for-of with label. (@jridgewell
)babel-plugin-transform-react-constant-elements
,babel-traverse
#5153
(https://github.com/babel/babel/pull/5153
) Fix react constant elements bindings. (@STRML
)#5143
(https://github.com/babel/babel/pull/5143
) Fix PathHoister hoisting JSX member expressions on "this".. (@STRML
)babel-plugin-transform-do-expressions
,babel-traverse
#5030
(https://github.com/babel/babel/pull/5030
) Prevent multiple return statements in a loop when replacing expressions. (@existentialism
)babel-register
#5260
(https://github.com/babel/babel/pull/5260
) Fix TypeError with babel-register's cache. (@xtuc
)babel-traverse
#5206
](https://github.com/babel/babel/pull/5206
) Deopt evaluation of undefined with a local binding. Closes [#5204
(https://github.com/babel/babel/issues/5204
). (@boopathi
)babel-plugin-transform-runtime
#5195
(https://github.com/babel/babel/pull/5195
) Don't transpile ES7 symbol properties. (@taion
)babel
#5258
(https://github.com/babel/babel/pull/5258
) checks if babel is installed globally and displays correct cli message. (@xtina-starr
)babel-generator
#5270
(https://github.com/babel/babel/pull/5270
) Emit parens for await of ternary expressions. (@erikdesjardins
)#5193
(https://github.com/babel/babel/pull/5193
) Fix missing parens when function expressions is tag. (@existentialism
)babel-plugin-transform-es2015-modules-commonjs
#5235
(https://github.com/babel/babel/pull/5235
) Limit export node default assignment stack size#4323
. (@mattste
):memo: Documentation
babel-*
#5244
(https://github.com/babel/babel/pull/5244
) Normalize options sections in docs [skip ci]. (@existentialism
)#5216
(https://github.com/babel/babel/pull/5216
) Remove link to REPL. (@xtuc
)#5242
(https://github.com/babel/babel/pull/5242
) Add our business model [skip ci]. (@hzoo
)babel-plugin-transform-es2015-spread
#5227
(https://github.com/babel/babel/pull/5227
) Add example to spread README [skip ci]. (@finkef
)babel-plugin-transform-flow-strip-types
#5212
(https://github.com/babel/babel/pull/5212
) Remove REPL link transform-flow-strip-types doc. (@xtuc
)babel-plugin-transform-regenerator
#5202
(https://github.com/babel/babel/pull/5202
) Fix transform-regenerator README. (@xtuc
)babel-plugin-transform-es2015-arrow-functions
#5200
(https://github.com/babel/babel/pull/5200
) Fix transform-es2015-arrow-functions code blocks on the website. (@xtuc
)#5194
(https://github.com/babel/babel/pull/5194
) Fix transform-es2015-arrow-functions README. (@xtuc
):house: Internal
babel-core
#5302
(https://github.com/babel/babel/pull/5302
) Add charset so tests work with convert-source-map@>1.4. (@loganfsmyth
)babel-core
,babel-traverse
#5050
(https://github.com/babel/babel/pull/5050
) Rewrite Hub as interface#5047
. (@yongxu
)babel-generator
#5255
(https://github.com/babel/babel/pull/5255
) codegen performance: use trim instead of lodash/trimEnd. (@jwbay
)babel-types
#5181
(https://github.com/babel/babel/pull/5181
) Remove uses of lodash/compact. (@zertosh
)babel-*
#5265
(https://github.com/babel/babel/pull/5265
) Re-enable the max-len ESLint rule.. (@loganfsmyth
)#5264
(https://github.com/babel/babel/pull/5264
) Add a sublime project file. (@loganfsmyth
)#5182
(https://github.com/babel/babel/pull/5182
) Run coverage only once. (@existentialism
)#5165
(https://github.com/babel/babel/pull/5165
) Add Node 7 to CI. (@chicoxyzzy
)Committers: 20
Version 6.22.1
6.22.1 (2017-01-19)
:bug: Bug Fix
Temporary fix with
babel-traverse
via#5019
(https://github.com/babel/babel/pull/5019
) for transform-react-constant-elements.Version 6.22.0
6.22.0 (2017-01-19)
A quick update since it's been over a month already: adds support for shorthand import syntax in Flow + some fixes!
We'll be merging in our current 7.0 PRs on a 7.0 branch soon and I'l be making some more issues (most should be beginner-friendly).
To follow our progress check out our 7.0 milestone](
https://github.com/babel/babel/milestone/9
), the [wiki (https://github.com/babel/babel/wiki/Babel-7
) and upcoming announcements on twitter!We support stripping out and generating the new shorthand import syntax in Flow (parser support was added in babylon@6.15.0 (
https://github.com/babel/babylon/releases/tag/v6.15.0
).:rocket: New Feature
babel-generator
,babel-types
#5110
(https://github.com/babel/babel/pull/5110
) Validate importKind and ensure code generation exists.. (@loganfsmyth
)babel-plugin-transform-flow-strip-types
,babel-traverse
#5035
(https://github.com/babel/babel/pull/5035
) Strip Flow's new shorthand import-type specifiers. (@jeffmo
)babel-core
#4729
(https://github.com/babel/babel/pull/4729
) Add resolvePlugin and resolvePreset methods to babel-core API. (@rmacklin
):bug: Bug Fix
babel-plugin-transform-object-rest-spread
#5151
(https://github.com/babel/babel/pull/5151
) Avoid duplicating impure expressions in object rest destructuring. (@erikdesjardins
)Old Behavior
New/Expected Behavior
babel-cli
#4790
(https://github.com/babel/babel/pull/4790
) fixes invalid line offsets in merged sourcemaps. (@peterm0x
)babel-plugin-transform-object-rest-spread
#5088
(https://github.com/babel/babel/pull/5088
) fix: plugin-transform-object-rest-spread param with default value. (@christophehurpeau
)Accounts for default values in object rest params
babel-plugin-transform-es2015-destructuring
#5093
(https://github.com/babel/babel/pull/5093
) Ensure array is always copied during destructure. (@existentialism
)babel-plugin-transform-es2015-function-name
#5008
(https://github.com/babel/babel/pull/5008
) Don't try to visit ArrowFunctionExpression, they cannot be named. (@Kovensky
)Input
Output
babel-types
#5068
(https://github.com/babel/babel/pull/5068
) Fix getBindingIdentifiers in babel-types. (@rtsao
)babel-cli
#3698
(https://github.com/babel/babel/pull/3698
) Watch mode should wait for file write. (T7411) (@hayeah
):nail_care: Polish
babel-traverse
#5076
(https://github.com/babel/babel/pull/5076
) Optimize removal-hooks for ArrowFunctions. (@danez
)babel-generator
,babel-plugin-transform-exponentiation-operator
#5026
(https://github.com/babel/babel/pull/5026
) Remove unnecessary spaces around template element. (@chicoxyzzy
):memo: Documentation
#5144
(https://github.com/babel/babel/pull/5144
) Fix dependency status extension.. (@yavorsky
)#5136
(https://github.com/babel/babel/pull/5136
) Add babel-preset-env to maintained list.. (@yavorsky
)babel-core
#5101
(https://github.com/babel/babel/pull/5101
) Document babelrc option. (@novemberborn
)#5114
(https://github.com/babel/babel/pull/5114
) Update babel-core options in README. (@existentialism
)babel-plugin-syntax-class-constructor-call
#5130
(https://github.com/babel/babel/pull/5130
) update syntax-class-constructor-call documentation. (@xtuc
)babel-plugin-transform-es2015-duplicate-keys
,babel-plugin-transform-es2015-parameters
#5111
(https://github.com/babel/babel/pull/5111
) Fixes some inconsistent documentation. (@xtuc
)babel-plugin-transform-es2015-computed-properties
,babel-plugin-transform-es2015-for-of
#5096
(https://github.com/babel/babel/pull/5096
) Add examples to computed-props and for-of READMEs [skip ci]. (@existentialism
)babel-plugin-transform-class-properties
#5077
(https://github.com/babel/babel/pull/5077
) Static function call result comment does not match variable content [skip ci]. (@kasn
)#5070
(https://github.com/babel/babel/pull/5070
) Fix typo in README.md. (@nomicos
)#5031
(https://github.com/babel/babel/pull/5031
) remove plugin links, just use the website [skip ci]. (@hzoo
)#5011
(https://github.com/babel/babel/pull/5011
) Add Team section [skip ci]. (@hzoo
)babel-plugin-transform-es2015-classes
,babel-plugin-transform-function-bind
#5061
(https://github.com/babel/babel/pull/5061
) Fix some doc lint issues. (@existentialism
)babel-helpers
#5059
(https://github.com/babel/babel/pull/5059
) Fix incorrect snippet language in babel-helpers. (@xtuc
)babel-preset-react
#5051
(https://github.com/babel/babel/pull/5051
) Adding more info to the Install section. (@gitanupam
)babel-plugin-check-es2015-constants
,babel-plugin-transform-es2015-modules-umd
,babel-plugin-transform-es2015-typeof-symbol
,babel-register
#5045
(https://github.com/babel/babel/pull/5045
) Fix some README links. (@existentialism
)babel-core
#5014
(https://github.com/babel/babel/pull/5014
) Update babel-core's README. (@xtuc
):house: Internal
babel-*
#5129
(https://github.com/babel/babel/pull/5129
) Bump eslint-config-babel and fix lint. (@existentialism
)#5138
(https://github.com/babel/babel/pull/5138
) Refactor packages to use ES modules instead of CJS. (@chicoxyzzy
)#5113
(https://github.com/babel/babel/pull/5113
) Kaicataldo enable prefer const. (@hzoo
)babel-helper-transform-fixture-test-runner
#5135
(https://github.com/babel/babel/pull/5135
) Run Babel's unittests in a custom sandbox.. (@loganfsmyth
)babel-cli
,babel-core
,babel-generator
,babel-helper-define-map
,babel-register
,babel-runtime
,babel-types
#5043
(https://github.com/babel/babel/pull/5043
) Replace "lodash/is*" and "lodash/each" with native equivalents. (@zertosh
)babel-cli
,babel-generator
,babel-helper-fixtures
,babel-helper-transform-fixture-test-runner
,babel-preset-es2015
,babel-runtime
,babel-traverse
#5042
(https://github.com/babel/babel/pull/5042
) Use native or lodash util module where full "lodash" is required. (@zertosh
)babel-code-frame
#5094
(https://github.com/babel/babel/pull/5094
) babel-code-frame: Upgrade to js-tokens@3. (@lydell
)babel-plugin-transform-react-jsx
#5100
(https://github.com/babel/babel/pull/5100
) Fix broken repository url. (@batista
)babel-plugin-transform-decorators
#5038
(https://github.com/babel/babel/pull/5038
) Remove unused dependency. (@zertosh
)babel-plugin-transform-es2015-computed-properties
#5053
(https://github.com/babel/babel/pull/5053
) Remove unused define-map helper from computed-properties. (@existentialism
)babel-cli
#5027
(https://github.com/babel/babel/pull/5027
) Dependencies: Upgrade glob to v7. (@ysangkok
)Committers: 23, First PRs: 10
Version 6.21.0
6.21.0 (2016-12-16)
Mostly a lot of bug fixes + exposing rawMapping in
babel-generator
for easy source map use.:rocket: New Feature
babel-generator
#4979
(https://github.com/babel/babel/pull/4979
)babel-generator
: Expose raw mappings. (@davidaurelio
)Exposes raw mappings when source map generation is enabled. To avoid the cost of source map generation for consumers of the raw mappings only,
.map
is changed to a getter that generates the source map lazily on first access.Raw mappings can be useful for post-processing source maps more efficiently by avoiding one decoding/encoding cycle of the b64 vlq mappings. This will be used in the React Native packager.
:bug: Bug Fix
babel-generator
,babel-plugin-transform-flow-comments
,babel-plugin-transform-flow-strip-types
#4872
(https://github.com/babel/babel/pull/4872
) Print Flow optional & type annotations in function params with defaults. (@danharper
)Works with generator, transform-flow-comments, flow-strip-types.
babel-generator
,babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-umd
#4873
(https://github.com/babel/babel/pull/4873
) Ensure directives get printed in block statements. (@existentialism
)babel-generator
,babel-helper-builder-react-jsx
,babel-plugin-transform-react-jsx
,babel-types
#4988
(https://github.com/babel/babel/pull/4988
) AddJSXSpreadChildren
but throw in JSX transform plugin. (@jridgewell
)Will still error with
Spread children are not supported.
babel-plugin-transform-es2015-block-scoping
,babel-plugin-transform-react-constant-elements
,babel-traverse
#4940
(https://github.com/babel/babel/pull/4940
) Fix React constant element bugs. (@appden
)When multiple declarators are present in a declaration, we want to insert the constant element inside the declaration rather than placing it before because it may rely on a declarator inside that same declaration.
When block scoped variables caused the block to be wrapped in a closure, the variable bindings remained in parent function scope, which caused the JSX element to be hoisted out of the closure.
babel-plugin-transform-es2015-parameters
#3572
(https://github.com/babel/babel/pull/3572
) Fix default parameter - rest parameter edge case. (@jridgewell
)Was erroring if the rest parameter shared the same name as a default identifier for a param, needed to be deopt'd.
babel-plugin-transform-es2015-for-of
,babel-traverse
#5007
(https://github.com/babel/babel/pull/5007
) Bail on sharing comments with siblings if key is a string. (@existentialism
):memo: Documentation
#4989
(https://github.com/babel/babel/pull/4989
) Fix links in CONTRIBUTING.md. (@abouthiroppy
)babel-plugin-transform-runtime
#4991
(https://github.com/babel/babel/pull/4991
) make installing runtime/transform-runtime clearer [skip ci]. (@hzoo
)babel-plugin-transform-es2015-unicode-regex
#4983
(https://github.com/babel/babel/pull/4983
) Add example to es2015-unicode-regex. (@existentialism
):house: Internal
babel-helper-transform-fixture-test-runner
,babel-plugin-syntax-trailing-function-commas
#4999
(https://github.com/babel/babel/pull/4999
) babel-helper-transform-fixture-test-runner: pass require as a global. (@hzoo
)Allows running
require()
in exec.js tests like for babel/babel-preset-env#95
(https://github.com/babel/babel-preset-env/pull/95
)#5005
(https://github.com/babel/babel/pull/5005
) internal: don't run watch with the test env (skip building with code …. (@hzoo
)Committers: 7
Version 6.20.0
v6.20.0 (2016-12-08)
You've probably seen this more than a few times and had no idea what it meant...
[BABEL] Note: The code generator has deoptimised the styling of "app.js" as it exceeds the max of "100KB".
Generating code used to get really slow as file size increased. We've mostly fixed that, but we still automatically fall back to compact output on large files. We're going to bump the limit to 500KB and if there aren't issues just remove it.
Ben Newman,
@benjamn
](https://github.com/benjamn): wrote Regenerator while at Facebook. It used a bunch of other libraries such asast-types
but has now been rewritten as a standalone Babel plugin (also thanks to Sebastian's previous work in [facebook/regenerator#222
(https://github.com/facebook/regenerator/pull/222
)). We're also moving the implementation of Regenerator back into the original repository since Ben is the creator/maintainer.:rocket: New Feature
babel-traverse
#4876
(https://github.com/babel/babel/pull/4876
) AddgetBindingIdentifierPaths
/getOuterBindingIdentifierPaths
. (@boopathi
)Returns
Array<Path>
rather thanArray<Node>
.path.getBindingIdentifierPaths()
path.getOuterBindingIdentifierPaths()
babel-code-frame
#4913
(https://github.com/babel/babel/pull/4913
) AddforceColor
option tobabel-code-frame
. (@Timer
)Usage
:bug: Bug Fix
babel-plugin-transform-es2015-block-scoping
#4880
(https://github.com/babel/babel/pull/4880
) Add (and fix) failing test of function parameter bindings in a catch block. (@benjamn
)In
Correct Out
babel-helper-remap-async-to-generator
,babel-plugin-transform-async-generator-functions
,babel-plugin-transform-async-to-generator
#4901
](https://github.com/babel/babel/pull/4901
) Only base async fn arity on non-default/non-rest params - Closes [#4891
(https://github.com/babel/babel/issues/4891
). (@loganfsmyth
)babel-generator
,babel-types
#4945
(https://github.com/babel/babel/pull/4945
) Addbabel-generator
support forImport
. (@TheLarkInn
)babel-plugin-transform-object-rest-spread
#4883
(https://github.com/babel/babel/pull/4883
) Fix for object-rest with parameters destructuring nested rest. (@christophehurpeau
)babel-traverse
#4875
(https://github.com/babel/babel/pull/4875
) Fixpath.evaluate
for references before declarations. (@boopathi
)babel-core
,babel-generator
,babel-helper-transform-fixture-test-runner
,babel-plugin-transform-object-rest-spread
#4858
(https://github.com/babel/babel/pull/4858
) Fix bug + Generate test fixtures if no expected.js. (@hzoo
)babel-types
#4853
(https://github.com/babel/babel/pull/4853
) Preserve null inbabel-types
t.clone
andt.deepClone
(@NTillmann
):nail_care: Polish
babel-generator
#4862
(https://github.com/babel/babel/pull/4862
) Fix identation with empty leadingObjectTypeProperty
. (@existentialism
):memo: Documentation
Various Packages
#4938
(https://github.com/babel/babel/pull/4938
) Update babel-core documentation. (@xtuc
)#4939
(https://github.com/babel/babel/pull/4939
) Add example to transform-react-display-name docs. (@existentialism
)#4931
(https://github.com/babel/babel/pull/4931
) Update plugins READMEs from babel.github.io [skip ci]. (@raspo
)#4926
(https://github.com/babel/babel/pull/4926
) Update transform-es2015 READMEs from babel.github.io [skip ci]. (@existentialism
)#4930
(https://github.com/babel/babel/pull/4930
) Update transform-object-rest-spread's README from babel.github.io [skip ci]. (@lukyth
)#4929
(https://github.com/babel/babel/pull/4929
) Update transform-object-assign's README from babel.github.io [skip ci]. (@lukyth
)#4928
(https://github.com/babel/babel/pull/4928
) mention [skip ci] in PR template. (@hzoo
)#4925
(https://github.com/babel/babel/pull/4925
) Tweak example in transform-jsx-source README [skip ci]. (@existentialism
)#4919
(https://github.com/babel/babel/pull/4919
) Update async READMEs from babel.github.io [skip-ci]. (@existentialism
)#4917
(https://github.com/babel/babel/pull/4917
) Fix some React transform README issues [skip-ci]. (@existentialism
)#4903
(https://github.com/babel/babel/pull/4903
) Update React transform READMEs from babel.github.io [skip ci]. (@existentialism
)#4884
(https://github.com/babel/babel/pull/4884
) Readme updates from babel.github.io [skip ci]. (@hzoo
):house: Internal
babel-plugin-transform-regenerator
#4881
(https://github.com/babel/babel/pull/4881
) Useregenerator-transform
to implementbabel-plugin-transform-regenerator
. (@benjamn
)babel-traverse
#4934
(https://github.com/babel/babel/pull/4934
) HoistgenerateDeclaredUidIdentifier
helper function. (@jridgewell
)babel-polyfill
#4966
(https://github.com/babel/babel/pull/4966
) updateregenerator-runtime
inbabel-polyfill
. (@zloirock
)babel-runtime
#4877
(https://github.com/babel/babel/pull/4877
) Upgraderegenerator-runtime
to version 0.10.0. (@benjamn
)babel-plugin-syntax-trailing-function-commas
#4936
(https://github.com/babel/babel/pull/4936
) Addtest
tobabel-plugin-syntax-trailing-function-commas
.npmignore
(@wtgtybhertgeghgtwtg
)babel-helper-fixtures
#4907
(https://github.com/babel/babel/pull/4907
) RemoveshouldIgnore
check. (@danez
)babel-core
,babel-traverse
#4897
(https://github.com/babel/babel/pull/4897
) Fix eslint. (@danez
)babel-generator
#4965
(https://github.com/babel/babel/pull/4965
) Raise limit on code size before compacting (@existentialism
)Committers: 17
Version 6.18.2
v6.18.2 (2016-11-01)
Weird publishing issue with v6.18.1, same release.
:bug: Bug Fix
babel-core
#4773
(https://github.com/babel/babel/pull/4773
) Fix Valid example to be actually valid. (@Kovensky
):house: Internal
babel-helper-fixtures
,babel-helper-transform-fixture-test-runner
#4797
(https://github.com/babel/babel/pull/4797
) Allow relative paths in babelrc options in options.json. (@hzoo
)#4796
(https://github.com/babel/babel/pull/4796
) Update eslint, use codeframe formatter. (@hzoo
)#4792
(https://github.com/babel/babel/pull/4792
) Update flow-bin to version 0.34.0 🚀. (@greenkeeperio-bot
)#4776
(https://github.com/babel/babel/pull/4776
) Update chai to version 3.5.0 🚀. (@greenkeeperio-bot
)babel-plugin-transform-async-to-generator
#4793
(https://github.com/babel/babel/pull/4793
) Fix async-to-generator/object-method-with-arrows line endings. (@jridgewell
)Commiters: 4
Version 6.18.0
v6.18.0 (2016-10-24)
:rocket: New Feature
babel-generator
,babel-plugin-transform-flow-strip-types
#4697
(https://github.com/babel/babel/pull/4697
) Add variance node type and generate property variance annotations. (@samwgoldman
)Check out the blog post and flow docs for more info:
babel-core
,babel-traverse
#4746
(https://github.com/babel/babel/pull/4746
) Support ObjectExpression in static path evaluation. (@motiz88
)babel-plugin-syntax-dynamic-import
,babel-preset-stage-2
#4699
(https://github.com/babel/babel/pull/4699
) [import()] Initial support for dynamic-import. (@kesne
)Parser support was added in
https://github.com/babel/babylon/releases/tag/v6.12.0.
Just the plugin to enable it in babel.
or use the new
parserOpts
babel-helper-builder-react-jsx
,babel-plugin-transform-react-jsx
#4655
(https://github.com/babel/babel/pull/4655
) AdduseBuiltIns
option to helper-builder-react-jsx. (@existentialism
)Previously we added a
useBuiltIns
for object-rest-spread so that it use the native/built in version if you use a polyfill or have it supported natively.This change just uses the same option from the plugin to be applied with spread inside of jsx.
babel-generator
,babel-traverse
,babel-types
#4724
(https://github.com/babel/babel/pull/4724
) AddEmptyTypeAnnotation
. (@samwgoldman
)EmptyTypeAnnotation
Added in flow here](
https://github.com/facebook/flow/commit/c603505583993aa953904005f91c350f4b65d6bd
) and in babylon [here (https://github.com/babel/babylon/pull/171
).babel-traverse
#4758
(https://github.com/babel/babel/pull/4758
) Make getBinding ignore labels; add Scope#getLabel, Scope#hasLabel, Scope#registerLabel. (@kangax
)Track
LabeledStatement
separately (not part of bindings).:bug: Bug Fix
babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-react-inline-elements
#4763
](https://github.com/babel/babel/pull/4763
) Handle remapping of JSXIdentifier to MemberExpression in CommonJS transform. Closes [#3728
(https://github.com/babel/babel/issues/3728
). (@DrewML
)babel-plugin-transform-es2015-for-of
#4736
(https://github.com/babel/babel/pull/4736
) Fix replacing for-of if inside label. (@danez
)babel-core
#4502
(https://github.com/babel/babel/pull/4502
) Make special case for class property initializers inshadow-functions
. (@motiz88
)#4631
(https://github.com/babel/babel/pull/4631
) fix(shouldIgnore): filename normalization should be platform sensitive. (@rozele
)babel-helper-remap-async-to-generator
,babel-plugin-transform-async-generator-functions
#4719
(https://github.com/babel/babel/pull/4719
) Fixed incorrect compilation of async iterator methods. (@Jamesernator
)babel-plugin-check-es2015-constants
,babel-plugin-transform-es2015-destructuring
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-parameters
#4690
(https://github.com/babel/babel/pull/4690
) Consolidate contiguous var declarations in destructuring transform. (@motiz88
)babel-plugin-transform-es2015-parameters
#4666
(https://github.com/babel/babel/pull/4666
) Fix error when constructor default arg refers to self or own static property. (@danharper
)#4674
(https://github.com/babel/babel/pull/4674
) Handle side effects correctly in rest params index expressions (#4348
). (@motiz88
)babel-plugin-transform-es2015-block-scoping
#4669
(https://github.com/babel/babel/pull/4669
) Fix block scoping transform for declarations in labeled statements. (@motiz88
)babel-helper-explode-assignable-expression
,babel-plugin-transform-exponentiation-operator
#4672
(https://github.com/babel/babel/pull/4672
) Avoid repeating impure (template) literals when desugaring **= (#4403
). (@motiz88
)#4642
(https://github.com/babel/babel/pull/4642
) Exclude super from being assign to ref variable. (@danez
)babel-plugin-transform-es2015-shorthand-properties
,babel-plugin-transform-flow-comments
,babel-plugin-transform-flow-strip-types
#4670
(https://github.com/babel/babel/pull/4670
) Retain return types on ObjectMethods in transform-es2015-shorthand-properties. (@danharper
)babel-helper-define-map
,babel-plugin-transform-es2015-classes
,babel-plugin-transform-flow-comments
,babel-plugin-transform-flow-strip-types
#4668
](https://github.com/babel/babel/pull/4668
) Retain method return types on transform-es2015-classes (Closes [#4665
(https://github.com/babel/babel/issues/4665
)). (@danharper
):nail_care: Polish
babel-plugin-check-es2015-constants
,babel-plugin-transform-es2015-destructuring
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-parameters
#4690
(https://github.com/babel/babel/pull/4690
) Consolidate contiguous var declarations in destructuring transform. (@motiz88
)babel-plugin-transform-es2015-parameters
#4738
(https://github.com/babel/babel/pull/4738
) Avoid unnecessary +0 in transform-es2015-parameters. (@existentialism
)babel-core
#4685
(https://github.com/babel/babel/pull/4685
) Better error messaging when preset options are given without a corresponding preset. (@kaicataldo
)#4688
(https://github.com/babel/babel/pull/4688
) Update babel parser options. (@existentialism
)babel-generator
#4646
(https://github.com/babel/babel/pull/4646
) Change babel-generator to outputboolean
instead ofbool
for theBooleanTypeAnnotation
AST node. (@existentialism
)Documentation
#4653
(https://github.com/babel/babel/pull/4653
) Tweak license for GitHub display. (@existentialism
)So that our MIT License shows up.
:house: Internal
babel-cli
#4725
(https://github.com/babel/babel/pull/4725
) Remove babel-doctor from babel-cli. (@kaicataldo
)It's a one-time use tool (helpful after the initial release when upgrading from v5 to v6) that doesn't need to be a part of
babel-cli
. We'll publish it as a standalone package it someone asks for it.#4764
(https://github.com/babel/babel/pull/4764
) Add TEST_DEBUG env var option for test.sh, to enable node 6 debugger. (@DrewML
)#4762
(https://github.com/babel/babel/pull/4762
) Update browserify to version 13.1.1 🚀. (@greenkeeperio-bot
)#4748
(https://github.com/babel/babel/pull/4748
) Add clean-all command to reinstall node_modules. (@kaicataldo
)#4744
(https://github.com/babel/babel/pull/4744
) Fix line endings on checkout. (@nhajidin
)#4730
(https://github.com/babel/babel/pull/4730
) Add .gitattributes forcing LF line endings. (@motiz88
)#4676
(https://github.com/babel/babel/pull/4676
) Remove travis short-circuit script. (@motiz88
)babel-traverse
,babel-types
#4742
(https://github.com/babel/babel/pull/4742
) Increase test coverage. (@motiz88
)babel-cli
,babel-core
,babel-helper-fixtures
,babel-register
#4731
(https://github.com/babel/babel/pull/4731
) Replacepath-exists
withfs.existsSync
. (@SimenB
)babel-helper-transform-fixture-test-runner
#4735
(https://github.com/babel/babel/pull/4735
) Automatically generate missing expected.js fixtures. (@motiz88
)#4664
(https://github.com/babel/babel/pull/4664
) 🚀 Update chai to version 3.0.0. (@danez
)babel-cli
,babel-code-frame
,babel-core
,babel-generator
,babel-helper-transform-fixture-test-runner
,babel-preset-es2015
,babel-template
,babel-traverse
#4734
(https://github.com/babel/babel/pull/4734
) Change usage of "suite"/"test" in unit-tests to "describe"/"it". (@DrewML
)babel-cli
,babel-code-frame
,babel-core
,babel-generator
,babel-plugin-transform-es2015-modules-commonjs
,babel-preset-es2015
,babel-template
,babel-traverse
#4732
(https://github.com/babel/babel/pull/4732
) Run ESLint on test files, and fix lint errors in test files.. (@DrewML
)babel-cli
,babel-core
#4727
(https://github.com/babel/babel/pull/4727
) Update tests for changed error messages in Babylon. (@motiz88
)#4564
(https://github.com/babel/babel/pull/4564
) Enable babel for tests. (@danez
)babel-cli
,babel-core
,babel-plugin-transform-es2015-modules-systemjs
,babel-preset-es2015
#4721
(https://github.com/babel/babel/pull/4721
) update eslint-config, fixes, add commands. (@hzoo
)babel-register
#4660
(https://github.com/babel/babel/pull/4660
) 🚀 Update home-or-tmp to version 2.0.0. (@danez
)babel-cli
#4680
](https://github.com/babel/babel/pull/4680
) Update: Eslint to 3.0 and update CI builds (Closes [#4638
(https://github.com/babel/babel/issues/4638
)). (@gyandeeps
)#4662
(https://github.com/babel/babel/pull/4662
) 🚀 Update fs-readdir-recursive to 1.0.0. (@danez
)babel-core
#4649
(https://github.com/babel/babel/pull/4649
) 🚀 Update json5 to version 0.5.0. (@danez
)#4650
(https://github.com/babel/babel/pull/4650
) 🚀 Remove shebang dependency. (@danez
)babel-generator
#4652
(https://github.com/babel/babel/pull/4652
) 🚀 Update detect-indent to version 4.0.0. (@danez
)babel-traverse
#4651
(https://github.com/babel/babel/pull/4651
) 🚀 Update globals to version 9.0.0. (@danez
)Commiters: 17
Version 6.17.0
v6.17.0 (2016-10-01)
:eyeglasses: Spec Compliancy
babel-preset-stage-2
,babel-preset-stage-3
#4617
(https://github.com/babel/babel/pull/4617
) Move async-generators to stage-3. (@hzoo
)Specification repo: https://github.com/tc39/proposal-async-iteration
Asynchronous Iteration was already added in 6.16.0](http://babeljs.io/blog/2016/09/28/6.16.0#spec-compliancy) under stage-2 but it was moved to stage-3 at the [latest TC-39 meeting (
https://github.com/tc39/agendas/blob/master/2016/09.md#agenda-for-the-54th-meeting-of-ecma-tc39
).To use it as a standalone plugin:
With the stage-3 preset (or below):
#4611
(https://github.com/babel/babel/pull/4611
) Move object-rest-spread to stage-3. (@hzoo
)Similarly, object-rest-spread is now also at stage-3.
To use it as a standalone plugin:
With the stage-3 preset (or below):
:rocket: New Feature
babel-generator
#4621
(https://github.com/babel/babel/pull/4621
) Add retainFunctionParens option. (@kangax
)References:
https://github.com/rollup/rollup/pull/774
Adds a
retainFunctionParens
tobabel-generator
. This option will retain the parentheses around an IIFE.:bug: Bug Fix
babel-core
#4635
(https://github.com/babel/babel/pull/4635
) Forward bound shadowed function when hoisting identifiers. (@danez
)#4620
(https://github.com/babel/babel/pull/4620
) Resolve presets with named exports correctly. (@danez
)babel-generator
#4633
(https://github.com/babel/babel/pull/4633
) Fixed babel/babel#4632
- missing parentheses around yield expression …. (@bjouhier
)babel-plugin-transform-es2015-parameters
#4636
(https://github.com/babel/babel/pull/4636
) Fix rest parameters with flow type casting. (@danez
)babel-plugin-transform-flow-comments
#4623
(https://github.com/babel/babel/pull/4623
) Fix regression in transform-flow-comments for class properties. (@danharper
)First PR!
Version 6.16.0
v6.16.0 (2016-09-28)
Babel 6.16: Happy 2nd Birthday 🎂 !
:eyeglasses: Spec Compliancy
babel-core
,babel-generator
,babel-helper-remap-async-to-generator
,babel-helpers
,babel-plugin-transform-async-generator-functions
,babel-types
,babel-preset-stage-2
, ...#3473
](https://github.com/babel/babel/pull/3473
) via [#4576
(https://github.com/babel/babel/pull/4576
) Implement support for async generator functions and for-await statements. (@zenparsing
)This change implements the async iteration proposal, currently at stage 2 (and pushing to stage 3 at the current TC-39 meeting). It includes the following features:
async function* g() { }
) to wrapped generator functions, similar to the current async-to-generator transform.for-await
statements into for loops containing yield expressions.Example Usage
babel-core
,babel-generator
,babel-plugin-transform-class-properties
,babel-template
,babel-traverse
,babel-types
#4500
(https://github.com/babel/babel/pull/4500
) Computed class properties. (@motiz88
)Parser support was added in babylon@6.11.0](
https://github.com/babel/babylon/releases/tag/v6.11.0
) with [babel/babylon#121
(https://github.com/babel/babylon/pull/121
)babel-generator
#3702
(https://github.com/babel/babel/pull/3702
) flow plugin: generate exact object type annotations. (@bhosmer
)Parser support was added in babylon@6.10.0](
https://github.com/babel/babylon/releases/tag/v6.10.0
) with [babel/babylon#104
(https://github.com/babel/babylon/pull/104
):rocket: New Feature
babel-core
,babel-generator
#3561
(https://github.com/babel/babel/pull/3561
) babel-core: add options for different parser/generator. (@hzoo
)Babel will now also take the options:
parserOpts
andgeneratorOpts
(as objects).parserOpts
will pass all properties down to the defaultbabylon
parser. You can also pass aparser
option to substitute for a different parser.This will allow passing down any of
babylon's
options:Another use case (the main reason for doing this), is to be able to use recast with Babel.
babel-core
#4542
(https://github.com/babel/babel/pull/4542
) Add support for preset organization shortcuts. (@nkt
)babel-plugin-transform-object-rest-spread
#4491
(https://github.com/babel/babel/pull/4491
) object rest spread useBuiltIns option. (@hzoo
)useBuiltIns
- Do not use Babel's helper's and just transform to use the built-in method (Disabled by default).babel-code-frame
#4561
(https://github.com/babel/babel/pull/4561
) babel-code-frame: add options for linesBefore, linesAfter. (@hzoo
)babel-code-frame
is a standalone package that we use in Babel when reporting errors.Now there is an option (
https://github.com/babel/babel/blob/master/packages/babel-code-frame/README.md#options
) to specify the number of lines above and below the errorbabel-core
,babel-preset-es2015
,babel-preset-es2016
,babel-preset-es2017
,babel-preset-latest
,babel-preset-react
,babel-preset-stage-0
,babel-preset-stage-1
,babel-preset-stage-2
,babel-preset-stage-3
#3695
](https://github.com/babel/babel/pull/
#3695`) via [
#4566(
https://github.com/babel/babel/pull/4566) Allow presets to be ES6 default exports ([
@johanssj`](https://github.com/johanssj))We previously made presets with commonjs exports
Now you can use export default as well
:bug: Bug Fix
babel-helpers
,babel-plugin-transform-es2015-typeof-symbol
#3686
(https://github.com/babel/babel/pull/3686
) Fixtypeof Symbol.prototype
. (@brainlock
)babel-cli
#3456
](https://github.com/babel/babel/pull/3456
) Use the real sourcemap API and handle input sourcemaps - Fixes [#7259
(https://github.com/babel/babel/issues/7259
). (@loganfsmyth
)#4507
(https://github.com/babel/babel/pull/4507
) Only set options in cli if different from default. (@danez
)Fix an issue with defaults not being overidden. This was causing options like
comments: false
not to work correctly.#4508
(https://github.com/babel/babel/pull/4508
) Support custom ports for V8 --inspect. (@andykant
)#4562
](https://github.com/babel/babel/pull/4562
) Fixes@hzoo
: Prevent REPL from printing implicit 'use strict'. (@hzoo
)babel-plugin-transform-es2015-function-name
,babel-traverse
#4524
(https://github.com/babel/babel/pull/4524
) Fix default export with arrows and function naming. (@danharper
)babel-plugin-transform-es2015-modules-commonjs
#4511
(https://github.com/babel/babel/pull/4511
) Fix UpdateExpression handling in es2015-modules-commonjs, resolve#4462
. (@motiz88
)#4518
(https://github.com/babel/babel/pull/4518
) fix default exported classes without a name. (@danez
)babel-plugin-transform-flow-strip-types
,babel-types
#4521
(https://github.com/babel/babel/pull/4521
) Fix striping of typeParameters from arrow functions. (@danez
)babel-generator
,babel-plugin-transform-flow-comments
#4504
(https://github.com/babel/babel/pull/4504
) Flow: Fix generating arrow functions with param. (@danharper
)babel-register
#3685
(https://github.com/babel/babel/pull/3685
) Allow overwritting of sourceRoot. (@danez
)#4577
(https://github.com/babel/babel/pull/4577
) babel-register: update source-map-support to latest. (@MoOx
)babel-core
#4570
(https://github.com/babel/babel/pull/4570
) Fix fileName options passed to babylon. (@DatenMetzgerX
)babel-traverse
#4534
(https://github.com/babel/babel/pull/4534
) Fix issue with minified libraries and code coverage. (@withinboredom
)babel-plugin-transform-es2015-destructuring
#4552
(https://github.com/babel/babel/pull/4552
) Fix destructuring evaluation with call expressions. (@danez
)We noticed that we can not make this optimizations if there are function calls or member expressions on the right hand side of the assignment since the function call or the member expression (which might be a getter with side-effect) could potentially change the variables we are assigning to.
babel-types
#4587
(https://github.com/babel/babel/pull/4587
) Prevent flow-strip-types/flow-comments from removing entire ClassProperty. (@danharper
):nail_care: Polish
babel-code-frame
#4579
(https://github.com/babel/babel/pull/4579
) babel-code-frame: Highlight strings with green (not red). (@lydell
)#4572
(https://github.com/babel/babel/pull/4572
) Improve syntax highlighting colors. (@lydell
)Before
After
babel-core
#4517
(https://github.com/babel/babel/pull/4517
) If loading a preset fails, show its name/path (#4506
). (@motiz88
)babel-helper-replace-supers
#4520
(https://github.com/babel/babel/pull/4520
) Remove unusedthisReference
argument togetSuperProperty
. (@eventualbuddha
)babel-generator
#4478
(https://github.com/babel/babel/pull/4478
) babel-generator: Ensure ASCII-safe output for string literals. (@mathiasbynens
)babel-core
,babel-plugin-transform-es2015-arrow-functions
,babel-plugin-transform-es2015-destructuring
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-parameters
#4515
(https://github.com/babel/babel/pull/4515
) Flip default parameter template. (@jridgewell
)babel-core
,babel-helpers
#3653
(https://github.com/babel/babel/pull/3653
) Removed unnecessary 'return' statements. (@ksjun
):house: Internal
Cleanup tests, remove various unused dependencies, do not run CI with only readme changes.
babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-modules-umd
#4543
(https://github.com/babel/babel/pull/4543
) Remove duplicate default error. (@kaicataldo
)babel-generator
,babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-modules-systemjs
,babel-plugin-transform-es2015-modules-umd
,babel-plugin-transform-flow-strip-types
#4538
(https://github.com/babel/babel/pull/4538
) Fix tests with duplicate named exports. (@kaicataldo
)babel-plugin-transform-es2015-function-name
#4532
(https://github.com/babel/babel/pull/4532
) Add tests for other module formats, from#4524
. (@danharper
)babel-plugin-transform-es2015-parameters
,babel-traverse
#4519
(https://github.com/babel/babel/pull/4519
) Replace phabricator tickets with github ones in code comments. (@danez
)babel-polyfill
#3694
(https://github.com/babel/babel/pull/3694
) Use plain js to do the pre/postpublish for the polyfill. (@danez
)babel-preset-es2015
#4501
(https://github.com/babel/babel/pull/4501
) Remove ES2015 tests than do not parse in ES2016. (@TimothyGu
)babel-plugin-transform-regenerator
#3703
(https://github.com/babel/babel/pull/3703
) Remove unused regenerator deps. (@hzoo
)babel-code-frame
#3699
(https://github.com/babel/babel/pull/3699
) babel-code-frame: babel-runtime not necessary. (@hzoo
)#3696
(https://github.com/babel/babel/pull/3696
) Satisfy the "space-infix-ops" eslint rule. (@gigabo
)babel-helper-transform-fixture-test-runner
#4560
(https://github.com/babel/babel/pull/4560
) Remove unused dependency babel-register. (@danez
)#3669
(https://github.com/babel/babel/pull/3669
) Do not include babel-register in test helper. (@danez
)#3693
(https://github.com/babel/babel/pull/3693
) remove unused packages (devDeps). (@hzoo
)#3681
(https://github.com/babel/babel/pull/3681
) Update shelljs to version 0.7.4 🚀. (@greenkeeperio-bot
)#4547
(https://github.com/babel/babel/pull/4547
) Internal: cancel build with only .md changes. (@hzoo
)#4565
(https://github.com/babel/babel/pull/4565
) Only exit if the TRAVIS_COMMIT_RANGE is not empty. (@danez
)Commiters: 20
First PRs!
Version 6.14.0
v6.14.0 (2016-08-23) TAKE ME TO FLAVOR TOWN
Lots of stuff in this release!
#3624
(https://github.com/babel/babel/pull/3624
) A new preset fores2017
: it includes the 2 previous stage-3 plugins: async/await (via transform-async-to-generator) and trailing commas in functions. (thanks to@bettiolo
for the npm package)#3625
](https://github.com/babel/babel/pull/3625
), [#3673
(https://github.com/babel/babel/pull/3673
) A new preset calledlatest
that transforms ES2015+ (currently ES2015, ES2016, ES2017). You can also pass options down to thees2015
preset.#3671
(https://github.com/babel/babel/pull/3671
) We also are including aspec
option for thees2015
preset since the arrow function/template string plugins support this option.#3659
(https://github.com/babel/babel/pull/3659
)@kittens
added an optionalwrapPluginVisitorMethod
callback to transform to allow for performance tracking/introspection of plugins. More docs will be added on the website soon.#3658
(https://github.com/babel/babel/pull/3658
) sourcemaps will also now have anames
field for identifiers to allow debuggers to do re-aliasing of mangled identifiers.#3518
(https://github.com/babel/babel/pull/3518
) For spec compilancy, we now will throw on a file with multiple export default.Notable Bug Fixes
#3527
(https://github.com/babel/babel/pull/3527
) Fix class inheritance in IE <=10 withoutloose
mode.#3644
(https://github.com/babel/babel/pull/3644
) Support theignore
config option in.babelrc
.#3655
(https://github.com/babel/babel/pull/3655
) Flow-only class props were not be stripped withouttransform-class-properties
.Guy Fieri
babel-core
#3641
(https://github.com/babel/babel/pull/3641
) Fix exports of babel-core. (@thejameskyle
)#3646
(https://github.com/babel/babel/pull/3646
) Remove Guy Fieri from Babel's source code. (@jdan
)Commiters: 17
It's also a lot folk's first PR (or first code PR)!
New Feature
babel-preset-es2015
#3671
(https://github.com/babel/babel/pull/3671
) Support 'spec' option onbabel-preset-es2015
. (@Kovensky
)babel-preset-latest
#3673
(https://github.com/babel/babel/pull/3673
) add options tobabel-preset-latest
. (@hzoo
)#3625
(https://github.com/babel/babel/pull/3625
) Createbabel-preset-latest
. (@sotayamashita
)babel-preset-es2017
#3624
(https://github.com/babel/babel/pull/3624
) Add es2017-preset. (@sotayamashita
)babel-core
,babel-traverse
#3659
(https://github.com/babel/babel/pull/3659
) AddwrapPluginVisitorMethod
option to allow introspection and metrics tracking of plugins. (@kittens
)babel-cli
,babel-core
,babel-generator
,babel-plugin-transform-regenerator
,babel-template
,babel-traverse
#3658
(https://github.com/babel/babel/pull/3658
) Generate names field for identifiers to get correct names mappings. (@kittens
)babel-generator
,babel-types
#3570
(https://github.com/babel/babel/pull/3570
) Add support for the new declare module.exports of flow. (@danez
)Spec Compliancy
babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-modules-umd
#3518
(https://github.com/babel/babel/pull/3518
) Throw error for multiple exports default. (@kaicataldo
)Bug Fix
babel-core
,babel-helper-replace-supers
,babel-plugin-transform-class-properties
,babel-plugin-transform-es2015-classes
,babel-plugin-transform-es2015-function-name
,babel-plugin-transform-es2015-object-super
,babel-plugin-transform-es2015-parameters
#3527
(https://github.com/babel/babel/pull/3527
) Fix class inheritance in IE <=10 (T3041). (@danez
)babel-cli
#3644
](https://github.com/babel/babel/pull/3644
) Fixes [#6726
(https://github.com/babel/babel/issues/6726
) ignore config option. (@subtleGradient
)babel-plugin-transform-es2015-modules-systemjs
#3650
(https://github.com/babel/babel/pull/3650
) System.register update expression consistency. (@guybedford
)babel-generator
#3663
(https://github.com/babel/babel/pull/3663
) Use arrow syntax for ObjectTypeProperty FunctionTypeAnnotations. (@zpao
)babel-register
#3608
(https://github.com/babel/babel/pull/3608
) Set sourceRoot in babel-register transform to fix paths in stacks. (@danez
)babel-plugin-transform-es2015-block-scoping
#3618
(https://github.com/babel/babel/pull/3618
) incorrect handling of returns nested in switch cases. (@ahl
)babel-traverse
#3559
(https://github.com/babel/babel/pull/3559
) Fix bug where redeclaration of var doesn't deopt. (@boopathi
)babel-plugin-transform-flow-strip-types
#3655
(https://github.com/babel/babel/pull/3655
) Strip flow-only class props without needing transform-class-properties.. (@loganfsmyth
)Documentation
#3651
(https://github.com/babel/babel/pull/3651
) Fixed typo in README.md. (@marcelometal
)Internal
babel-preset-es2015
,babel-preset-latest
#3674
(https://github.com/babel/babel/pull/3674
) Latest tests. (@hzoo
)babel-preset-es2015
#3672
(https://github.com/babel/babel/pull/3672
) Fixes modules test to actually test modules. (@Kovensky
)#3640
(https://github.com/babel/babel/pull/3640
) Update test name to reflect reality.. (@eventualbuddha
)#3668
(https://github.com/babel/babel/pull/3668
) Ensure correct version of babel installed for preset options. (@danez
)#3645
(https://github.com/babel/babel/pull/3645
) Add es2015 loose mode back. (@hzoo
)#3639
(https://github.com/babel/babel/pull/3639
) Use es2015 loose mode after publish. (@hzoo
)Version 6.13.2
v6.13.2 (2016-08-05)
Hi again, just fixing up logic from the backwards-compatibility fix which broke options in presets. Also added more tests and will update Babel to use the new preset options after this release.
Bug Fix
babel-core
,babel-preset-es2015
#3638
(https://github.com/babel/babel/pull/3638
) [Bug Fix] option manager: val = val.buildPreset should be before the check if the preset supports options (@christophehurpeau
)Version 6.13.1
v6.13.1 (2016-08-04)
We had a regression in our new babel-preset-es2015@6.13.0 that made it unexpectedly backward-incompatible. This release introduces a new alternative plugin-options approach that is uglier but supports backward-compatiblity. Ideally new plugins would use the new
module.exports = function(babel, options){ }
approach and simple skip supportingbabel-core@<6.13.x
.Bug Fix
babel-core
,babel-preset-es2015
#3635
(https://github.com/babel/babel/pull/3635
) Fix backward-compatibility of babel-preset-es2015. (@loganfsmyth
)Version 6.13.0
v6.13.0 (2016-08-04)
Some small but very important additions in this release:
Preset options (babel/notes (
https://github.com/babel/notes/blob/master/2016-07/july-31.md#preset-options-pr-3331
))Initially, presets were supposed to be one-off sets of plugins that didn't have any configuration. If you wanted to do something different you would make your own presets. There are > 600 presets on npm now. We want to give users more flexibility in certain cases: like when you want to pass the same option to multiple presets or to remove a default plugin.
loose
andmodules
options forbabel-preset-es2015
(#3331
](https://github.com/babel/babel/pull/3331
), [#3627
(https://github.com/babel/babel/pull/3627
))This has been rather annoying. Having to install
babel-preset-es2015-loose-native-modules
seems rather crazy when it could be an option.With
#3627
(https://github.com/babel/babel/pull/3627
), you can pass 2 options in:loose
- Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).modules
- Enable transformation of ES6 module syntax to another module type (Enabled by default to"commonjs"
). Can befalse
to not transform modules, or one of["amd", "umd", "systemjs", "commonjs"]
Updates to
babel-preset-stage-2
#3613
(https://github.com/babel/babel/pull/3613
) Move the decorators transform.#3626
(https://github.com/babel/babel/pull/3626
) Make a more informative error message when using the default decorators transform and link to the legacy transform#3611
(https://github.com/babel/babel/pull/3611
) Move class properties transform.Coming Up
babel-preset-es2017
,babel-preset-latest
(still deciding the name), supporting codemods, and more!New Feature
babel-core
,babel-preset-es2015
#3627
(https://github.com/babel/babel/pull/3627
) es2015: transpile the preset, modify modules option to support "amd,umd,systemjs" as well, tests. (@hzoo
)#3331
(https://github.com/babel/babel/pull/3331
) Support passing options to presets.. (@loganfsmyth
)babel-preset-stage-1
,babel-preset-stage-2
#3613
(https://github.com/babel/babel/pull/3613
) Move decorators to stage 2. (@doug-wade
)#3611
(https://github.com/babel/babel/pull/3611
) Movebabel-plugin-transform-class-properties
to stage 2. (@kripod
)Bug Fix
babel-traverse
#3557
(https://github.com/babel/babel/pull/3557
) Fix bug wherepath.evaluate
treats repeated identifiers as undefined. (@erikdesjardins
)Polish
babel-plugin-transform-decorators
#3626
(https://github.com/babel/babel/pull/3626
) Show a more informative error message when using the decorator transf…. (@hzoo
)Internal
babel-types
#3628
(https://github.com/babel/babel/pull/3628
) Missing FlowType definition opts.deprecatedAlias. (@kpman
)babel-plugin-syntax-async-functions
,babel-plugin-syntax-async-generators
,babel-plugin-syntax-class-constructor-call
,babel-plugin-syntax-class-properties
,babel-plugin-syntax-decorators
,babel-plugin-syntax-do-expressions
,babel-plugin-syntax-exponentiation-operator
,babel-plugin-syntax-export-extensions
,babel-plugin-syntax-flow
,babel-plugin-syntax-function-bind
,babel-plugin-syntax-function-sent
,babel-plugin-syntax-jsx
,babel-plugin-syntax-object-rest-spread
,babel-plugin-syntax-trailing-function-commas
#3604
(https://github.com/babel/babel/pull/3604
) Misc: remove deps from syntax plugins. (@hzoo
)babel-plugin-transform-inline-environment-variables
,babel-plugin-transform-member-expression-literals
,babel-plugin-transform-merge-sibling-variables
,babel-plugin-transform-minify-booleans
,babel-plugin-transform-node-env-inline
,babel-plugin-transform-property-literals
,babel-plugin-transform-remove-console
,babel-plugin-transform-remove-debugger
,babel-plugin-transform-simplify-comparison-operators
,babel-plugin-transform-undefined-to-void
#3621
(https://github.com/babel/babel/pull/3621
) transfer minify plugins (will be in another repo). (@hzoo
)#3622
(https://github.com/babel/babel/pull/3622
) Update mocha to version 3.0.0 🚀. (@greenkeeperio-bot
)Commiters: 7
Version 6.11.4
v6.11.4 (2016-07-20)
In this release (among other things) are some more optimizations for babel-generator (
#3584
](https://github.com/babel/babel/pull/3584
), [#3580
(https://github.com/babel/babel/pull/3580
)) as well as refactors.@jamestalmage
did some awesome clean for OptionsManager and some tests which may help future improvements tobabel-register
performance.Bug Fix
babel-plugin-transform-remove-console
,babel-plugin-transform-remove-debugger
,babel-traverse
#3583
(https://github.com/babel/babel/pull/3583
) Add block if parent is non-block statement for remove-console/debugger. (@jhen0409
)babel-plugin-transform-regenerator
#3586
](https://github.com/babel/babel/pull/3586
) Avoid duplicated identifier sharing location - Fixes [#7436
(https://github.com/babel/babel/issues/7436
). (@loganfsmyth
)babel-cli
#3578
(https://github.com/babel/babel/pull/3578
) Support all variations of v8Flags in babel-node. (@danez
)Polish
babel-core
#3564
(https://github.com/babel/babel/pull/3564
) Extract config file resolution from OptionsManager . (@jamestalmage
)babel-generator
,babel-plugin-transform-es2015-modules-commonjs
#3584
(https://github.com/babel/babel/pull/3584
) babel-generator: More refactoring and optimizations. (@loganfsmyth
)babel-plugin-transform-es2015-parameters
#3574
(https://github.com/babel/babel/pull/3574
) Default parameters cleanup. (@jridgewell
)babel-generator
#3581
(https://github.com/babel/babel/pull/3581
) babel-generator: Misc cleanup and stale code removal. (@loganfsmyth
)#3580
(https://github.com/babel/babel/pull/3580
) Further optimize babel-generator Buffer. (@jridgewell
)Commiters: 6