Node.js v6.0.0 发布了。 该版本主要更新包括部分性能的显著改善,提高了可靠性,可用性,安全性;模块加载比Node.js V4快了近四倍;测试和文档都得到了显著的改善,Buffer 和 File System API 的易用性得到提高;现在的Node.js支持93%的ES6语法,这要归功于V8版本5.0。 主要更新:
Buffer New Buffer constructors have been added #4682 and #5833. Existing Buffer() and SlowBuffer() constructors have been deprecated in docs #4682 and #5833. Previously deprecated Buffer APIs are removed #5048, #4594. Improved error handling #4514. The Buffer.prototype.lastIndexOf() method has been added #4846.
Cluster Console Crypto Improved error handling #3100, #5611. Simplified Certificate class bindings #5382. Improved control over FIPS mode #5181. pbkdf2 digest overloading is deprecated #4047.
Dependencies DNS Domains Events The EventEmitter.prototype._events object no longer inherits from Object.prototype #6092. The EventEmitter.prototype.prependListener() andEventEmitter.prototype.prependOnceListener() methods have been added #6032.
File System The fs.realpath() and fs.realpathSync() methods have been updated to use a more efficient libuv-based implementation. This change includes the removal of the cache argument and the method can throw new errors #3594. FS apis can now accept and return paths as Buffers #5616. Error handling and type checking improvements #5616, #5590, #4518, #3917. fs.read's string interface is deprecated #4525.
HTTP Modules Net DNS hints no longer implicitly set #6021. Improved error handling and type checking #5981, #5733, #2904.
OS X Path Process Querystring Readline REPL Timers Streams TLS TTY URL Util Changes to Error object formatting #4582. The util._extend() method has been deprecated #4903 The util.log() method has been deprecated #6161.
Windows Zlib
下载地址: 详细更新日志及其他说明请参见官方发行说明 |