内容简介:Node.js 3.1.0 发布,Node.js 和 io.js 合并进程详情请看io.js 3.1.0 改进详情请看这里:io.js 3.0 值得关注的改进:
Node.js 3.1.0 发布,Node.js 和 io.js 合并进程详情请看 这里 。
io.js 3.1.0 改进详情请看这里: https://github.com/nodejs/node/compare/v3.1.0...master 。
io.js 3.0 值得关注的改进:
-
buffer:
-
Due to changes in V8, it has been necessary to reimplement
Bufferon top of V8'sUint8Array. Every effort has been made to minimize the performance impact, howeverBufferinstantiation is measurably slower. Access operations may be faster in some circumstances but the exact performance profile and difference over previous versions will depend on howBufferis used within applications. (Trevor Norris) #1825 . -
Buffercan now takeArrayBuffers as a constructor argument (Trevor Norris) #2002 . -
When a single buffer is passed to
Buffer.concat(), a new, copiedBufferobject will be returned; previous behavior was to return the originalBufferobject (Sakthipriyan Vairamani) #1937 . -
build: PPC support has been added to core to allow compiling on pLinux BE and LE (AIX support coming soon) (Michael Dawson) #2124 .
-
dgram: If an error occurs within
socket.send()and a callback has been provided, the error is only passed as the first argument to the callback and not emitted on thesocketobject; previous behavior was to do both (Matteo Collina & Chris Dickinson) #1796 -
freelist: Deprecate the undocumented
freelistcore module (Sakthipriyan Vairamani) #2176 . -
http:
-
Status codes now all use the official IANA names as per RFC7231 , e.g.
http.STATUS_CODES[414]now returns'URI Too Long'rather than'Request-URI Too Large'(jomo) #1470 . -
Calling .getName() on an HTTP agent no longer returns a trailing colon, HTTPS agents will no longer return an extra colon near the middle of the string (Brendan Ashworth) #1617 .
-
node:
-
NODE_MODULE_VERSIONhas been bumped to45to reflect the break in ABI (Rod Vagg) #2096 . -
Introduce a new
process.releaseobject that contains anameproperty set to'io.js'andsourceUrl,headersUrlandlibUrl(Windows only) properties containing URLs for the relevant resources; this is intended to be used by node-gyp (Rod Vagg) #2154 . -
The version of node-gyp bundled with io.js now downloads and uses a tarball of header files from iojs.org rather than the full source for compiling native add-ons; it is hoped this is a temporary floating patch and the change will be upstreamed to node-gyp soon (Rod Vagg) #2066 .
-
repl: Persistent history is now enabled by default. The history file is located at ~/.node_repl_history, which can be overridden by the new environment variable
NODE_REPL_HISTORY. This deprecates the previousNODE_REPL_HISTORY_FILEvariable. Additionally, the format of the file has been changed to plain text to better handle file corruption. (Jeremiah Senkpiel) #2224 . -
smalloc: The
smallocmodule has been removed as it is no longer possible to provide the API due to changes in V8 (Ben Noordhuis) #2022 . -
tls: Add
server.getTicketKeys()andserver.setTicketKeys()methods for TLS session key rotation (Fedor Indutny) #2227 . -
v8: Upgraded to 4.4.63.26
-
ES6: Enabled computed property names
-
ES6:
Arraycan now be subclassed in strict mode -
ES6: Implement rest parameters in staging, use the
--harmony-rest-parameterscommand line flag -
ES6: Implement the spread operator in staging, use the
--harmony-spreadcallscommand line flag -
Removed
SetIndexedPropertiesToExternalArrayDataand related APIs, forcing a shift toBufferto be reimplemented based onUint8Array -
Introduction of
MaybeandMaybeLocalC++ API for objects which may or may not have a value. -
Added support for PPC
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- cURL 7.70.0 发布,原生支持 JSON、实验性支持 MQTT
- hi-nginx-1.5.2 发布,优化 cpp 支持,添加 groovy 支持
- hi-nginx-1.5.2 发布,优化 cpp 支持,添加 groovy 支持
- Spring Tools 4.3.0 发布,支持 Eclipse Theia 并弃用 Atom 支持
- Spring Tools 4.3.0 发布,支持 Eclipse Theia 并弃用 Atom 支持
- Tiki 20 发布,支持 markdown 语法
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
我是90后,我是创业家
腾讯互联网与社会研究院 / 华章图书 / 2015-1-1 / 48.00元
第1本揭秘17个90后精彩创业故事 他们是:脸萌创始人郭列、北大硕士卖米粉的张天一、微博《我只过1%的生活》短时间转发35万多次的伟大的安妮、备受争议的90后总裁余佳文、节操姐CEO陈桦……17位90后的创业家为你分享他们的创业故事!从这些90后孩子的经历中,还可以看到互联网带来的巨大好处,这又是这一代人的幸运。这些创业者有一个共同特点,即他们在做自己事业的时候,会经常遇到来自家庭和社会的阻......一起来看看 《我是90后,我是创业家》 这本书的介绍吧!