Node.js v5.0.0 穩定版發布
Node v5.0.0 穩定版發布,主要更新如下:
bug 修復
-
buffer: (Breaking) Removed both
</li>'raw'
and'raws'
encoding types fromBuffer
, these have been deprecated for a long time (Sakthipriyan Vairamani) #2859. -
console: (Breaking) Values reported by
</li>console.time()
now have 3 decimals of accuracy added (Micha?l Zasso) #3166. -
fs:
</li>-
</li>fs.readFile*()
,fs.writeFile*()
, andfs.appendFile*()
now also accept a file descriptor as their first argument (Johannes Wüller) #3163. -
(Breaking) In
</li>fs.readFile()
, if an encoding is specified and the internaltoString()
fails the error is no longer thrown but is passed to the callback (Evan Lucas) #3485. -
(Breaking) In
</li> </ul>fs.read()
(using thefs.read(fd, length, position, encoding, callback)
form), if the internaltoString()
fails the error is no longer thrown but is passed to the callback (Evan Lucas) #3503. -
http:
</li>-
Fixed a bug where pipelined http requests would stall (Fedor Indutny) #3342.
</li> -
(Breaking) When parsing HTTP, don't add duplicates of the following headers:
</li>Retry-After
,ETag
,Last-Modified
,Server
,Age
,Expires
. This is in addition to the following headers which already block duplicates:Content-Type
,Content-Length
,User-Agent
,Referer
,Host
,Authorization
,Proxy-Authorization
,If-Modified-Since
,If-Unmodified-Since
,From
,Location
,Max-Forwards
(James M Snell) #3090. -
(Breaking) The
</li>callback
argument toOutgoingMessage#setTimeout()
must be a function or aTypeError
is thrown (James M Snell) #3090. -
(Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. Specifically, methods and header names must now match
</li> </ul>/^[a-zA-Z0-9_!#$%&'*+.^`|~-]+$/
or aTypeError
will be thrown (James M Snell) #2526. -
node:
</li>-
(Breaking) Deprecated the
</li>_linklist
module (Rich Trott) #3078. -
(Breaking) Removed
</li> </ul>require.paths
andrequire.registerExtension()
, both had been previously set to throwError
when accessed (Sakthipriyan Vairamani) #2922. -
npm: Upgraded to version 3.3.6 from 2.14.7, see https://github.com/npm/npm/releases/tag/v3.3.6 for more details. This is a major version bump for npm and it has seen a significant amount of change. Please see the original npm v3.0.0 release notes for a list of major changes (Rebecca Turner) #3310.
</li> -
src: (Breaking) Bumped
</li>NODE_MODULE_VERSION
to47
from46
, this is necessary due to the V8 upgrade. Native add-ons will need to be recompiled (Rod Vagg) #3400. -
timers: Attempt to reuse the timer handle for
</li>setTimeout().unref()
. This fixes a long-standing known issue where unrefed timers would perviously holdbeforeExit
open (Fedor Indutny) #3407. -
tls:
</li>-
Added ALPN Support (Shigeki Ohtsu) #2564.
</li> -
TLS options can now be passed in an object to
</li>createSecurePair()
(Коренберг Марк) #2441. -
(Breaking) The default minimum DH key size for
</li> </ul>tls.connect()
is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. This a security consideration to prevent "logjam" attacks. A newminDHSize
TLS option can be used to override the default. (Shigeki Ohtsu) #1831. -
util:
</li>-
(Breaking)
</li>util.p()
was deprecated for years, and has now been removed (Wyatt Preul) #3432. -
(Breaking)
</li> </ul>util.inherits()
can now work with ES6 classes. This is considered a breaking change because of potential subtle side-effects caused by a change from directly reassigning the prototype of the constructor usingctor.prototype = Object.create(superCtor.prototype, { constructor: { ... } })
to usingObject.setPrototypeOf(ctor.prototype, superCtor.prototype)
(Micha?l Zasso) #3455. -
v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 (Ali Ijaz Sheikh) #3351.
</li>-
Implements the spread operator, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator for further information.
</li> -
Implements
</li> </ul>new.target
, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target for further information. -
zlib: Decompression now throws on truncated input (e.g. unexpected end of file) (Yuval Brik) #2595.
</li> </ul>Known issues
-
Surrogate pair in REPL can freeze terminal. #690
</li> -
Calling
</li>dns.setServers()
while a DNS query is in progress can cause the process to crash on a failed assertion. #894 -
</li>url.resolve
may transfer the auth portion of the url when resolving between two full hosts, see #1435. -
Unicode characters in filesystem paths are not handled consistently across platforms or Node.js APIs. See #2088, #3401 and #3519.
</li> </ul>更多內容請看:發行說明
下載地址:
Windows 32-bit Installer: https://nodejs.org/dist/v5.0.0/node-v5.0.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v5.0.0/node-v5.0.0-x64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v5.0.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v5.0.0/win-x64/node.exe
Mac OS X 64-bit Installer: https://nodejs.org/dist/v5.0.0/node-v5.0.0.pkg
Mac OS X 64-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-darwin-x64.tar.gz
Linux 32-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-x86.tar.gz
Linux 64-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-x64.tar.gz
SunOS 32-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-sunos-x86.tar.gz
SunOS 64-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-sunos-x64.tar.gz
ARMv6 32-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-armv6l.tar.gz
ARMv7 32-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-armv7l.tar.gz
ARMv8 64-bit Binary: https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-arm64.tar.gz
Source Code: https://nodejs.org/dist/v5.0.0/node-v5.0.0.tar.gz
Other release files: https://nodejs.org/dist/v5.0.0/
Documentation: https://nodejs.org/docs/v5.0.0/api/本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-
-
-
-