lumio
lumio

Reputation: 7585

Differences between NodeJS 0.10.25 (Ubuntu 14.04) and NodeJS 4.1 (compiled from NodeJS.org Source)

I'm really confused about those version numbers right now. I'm planning a new project and am wondering what the differences are between those 2 versions. It seems to be a big jump between those 2 versions but right now I cannot find a difference.

Is it safe to use version 4.1?

Thank you for any help!

Upvotes: 5

Views: 3081

Answers (1)

Philip O'Brien
Philip O'Brien

Reputation: 4266

The jump to v4 is a result of the merge with io.js, taken from the blog

Node.js v4.0.0 contains V8 v4.5, the same version of V8 shipping with the Chrome web browser today. This brings with it many bonuses for Node.js users, most notably a raft of new ES6 features that are enabled by default including block scoping, classes, typed arrays (Node's Buffer is now backed by Uint8Array), generators, Promises, Symbols, template strings, collections (Map, Set, etc.) and, new to V8 v4.5, arrow functions.

As for breaking changes between the old and new version lines, you need to look here to see if this meets your criteria for 'safe'.

I recommend you install node with nvm (if you haven't already) and just play around with the two versions to see if you are comfortable switching now.

Upvotes: 6

Related Questions