io.js 3.2.0 發布
io.js可以說是徹底從NodeJS里分離出來的一條分支,其事情始末可以查看這篇報道,此處便也不贅言。既然是分支,io.js便也基本兼容NodeJS的各種API,連執行指令也依舊兼容Node的 node XXX (新指令是 iojs XXX )。不過io.js采納了最新版本的V8引擎,并也將會時刻跟進V8的更新,也因此我們可以輕松地在io.js上搶先使用那些JavaScript ECMA-262規范上的新特性。
io.js 3.2.0 發布,此版本值得關注的改進如下:
-
events: Added
EventEmitter#listenerCount(event)
as a replacement forEventEmitter.listenerCount(emitter, event)
, which has now been marked as deprecated in the docs. (Sakthipriyan Vairamani) #2349 -
module: Fixed an error with preloaded modules when the current working directory doesn't exist. (Bradley Meck) #2353
-
node: Startup time is now about 5% faster when not passing V8 flags. (Evan Lucas) #2483
-
repl: Tab-completion now works better with arrays. (James M Snell) #2409
-
string_bytes: Fixed an unaligned write in the handling of UCS2 encoding. (Fedor Indutny) #2480
-
tls: Added a new
--tls-cipher-list
flag that can be used to override the built-in default cipher list. (James M Snell) #2412 Note: it is suggested you use the built-in cipher list as it has been carefully selected to reflect current security best practices and risk mitigation.
更多改進內容請看發行說明,下載:
https://github.com/nodejs/node/archive/v3.2.0.zip。