Nodejs 0.4.1(stable)版发布

Nodejs 0.4.1(stable)版发布

真给力!我0.4.0版本的环境刚弄好 <br/> <br/>主要是一些bug fix工作,ChangeLog如下: <br/><pre escaped=“true”>2011.02.19, Version 0.4.1 (stable) <br/> <br/>* Fixed field merging with progressive fields on writeHead() <br/> (TJ Holowaychuk) <br/> <br/>* Make the repl respect node_modules folders (isaacs) <br/> <br/>* Fix for DNS fail in HTTP request (Richard Rodger) <br/> <br/>* Default to port 80 for http.request and http.get. <br/> <br/>* Improve V8 support for Cygwin (Bert Belder) <br/> <br/>* Fix fs.open param parsing. (Felix Geisendörfer) <br/> <br/>* Fixed null signal. <br/> <br/>* Fix various HTTP and HTTPS bugs <br/> <br/>* cmake improvements (Tom Hughes) <br/> <br/>* Fix: TLS sockets should not be writable after ‘end’ <br/> <br/>* Fix os.cpus() on cygwin (Brian White) <br/> <br/>* MinGW: OpenSSL support (Bert Belder) <br/> <br/>* Upgrade V8 to 3.1.5, libev to 4.4.</pre>


2 回复

Node.js 0.4.1 (stable) 版发布

真给力!我刚刚搭建好了 0.4.0 版本的环境。

这次发布的 0.4.1 版本主要是对一些 bug 进行了修复。以下是详细的变更日志:

2011.02.19, Version 0.4.1 (stable)

* Fixed field merging with progressive fields on writeHead() (TJ Holowaychuk)
  - 解决了在 `writeHead()` 方法中处理渐进字段时的合并问题。
  
* Make the repl respect node_modules folders (isaacs)
  - 改进了 REPL(Read-Eval-Print Loop)以正确识别 `node_modules` 文件夹。

* Fix for DNS fail in HTTP request (Richard Rodger)
  - 修复了 HTTP 请求中的 DNS 失败问题。

* Default to port 80 for http.request and http.get.
  - 在使用 `http.request` 和 `http.get` 方法时,默认端口设置为 80。

* Improve V8 support for Cygwin (Bert Belder)
  - 提升了 Cygwin 上的 V8 引擎支持。

* Fix fs.open param parsing. (Felix Geisendörfer)
  - 修复了 `fs.open` 方法的参数解析问题。

* Fixed null signal.
  - 修复了空信号问题。

* Fix various HTTP and HTTPS bugs
  - 修复了多个 HTTP 和 HTTPS 相关的 bug。

* cmake improvements (Tom Hughes)
  - 对 cmake 配置进行了改进。

* Fix: TLS sockets should not be writable after ‘end’
  - 修复了 TLS 套接字在调用 `end` 后不应可写的问题。

* Fix os.cpus() on cygwin (Brian White)
  - 修复了 Cygwin 上的 `os.cpus()` 方法问题。

* MinGW: OpenSSL support (Bert Belder)
  - 在 MinGW 平台上增加了 OpenSSL 支持。

* Upgrade V8 to 3.1.5, libev to 4.4.
  - 更新了 V8 引擎到 3.1.5 版本,并更新了 libev 到 4.4 版本。

这些改进将使 Node.js 在处理 HTTP 请求、文件系统操作等方面更加稳定和高效。对于开发者来说,升级到 0.4.1 版本可以提升应用的性能和稳定性。希望这些更新能够帮助你更好地开发和调试 Node.js 应用。


Node.js 0.4.1 (Stable) 版发布

2011年2月19日,Node.js发布了0.4.1稳定版。这次更新主要集中在修复一些已知问题和改进稳定性。以下是本次更新的一些关键变更:

  • Fixed field merging with progressive fields on writeHead(): 这个修复解决了在HTTP响应头写入时合并字段的问题(由TJ Holowaychuk提交)。

    const http = require('http');
    const server = http.createServer((req, res) => {
      res.writeHead(200, { 'Content-Type': 'text/plain' });
      res.write('Hello World\n'); // 此处已修复,可以正确写入
      res.end();
    });
    
    server.listen(3000);
    
  • Make the repl respect node_modules folders: 改进了REPL(Read-Eval-Print Loop)模块搜索机制(由isaacs提交)。

  • Fix for DNS fail in HTTP request: 解决了HTTP请求中的DNS解析失败问题(由Richard Rodger提交)。

  • Default to port 80 for http.request and http.get: 现在http.requesthttp.get默认使用端口80(如果未指定端口)。

    const http = require('http');
    
    http.get('http://example.com', (res) => {
      console.log(`Got response: ${res.statusCode}`);
    }).on('error', (e) => {
      console.error(`Got error: ${e.message}`);
    });
    
  • Improve V8 support for Cygwin: 改进了Cygwin上的V8支持(由Bert Belder提交)。

  • Fix fs.open param parsing: 修正了文件系统操作参数解析问题(由Felix Geisendörfer提交)。

    const fs = require('fs');
    fs.open('test.txt', 'r', (err, fd) => {
      if (err) throw err;
      console.log('File opened successfully');
    });
    
  • Fix various HTTP and HTTPS bugs: 修复了多个HTTP和HTTPS相关的bug。

  • cmake improvements: 提升了cmake构建工具的支持(由Tom Hughes提交)。

  • Fix: TLS sockets should not be writable after ‘end’: 修复了TLS套接字在调用end方法后仍然可写的问题。

  • Fix os.cpus() on cygwin: 修正了Cygwin上os.cpus()函数的问题(由Brian White提交)。

  • MinGW: OpenSSL support: 增加了对MinGW平台上OpenSSL的支持(由Bert Belder提交)。

  • Upgrade V8 to 3.1.5, libev to 4.4: 升级了V8引擎至3.1.5版本,libev库至4.4版本。

这些变更使Node.js 0.4.1版本更加稳定,提高了性能,并修复了一些已知问题。对于开发者来说,这是一个值得升级的版本。

回到顶部