Comparing version 0.5.0 to 0.6.0
@@ -8,2 +8,3 @@ var fs = require('fs'); | ||
var es6restParams = require('es6-rest-params'); | ||
var es6spread = require('es6-spread'); | ||
var es6templates = require('es6-templates'); | ||
@@ -85,2 +86,6 @@ var regenerator = require('regenerator'); | ||
if (options.spread !== false) { | ||
ast = es6spread.transform(ast); | ||
} | ||
if (options.templates !== false) { | ||
@@ -87,0 +92,0 @@ ast = es6templates.transform(ast); |
{ | ||
"name": "esnext", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Transform next-generation JavaScript to today's JavaScript.", | ||
@@ -35,4 +35,5 @@ "main": "lib/index.js", | ||
"ast-types": "^0.3.23", | ||
"es6-default-params": "0.0.1" | ||
"es6-default-params": "0.0.1", | ||
"es6-spread": "0.0.1" | ||
} | ||
} |
@@ -30,14 +30,15 @@ # esnext | ||
* classes (via [es6-class][es6-class]) | ||
* generators (via [regenerator][regenerator]) | ||
* arrow functions (via [es6-arrow-function][es6-arrow-function]) | ||
* template strings (via [es6-templates][es6-templates]) | ||
* rest params (via [es6-rest-params][es6-rest-params]) | ||
* [classes][features-classes] (via [es6-class][es6-class]) | ||
* [generators][features-generators] (via [regenerator][regenerator]) | ||
* [arrow functions][features-arrows] (via [es6-arrow-function][es6-arrow-function]) | ||
* [template strings][features-template-strings] (via [es6-templates][es6-templates]) | ||
* [rest params][features-default-rest-spread] (via [es6-rest-params][es6-rest-params]) | ||
* [default params][features-default-rest-spread] (via [es6-default-params][es6-default-params]) | ||
### TODO | ||
* modules (integration with [es6-module-transpiler][es6-module-transpiler] required) | ||
* spread arguments | ||
* block scoping (`let`) | ||
* destructuring | ||
* [modules][features-modules] (i.e. integration with [es6-module-transpiler][es6-module-transpiler]) | ||
* [spread arguments][features-default-rest-spread] | ||
* [block scoping (`let`)][features-let-const] | ||
* [destructuring][features-destructuring] | ||
@@ -106,2 +107,3 @@ Any omissions here are not intentional and we'd love to integrate support for | ||
[es6-class]: https://github.com/square/es6-class | ||
[es6-default-params]: https://github.com/square/es6-default-params | ||
[es6-module-transpiler]: https://github.com/square/es6-module-transpiler | ||
@@ -111,2 +113,10 @@ [es6-rest-params]: https://github.com/thomasboyt/es6-rest-params | ||
[es6features]: https://github.com/lukehoban/es6features | ||
[features-arrows]: https://github.com/lukehoban/es6features#arrows | ||
[features-classes]: https://github.com/lukehoban/es6features#classes | ||
[features-default-rest-spread]: https://github.com/lukehoban/es6features#default--rest--spread | ||
[features-destructuring]: https://github.com/lukehoban/es6features#destructuring | ||
[features-generators]: https://github.com/lukehoban/es6features#generators | ||
[features-let-const]: https://github.com/lukehoban/es6features#let--const | ||
[features-modules]: https://github.com/lukehoban/es6features#modules | ||
[features-template-strings]: https://github.com/lukehoban/es6features#template-strings | ||
[recast]: https://github.com/benjamn/recast | ||
@@ -113,0 +123,0 @@ [regenerator]: http://facebook.github.io/regenerator/ |
@@ -57,1 +57,6 @@ /* jshint esnext:true */ | ||
); | ||
assert.deepEqual( | ||
Counter.forCounts(...[1, 2]).map(counter => counter.count), | ||
[1, 2] | ||
); |
Sorry, the diff of this file is not supported yet
13011
14
234
123
10
+ Addedes6-spread@0.0.1
+ Addedes6-spread@0.0.1(transitive)