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 5.0 Released

278 pointsby scorchioover 9 years ago

18 comments

BinaryIdiotover 9 years ago
So there seems to be folks complaining about how fast this release was and other folks saying it&#x27;s not a big deal because 4.2.x is LTS. But I don&#x27;t see anyone addressing the actual issue of breaking changes in node: npm.<p>What does a module author do? If my module uses an API that was changed in 5.x, do I only support 4.2.x, do I only support 5.x or do I write in some hacks to try and check between the two? What if 6.x comes in, say, 6 months and also breaks another API. Now I have 3 hacks or I only support 4.2.x or 6.x.<p>This is the first major version since the io.js and node.js merger so I&#x27;m not <i>that</i> concerned yet but if they continue this pace then I will be very concerned (just like I was concerned when npm was supporting io.js and node.js when they had differences in their APIs; it forces module developers to choose and limit their availability). I would like to see some path of deprecation for node.js APIs that take multiple major versions to get away from unless it&#x27;s a major security risk.<p>Edit: just to clarify my worry: I&#x27;m not worried <i>yet</i>. But, and this is a big but, ECMAScript doesn&#x27;t include any standard libraries for interacting with systems, http, etc so node.js has kinda assumed the role of a standard, defacto library for JavaScript when dealing with a system on a level outside of a web browser. So if the breaking API changes are going to occur every year or faster, to me that&#x27;s like a language&#x27;s standard libraries changing every year or sooner.<p>Yes it&#x27;s kinda not fair as node.js is NOT a set of standard JavaScript libraries but that&#x27;s the role it&#x27;s essentially been given due to the lack of one in ECMAScript.
评论 #10478344 未加载
评论 #10481034 未加载
评论 #10478194 未加载
评论 #10479010 未加载
评论 #10481080 未加载
评论 #10480132 未加载
评论 #10478238 未加载
joshstrangeover 9 years ago
Good lord people...<p>1. There is no one forcing you to upgrade, 4.2 is LTS, you&#x27;ve got 2yrs+<p>2. 5.0 followed 4.0 so closely because 4.0 was the iojs&#x2F;node merge and 5.0 was to correspond with the new V8 release, future major bumps will be closer to 6mo (to match V8)
评论 #10478040 未加载
评论 #10478418 未加载
评论 #10478543 未加载
评论 #10477950 未加载
评论 #10478348 未加载
评论 #10478208 未加载
cdnsteveover 9 years ago
I recently looked at using Node for a simple API backend. ES6 seems like it&#x27;s not there yet, the stability of Node makes me wary. Constant changes seem exhausting to keep up with. For a simple microservice api you don&#x27;t want to be upgrading it every 3 days. The continuous change doesn&#x27;t make sense to me. Trying to get up to speed on all the Node.js ecosystem feels exhausting, only to have it change a few weeks later. Maybe someone using this daily for real APIs could comment if this is the case for them?<p>I ended up opting for Flask and Python 3x instead, couldn&#x27;t be happier. I had my API up and running within a day with no prior knowledge of Flask and some Python on and off. I&#x27;ve been able to discuss and teach other team members on it who were also able to pick it up easily.
评论 #10477755 未加载
评论 #10477722 未加载
评论 #10477737 未加载
评论 #10480381 未加载
评论 #10477754 未加载
评论 #10477865 未加载
评论 #10478047 未加载
评论 #10477750 未加载
评论 #10477842 未加载
评论 #10477841 未加载
cmpbover 9 years ago
There&#x27;s a lot of confusion and concern in here about the release of a new major version very soon after the release of another major version (v4.0.0 was released just a month and a half ago). Please note that this is a special release prompted largely by the odd timing of a new release of Google&#x27;s V8 [1].<p>If you&#x27;re looking for solid, long term stability, you are perfectly fine sticking with v4.0.0, as its marked an &quot;LTS&quot; release. This means it&#x27;ll be actively receiving minor- and patch-level updates for 18 months, then for 12 months thereafter it&#x27;ll get updates for severe bugs and security problems (what they call &quot;maintenance&quot; mode) [2].<p>[1] <a href="https:&#x2F;&#x2F;twitter.com&#x2F;rvagg&#x2F;status&#x2F;659871982670884864" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;rvagg&#x2F;status&#x2F;659871982670884864</a> [2] <a href="https:&#x2F;&#x2F;medium.com&#x2F;@nodesource&#x2F;essential-steps-long-term-support-for-node-js-8ecf7514dbd#.wutoxcg53" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@nodesource&#x2F;essential-steps-long-term-sup...</a>
评论 #10478610 未加载
EvanPlaiceover 9 years ago
I&#x27;m not sure why so many people are freaking out.<p>Looking at the changelog, it looks like they decided to commit a bunch of breaking changes that were previously marked as deprecated. If your code was running before without warnings, upgrading shouldn&#x27;t have a negative impact.<p>The pace of change is fast because node ES6 support is progressing fast enough to maintain near 1:1 feature parity with v8. A bunch of ES6 features still haven&#x27;t been fully implemented in v8 but that&#x27;s not the fault of the Node.js dev team.<p>If the dev team has committed to LTS for 4.2 that means they&#x27;re likely planning to backport new features to the 4x branch. No reason to panic. Many of the more useful features of ES6 already work perfectly in 4.2.
评论 #10478492 未加载
评论 #10479360 未加载
alexwebb2over 9 years ago
Glad to see they&#x27;ve bumped up the V8 version so the spread operator can be used.<p>Things are really moving along at a good clip since the merge with io.js.
评论 #10477738 未加载
amarrajaover 9 years ago
We use node on Windows for our asset minifiers, hopefully the new version of NPM will make this a little more pleasant!<p><i>Your dependencies will now be installed maximally flat. Insofar as is possible, all of your dependencies, and their dependencies, and THEIR dependencies will be installed in your project&#x27;s node_modules folder with no nesting. You&#x27;ll only see modules nested underneath one another when two (or more) modules have conflicting dependencies.</i>
评论 #10478910 未加载
评论 #10478960 未加载
评论 #10480410 未加载
sarciszewskiover 9 years ago
And it still uses OpenSSL as a CSPRNG, rather than the operating system&#x27;s CSPRNG (CryptGenRandom, &#x2F;dev&#x2F;urandom, etc.). I guess maybe they&#x27;ll fix that in 6?
评论 #10480867 未加载
qntmfredover 9 years ago
This release timeframe was announced quite a while ago. As others have mentioned the quick jump from 4 to 5 was primarily due to the io.js convergence.<p>Expect future major releases on a 6 month cadence with LTS releases every 12 months<p><a href="https:&#x2F;&#x2F;nodesource.com&#x2F;blog&#x2F;essential-steps-long-term-support-for-nodejs#how-long" rel="nofollow">https:&#x2F;&#x2F;nodesource.com&#x2F;blog&#x2F;essential-steps-long-term-suppor...</a>
gamesbrainiacover 9 years ago
For a person who&#x27;s not well versed with Node&#x27;s version history, what&#x27;s in this update to warrant a jump from version 4 to 5?
评论 #10477604 未加载
评论 #10477684 未加载
评论 #10478876 未加载
donparkover 9 years ago
4.0 being LTS pretty much requires early 5.0 release. While side-effects are significant, this is the only way to have both LTS and momentum.
bfrogover 9 years ago
Uhh, wait, wasn&#x27;t nodejs 4.0 only like a month ago? So are there going to be breaking changes every few months now?
评论 #10477736 未加载
评论 #10477757 未加载
评论 #10477796 未加载
xdinomodeover 9 years ago
My current node version is 4.1.0 and npm is 2.14.3. I don&#x27;t see any reason to upgrade. Node PLEASE implement HTTP 2.0
评论 #10492190 未加载
评论 #10480855 未加载
epynonymousover 9 years ago
seems to be broken for mac os x, installed from 4.0.0 and seems that npm is broken, running npm install gives me npm ERR! code MODULE_NOT_FOUND.<p>i reverted back to 4.0.0
fiboover 9 years ago
Yeah, habemus spread operator! I also hope v6 Will be full ES6. Right now classes can be user only in strict mode :(
tallesover 9 years ago
Spread operator, yay!
ameliusover 9 years ago
Support for in-process multithreading already?
vonklausover 9 years ago
I found this out last night at 3am after rushing to provision a server. i don&#x27;t have a great handle on semver or dev cycles, point ceded, but they released 4.2 on october 12th. thats like .1 every 2 days.
评论 #10477890 未加载
评论 #10478258 未加载
评论 #10477859 未加载