npm babel-traverse 6.7.2
v6.7.2

latest releases: 7.0.0-beta.3, 7.0.0-beta.2, 7.0.0-beta.1...
8 years ago

6.7.2 (2016-03-10)

Flow fix, mention babylon move

Bug Fix

  • babel-traverse
    • #3414: Warn on Flow-based bindings and don't count as a const violation. (@amasad)

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

Don't miss a new babel-traverse release

NewReleases is sending notifications on new releases.