NodeJS 0.10.25 (Ubuntu 14.04) 和 NodeJS 4.1(编译自 NodeJS.org 来源)之间的区别

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

我现在对那些版本号真的很困惑。我正在计划一个新项目,想知道这两个版本之间有什么区别。这两个版本之间似乎有很大的跳跃,但现在我找不到区别。

使用 4.1 版安全吗?

感谢您的帮助!

跳转到 v4 是与 io.js 合并的结果,取自 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.

至于新旧版本行之间的中断更改,you need to look here看看是否符合您'safe'的标准。

我建议您使用 nvm 安装 node(如果您还没有安装的话),然后尝试一下这两个版本,看看您现在是否愿意切换。