Node v6.3.0 (Current) 发布了,主要更新如下:
-
buffer: Added
buffer.swap64()
to complementswap16()
&swap32()
. (Zach Bjornson) #7157 -
build: New
configure
options have been added for building Node.js as a shared library. (Stefan Budeanu)#6994-
The options are:
--shared
,--without-v8-platform
&--without-bundled-v8
.
-
-
crypto: Root certificates have been updated. (Ben Noordhuis) #7363
-
debugger: The server address is now configurable via
--debug=<address>:<port>
. (Ben Noordhuis) #3316 -
npm: Upgraded npm to v3.10.3 (Kat Marchán) #7515 & (Rebecca Turner) #7410
-
readline: Added the
prompt
option to the readline constructor. (Evan Lucas) #7125 -
repl / vm:
sigint
/ctrl+c
will now break out of infinite loops without stopping the Node.js instance. (Anna Henningsen) #6635 -
src:
-
stream: Improved
readable.read()
performance by up to 70%. (Brian White) #7077 -
timers:
setImmediate()
is now up to 150% faster in some situations. (Andras) #6436 -
util: Added a
breakLength
option toutil.inspect()
to control how objects are formatted across lines. (cjihrig) #7499 -
v8-inspector: Experimental support has been added for debugging Node.js over the inspector protocol. (Ali Ijaz Sheikh) #6792
-
Note: This feature is experimental, and it could be altered or removed.
-
You can try this feature by running Node.js with the
--inspect
flag.
-