platform/upstream/nodejs.git
12 years agoMerge branch 'json-api-docs'
isaacs [Mon, 27 Feb 2012 20:00:27 +0000 (12:00 -0800)]
Merge branch 'json-api-docs'

12 years agoHandle miscs better
isaacs [Mon, 27 Feb 2012 19:44:36 +0000 (11:44 -0800)]
Handle miscs better

12 years agoDebugger should be a misc, not 'concept'
isaacs [Mon, 27 Feb 2012 19:44:30 +0000 (11:44 -0800)]
Debugger should be a misc, not 'concept'

12 years ago'Events' is a module, not an event named 's'
isaacs [Mon, 27 Feb 2012 19:37:26 +0000 (11:37 -0800)]
'Events' is a module, not an event named 's'

12 years agos/streams/stream/
isaacs [Mon, 27 Feb 2012 19:18:10 +0000 (11:18 -0800)]
s/streams/stream/

12 years agos/buffers/buffer/
isaacs [Mon, 27 Feb 2012 19:12:35 +0000 (11:12 -0800)]
s/buffers/buffer/

12 years agodoc refactor: zlib
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: zlib

12 years agodoc refactor: vm
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: vm

12 years agodoc refactor: util
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: util

12 years agodoc refactor: url
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: url

12 years agodoc refactor: tty
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: tty

12 years agodoc refactor: tls
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: tls

12 years agodoc refactor: timers
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: timers

12 years agodoc refactor: synopsis
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: synopsis

12 years agodoc refactor: streams
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: streams

12 years agodoc refactor: stdio
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: stdio

12 years agodoc refactor: repl
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: repl

12 years agodoc refactor: readline
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: readline

12 years agodoc refactor: querystring
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: querystring

12 years agodoc refactor: process
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: process

12 years agodoc refactor: path
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: path

12 years agodoc refactor: os
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: os

12 years agodoc refactor: net
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: net

12 years agodoc refactor: modules
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: modules

12 years agodoc refactor: https
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: https

12 years agodoc refactor: http
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: http

12 years agodoc refactor: globals
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: globals

12 years agodoc refactor: fs
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: fs

12 years agodoc refactor: events
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: events

12 years agodoc refactor: dns
isaacs [Mon, 27 Feb 2012 19:08:41 +0000 (11:08 -0800)]
doc refactor: dns

12 years agodoc refactor: dgram
isaacs [Mon, 27 Feb 2012 19:08:27 +0000 (11:08 -0800)]
doc refactor: dgram

12 years agodoc refactor: debugger
isaacs [Mon, 27 Feb 2012 19:08:17 +0000 (11:08 -0800)]
doc refactor: debugger

12 years agodoc refactor: crypto
isaacs [Mon, 27 Feb 2012 19:08:02 +0000 (11:08 -0800)]
doc refactor: crypto

12 years agodoc refactor: cluster
isaacs [Mon, 27 Feb 2012 19:07:49 +0000 (11:07 -0800)]
doc refactor: cluster

12 years agodoc refactor: buffers
isaacs [Mon, 27 Feb 2012 19:07:25 +0000 (11:07 -0800)]
doc refactor: buffers

12 years agodoc refactor: assert
isaacs [Mon, 27 Feb 2012 19:07:12 +0000 (11:07 -0800)]
doc refactor: assert

12 years agodoc refactor: appendix_1
isaacs [Mon, 27 Feb 2012 19:06:55 +0000 (11:06 -0800)]
doc refactor: appendix_1

12 years agodoc refactor: addons
isaacs [Mon, 27 Feb 2012 19:06:31 +0000 (11:06 -0800)]
doc refactor: addons

12 years agoAdd 'about these docs' section
isaacs [Mon, 27 Feb 2012 19:06:14 +0000 (11:06 -0800)]
Add 'about these docs' section

12 years agos/child_processes/child_process/
isaacs [Mon, 27 Feb 2012 19:04:08 +0000 (11:04 -0800)]
s/child_processes/child_process/

