Hacker News new | ask | show | jobs
by hackcrafter 3471 days ago
I was confused when writing a NodeJs script last night which ES* features were supported in the node runtime I had installed (6.9.x).

This blog posts mentioned Node already fully supports ES6.

Is there a table anywhere that lists ES6/ES7 features and which nodejs version supports it natively?

I assume async/await (which I love and use from TypeScript) will only be available in Node 7.x and not 6.x.

The Node.js home-page makes node 7.x look scary unstable, is there any real-world caveats to using it?

4 comments

You might find this useful. http://node.green/
Yes!

I swear I googled for something like this and came up empty multiple times. Thanks!

Node 7.x is stable. The only caveat is that it won't be supported as long as node 6. That is, it will stop receiving security updates in ~6 months rather than ~18 months.

As long as you easily update your node version there's no reason not to use it.

> Is there a table anywhere that lists ES6/ES7 features and which nodejs version supports it natively?

Why, yes, there is: Kangax's Compatibility Table.[1]

[1]: https://kangax.github.io/compat-table/es6/

fyi with typescript you can target all the way down to es3 for async/await now. Certainly if you target es5 you can support any currently-supported version of node.