前言:
由于新的计划提上日程,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:
- repl:
- 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://依赖
- 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” 运行在大端模式。但不能运行在其系统的小端模式上。