12 years agoRemove empty sections
isaacs [Mon, 27 Feb 2012 19:02:07 +0000 (11:02 -0800)]
Remove empty sections

12 years agoIncrease contrast of links, decrease contrast of bullets
isaacs [Mon, 27 Feb 2012 19:01:53 +0000 (11:01 -0800)]
Increase contrast of links, decrease contrast of bullets

12 years agoUpdate styles to reflect changed api doc html structure
isaacs [Mon, 27 Feb 2012 19:01:33 +0000 (11:01 -0800)]
Update styles to reflect changed api doc html structure

12 years agoUpdate template to use new token style
isaacs [Mon, 27 Feb 2012 18:59:51 +0000 (10:59 -0800)]
Update template to use new token style

12 years agoUse new doc generation tool
isaacs [Mon, 27 Feb 2012 18:59:35 +0000 (10:59 -0800)]
Use new doc generation tool

12 years agoNew documentation generation tool
isaacs [Mon, 27 Feb 2012 18:59:01 +0000 (10:59 -0800)]
New documentation generation tool

12 years agodocs: fix http.ClientRequest.write() documentation
Ben Noordhuis [Mon, 27 Feb 2012 02:57:19 +0000 (03:57 +0100)]
docs: fix http.ClientRequest.write() documentation

'an array of integers' == very, very deprecated

12 years agoUse NODE_MODULE in the hello-world addon example.
Nathan Rajlich [Sat, 25 Feb 2012 19:18:45 +0000 (11:18 -0800)]
Use NODE_MODULE in the hello-world addon example.

Fixes Windows throwing "unknown error" when trying to require the .node file.

12 years agoaddon: write gyp generated files to the 'out' dir
Nathan Rajlich [Sun, 26 Feb 2012 21:23:42 +0000 (13:23 -0800)]
addon: write gyp generated files to the 'out' dir

12 years agobuild: support shared zlib
T.C. Hollingsworth [Sun, 26 Feb 2012 23:02:21 +0000 (16:02 -0700)]
build: support shared zlib

12 years agobuild: use -pthreads (not -pthread) on Solaris
Nathan Rajlich [Sun, 26 Feb 2012 02:51:30 +0000 (18:51 -0800)]
build: use -pthreads (not -pthread) on Solaris

12 years agobuild: use else instead of node_shared_v8==false
T.C. Hollingsworth [Fri, 24 Feb 2012 16:37:16 +0000 (09:37 -0700)]
build: use else instead of node_shared_v8==false

12 years agodocs: add ciphers option to https.request()
koichik [Sat, 25 Feb 2012 14:17:05 +0000 (23:17 +0900)]
docs: add ciphers option to https.request()

12 years agodocs: remove duplicate option of tls.connect()
koichik [Sat, 25 Feb 2012 14:07:30 +0000 (23:07 +0900)]
docs: remove duplicate option of tls.connect()

12 years ago`newListener` emits correct fn when using `once`
Roly Fentanes [Fri, 24 Feb 2012 21:28:46 +0000 (14:28 -0700)]
`newListener` emits correct fn when using `once`

Fixes #2826.

12 years agoUpdate npm to 1.1.2
isaacs [Sat, 25 Feb 2012 02:51:22 +0000 (18:51 -0800)]
Update npm to 1.1.2

12 years agoRevert "startup: use `path.resolve` instead of `path.join(cwd, ...)`"
Maciej Małecki [Fri, 24 Feb 2012 02:18:32 +0000 (03:18 +0100)]
Revert "startup: use `path.resolve` instead of `path.join(cwd, ...)`"

This reverts commit b0c15412270f32e00c268c578f07a1ed032323f5.

Reverted commit introduced a regression causing `process.argv[0]` to be
invalid in node processes spawned from `PATH` (without explicit path to
executable file - for example when using global node installation).

Instead of finding a correct path to the executable, `process.cwd()`
would be prepended to `process.argv[0]`.

