TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Node.js v6.0 Released

728 pointsby JoshGlazebrookabout 9 years ago

26 comments

altanoabout 9 years ago
For anyone using TypeScript to build your Node.js code, you can now switch your target to es6&#x2F;es2015 in your tsconfig.json:<p><pre><code> { &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;es2015&quot;, &quot;module&quot;: &quot;commonjs&quot; } } </code></pre> Assuming you&#x27;re not using that 7% (<a href="http:&#x2F;&#x2F;node.green&#x2F;" rel="nofollow">http:&#x2F;&#x2F;node.green&#x2F;</a>) :)<p>Just make sure to update your package.json to take a hard dependency on Node 6+ if you do that:<p><pre><code> { &quot;engines&quot; : { &quot;node&quot; : &quot;&gt;=6.0.0&quot; } } </code></pre> This will make it so that ES6-compat is assumed and TS won&#x27;t transpile ES6 functionality, but it will use commonjs for modules, which means your TS will almost be a 1:1 mapping with the compiled JS and everything should just work.
评论 #11575805 未加载
评论 #11575698 未加载
latimerabout 9 years ago
FYI for anyone looking for the downloads, v6.0 technically hasn&#x27;t been released yet. It will most likely be out within a few hours.<p>Edit: of course right after I say it isn&#x27;t released, it is released. :)<p>Release post: <a href="https:&#x2F;&#x2F;nodejs.org&#x2F;en&#x2F;blog&#x2F;release&#x2F;v6.0.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nodejs.org&#x2F;en&#x2F;blog&#x2F;release&#x2F;v6.0.0&#x2F;</a>
评论 #11575127 未加载
评论 #11575433 未加载
评论 #11575146 未加载
评论 #11576395 未加载
olalondeabout 9 years ago
On a related note, does anyone know if there&#x27;s a way to tell Babel that your compilation target is Node.js v6.0 and only have it compile stuff that isn&#x27;t natively supported yet?<p>Edit: Thanks for all the answers. I just went through the list of unsupported features and as I&#x27;m not using any of the remaining 7%, I might be able to get rid of Babel during development if I&#x27;m lucky.<p>Edit 2: Oops, still no es6 module support :(
评论 #11574929 未加载
评论 #11574895 未加载
评论 #11575730 未加载
评论 #11575589 未加载
评论 #11574866 未加载
评论 #11574852 未加载
评论 #11576259 未加载
评论 #11575338 未加载
评论 #11574878 未加载
dchukabout 9 years ago
Interesting how this is written as a traditional press release rather than software release notes like most other open source projects
评论 #11574902 未加载
评论 #11575057 未加载
评论 #11575034 未加载
评论 #11574991 未加载
iMarkabout 9 years ago
I&#x27;ve been a front end developer for, well, quite a while, and in that time we&#x27;ve gone from cycles of around a decade (thank you IE6!) for new versions of JS to something closer to a couple of years.<p>The future, as I see it, is incredibly bright.
评论 #11575641 未加载
rogerwangabout 9 years ago
NW.js v0.15.0 beta released with Node.js v6 : <a href="http:&#x2F;&#x2F;nwjs.io&#x2F;blog&#x2F;v0.15.0-beta1&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nwjs.io&#x2F;blog&#x2F;v0.15.0-beta1&#x2F;</a>
empyricalabout 9 years ago
I&#x27;m really curious to see the kinds of things people will cook up with the new Proxy object
pseudobryabout 9 years ago
And now available on Google App Engine (Flexible Environment).<p>Example app running v6.0.0: <a href="http:&#x2F;&#x2F;nodejs600.appspot.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nodejs600.appspot.com&#x2F;</a>
hiphipjorgeabout 9 years ago
Is there a plan for Node.js to get `import` any times soon? Will we need babel in order to use this for months? years? ever?
评论 #11576404 未加载
评论 #11576028 未加载
评论 #11575793 未加载
smithclayabout 9 years ago
For those curious about the performance improvements, <a href="https:&#x2F;&#x2F;benchmarking.nodejs.org" rel="nofollow">https:&#x2F;&#x2F;benchmarking.nodejs.org</a> has you covered.
vinnymacabout 9 years ago
Any idea why the node-compat-table says 96%? <a href="http:&#x2F;&#x2F;node.green&#x2F;" rel="nofollow">http:&#x2F;&#x2F;node.green&#x2F;</a>
评论 #11575018 未加载
评论 #11574996 未加载
评论 #11574986 未加载
mmaunderabout 9 years ago
I&#x27;m using webstorm to write a node app. I&#x27;m using ES6 and webstorm transpiles it to 5.1. Details here:<p><a href="http:&#x2F;&#x2F;blog.jetbrains.com&#x2F;webstorm&#x2F;2015&#x2F;05&#x2F;ecmascript-6-in-webstorm-transpiling&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.jetbrains.com&#x2F;webstorm&#x2F;2015&#x2F;05&#x2F;ecmascript-6-in-w...</a><p>I&#x27;m using node 5.9.1 and webstorm creates a <i>-compiled.js and </i>-compiled.js.map file for each transpiled file.<p>If I use Node 6 which I understand is now up to 95% support for ES6, do I still need to transpile to ES5.1? Is anyone else using webstorm with ES6 and are you also going through this transpiling step?
gbogabout 9 years ago
&quot;Fastest Growing Platform&quot;<p>Does this refer to growth in number of users or in number of modules? Or maybe just counting the number of lines of code?
评论 #11580169 未加载
weboabout 9 years ago
This is a great news.<p>Are there any tools that statically or otherwise checks any potentially breaking pieces in the Node v4+ codebase&#x2F;dependencies?
gotofritzabout 9 years ago
Note that the require mechanism is quite flakey, and they are discussing a new release or even reverting <a href="https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node&#x2F;issues&#x2F;3402#issuecomment-215166795" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node&#x2F;issues&#x2F;3402#issuecomment-2151...</a>
lhorieabout 9 years ago
Released where? Download page still points to v4.4.3 (LTS)&#x2F;v5.11 (current)
评论 #11574974 未加载
评论 #11575027 未加载
评论 #11575010 未加载
评论 #11575046 未加载
Scarbuttabout 9 years ago
Why doesn&#x27;t tail call optimization get any love?
评论 #11576696 未加载
therealmarvabout 9 years ago
Is it stupid to still use v0.12 ? Last time I&#x27;ve checked I&#x27;ve had compatibility issues with all new (now old) io.js versions.
评论 #11576306 未加载
评论 #11576052 未加载
nemo1618about 9 years ago
Is there a list of the remaining 7% features?
评论 #11575109 未加载
评论 #11574963 未加载
评论 #11575023 未加载
proybabout 9 years ago
I like to see some benchmark for latency and throughput, as far as only official benchmark is exist.
nikolayabout 9 years ago
Released where? It&#x27;s not in the GitHub releases, not on the homepage either.
chowesabout 9 years ago
I&#x27;m assuming this is backwards-compatible with 5.X?
评论 #11574853 未加载
knownabout 9 years ago
Hope its not getting bloated
yuvalkarmiabout 9 years ago
Why is there a press release for this sort of thing?
评论 #11578032 未加载
ZLeviathanabout 9 years ago
interesting...considering JavaScript itself is a shaky language.
wrong_variableabout 9 years ago
babel sucks - I never though I could hate something so strongly.<p>Just today I had to deal with the fact that babel wraps ALL your generators in some shit function.<p>Why ? just why ? generation function was supported in browsers longer then the age all the babel maintainers combined.<p>The worst part is I do not use babel myself - I wouldn&#x27;t touch it with a ten foot pole but am forced to use it due to my stupid cowokers writing everything using babel - ( why does babel need .babelrc file ?? - is babel such a prominent part of your life that you need .rc files ?? and why does the .rc file need to be specified in every freaking folder ! )<p>1) babel&#x27;s docs are also terrible<p>2) The people maintaining babel seem to actively market babel and then at the same time ignore questions and requests for better docs from the community.<p>3) Slowest compiler I have had the pleasure of dealing with - my babel watch process consumes a grand total of 150 MB of memory !!<p>Edit - had to follow HN guidelines
评论 #11574893 未加载
评论 #11574846 未加载
评论 #11574860 未加载
评论 #11574879 未加载
评论 #11574887 未加载
评论 #11575147 未加载
评论 #11574883 未加载
评论 #11575968 未加载
评论 #11575024 未加载