发布于 2016-04-21 23:50:19 | 48 次阅读 | 评论: 0 | 来源: 网友投递
Node.js 服务器端的JavaScript
Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台, 用来方便地搭建快速的 易于扩展的网络应用· Node.js 借助事件驱动, 非阻塞I/O 模型变得轻量和高效, 非常适合 运行在分布式设备 的 数据密集型 的实时应用
Node v5.11.0 (Stable) 发布了。
以下是一些值得关注的内容:
Buffer:
Buffer.prototype.compare
can now compare sub-ranges of two Buffers. (James M Snell) #5880
deps:
net:
adds support for passing DNS lookup hints to createConnection()
(Colin Ihrig) #6000
node:
Make the builtin libraries available for the --eval
and --print
CLI options (Anna Henningsen) #6207
npm:
upgrade npm to 3.8.6 (Kat Marchán) #6153
repl:
Pressing enter in the repl will repeat the last command by default if no input has been received. This behaviour was in node previously and was not removed intentionally. (Rich Trott) #6090
src:
add SIGINFO to supported signals (James Reggio) #6093
streams:
Fix a regression that caused by net streams requesting multiple chunks synchronously when combined with cork/uncork (Matteo Collina) #6164
zlib:
The flushing flag is now configurable allowing for decompression of partial data (Anna Henningsen) #6069
详情参见发行说明