12 years agotest: test for `process.argv[0]` correctness
Maciej Małecki [Fri, 24 Feb 2012 02:07:26 +0000 (03:07 +0100)]
test: test for `process.argv[0]` correctness

joyent/node@b0c15412270f32e00c268c578f07a1ed032323f5 introduced a
regression causing `process.argv[0]` to be invalid in node processes
spawned from `PATH` (without explicit path to executable file - for
example when using global node installation).

Instead of finding a correct path to the executable, `process.cwd()`
would be prepended to `process.argv[0]`.

12 years agoDefault node_shared_v8 to false.
Nathan Rajlich [Thu, 23 Feb 2012 22:32:24 +0000 (14:32 -0800)]
Default node_shared_v8 to false.

Fixes #2818.

12 years agoRevert "Revert "build: support shared V8 properly""
isaacs [Thu, 23 Feb 2012 22:52:18 +0000 (14:52 -0800)]
Revert "Revert "build: support shared V8 properly""

This reverts commit a9130222bd36ac2c5dd7ae560f02bb99569749a7.

12 years agoNow working on 0.7.6
isaacs [Thu, 23 Feb 2012 22:41:29 +0000 (14:41 -0800)]
Now working on 0.7.6

12 years agoMerge branch 'v0.7.5-release'
isaacs [Thu, 23 Feb 2012 22:39:58 +0000 (14:39 -0800)]
Merge branch 'v0.7.5-release'

12 years ago2012.02.23, Version 0.7.5 (unstable) v0.7.5
isaacs [Thu, 23 Feb 2012 00:48:25 +0000 (16:48 -0800)]
2012.02.23, Version 0.7.5 (unstable)

* startup speed improvements (Maciej Małecki)

* crypto: add function getDiffieHellman() (Tomasz Buchert)

* buffer: support decoding of URL-safe base64 (Ben Noordhuis)

* Make QueryString.parse() even faster (Brian White)

* url: decode url entities in auth section (Ben Noordhuis)

* http: support PURGE request method (Ben Noordhuis)

* http: Generate Date headers on responses (Mark Nottingham)

* Fix #2762: Add callback to close function. (Mikeal Rogers)

* dgram: fix out-of-bound memory read (Ben Noordhuis)

* repl: add automatic loading of built-in libs (Brandon Benvie)

* repl: remove double calls where possible (Fedor Indutny)

* Readline improvements. Related: #2737 #2756 (Colton Baker)

* build: disable -fomit-frame-pointer on solaris (Dave Pacheco)

* build: arch detection improvements (Nathan Rajlich)

* build: Make a fat binary for the OS X `make pkg`. (Nathan Rajlich)

* jslint src/ and lib/ on 'make test' (isaacs)

12 years agoRevert "build: support shared V8 properly"
isaacs [Thu, 23 Feb 2012 22:11:28 +0000 (14:11 -0800)]
Revert "build: support shared V8 properly"

This reverts commit 3d1b67064085ef486a69c2fc69d195dc35f4f50c.

Breaks build on windows.
https://gist.github.com/1895279

12 years agobuild: change default BUILDTYPE of vcbuild.bat
Shigeki Ohtsu [Thu, 23 Feb 2012 12:25:20 +0000 (21:25 +0900)]
build: change default BUILDTYPE of vcbuild.bat

From Debug to Release.

12 years agobuild: change default BUILDTYPE of gyp to Release
Shigeki Ohtsu [Thu, 23 Feb 2012 11:57:40 +0000 (20:57 +0900)]
build: change default BUILDTYPE of gyp to Release

12 years agobuild: fix the case where config.gypi doesn't exist
Shigeki Ohtsu [Wed, 18 Jan 2012 10:18:13 +0000 (19:18 +0900)]
build: fix the case where config.gypi doesn't exist

12 years agobuild: make default_configuration consistent with BUILDTYPE
Shigeki Ohtsu [Wed, 18 Jan 2012 09:37:02 +0000 (18:37 +0900)]
build: make default_configuration consistent with BUILDTYPE

