译Nodejs 6.2.0 更新说明

Nodejs cyanprobe 8年前 (2016-05-19) 4533次浏览 已收录 2个评论

前言:

由于新的计划提上日程,9月份可能大量翻译英文文档,做为英语渣渣的我即将面临磨难,先翻译下Nodejs更新日志练练手吧,有瞎扯的地方请大家指正。


2016-05-17, Version 6.2.0 (Current), @evanlucas

Notable changes

  • buffer: fix lastIndexOf and indexOf in various edge cases (Anna Henningsen) #6511
  • //Return -1 in Buffer.lastIndexOf if the needle is longer than the haystack. The previous check only tested the corresponding condition for forward searches.
  • child_process: use /system/bin/sh on android (Ben Noordhuis) #6745
  • deps:
    • upgrade npm to 3.8.9 (Rebecca Turner) #6664
    • upgrade to V8 5.0.71.47 (Ali Ijaz Sheikh) #6572
    • upgrade libuv to 1.9.1 (Saúl Ibarra Corretgé) #6796
    • Intl: ICU 57 bump (Steven R. Loomis) #6088
  • repl:
    • copying tabs shouldn’t trigger completion (Eugene Obrezkov) #5958
    • exports Recoverable (Blake Embrey) #3488
  • src: add O_NOATIME constant (Rich Trott) #6492
  • src,module: add –preserve-symlinks command line flag (James M Snell) #6537
  • util: adhere to noDeprecation set at runtime (Anna Henningsen) #6683

As of this release the 6.X line now includes 64-bit binaries for Linux on Power Systems running in big endian mode in addition to the existing 64-bit binaries for running in little endian mode.


2016-05-17, 版本 6.2.0 (Current), @evanlucas

重要更新

  • buffer: 确定了lastIndexOf and indexOf 在索引边缘状态 (Anna Henningsen) #6511
  • //
    在Buffer.lastIndexOf方法中,如果指针超过堆栈限制,则返回-1,之前没有发现bug的原因,只是因为在”正确”的极端测试。
  • Buffer.from("abc").indexOf("ab","ucs2") === 2
    Buffer.from("abcd").indexOf("ab","ucs2") === -1
    Buffer.from("abcde").indexOf("ab","ucs2") === 4
    Buffer.from("abcdef").indexOf("ab","ucs2") === -1
    Buffer.from("abcdefg").indexOf("ab","ucs2") === 6
  • child_process: use /system/bin/sh on android (Ben Noordhuis) #6745
  • deps://依赖
    • 升级npm至  3.8.9 (Rebecca Turner) #6664
    • upgrade to V8 5.0.71.47 (Ali Ijaz Sheikh) #6572
    • upgrade libuv to 1.9.1 (Saúl Ibarra Corretgé) #6796
    • Intl: ICU(International Component for Unicode) 57 bump (Steven R. Loomis) #6088
    • //Unicode开发包更新
  • repl://替代
    • 拷贝缩进标签不应该触发完成 (Eugene Obrezkov) #5958
    • //当你复制缩进标签进入REPL(node调试工具),REPL调用tabComplete函数,所以这种拷贝缩进标签的行为可以被忽略。(可直接复制内容)
    • exports Recoverable (Blake Embrey) #3488
    • //允许用户使用callback返回一个重复产生的错误,在REPL中,并且引发一个多行的错误提示。
  • src: 添加 O_NOATIME常数 (Rich Trott) #6492
  • src,module: add –preserve-symlinks command line flag (James M Snell) #6537
  • //增加保存,符号链接命令在行标识中
  • util: adhere to noDeprecation set at runtime (Anna Henningsen) #6683
  • //util.js:坚持并不反对util模块在运行时加载

As of this release the 6.X line now includes 64-bit binaries for Linux on Power Systems running in big endian mode in addition to the existing 64-bit binaries for running in little endian mode.
//作为这次发布的6.X 线上版本,现在包含Linux 64位 二进制版本的”Power Systems” 运行在大端模式。但不能运行在其系统的小端模式上。


CyanProbe , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:译Nodejs 6.2.0 更新说明
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(2)个小伙伴在吐槽
  1. 突然也想学学这些了。
    姜辰2016-05-21 21:13 回复
  2. 看看您的博客!
    19356154372016-06-03 10:27 回复