6.7.2 (2016-03-10)
Flow fix, mention babylon move
Bug Fix
We are treating static type information as part of the runtime scope information. So a Flow type declaration was being considered a binding on the scope. This was specifically problematic when we thinking that we're overwriting a binding:
The following code:
declare class foo {}
const foo = 1;
Will result in the error: "foo" is read-only
Since removing support for flow-based bindings would be a breaking change, in this release I'm adding a warning whenever someone tries to use Flow types as bindings.
Internal
babel-code-frame
,babel-generator
,babel-messages
,babel-plugin-undeclared-variables-check
,babel-polyfill
,babel-register
,babel-traverse
,babel-types
babylon
- #3413 move babylon to https://github.com/babel/babylon. (@kittens)