npm babylon 6.8.0
v6.8.0

latest releases: 7.0.0-beta.47, 7.0.0-beta.46, 7.0.0-beta.45...
8 years ago

6.8.0 (2016-05-04)

This is also the first release of babylon outside of the main babel repo. We are able to parse two new features! This release is to correspond to the previous Babel 6.8.0 release since babylon is also compiled with Babel 6. In the future, the version numbers may not correspond the same given it's in a separate repo.

New Feature

Parse Method Parameter Decorators (#12)

Method Parameter Decorators is now a TC39 stage 0 proposal.

Examples:

class Foo {
  constructor(@foo() x, @bar({ a: 123 }) @baz() y) {}
}

export default function func(@foo() x, @bar({ a: 123 }) @baz() y) {}

var obj = {
  method(@foo() x, @bar({ a: 123 }) @baz() y) {}
};
Parse for-await statements (w/ asyncGenerators plugin) (#17)

There is also a new node type, ForAwaitStatement.

Async generators and for-await are now a stage 2 proposal.

Example:

async function f() {
  for await (let x of y);
}

Don't miss a new babylon release

NewReleases is sending notifications on new releases.