Node.js v10.12.0 已发布,更新内容如下:
assert cli The options parser now normalizes _ to - in all multi-word command-line flags, e.g. --no_warnings has the same effect as --no-warnings . #23020 Added bash completion for the node binary. To generate a bash completion script, run node --completion-bash . The output can be saved to a file which can be sourced to enable completion. #20713
crypto Added support for PEM-level encryption. #23151 Added an API asymmetric key pair generation. The new methods crypto.generateKeyPair and crypto.generateKeyPairSync can
be used to generate public and private key pairs. The API supports RSA,
DSA and EC and a variety of key encodings (both PEM and DER). #22660
fs http2 Added a 'ping' event to Http2Session that is emitted whenever a non-ack PING is received. #23009 Added support for the ORIGIN frame. #22956 Updated nghttp2 to 1.34.0. This adds RFC 8441 extended connect protocol support to allow use of WebSockets over HTTP/2. #23284
module process url util Added the sorted option to util.inspect() . If set to true ,
all properties of an object and Set and Map entries will be sorted in
the returned string. If set to a function, it is used as a compare
function. #22788 The util.instpect.custom symbol is now defined in the global symbol registry as Symbol.for('nodejs.util.inspect.custom') . #20857 Added support for BigInt numbers in util.format() . #22097
V8 API Windows Workers Added new collaborators:
完整更新内容和下载地址请查阅发行说明。 |