diff --git a/AUTHORS b/AUTHORS index c2925cfa8e1..9adfeeea985 100644 --- a/AUTHORS +++ b/AUTHORS @@ -514,7 +514,6 @@ Benjamin Waters Lev Gimelfarb Peter Flannery Tuğrul Topuz -ayanamist Lorenz Leutgeb Brandon Cheng Alexis Campailla @@ -524,3 +523,9 @@ Jo Liss Jun Ma Jacob Hoffman-Andrews Keith M Wesolowski +Maxime Quandalle +Doron Pagot +Kenan Sulayman +Christian Schulz +Pedro Ballesteros +Anton Khlynovskiy diff --git a/ChangeLog b/ChangeLog index 997cce8e049..fdae40dd850 100644 --- a/ChangeLog +++ b/ChangeLog @@ -498,6 +498,35 @@ * console: `console.dir()` bypasses inspect() methods (Nathan Rajlich) +2014.02.18, Version 0.10.26 (Stable), cc56c62ed879ad4f93b1fdab3235c43e60f48b7e + +* uv: Upgrade to v0.10.25 (Timothy J Fontaine) + +* npm: upgrade to 1.4.3 (isaacs) + +* v8: support compiling with VS2013 (Fedor Indutny) + +* cares: backport TXT parsing fix (Fedor Indutny) + +* crypto: throw on SignFinal failure (Fedor Indutny) + +* crypto: update root certificates (Ben Noordhuis) + +* debugger: Fix breakpoint not showing after restart (Farid Neshat) + +* fs: make unwatchFile() insensitive to path (iamdoron) + +* net: do not re-emit stream errors (Fedor Indutny) + +* net: make Socket destroy() re-entrance safe (Jun Ma) + +* net: reset `endEmitted` on reconnect (Fedor Indutny) + +* node: do not close stdio implicitly (Fedor Indutny) + +* zlib: avoid assertion in close (Fedor Indutny) + + 2014.01.23, Version 0.10.25 (Stable), b0e5f195dfce3e2b99f5091373d49f6616682596 * uv: Upgrade to v0.10.23 diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 6b9051c2835..3cbbf24fc41 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -169,9 +169,13 @@ Example: the definition of `console.log` }; `process.stderr` and `process.stdout` are unlike other streams in Node in -that writes to them are usually blocking. They are blocking in the case -that they refer to regular files or TTY file descriptors. In the case they -refer to pipes, they are non-blocking like other streams. +that writes to them are usually blocking. + +- They are blocking in the case that they refer to regular files or TTY file + descriptors. +- In the case they refer to pipes: + - They are blocking in Linux/Unix. + - They are non-blocking like other streams in Windows. To check if Node is being run in a TTY context, read the `isTTY` property on `process.stderr`, `process.stdout`, or `process.stdin`: @@ -193,29 +197,45 @@ See [the tty docs](tty.html#tty_tty) for more information. A writable stream to stderr. `process.stderr` and `process.stdout` are unlike other streams in Node in -that writes to them are usually blocking. They are blocking in the case -that they refer to regular files or TTY file descriptors. In the case they -refer to pipes, they are non-blocking like other streams. +that writes to them are usually blocking. + +- They are blocking in the case that they refer to regular files or TTY file + descriptors. +- In the case they refer to pipes: + - They are blocking in Linux/Unix. + - They are non-blocking like other streams in Windows. ## process.stdin -A `Readable Stream` for stdin. The stdin stream is paused by default, so one -must call `process.stdin.resume()` to read from it. +A `Readable Stream` for stdin. Example of opening standard input and listening for both events: - process.stdin.resume(); process.stdin.setEncoding('utf8'); - process.stdin.on('data', function(chunk) { - process.stdout.write('data: ' + chunk); + process.stdin.on('readable', function(chunk) { + var chunk = process.stdin.read(); + if (chunk !== null) { + process.stdout.write('data: ' + chunk); + } }); process.stdin.on('end', function() { process.stdout.write('end'); }); +As a Stream, `process.stdin` can also be used in "old" mode that is compatible +with scripts written for node prior v0.10. +For more information see +[Stream compatibility](stream.html#stream_compatibility_with_older_node_versions). + +In "old" Streams mode the stdin stream is paused by default, so one +must call `process.stdin.resume()` to read from it. Note also that calling +`process.stdin.resume()` itself would switch stream to "old" mode. + +If you are starting a new project you should prefer a more recent "new" Streams +mode over "old" one. ## process.argv diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 32ed45b920f..abef4870130 100644 --- a/doc/api/stream.markdown +++ b/doc/api/stream.markdown @@ -999,6 +999,9 @@ how to implement Writable streams in your programs. returning false. Default=16kb, or 16 for `objectMode` streams * `decodeStrings` {Boolean} Whether or not to decode strings into Buffers before passing them to [`_write()`][]. Default=true + * `objectMode` {Boolean} Whether or not the `write(anyObj)` is + a valid operation. If set you can write arbitrary data instead + of only `Buffer` / `String` data. Default=false In classes that extend the Writable class, make sure to call the constructor so that the buffering settings can be properly diff --git a/doc/full-white-stripe.jpg b/doc/full-white-stripe.jpg new file mode 100644 index 00000000000..9b990aeff7b Binary files /dev/null and b/doc/full-white-stripe.jpg differ diff --git a/doc/mac_osx_nodejs_installer_logo.png b/doc/mac_osx_nodejs_installer_logo.png new file mode 100644 index 00000000000..8570d914fd6 Binary files /dev/null and b/doc/mac_osx_nodejs_installer_logo.png differ diff --git a/doc/thin-white-stripe.jpg b/doc/thin-white-stripe.jpg new file mode 100644 index 00000000000..8dc3d4ae8f9 Binary files /dev/null and b/doc/thin-white-stripe.jpg differ diff --git a/tools/node-release-post-build.sh b/tools/node-release-post-build.sh index 6adda19f7d7..4e3555c4f0b 100755 --- a/tools/node-release-post-build.sh +++ b/tools/node-release-post-build.sh @@ -4,6 +4,12 @@ set -e +if [[ ! -e ../node-website/Makefile ]]; +then + echo "node-website must be checked out one level up" + exit 1 +fi + stability="$(python tools/getstability.py)" NODE_STABC="$(tr '[:lower:]' '[:upper:]' <<< ${stability:0:1})${stability:1}" NODE_STABL="$stability" @@ -43,15 +49,16 @@ make email.md echo "title: Node v"$(python tools/getnodeversion.py)" ($NODE_STABC)" echo "slug: node-v"$(python tools/getnodeversion.py | sed 's|\.|-|g')"-$NODE_STABL" echo "" - cat email.md ) > doc/blog/release/v$(python tools/getnodeversion.py).md + cat email.md ) > ../node-website/doc/blog/release/v$(python tools/getnodeversion.py).md if [ "$stability" = "stable" ]; then ## this needs to happen here because the website depends on the current node ## node version + ## this will get the api docs in the right place make website-upload - make blog-upload BRANCH="v$(python tools/getnodeversion.py | sed -E 's#\.[0-9]+$##')" + echo $(python tools/getnodeversion.py) > ../node-website/STABLE else BRANCH="master" fi @@ -67,13 +74,6 @@ git merge --no-ff v$(python tools/getnodeversion.py)-release vim src/node_version.h git commit -am "Now working on "$(python tools/getnodeversion.py) -if [ "$stability" = "stable" ]; -then - echo "Adding blog" - git add doc/blog - git commit -m "blog: Post for v$(python tools/getprevnodeversion.py)" -else - echo "copy blog to stable branch" -fi - git push git@github.com:joyent/node $BRANCH + +echo "Now go do the website stuff"