npm babylon 6.9.0
v6.9.0

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

6.9.0 (2016-08-16)

New syntax support

(Be aware that React is not going to support this syntax)

<div>
  {...todos.map(todo => <Todo key={todo.id} todo={todo}/>)}
</div>
  • Add support for declare module.exports (#72) @danez
declare module foo {
  declare module.exports: {}
}

New Features

  • If supplied, attach filename property to comment node loc. (#80) @divmain
  • Add identifier name to node loc field (#90) @kittens

Bug Fixes

  • Fix exponential operator to behave according to spec (#75) @danez
  • Fix lookahead to not add comments to arrays which are not cloned (#76) @danez
  • Fix accidental fall-through in Flow type parsing. (#82) @xiemaisi
  • Only allow declares inside declare module (#73) @danez
  • Small fix for parsing type parameter declarations (#83) @gabelevi
  • Fix arrow param locations with flow types (#57) @danez
  • Fixes SyntaxError position with flow optional type (#65) @danez

Internal

Don't miss a new babylon release

NewReleases is sending notifications on new releases.