12 years agoRemove unused variables.
Ben Noordhuis [Thu, 23 Feb 2012 12:11:07 +0000 (04:11 -0800)]
Remove unused variables.

12 years agodoc: refer to modules doc rather than src/node.js
isaacs [Thu, 23 Feb 2012 08:18:17 +0000 (00:18 -0800)]
doc: refer to modules doc rather than src/node.js

12 years agolint, missed in QS speed merge
isaacs [Thu, 23 Feb 2012 01:04:07 +0000 (17:04 -0800)]
lint, missed in QS speed merge

12 years agoAdd new authors
isaacs [Thu, 23 Feb 2012 00:09:42 +0000 (16:09 -0800)]
Add new authors

12 years agotest-fs-watch: Add faster failure, and link to #2813
isaacs [Thu, 23 Feb 2012 04:57:01 +0000 (20:57 -0800)]
test-fs-watch: Add faster failure, and link to #2813

12 years agoChange test fixture from symlink to regular file
isaacs [Thu, 23 Feb 2012 04:19:12 +0000 (20:19 -0800)]
Change test fixture from symlink to regular file

The only test using this is test/simple/test-fs-chmod.js, and it was
treating a.js and a1.js as two separate files, resulting in a race
condition.  (Interestingly enough, it was *not* using the symlink file to
test lchmod, which uses a different temp file.)

12 years agodgram: defer send error to next tick
Ben Noordhuis [Thu, 23 Feb 2012 00:52:45 +0000 (01:52 +0100)]
dgram: defer send error to next tick

12 years agodgram: fix out-of-bound memory read
Ben Noordhuis [Thu, 23 Feb 2012 00:51:27 +0000 (01:51 +0100)]
dgram: fix out-of-bound memory read

12 years agoreadline: ^Z (SIGSTP) handling
Colton Baker [Fri, 17 Feb 2012 13:53:24 +0000 (08:53 -0500)]
readline: ^Z (SIGSTP) handling

Bugfix and update.

- Fixed bug where Node's REPL wouldn't continue when returning from ^Z
  (SIGTSTP)
- Removed old readline callback

Readline API update with docs.

- ^Z (SIGTSTP) is now bypassed on Windows systems.
- SIGCONT is now bypassed on Windows systems.
- Docs updated to reflect above.

12 years agoRemoved `rl.on('close', ...)` callback
Colton Baker [Fri, 17 Feb 2012 13:52:06 +0000 (08:52 -0500)]
Removed `rl.on('close', ...)` callback

12 years agoMake a fat binary for the OS X `make pkg`.
Nathan Rajlich [Wed, 22 Feb 2012 22:03:22 +0000 (14:03 -0800)]
Make a fat binary for the OS X `make pkg`.

12 years agodocs: remove duplicate socket.write
Cam Pedersen [Tue, 21 Feb 2012 22:32:19 +0000 (17:32 -0500)]
docs: remove duplicate socket.write

12 years agobuild: support shared V8 properly
T.C. Hollingsworth [Wed, 22 Feb 2012 11:57:32 +0000 (04:57 -0700)]
build: support shared V8 properly

-don't pull in bundled v8 as a dependency when node_shared_v8==true
-use node_shared_v8_includes for v8.h and v8-debug.h

12 years agobuild: remove unused makefile target
Myles Byrne [Sun, 19 Feb 2012 21:27:09 +0000 (15:27 -0600)]
build: remove unused makefile target

12 years agoPause process.stdin in stdin getter
isaacs [Tue, 21 Feb 2012 23:26:35 +0000 (15:26 -0800)]
Pause process.stdin in stdin getter

Otherwise, it'll be ref'ed, and keep the process hanging.

12 years agoMake QueryString.parse() even faster
Brian White [Tue, 21 Feb 2012 19:08:13 +0000 (14:08 -0500)]
Make QueryString.parse() even faster

