BlogMurmurTagsNewsletterSearch

JS 隨機報 - 安全性、v7、async/await

首先將原本的週報改成隨機報,因為實在太不常更新了,連我自己都不好意思了 XDD

之後應該會把關注的 JS/Node.js 相關的東西都放在這個標籤之下,所以想看有營養的都只要注意這個就夠了,其他都可以忽略 #炸

Security

<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

<blockquote class="twitter-tweet" data-lang="en">

<p lang="en" dir="ltr">

Security updates for all active release lines available on or soon after September 27. Details

here: <a href="https://t.co/muWd7naVUr">https://t.co/muWd7naVUr</a>

</p>

&mdash; Node.js (@nodejs){' '}

<a href="https://twitter.com/nodejs/status/779305065563639810">September 23, 2016</a>

</blockquote>

下週會有一個安全性的更新,主要是與 OPENSSL 相關的安全升級,官網的文章內有詳細的說明,有興趣的可以直接點開上推內的連結或直接看 OPENSSL 的公告

另外,v0.10 的支援將於十月到期,所以這個下週的升版應該是最後一次升級了,如果還在使用 v0.10 的開發者,請考慮儘速升級到目前的 LTS v4 或十月之後即將接手的 v6。

Node.js v7 & async/await

<blockquote class="twitter-tweet" data-lang="en">

<p lang="zh" dir="ltr">

Node.js 7.0预计在9月30日发布,支持async/await,Koa 2.x也将随之发布{' '}

<a href="https://t.co/jdx7asHF9K">https://t.co/jdx7asHF9K</a>

</p>

&mdash; Leask Wong (@Leaskh){' '}

<a href="https://twitter.com/Leaskh/status/779571551687421952">September 24, 2016</a>

</blockquote>

<blockquote class="twitter-tweet" data-lang="en">

<p lang="en" dir="ltr">

Now that stack traces and &quot;pause on uncaught exception&quot; fixed in tip of tree, ship

async functions in V8 <a href="https://t.co/Ba6c6Ofew0">https://t.co/Ba6c6Ofew0</a>

</p>

&mdash; Daniel Ehrenberg (@littledan){' '}

<a href="https://twitter.com/littledan/status/779454967232933889">September 23, 2016</a>

</blockquote>

接下來這兩件事應該可以一起講,Node.js v7 跟下一個 LTS v6 應該都會在十月釋出。至於看到標題 async/await 就高潮的開發者請不要激動,應該還沒那麼快,雖然 v8 上的實作應該已經差不多(雖然發生一點意外 XD),不過跟著 v7 一起上的將會是 v5.4,這版本主要是性能上的改善,async/await 還不會預設支援,所以還得等一陣子。

有趣的東東

  • TypeScript v2 - 微軟出品的 js pre-compiler,也邁入 v2 了呢
  • [Deploying Ghost to now.sh

](https://n8.io/deploying-ghost-to-now-sh/) - now 是個很方便提供快速部署的服務,原本只支援 node.js 不過現在透過 docker 應該想來什麼都可以了,然後果然就看到有人把 Ghost 搬上去了 ww

  • [非同步程式碼之霧:Node.js 的事件迴圈與 EventEmitter

](https://simeneer.blogspot.tw/2016/09/nodejs-eventemitter.html) - 很不錯的文章,詳細剖析 node.js 的 event loop 與 eventemitter

Comments