diff --git a/AUTHORS b/AUTHORS index 04d273a8b6..d9b6061639 100644 --- a/AUTHORS +++ b/AUTHORS @@ -197,3 +197,8 @@ Igor Zinkovsky Shigeki Ohtsu vegorov@chromium.org Pierre-Alexandre St-Jean +Vicente Jimenez Aguilar +SAWADA Tadashi +Logan Smyth +Christopher Wright +Mickaƫl Delahaye diff --git a/ChangeLog b/ChangeLog index 4a859e317f..71cdd6aa15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -166,6 +166,32 @@ * DTrace probes: support X-Forwarded-For (Dave Pacheco) +2011.08.17, Version 0.4.11 (stable) + +* #738 Fix crypto encryption/decryption with Base64. (SAWADA Tadashi) + +* #1202 net.createConnection defer DNS lookup error events to next tick + (Ben Noordhuis) + +* #1374 fix setting ServerResponse.statusCode in writeHead (Trent Mick) + +* #1417 Fix http.ClientRequest crashes if end() was called twice + +* #1497 querystring: Replace 'in' test with 'hasOwnProperty' (isaacs) + +* #1546 http perf improvement + +* fix memleak in libeio (Tom Hughes) + +* cmake improvements (Tom Hughes) + +* node_net.cc: fix incorrect sizeof() (Tom Hughes) + +* Windows/cygwin: no more GetConsoleTitleW errors on XP (Bert Belder) + +* Doc improvments (koichik, Logan Smyth, Ben Noordhuis, Arnout Kazemier) + + 2011.07.19, Version 0.4.10 (stable) * #394 Fix Buffer drops last null character in UTF-8 diff --git a/doc/api/stdio.markdown b/doc/api/stdio.markdown index 836be833e0..45d8d3bcac 100644 --- a/doc/api/stdio.markdown +++ b/doc/api/stdio.markdown @@ -9,9 +9,30 @@ Prints to stdout with newline. This function can take multiple arguments in a console.log('count: %d', count); -If formating elements are not found in the first string then `util.inspect` -is used on each argument. -See [util.format()](util.html#util.format) for more infomation. +The first argument is a string that contains zero or more *placeholders*. +Each placeholder is replaced with the converted value from its corresponding +argument. Supported placeholders are: + +* `%s` - String. +* `%d` - Number (both integer and float). +* `%j` - JSON. + +If the placeholder does not have a corresponding argument, `undefined` is used. + + console.log('%s:%s', 'foo'); // 'foo:undefined' + +If there are more arguments than placeholders, the extra arguments are +converted to strings with `util.inspect()` and these strings are concatenated, +delimited by a space. + + console.log('%s:%s', 'foo', 'bar', 'baz'); // 'foo:bar baz' + +If the first argument is not a format string then `console.log()` prints +a string that is the concatenation of all its arguments separated by spaces. +Each argument is converted to a string with `util.inspect()`. + + console.log(1, 2, 3); // '1 2 3' + ### console.info() diff --git a/doc/index.html b/doc/index.html index bf2a4d6b14..9f1ab403bd 100644 --- a/doc/index.html +++ b/doc/index.html @@ -26,7 +26,7 @@
  • Download
  • ChangeLog
  • About
  • -
  • v0.4.10 docs
  • +
  • v0.4.11 docs
  • v0.5.4 docs

  • Wiki
  • @@ -110,10 +110,10 @@ server.listen(1337, "127.0.0.1"); git repo

    -

    2011.07.19 v0.4.10 (stable) +

    2011.08.17 v0.4.11 (stable)

    2011.08.12 v0.5.4 (unstable) diff --git a/test/simple/test-child-process-customfd-bounded.js b/test/simple/test-child-process-customfd-bounded.js index 93d061b6bb..450259d592 100644 --- a/test/simple/test-child-process-customfd-bounded.js +++ b/test/simple/test-child-process-customfd-bounded.js @@ -1,8 +1,8 @@ var common = require('../common'); + var bigish = Array(200); for (var i = 0, il = bigish.length; i < il; ++i) bigish[i] = -1; common.spawnPwd({ customFds: bigish }); -