Node.js v7.8.0 发布

jopen 2年前
   <p style="text-align:center"><strong><img alt="" src="https://simg.open-open.com/show/d9d39e249fe45a3a9d7fbe135ba0644e.png" /></strong></p>    <p> </p>    <p>看到Node.js这个名字,初学者可能会误以为这是一个Javascript应用,事实上,Node.js采用C++语言编写而成,是一个Javascript的运行环境。为什么采用C++语言呢?据Node.js创始人Ryan Dahl回忆,他最初希望采用Ruby来写Node.js,但是后来发现Ruby虚拟机的性能不能满足他的要求,后来他尝试采用V8引擎,所以选择了C++语言。既然不是Javascript应用,为何叫.js呢?因为Node.js是一个Javascript的运行环境。Node.js是一个后端的Javascript运行环境(支持的系统包括Linux、Windows和Mac等),这意味着你可以编写系统级或者服务器端的Javascript代码,交给Node.js来解释执行,Node.js采用了Google Chrome浏览器的V8引擎,性能很好,同时还提供了很多系统级的API,如文件操作、网络编程等。浏览器端的Javascript代码在运行时会受到各种安全性的限制,对客户系统的操作有限。相比之下,Node.js则是一个全面的后台运行时,为Javascript提供了其他语言能够实现的许多功能。</p>    <h2>更新日志</h2>    <ul>     <li><strong>buffer</strong>:      <ul>       <li>do not segfault on out-of-range index (Timothy Gu) <a href="/misc/goto?guid=4959004617905740112">#11927</a></li>      </ul> </li>     <li><strong>crypto</strong>:      <ul>       <li>Fix memory leak if certificate is revoked (Tom Atkinson) <a href="/misc/goto?guid=4959004618017139654">#12089</a></li>      </ul> </li>     <li><strong>deps</strong>:      <ul>       <li>upgrade npm to 4.2.0 (Kat Marchán) <a href="/misc/goto?guid=4959004618112703683">#11389</a></li>       <li>fix async await desugaring in V8 (Michaël Zasso) <a href="/misc/goto?guid=4959004618225477783">#12004</a></li>      </ul> </li>     <li><strong>readline</strong>:      <ul>       <li>add option to stop duplicates in history (Danny Nemer) <a href="/misc/goto?guid=4959004618325305581">#2982</a></li>      </ul> </li>    </ul>    <h3>Commits</h3>    <ul>     <li>[<a href="/misc/goto?guid=4959004618420038454"><code>51c8d8088a</code></a>] - Partial revert "tls: keep track of stream that is closed" (Trevor Norris) <a href="/misc/goto?guid=4959004618518632780">#11947</a></li>     <li>[<a href="/misc/goto?guid=4959004618621742459"><code>751c1153a4</code></a>] - <strong>benchmark</strong>: check end() argument to be > 0 (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004618721611670">#12030</a></li>     <li>[<a href="/misc/goto?guid=4959004618825829526"><code>210250465a</code></a>] - <strong>benchmark</strong>: update obsolete information pointer (Rich Trott) <a href="/misc/goto?guid=4959004618946727410">#12026</a></li>     <li>[<a href="/misc/goto?guid=4959004619050112900"><code>7aeeee3276</code></a>] - <strong>benchmark</strong>: repair the fs/readfile benchmark (Sorin Baltateanu) <a href="/misc/goto?guid=4959004619166154609">#7818</a></li>     <li>[<a href="/misc/goto?guid=4959004619273012312"><code>90acb773be</code></a>] - <strong>benchmark</strong>: allow multiple values for same config (Nikolai Vavilov) <a href="/misc/goto?guid=4959004619393497075">#11819</a></li>     <li>[<a href="/misc/goto?guid=4959004619503452022"><code>2f4ad6fea2</code></a>] - <strong>benchmark</strong>: harmonize progress bar + stderr output (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004619621366307">#11925</a></li>     <li>[<a href="/misc/goto?guid=4959004619736323860"><code>d62ddbe145</code></a>] - <strong>benchmark</strong>: fix fs\bench-realpathSync.js (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004619847212235">#11904</a></li>     <li>[<a href="/misc/goto?guid=4959004619949402533"><code>85eb1bc0a9</code></a>] - <strong>benchmark</strong>: remove v8ForceOptimization calls (Lucas Lago) <a href="/misc/goto?guid=4959004620048413938">#11908</a></li>     <li>[<a href="/misc/goto?guid=4959004620154232821"><code>17d16e8f3d</code></a>] - <strong>buffer</strong>: remove unneeded eslint-disable comment (Rich Trott) <a href="/misc/goto?guid=4959004620251257790">#11906</a></li>     <li>[<a href="/misc/goto?guid=4959004620353342091"><code>fb41ee3983</code></a>] - <strong>build</strong>: add lint option to vcbuild.bat help (Morgan Brenner) <a href="/misc/goto?guid=4959004620444298491">#11992</a></li>     <li>[<a href="/misc/goto?guid=4959004620537559342"><code>3e4ecca0be</code></a>] - <strong>build</strong>: don't create directory for NDK toolchain (TheBeastOfCaerbannog) <a href="/misc/goto?guid=4959004620620348754">#11916</a></li>     <li>[<a href="/misc/goto?guid=4959004620714867010"><code>a64aa442c1</code></a>] - <strong>crypto</strong>: fix memory leak if certificate is revoked (Tom Atkinson) <a href="/misc/goto?guid=4959004618017139654">#12089</a></li>     <li>[<a href="/misc/goto?guid=4959004620810603560"><code>2767e2d3cc</code></a>] - <strong>(SEMVER-MINOR)</strong> <strong>deps</strong>: upgrade npm to 4.2.0 (Kat Marchán) <a href="/misc/goto?guid=4959004618112703683">#11389</a></li>     <li>[<a href="/misc/goto?guid=4959004620908264661"><code>d22346de40</code></a>] - <strong>deps</strong>: fix async await desugaring in V8 (Michaël Zasso) <a href="/misc/goto?guid=4959004618225477783">#12004</a></li>     <li>[<a href="/misc/goto?guid=4959004620999007057"><code>fade55b025</code></a>] - <strong>doc</strong>: clarify out-of-bounds behavior of buf[index] (Nikolai Vavilov) <a href="/misc/goto?guid=4959004621087533840">#11286</a></li>     <li>[<a href="/misc/goto?guid=4959004621177364133"><code>63a19c7012</code></a>] - <strong>doc</strong>: update and modernize examples in fs.ms (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004621264127345">#12035</a></li>     <li>[<a href="/misc/goto?guid=4959004621347434265"><code>4b5f177e3d</code></a>] - <strong>doc</strong>: fix https.timeout docs (Ahmad Nassri) <a href="/misc/goto?guid=4959004621426588721">#12039</a></li>     <li>[<a href="/misc/goto?guid=4959004621515394812"><code>af051f6528</code></a>] - <strong>doc</strong>: fix http properties documented as methods (Ahmad Nassri) <a href="/misc/goto?guid=4959004621426588721">#12039</a></li>     <li>[<a href="/misc/goto?guid=4959004621612720554"><code>18a586a278</code></a>] - <strong>doc</strong>: edit the benchmark guide (Rich Trott) <a href="/misc/goto?guid=4959004621697184843">#12041</a></li>     <li>[<a href="/misc/goto?guid=4959004621781713600"><code>5e3d429613</code></a>] - <strong>doc</strong>: stdout/err/in are all Duplex streams (Sebastian Van Sande) <a href="/misc/goto?guid=4959004621861113406">#11194</a></li>     <li>[<a href="/misc/goto?guid=4959004621947231130"><code>7f6b03fd0f</code></a>] - <strong>doc</strong>: fix process.stdout fd number (Fumiya KARASAWA) <a href="/misc/goto?guid=4959004622040924465">#12055</a></li>     <li>[<a href="/misc/goto?guid=4959004622121909030"><code>1f7fe55c97</code></a>] - <strong>doc</strong>: add richardlau to collaborators (Richard Lau) <a href="/misc/goto?guid=4959004622207114177">#12020</a></li>     <li>[<a href="/misc/goto?guid=4959004622304721152"><code>924f34606d</code></a>] - <strong>doc</strong>: update collaborator email address (Rich Trott) <a href="/misc/goto?guid=4959004622383101875">#11996</a></li>     <li>[<a href="/misc/goto?guid=4959004622467096497"><code>41bec5cff4</code></a>] - <strong>doc</strong>: correct info in child_process.md (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004622557795609">#11949</a></li>     <li>[<a href="/misc/goto?guid=4959004622641367596"><code>96ad336d9e</code></a>] - <strong>doc</strong>: remove superfluous sample assert code (Rich Trott) <a href="/misc/goto?guid=4959004622722925083">#11933</a></li>     <li>[<a href="/misc/goto?guid=4959004622803491081"><code>486bd1bd9b</code></a>] - <strong>doc</strong>: require uses fs root for '/' prefix (Bradley Farias) <a href="/misc/goto?guid=4959004622895064817">#11897</a></li>     <li>[<a href="/misc/goto?guid=4959004622968560399"><code>04fa28e6dc</code></a>] - <strong>doc</strong>: fix gitter badge in README (Roman Reiss) <a href="/misc/goto?guid=4959004623055953989">#11944</a></li>     <li>[<a href="/misc/goto?guid=4959004623140666052"><code>68b23be51f</code></a>] - <strong>doc</strong>: add missing word in stream.md (Jyotman Singh) <a href="/misc/goto?guid=4959004623219977363">#11914</a></li>     <li>[<a href="/misc/goto?guid=4959004623305910651"><code>0f2642ee36</code></a>] - <strong>errors</strong>: remove needless lazyAssert (DavidCai) <a href="/misc/goto?guid=4959004623398509505">#11891</a></li>     <li>[<a href="/misc/goto?guid=4959004623474604606"><code>5bdd54925a</code></a>] - <strong>lib</strong>: add comment to script eval _tickCallback (Gibson Fahnestock) <a href="/misc/goto?guid=4959004623560627382">#12050</a></li>     <li>[<a href="/misc/goto?guid=4959004623644675447"><code>7347860966</code></a>] - <strong>lib</strong>: clarify the usage of 'else' (Jackson Tian) <a href="/misc/goto?guid=4959004623714905959">#11148</a></li>     <li>[<a href="/misc/goto?guid=4959004623801510290"><code>837ff4ba59</code></a>] - <strong>lib</strong>: remove an unnecessary coverage check (Jeremiah Senkpiel) <a href="/misc/goto?guid=4959004623904521988">#12023</a></li>     <li>[<a href="/misc/goto?guid=4959004623988489047"><code>6c803db7b9</code></a>] - <strong>lib</strong>: fix event race condition with -e (Ben Noordhuis) <a href="/misc/goto?guid=4959004624071901750">#11958</a></li>     <li>[<a href="/misc/goto?guid=4959004624161822240"><code>ac92d0249b</code></a>] - <strong>net</strong>: refactor net module to module.exports (Claudio Rodriguez) <a href="/misc/goto?guid=4959004624241172197">#11698</a></li>     <li>[<a href="/misc/goto?guid=4959004624319896300"><code>2462fd8009</code></a>] - <strong>process</strong>: maintain constructor descriptor (Bryan English) <a href="/misc/goto?guid=4959004624407691788">#9306</a></li>     <li>[<a href="/misc/goto?guid=4959004624499464954"><code>91a2700721</code></a>] - <strong>readline</strong>: rename <code>deDupeHistory</code> option (Danny Nemer) <a href="/misc/goto?guid=4959004624585511788">#11950</a></li>     <li>[<a href="/misc/goto?guid=4959004624672698559"><code>8ab26cf508</code></a>] - <strong>(SEMVER-MINOR)</strong> <strong>readline</strong>: add option to stop duplicates in history (Danny Nemer) <a href="/misc/goto?guid=4959004618325305581">#2982</a></li>     <li>[<a href="/misc/goto?guid=4959004624767939286"><code>6a6c431eec</code></a>] - <strong>src</strong>: use persistent strings from node::Environment (Ben Noordhuis) <a href="/misc/goto?guid=4959004624851465444">#11945</a></li>     <li>[<a href="/misc/goto?guid=4959004624934748072"><code>d0c2d67083</code></a>] - <strong>src</strong>: add native URL class (James M Snell) <a href="/misc/goto?guid=4959004625016040068">#11801</a></li>     <li>[<a href="/misc/goto?guid=4959004625108107174"><code>019a20adb5</code></a>] - <strong>src</strong>: make PercentDecode return void (Timothy Gu) <a href="/misc/goto?guid=4959004625196133458">#11922</a></li>     <li>[<a href="/misc/goto?guid=4959004625278356469"><code>d6da1705cd</code></a>] - <strong>src</strong>: ensure that fd 0-2 are valid on windows (Bartosz Sosnowski) <a href="/misc/goto?guid=4959004625364583515">#11863</a></li>     <li>[<a href="/misc/goto?guid=4959004625433860313"><code>59f71f5661</code></a>] - <strong>src, buffer</strong>: do not segfault on out-of-range index (Timothy Gu) <a href="/misc/goto?guid=4959004617905740112">#11927</a></li>     <li>[<a href="/misc/goto?guid=4959004625527236654"><code>4051184106</code></a>] - <strong>stream_base,tls_wrap</strong>: notify on destruct (Trevor Norris) <a href="/misc/goto?guid=4959004618518632780">#11947</a></li>     <li>[<a href="/misc/goto?guid=4959004625623767081"><code>d8b71be183</code></a>] - <strong>test</strong>: fix misleading comment (Franziska Hinkelmann) <a href="/misc/goto?guid=4959004625710189586">#12048</a></li>     <li>[<a href="/misc/goto?guid=4959004625798218213"><code>8b2b93f148</code></a>] - <strong>test</strong>: mark child-process-exec-kill-throws flaky (Gibson Fahnestock) <a href="/misc/goto?guid=4959004625873085088">#12054</a></li>     <li>[<a href="/misc/goto?guid=4959004625959093097"><code>948b99deab</code></a>] - <strong>test</strong>: fix broken tests in test-buffer-includes (Alexey Orlenko) <a href="/misc/goto?guid=4959004626039773774">#12040</a></li>     <li>[<a href="/misc/goto?guid=4959004626121193487"><code>d112aad78b</code></a>] - <strong>test</strong>: replace throw with common.fail (Dejon "DJ" Gill) <a href="/misc/goto?guid=4959004626201831853">#9700</a></li>     <li>[<a href="/misc/goto?guid=4959004626287476833"><code>41284fbc5b</code></a>] - <strong>test</strong>: cover thrown errors from exec() kill (cjihrig) <a href="/misc/goto?guid=4959004626365584438">#11038</a></li>     <li>[<a href="/misc/goto?guid=4959004626452663879"><code>414df6c93b</code></a>] - <strong>test</strong>: test validity of prefix in mkdtempSync (Luca Maraschi) <a href="/misc/goto?guid=4959004626533083811">#12009</a></li>     <li>[<a href="/misc/goto?guid=4959004626624103565"><code>1c0435b1f3</code></a>] - <strong>test</strong>: add regex for expected error message (John F. Mercer) <a href="/misc/goto?guid=4959004626695285903">#12011</a></li>     <li>[<a href="/misc/goto?guid=4959004626777425643"><code>a73dea9499</code></a>] - <strong>test</strong>: add second argument to assert.throws() (Rj Bernaldo) <a href="/misc/goto?guid=4959004626860487351">#12016</a></li>     <li>[<a href="/misc/goto?guid=4959004626949433084"><code>ade64e61cd</code></a>] - <strong>test</strong>: refactor test-cluster-disconnect (Rich Trott) <a href="/misc/goto?guid=4959004627034974854">#11981</a></li>     <li>[<a href="/misc/goto?guid=4959004627122495639"><code>3d21bfe6b9</code></a>] - <strong>test</strong>: invalid chars in http client path (Luca Maraschi) <a href="/misc/goto?guid=4959004627204440725">#11964</a></li>     <li>[<a href="/misc/goto?guid=4959004627293425279"><code>e70ed3cb31</code></a>] - <strong>test</strong>: improve test-vm-cached-data.js (Nick Peleh) <a href="/misc/goto?guid=4959004627379711539">#11974</a></li>     <li>[<a href="/misc/goto?guid=4959004627460973987"><code>b48f13af95</code></a>] - <strong>test</strong>: add minimal test for net benchmarks (Rich Trott) <a href="/misc/goto?guid=4959004627552208366">#11979</a></li>     <li>[<a href="/misc/goto?guid=4959004627638043531"><code>764a00e6e5</code></a>] - <strong>test</strong>: add test for url (Yuta Hiroto) <a href="/misc/goto?guid=4959004627717331064">#11999</a></li>     <li>[<a href="/misc/goto?guid=4959004627815205903"><code>bb2de4a5a1</code></a>] - <strong>test</strong>: do not use <code>more</code> command on Windows (Vse Mozhet Byt) <a href="/misc/goto?guid=4959004627891809207">#11953</a></li>     <li>[<a href="/misc/goto?guid=4959004627988500583"><code>55a112689a</code></a>] - <strong>test</strong>: add test for child_process.execFile() (Rich Trott) <a href="/misc/goto?guid=4959004628080641411">#11929</a></li>     <li>[<a href="/misc/goto?guid=4959004628160788386"><code>9ba551f7e3</code></a>] - <strong>test</strong>: fix flaky test-tls-socket-close (Rich Trott) <a href="/misc/goto?guid=4959004628249737350">#11921</a></li>     <li>[<a href="/misc/goto?guid=4959004628331747080"><code>114f9d619d</code></a>] - <strong>test</strong>: add hasCrypto check to tls-socket-close (Daniel Bevenius) <a href="/misc/goto?guid=4959004628427775687">#11911</a></li>     <li>[<a href="/misc/goto?guid=4959004628517678817"><code>169f187f16</code></a>] - <strong>test</strong>: synchronize WPT url setters tests data (Daijiro Wachi) <a href="/misc/goto?guid=4959004628604010614">#11887</a></li>     <li>[<a href="/misc/goto?guid=4959004628687174843"><code>4b1b6b85a9</code></a>] - <strong>timers</strong>: fix not to close reused timer handle (Shigeki Ohtsu) <a href="/misc/goto?guid=4959004628774933173">#11646</a></li>     <li>[<a href="/misc/goto?guid=4959004628868840047"><code>fd93622f8a</code></a>] - <strong>tls</strong>: fix SecurePair external memory reporting (Ben Noordhuis) <a href="/misc/goto?guid=4959004628951502232">#11896</a></li>     <li>[<a href="/misc/goto?guid=4959004629046767310"><code>126dcb76af</code></a>] - <strong>url</strong>: name anonymous functions in url (Pedro lima) <a href="/misc/goto?guid=4959004629137176635">#9225</a></li>     <li>[<a href="/misc/goto?guid=4959004629228942679"><code>f6755182e5</code></a>] - <strong>url</strong>: show input in parse error message (Joyee Cheung) <a href="/misc/goto?guid=4959004629316949562">#11934</a></li>     <li>[<a href="/misc/goto?guid=4959004629398950908"><code>c51d925c84</code></a>] - <strong>url</strong>: restrict setting protocol to "file" (Daijiro Wachi) <a href="/misc/goto?guid=4959004628604010614">#11887</a></li>    </ul>    <h2>Downloads</h2>    <ul>     <li><a href="/misc/goto?guid=4959004629496895751" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959004629590818476" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/139fa4a6">http://www.open-open.com/news/view/139fa4a6</a></p>