Node.js 4.0.0 正式发布了,


不用惊讶,就是4.0.0,这是 Node.js 项目 和 io.js 项目复合后的首个稳定版本。目前 Node 团队包含 44 个成员,还有超过 100 名的代码贡献者。Node.js 4.0 包含 V8 4.5,支持大多数 ES6 的新特性。同时 Node 4.0 将引入 LTS 长期支持计划的发行周期,首个LTS版本将于10月份发布,同时 Node 以后将每 6 个月发布一个主要的稳定版本,4月份一个,10月份一个(类似 Ubuntu)。

Node.js 4.0 最值得关注的改进记录包括:

  • child_processChildProcess.prototype.send() 和 process.send()跨平台的异步操作作为一个可选的回调参数,可在消息发送时候调用。例如.send(message[, sendHandle][, callback]) (Ben Noordhuis) #2620.

  • node: 将 "io.js" 代码重命名为 "Node.js" (cjihrig) #2367. (合久必分,分久必合)

  • node-gyp: 该版本绑定了一个更新版的 node-gyp 支持所有版本的 Node 和 IO.js。 (Rod Vagg)#2700

  • npm: 版本从 2.13.3 更新到 2.14.2, 包含一个安全更新,详情请看https://github.com/npm/npm/releases/tag/v2.14.2  (Kat Marchán) #2696.

  • timers: 提示定时器的性能,和一些小bug修复 (Jeremiah Senkpiel) #2540, (Julien Gilli)nodejs/node-v0.x-archive#8751 nodejs/node-v0.x-archive#8905

  • utilutil.is*() 函数被废弃,文档中已经注明废弃。建议用户寻找更可靠的替代方案 (Sakthipriyan Vairamani) #2447.

  • v8: 版本从 4.4.63.30 升级到 4.5.103.30 (Ali Ijaz Sheikh) #2632.

    • 实现新的 TypedArray 原型方法: copyWithin()every()fill()filter(),find()findIndex()forEach()indexOf()join()lastIndexOf(),map()reduce()reduceRight()reverse()slice()some()sort(). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray for further information.

    • 实现新的 TypedArray.from() 和 TypedArray.of() 函数. Seehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray for further information.

    • 实现 arrow 函数, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions for further information.

    • 完整记录请看 https://github.com/v8/v8-git-mirror/blob/4.5.103/ChangeLog

完整记录请看:https://github.com/nodejs/node/blob/master/CHANGELOG.md

相关链接:

  • Windows 32-bit Installer: http://nodejs.org/dist/v4.0.0/node-v4.0.0-x86.msi
  • Windows 64-bit Installer: http://nodejs.org/dist/v4.0.0/node-v4.0.0-x64.msi
  • Mac OS X 64-bit Installer: http://nodejs.org/dist/v4.0.0/node-v4.0.0.pkg
  • Mac OS X 64-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-darwin-x64.tar.gz
  • Linux 32-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-x86.tar.gz
  • Linux 64-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-x64.tar.gz
  • SunOS 32-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-sunos-x86.tar.gz
  • SunOS 64-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-sunos-x64.tar.gz
  • ARMv6 32-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz
  • ARMv7 32-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz
  • ARMv8 64-bit Binary: http://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-arm64.tar.gz
  • Source Code: http://nodejs.org/dist/v4.0.0/node-v4.0.0.tar.gz
  • Other release files: http://nodejs.org/dist/v4.0.0/
  • Website: http://nodejs.org/docs/v4.0.0/
  • Documentation: http://nodejs.org/docs/v4.0.0/api/


相关内容

    暂无相关文章