traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler

APACHE-2.0 License

Downloads
114.3K
Stars
8.2K
Committers
71

Bot releases are visible (Hide)

traceur-compiler - Latest Release

Published by arv over 8 years ago

  • Cleanup generated code for export default declaration
  • Setup module.exports first
traceur-compiler -

Published by arv over 8 years ago

This fixes the broken dist/commonjs of 0.0.109

traceur-compiler -

Published by arv over 8 years ago

  • CJS: Module exports should be enumerable
  • Top level this in modules should be undefined
  • Allow the runtime to be imported as modules using --import-runtime
traceur-compiler -

Published by arv over 8 years ago

  • Move Proper Tail Calls runtime into individual modules. ie. require('traceur/dist/commonjs/runtime/modules/call.js')
traceur-compiler -

Published by arv over 8 years ago

  • bin/BrowserSystem.js includes compiler, polyfills, System, and WebPageTranscoder. Read traceurOptions attribute from <script type=module traceurOptions="--asyncFunctions">.
traceur-compiler -

Published by arv over 8 years ago

  • Allow compiling async functions to generators. This is done by setting --async-functions --generators=parse.
traceur-compiler -

Published by arv over 8 years ago

  • Fix issue where we did not allow declarations to shadow the function expression name.
  • Implement Spread Properties. This add support for ... in object literals which is currently at stage 2.
var x = {a: 1};
var y = {...a, b: 2};  // {a: 1, b: 2}
  • JSX: Fix assignment expression parsing in place holders.
  • JSX: Fix whitespace and escaping of attribute values.
traceur-compiler -

Published by arv over 8 years ago

  • Upgrade semver to 4.3.3
traceur-compiler -

Published by arv over 8 years ago

  • Move runtime into modules. This is in preparation for allowing importing the runtime as
    modules in the future.
  • JSX: Tag name starting with an uppercase should use identifier. <Abc/> should generate React.createElement(Abc, null) and not React.createElement('Abc', null).
  • JSX: Support boolean shorthand attributes. <a b/> is short for <a b={true}/>.
  • JSX: Add support for JSXSpreadAttribute. This allows spreading an object into props/attributes:
<p a='a' {...{b: 1, c: 2}}/>
// same as (except the expansion happens at runtime)
<p a='a' b={1} c={2}/>
  • Update commander and glob dependencies.
traceur-compiler -

Published by arv over 8 years ago

  • Fix release
traceur-compiler -

Published by arv over 8 years ago

  • Make sure we do not clobber a pre existing System object.
  • Use a context argument in System.register
  • Add commonjs versions of the src in dist/commonjs/. This making reusing core Traceur modules easier from projects such as es module loader:
require('traceur/bin/traceur-runtime.js');
var Parser = require('traceur/dist/commonjs/syntax/Parser.js').Parser;
...
traceur-compiler -

Published by arv over 8 years ago

  • Lots of refactoring related to traceur runtime.
  • Add support for import type and make sure the import/export validation works.
  • Implement __moduleName second argument to System.register.
traceur-compiler -

Published by arv over 8 years ago

  • Add support for TypeAliasDeclaration. This adds support for TypeScript/Flow's type alias declaration:
type NumberArray = Array<number>;
  • Basic JSX parsing support. The option to turn this on is called jsx. You can provide your own
    function to call by setting this option to a string. --jsx=my.func.
    If not set it defaults to React.createElement.
  • Remove type-assertions option. It was never fully implemented...
  • Add --modules=parse output option. This allows outputting ES6 module syntax.
  • Basic polyfill for WeakMap/WeakSet.
  • Support IdentifierName in extended export. The following is now valid:
// Options: --export-from-extended
export new from './file.js';
  • Fix issue where we added initializers to for in vars.
  • Only conditionally override Object.keys and Object.getOwnPropertyNames if there is no native support for Symbol.
traceur-compiler -

Published by arv over 8 years ago

  • Fix issue with regular expressions. Regular expressions starting with /=* was not parsed correctly.
  • Fix arrow functions in derived class constructors
traceur-compiler -

Published by arv over 9 years ago

  • Add tool for printing dependencies
  • Improve performance for bulk exports when using --modules=instantiate
  • Add super support to object literals
  • Fix issue with parens and arrow functions (#1962)
  • Fix issue with let/const in while/do-while (#1970)
  • Remove extra use strict directive from modules (#1973)
  • Renamed some AST class names. See commits for details.
Package Rankings
Top 0.66% on Npmjs.org
Top 22.7% on Repo1.maven.org
Top 4.03% on Proxy.golang.org
Badges
Extracted from project README
Join the chat at https://gitter.im/google/traceur-compiler Build Status