发布于 2015-10-28 08:51:54 | 117 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Node.js教程,程序狗速度看过来!

Node.js 服务器端的JavaScript

Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台, 用来方便地搭建快速的 易于扩展的网络应用· Node.js 借助事件驱动, 非阻塞I/O 模型变得轻量和高效, 非常适合 运行在分布式设备 的 数据密集型 的实时应用


Node.js v5.0.0-rc.1 发布,主要更新如下:

  • buffer: (Breaking) Remove both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time (Sakthipriyan Vairamani) #2859.

  • console: (Breaking) Values reported by console.time() will now have 3 decimals of accuracy added (Michaël Zasso) #3166.

  • crypto: Add ALPN Support (Shigeki Ohtsu) #2564.

  • fs:

    • fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument (Johannes Wüller) #3163.

    • (Breaking) In fs.readFile(), if an encoding is specified and toString() fails the error is no longer thrown but is passed to the callback (Evan Lucas) #3485.

    • (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if toString() fails the error is no longer thrown but is passed to the callback (Evan Lucas) #3503.

  • http:

    • Fixed a bug where pipelined http requests would stall (Fedor Indutny) #3342.

    • (Breaking) When parsing HTTP, don't add duplicates of the following headers: 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 callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError 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 /^[a-zA-Z0-9_!#$%&'*+.^|~-]+$/or aTypeError` will be thrown (James M Snell) #2526.

  • node:

    • (Breaking) Deprecate the _linklist module (Rich Trott) #3078.

    • (Breaking) Remove require.paths and require.registerExtension(), both have been previously set to throw Error when accessed (Sakthipriyan Vairamani) #2922.

  • npm: Upgrade 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.

  • src: (Breaking) Bump NODE_MODULE_VERSION To 47, this is necessary due to the V8 upgrade. Native add-ons will need to be recompiled (Rod Vagg) #3400.

  • timers: Now attempts to reuse the timer handle for setTimeout().unref(). This fixes a long-standing known issue where unrefed timers would perviously hold beforeExit open (Fedor Indutny) #3407.

  • tls:

    • TLS options can now be passed in an object to createSecurePair() (Коренберг Марк) #2441.

    • (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits. This a security consideration to prevent "logjam" attacks. A new minDHSize TLS option can be used to override the default. (Shigeki Ohtsu) #1831.

  • util: (Breaking) util.p() was deprecated for years, and has now been removed (Wyatt Preul) #3432.

  • v8: (Breaking) Upgrade to 4.6.85.25 from 4.5.103.35  (Ali Ijaz Sheikh) #3351.

  • zlib: Decompression now throws on truncated input (e.g. unexpected end of file) (Yuval Brik) #2595.

Known issues

  • Surrogate pair in REPL can freeze terminal. #690

  • Calling dns.setServers() while a DNS query is in progress can cause the process to crash on a failed assertion. #894

  • url.resolve may transfer the auth portion of the url when resolving between two full hosts, see #1435.

更多内容请看:这里

下载地址:

Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台, 用来方便地搭建快速的 易于扩展的网络应用· Node.js 借助事件驱动, 非阻塞I/O 模型变得轻量和高效, 非常适合 运行在分布式设备 的 数据密集型 的实时应用



历史版本 :
Node.js v8.9.4 (LTS) 发布,可以从任何目录配置
Node.js v6.12.3 (LTS) 发布,可以从任何目录配置
Node.js 9.3.0 发布,服务器端 JavaScript 运行环境
Node.js v9.2.1,v8.9.3, v4.8.7 发布
Node.js v6.12.2 “Boron”(LTS) 发布,修复漏洞
Node v8.9.2 和 v6.12.1 长期支持版发布
Node.js v9.2.0 发布,服务器端 JavaScript 运行环境
Node v8.9.1 (LTS) 发布,服务器端 JavaScript 运行环境
Node.js v9.1.0 发布,服务器端 JavaScript 运行环境
Node.js v9.0.0 发布,服务器端 JavaScript 运行环境
Node 8.8.0、6.11.5 和 4.8.5 发布,你在用哪版?
Node.js v8.7.0 发布,服务器端 JavaScript 运行环境
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务