发布于 2016-04-27 00:53:56 | 100 次阅读 | 评论: 0 | 来源: 网友投递
Node.js 服务器端的JavaScript
Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台, 用来方便地搭建快速的 易于扩展的网络应用· Node.js 借助事件驱动, 非阻塞I/O 模型变得轻量和高效, 非常适合 运行在分布式设备 的 数据密集型 的实时应用
Node.js v6.0.0 (Current) 发布了。
该版本主要更新包括部分性能的显著改善,提高了可靠性,可用性,安全性;模块加载比Node.js V4快了近四倍;测试和文档都得到了显著的改善,Buffer 和 File System API 的易用性得到提高;现在的Node.js支持93%的ES6语法,这要归功于V8版本5.0。
主要更新:
Buffer
Cluster
Console
Calling console.timeEnd()
with an unknown label now emits a process warning rather than throwing#5901.
Crypto
Dependencies
DNS
Add dns.resolvePtr()
API to query plain DNS PTR records #4921.
Domains
Clear stack when no error handler #4659.
Events
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
'clientError' can now be used to return custom errors from an HTTP server #4557.
Modules
Net
OS X
MACOSX_DEPLOYMENT_TARGET has been bumped up to 10.7 #6402.
Path
Improved type checking #5348.
Process
Querystring
The object returned by querystring.parse()
no longer inherits from Object.prototype #6055.
Readline
REPL
Timers
Fail early when callback is not a function #4362.
Streams
null
is now an invalid chunk to write in object mode #6170.
TLS
TTY
Previously deprecated setRawMode wrapper is removed #2528.
URL
Username and password will be dropped by url.resolve()
if the host changes #1480.
Util
Windows
Windows XP and Vista are no longer supported #5167.
Zlib
下载地址:
ARMv6 32-bit Binary: Coming soon
详细更新日志及其他说明请参见官方发行说明