Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 726
lumio Avatar asked Sep 18 '15 15:09

lumio


People also ask

Which Nodejs version is best?

So if you come across a Node tutorial, make sure it's using version 6 and up. In fact, 99% of the modern JavaScript features are now supported with Node version 6 and up (Node. green, 2020).

What is the latest version of Nodejs?

js v18 is the Current version! Node. js 18 will be the 'Current' release for the next 6 months and then promoted to Long-term Support (LTS) in October 2022.

Does node js work on Ubuntu?

Node. js is based on the v8 JavaScript engine of Chrome and can be easily installed on various operating systems such as Windows, macOS, and Linux-based systems e.g. Ubuntu.


1 Answers

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.

like image 179
Philip O'Brien Avatar answered Oct 02 '22 13:10

Philip O'Brien