12 years agoAdd Håvard Stranden to AUTHORS file
isaacs [Tue, 21 Feb 2012 20:03:15 +0000 (12:03 -0800)]
Add Håvard Stranden to AUTHORS file

12 years agoRun jslint after tests, not before
isaacs [Tue, 21 Feb 2012 20:02:57 +0000 (12:02 -0800)]
Run jslint after tests, not before

12 years agodocs: remove server.pause
Fedor Indutny [Tue, 21 Feb 2012 14:42:15 +0000 (20:42 +0600)]
docs: remove server.pause

This functionality was removed when libuv landed in node. It is useless
and can be easily implemented in user-land.

12 years agobuffer: support decoding of URL-safe base64
Ben Noordhuis [Tue, 21 Feb 2012 12:57:38 +0000 (13:57 +0100)]
buffer: support decoding of URL-safe base64

12 years agodocs: remove setSecure() from net module docs
Andreas Madsen [Sat, 18 Feb 2012 17:26:28 +0000 (18:26 +0100)]
docs: remove setSecure() from net module docs

socket.setSecure() was removed in v0.3 and there are no deprecated warning in
code it should be removed from the documentation in 0.7

12 years agocrypto: add function getDiffieHellman()
Tomasz Buchert [Sun, 22 Jan 2012 18:24:37 +0000 (19:24 +0100)]
crypto: add function getDiffieHellman()

Returns a well known, predefined RFC group.

12 years agobuild: better host_arch() definition in configure
Nathan Rajlich [Mon, 20 Feb 2012 20:27:07 +0000 (12:27 -0800)]
build: better host_arch() definition in configure

On one of my OS X Lion machines, it always reports i386, even though 64-bit
is supported. This lookup better matches how WAF determines the host arch,
which was correctly getting 64-bit even on this screwy machine.

12 years agotls http https: don't pollute user's `options` object
Maciej Małecki [Mon, 20 Feb 2012 19:32:10 +0000 (20:32 +0100)]
tls http https: don't pollute user's `options` object

12 years agoutil: add `util._extend` for extending objects
Maciej Małecki [Mon, 20 Feb 2012 17:59:56 +0000 (18:59 +0100)]
util: add `util._extend` for extending objects

There were 2 duplicates with such functionality in `cluster` and
`child_process` modules which were replaced by this function.

12 years agocore: ignore too many arguments, don't assert
Andreas Madsen [Mon, 20 Feb 2012 18:55:37 +0000 (19:55 +0100)]
core: ignore too many arguments, don't assert

12 years agotest: update HTTP basic auth test
Ben Noordhuis [Mon, 20 Feb 2012 16:24:13 +0000 (17:24 +0100)]
test: update HTTP basic auth test

Verify that URL-encoded entities are properly encoded into the Authorization
header.

12 years agourl: decode url entities in auth section
Ben Noordhuis [Fri, 17 Feb 2012 17:08:48 +0000 (18:08 +0100)]
url: decode url entities in auth section

Fixes #2736.

12 years agotests: kill process group on failure
Fedor Indutny [Mon, 20 Feb 2012 16:03:14 +0000 (22:03 +0600)]
tests: kill process group on failure

Test suite is often leaving `stray` processes on failure. They are
harmless, but may cause future test runs fail because those `stray`
processes are occupying `common.PORT` or due to some other reasons.

Killing whole process group on test suite failure should help in such
cases.

12 years agohttp: support PURGE request method
Ben Noordhuis [Fri, 17 Feb 2012 22:45:50 +0000 (23:45 +0100)]
http: support PURGE request method

12 years agohttp_parser: upgrade to 62110ef
Ben Noordhuis [Mon, 20 Feb 2012 15:12:33 +0000 (16:12 +0100)]
http_parser: upgrade to 62110ef

12 years agostartup: use `path.resolve` instead of `path.join(cwd, ...)`
Maciej Małecki [Sun, 19 Feb 2012 20:16:50 +0000 (21:16 +0100)]
startup: use `path.resolve` instead of `path.join(cwd, ...)`