Commit Graph

376 Commits (342b8b2ed21fe429187f91eb4314af54b801a5f5)

Author SHA1 Message Date
Felix Geisendörfer f8a3cf980f Properly handle child process exit codes
The child process 'exit' was returning the status of the process, rather than
the exit code. This patch properly deconstructs the status into the exit code
and the term signal a process may have received.

See:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#Watcher_Specific_Functions_and_Data_-5
and waitpid(2)
2010-04-28 13:54:17 -07:00
Ryan Dahl e7a1fa1293 fs.FileWriteStream -> fs.WriteStream, fs.FileReadStream -> fs.ReadStream 2010-04-27 18:52:16 -07:00
Ryan Dahl f618551694 Remove callback argument to FileWriteStream.prototype.write 2010-04-27 17:26:10 -07:00
Matt Ranney d1b352e4b3 Shorten some long lines. 2010-04-27 00:52:40 -07:00
Matt Ranney 2374e557e3 More Buffer descriptions and examples.
Updated Script examples for New Script methods.
2010-04-27 00:25:58 -07:00
Ryan Dahl cee9080381 Fix typos 2010-04-25 22:44:31 -07:00
Ryan Dahl caa828a242 bump version 2010-04-23 16:37:14 -07:00
Ryan Dahl bb4ae1769b Link to old versions 2010-04-23 16:37:14 -07:00
mape b299b4b7a1 Update API doc 2010-04-23 16:37:10 -07:00
Ryan Dahl 94f9dc67c0 Add link to older tarball versions 2010-04-21 13:16:46 -07:00
Julian Lamb 5f8f561d61 add setKeepAlive function, which enables and sets the TCP keep-alive timer 2010-04-20 16:34:21 -07:00
Tim Caswell 61308a5bff Add a note in the API docs about binding to ports and using strings. 2010-04-19 15:52:51 -07:00
Tim Caswell 60de86351a Add Buffer.byteLength docs 2010-04-19 15:51:32 -07:00
Herbert Vojčík 8daa1f8d04 Docs for Script class of 'evals' binding. 2010-04-18 17:23:01 -04:00
Matt Ranney 39464b498f Add docs for new REPL options and fill out description of commands. 2010-04-15 18:03:56 -07:00
Ryan Dahl 311d7dee19 bump version 2010-04-15 02:09:51 -07:00
Ryan Dahl 9cf2a02d8b Add timeout and maxBuffer options to child_process.exec 2010-04-14 11:59:24 -07:00
Ryan Dahl 57edff1f31 Remove mixin from docs 2010-04-13 13:50:17 -07:00
Ryan Dahl 1efd261572 doc typo 2010-04-12 16:27:04 -07:00
Ryan Dahl 8553e8a15d Add incoming.httpVersion 2010-04-11 15:15:36 -07:00
James Herdman dd50b86449 Fix documentation errors for DNS 2010-04-11 12:16:36 -07:00
Ryan Dahl 07e64d45ff bump version 2010-04-09 17:05:03 -07:00
Ryan Dahl 54f02345b5 Fix doc again 2010-04-09 16:52:10 -07:00
Ryan Dahl ee3026797c More documentation work. Remove long lines 2010-04-09 15:34:08 -07:00
Ryan Dahl 03ea4b644e Improve(\?) docs 2010-04-09 14:51:20 -07:00
Micheil Smith fd0bebcdbc Mods to the docs 2010-04-09 12:45:44 -07:00
Ryan Dahl a5184fe938 Change api.html style 2010-04-08 22:42:02 -07:00
Ryan Dahl 323a5e11e5 Change how events are represented in docs 2010-04-08 17:39:33 -07:00
Matt Ranney 631e5bf5cb Improve child_process documentation. 2010-04-08 16:31:36 -07:00
Ryan Dahl 08a09bb50a Use some more Binary/F methods for Buffer 2010-04-08 16:31:02 -07:00
Ryan Dahl 499c615c9e Doc changes for new API (part 1) 2010-04-08 15:00:08 -07:00
Felix Geisendörfer b544185bd8 Fix doc toc for small screens
Only make the toc fixed position for big screens.
2010-04-08 14:20:43 -07:00
Felix Geisendörfer 1a9c9b0c55 Bring back the old manual style
This brings back the old manual style, including the toc and syntax
highlighting.
2010-04-08 14:20:33 -07:00
Ryan Dahl 1b758ef268 Allow stream to write on close 2010-04-05 16:50:05 -07:00
Ryan Dahl 94644d743c Remove multipart library
Too messy, unmaintainable. Pull it out of the history if you need it.
2010-04-02 16:01:16 -07:00
Matt Ranney 7c77a56b4a Improve documentation. 2010-03-29 11:23:27 -07:00
Tim Caswell 179f718d62 Conversion to markdown based API docs.
With help from Matt Ranney <mjr@ranney.com>
2010-03-26 18:28:40 -07:00
Ryan Dahl 903977d5e8 Merge branch 'master' into net2
Conflicts:
	test/simple/test-event-emitter-modify-in-emit.js
2010-03-19 21:48:39 -07:00
Ryan Dahl 618296ef57 bump version 2010-03-19 21:07:03 -07:00
Ryan Dahl b865f9e9c8 Merge branch 'master' into net2 2010-03-17 16:24:43 -07:00
pyrotechnick 8aaffe71ee Fixing a typo in the fs.readFile example. 2010-03-17 14:44:15 -07:00
Ryan Dahl 04c06b9149 child process now use net.Socket 2010-03-17 14:00:17 -07:00
Ryan Dahl 4ccdc501d4 Include lib/ directory in node executable. Compile on demand.
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.

The reasoning is:
  1. Allow for more complex internal javascript. In particular,
  process.stdout and process.stdin can be js implemented streams.

  2. Ease system installs. Loading from disk each time is unnecessary
  overhead. Note that there is no "system" path for modules anymore. Only
  $HOME/.node_libraries.
2010-03-15 08:04:35 -07:00
Ryan Dahl 7be0d06238 FreeBsd->Solaris on homepage 2010-03-13 12:47:41 -08:00
Ryan Dahl 61c8014135 bump version 2010-03-12 18:50:46 -08:00
Ryan Dahl c1613e6ebb Deprecate process.mixin 2010-03-12 09:23:05 -08:00
Ryan Dahl 358b7516c7 Adjust process.compile documentation 2010-03-11 10:27:20 -08:00
Aaron Heckmann f8eb163728 Add removeAllListeners 2010-03-09 09:30:14 -08:00
Felix Geisendörfer 9a9f08b1bc Add callbacks to stream methods
Allows for more fine graining, especially finding out about an individual
chunk of data being flushed in a write stream rather than the whole queue.

This commit also fixes a bug causing forceClose to fail on a readStream that
did not finish opening yet.
2010-03-08 09:05:56 -08:00
Felix Geisendörfer c47391526c Fix typo in fs.writeStream docs 2010-03-08 09:05:31 -08:00
Rasmus Andersson 374300ca8d Updated patch of node.cc for supporting reading of umask 2010-03-07 12:07:57 -08:00
Ryan Dahl 39b63dfe17 bump version 2010-03-05 17:55:13 -08:00
Ryan Dahl 939a6c7484 Clean up homepage 2010-03-05 16:02:06 -08:00
Ryan Dahl 5217eda1ae Merge remote branch 'felixge/file2' 2010-03-05 11:11:23 -08:00
Felix Geisendörfer dbf9e466bc Documentation for FileWriteStream 2010-03-05 20:04:19 +01:00
Felix Geisendörfer a96b5c792e Documentation for FileReadStream 2010-03-05 19:54:28 +01:00
Ryan Dahl 0e844d3bcb tcp.Connection.prototype.write should return boolean 2010-03-02 21:16:17 -08:00
Ryan Dahl 9be3df0828 Add sys.log() 2010-03-02 17:35:01 -08:00
Rasmus Andersson 20d5963fae Added fs.realpath and fs.realpathSync (pure javascript versions) 2010-03-01 19:14:24 -08:00
Ryan Dahl 30b700ee22 Move watchFile into fs module 2010-03-01 10:42:37 -08:00
Ryan Dahl faa0c6d449 Add note about testing patches with debug build 2010-03-01 09:11:04 -08:00
Ryan Dahl c219571eac Use more beautiful object syntax in docs 2010-02-25 18:59:02 -08:00
Benjamin Thomas de1521413e Make the output of sys.inspect a lot more compact.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/ac060521e27fef65

By default now, sys.inspect doesn't recurse more than two times.  Pass
in null as the third parameter to make it recurse indefinitely.
2010-02-25 18:23:11 -08:00
Benjamin Thomas a2714be8b5 Add optional third argument sys.inpect to indicate how many times you want it to recurse 2010-02-25 13:17:05 -08:00
Benjamin Thomas b1b84960ce Rename writeHeader to writeHead 2010-02-25 13:01:21 -08:00
James Duncan df1c1e593f Add setgid,getgid 2010-02-23 14:45:02 -08:00
Rasmus Andersson b57d946184 added fs.link, fs.symlink, fs.readlink
including sync versions and complete tests
2010-02-22 19:23:06 -08:00
Ryan Dahl f0f2d2ee70 Fix readdirSync in docs 2010-02-22 14:04:54 -08:00
Ryan Dahl dc041628ce Add not about nextTick and setTimeout(fn, 0) 2010-02-22 13:58:48 -08:00
Ryan Dahl bb0d1e65e1 bump version 2010-02-22 01:31:14 -08:00
Ryan Dahl 05ae932a0e Implement fs.readdirSync() 2010-02-21 23:06:08 -08:00
isaacs 9acc8a686a Expose fs.lstat 2010-02-21 21:43:45 -08:00
Ryan Dahl 12d78cd1df Rename sendHeader to writeHeader; allow reasonPhrase 2010-02-21 16:53:49 -08:00
Ryan Dahl a0c48eecab Rename readPause and readResume to pause/resume 2010-02-20 22:38:42 -08:00
Ryan Dahl 1db824a9c1 Add changelog to website 2010-02-20 22:30:56 -08:00
Ryan Dahl 0485cc41d5 Remove promises 2010-02-20 19:49:00 -08:00
Ryan Dahl 5fbc750db7 multipart no longer depends on Promise 2010-02-20 19:17:58 -08:00
Ryan Dahl de7016eac5 sys.exec() no longer uses Promise 2010-02-19 16:55:46 -08:00
Ryan Dahl c04b679e12 'dns' no longer uses Promise 2010-02-19 16:41:08 -08:00
Ryan Dahl ef55324f1a Do not use Promise in 'fs' module 2010-02-19 16:02:30 -08:00
Micheil Smith bcc032e43a Adding interface between node and libeio for Chmod. 2010-02-18 10:13:57 -08:00
Ryan Dahl 4f01c74e9f Fix long lines in docs 2010-02-17 18:41:56 -08:00
Ryan Dahl 7811fa6fec Update example on index.html 2010-02-17 17:07:08 -08:00
Ryan Dahl 87d5e5b316 bump version 2010-02-17 15:12:42 -08:00
Ryan Dahl c622142692 Add note about gnutls and libgpg-error in installation instructions 2010-02-17 13:39:03 -08:00
Ryan Dahl d9b0eb3922 Remove references to wait() in docs 2010-02-17 13:29:25 -08:00
Ryan Dahl df94c763ae documentation clean up 2010-02-17 13:14:34 -08:00
Ryan Dahl f57b0e993b Add asciidoc-xhtml11.js for use with asciidoc 8.5.1 2010-02-17 12:48:14 -08:00
Ryan Dahl 5013bf1781 API: OutgoingMessage.prototype.finish() renamed to close() 2010-02-17 11:10:10 -08:00
Tim Caswell 6115df6338 File API tweaks
- Rename fs.cat to fs.readFile
- Move file.write to fs.writeFile
- Allow strings for the flag argument to fs.open
  ("r", "r+", "w", "w+", "a", "a+")
- Remove the unused 'File' module / class
2010-02-16 23:55:53 -08:00
Ryan Dahl ae85d9af97 API: Make request/response object closer to stream interface
- sendBody() renamed to write()
- 'body' event renamed to 'data'
- 'complete' event renamed to 'end'
2010-02-16 22:16:29 -08:00
Ryan Dahl 23cf502db7 API: connection.send() renamed to connection.write() 2010-02-16 13:18:42 -08:00
Ryan Dahl 1bf46d1536 Revert "Add process.startTime"
Unnecessary

This reverts commit 896cef23c4.
2010-02-16 09:32:25 -08:00
Ryan Dahl b82ef28d9d Rename 'posix' module to 'fs' 2010-02-12 01:04:14 -08:00
Ryan Dahl 896cef23c4 Add process.startTime 2010-02-12 00:47:35 -08:00
Ryan Dahl bc17d94a0a API: tcp events 'receive' to 'data', 'eof' to 'end'
No deprecation messages. Not sure how...
2010-02-12 00:25:19 -08:00
Ryan Dahl 7d428a7741 s/tinyclouds.org/nodejs.org/ 2010-02-12 00:08:26 -08:00
Ryan Dahl 49de41ef46 bump version 2010-02-09 13:20:20 -08:00
Tim Caswell 3aca908db3 Document the changes to sys.inspect's API.
It now takes an optional showHidden argument that shows hidden/non-enumerable properties of objects.

Also cleanup the lib/sys.js file a bit.
2010-02-09 09:20:15 -08:00
isaacs 3adcdfc2e1 A rewrite of multipart library.
1. Support streaming in the simple case.  Put huge warnings around the
buffering API.
2. Support nested multipart messages.
3. Support various kinds of multipart messages, including all the various
absurdities of multipart email messages.
4. Error out on various invalid types of data that might come through.
5. Gracefully several edge cases that occur when the chunk size is smaller
than the boundary length, or cuts into the \r\n, etc.
6. Provide both positive and negative tests.
2010-02-08 14:03:06 -08:00
Michael Carter a38607605c Add process.setuid(), getuid() 2010-02-07 22:13:10 -08:00
Ryan Dahl 76c1805c67 Add posix.truncate() 2010-02-07 17:18:28 -08:00
Matt Brubeck 1737cdc112 Fix the documentation of dns error handling.
These are actually passed as Error objects, not separate "code" and "message"
parameters.
2010-02-05 18:23:32 -08:00
Ryan Dahl 0cfa789cc5 bump version 2010-02-03 12:20:27 -08:00
Ryan Dahl f3ad635576 Downcase process.ARGV/ENV to process.argv/env 2010-02-03 12:19:21 -08:00
Blaine Cook cd6397cc45 Add support for MX, TXT, and SRV records in DNS module. 2010-01-25 09:03:27 -08:00
Joseph Pecoraro c99e33bc90 Fix minor issues in the documentation. 2010-01-24 00:00:27 -08:00
Felix Geisendörfer a76c7a89ce Implemented __dirname
It seems that the current __filename module global is mainly used to
determine the directory the current module is in. To make that
easier, this patch adds support for a __dirname module global
directly.
2010-01-22 10:10:15 -08:00
Ryan Dahl da00413196 bump version 2010-01-20 11:28:32 -08:00
Felix Geisendörfer bfd3144861 Make unhandled Promise errors throw an exception
A promise will throw an exception unless an error handler is attached in the
same "tick" that the error is emitted. This is to avoid silent promise
failures.
2010-01-19 14:29:57 -08:00
Felix Geisendörfer f64371fccb Support late callback binding for Promises
Listeners attached with addCallback / addErrback will now be executed
right away if the promise has already fired.
2010-01-19 14:29:49 -08:00
Felix Geisendörfer f2274840a9 Removed Promise.cancel()
The current implementation was bad and nobody is using it. Has a chance
of getting re-implemented by somebody who has an actual need for it.
2010-01-19 14:29:38 -08:00
Micheil Smith 6e3d12f617 Allow optional params to setTimeout, setInterval 2010-01-18 10:41:03 -08:00
Ryan Dahl 8abeffa9ea Add process.nextTick()
This is a replacement for the common hack:

  setTimeout(cb, 0);

It's much more efficient.
2010-01-18 10:32:36 -08:00
Ryan Dahl 70293a43c9 API: Move Promise and EventEmitter into 'events' module 2010-01-15 12:46:08 -08:00
Ryan Dahl 39ca93549a bump version 2010-01-09 02:11:54 -08:00
isaacs b3349eb33a Documentation for path module changes. 2010-01-09 00:38:05 -08:00
Benjamin Thomas 73266cb486 Added extname function to path module that returns the extension. 2010-01-08 22:28:27 -08:00
Felix Geisendörfer d9085ea0cb Updated docs for multipart errors 2010-01-05 20:15:16 -08:00
isaacs 2b3d9e4ad0 Use "url" module instead of "uri" module in http.js.
Deprecate the URI module and remove tests for it.
- Rename "uri" to "url".
- Use the "url" module instead of the "uri" module.
- Remove the url parsing from http.js
- Update http.cat with the changed field names.
- Update tests for changes to http.js
- Update documentation for changes in http.js
2010-01-04 21:22:46 -08:00
isaacs 7ff04c1f86 Add URL and QueryString modules, and tests for each.
Also, make a slight change from original on url-module to put the
spacePattern into the function.  On closer inspection, it turns out that the
nonlocal-var cost is higher than the compiling-a-regexp cost.

Also, documentation.
2010-01-04 21:03:54 -08:00
isaacs d6fe7fb4c3 Documentation for path module 2010-01-04 20:58:16 -08:00
Ryan Dahl 642c2773a7 bump version 2009-12-31 00:30:53 -08:00
Ryan Dahl f91e347eee bump version 2009-12-22 20:31:45 +01:00
Ryan Dahl a2d809fe90 bump version 2009-12-19 01:24:59 +01:00
Micheil Smith d8e69d31b3 Documentation for the assert module 2009-12-18 16:17:10 +01:00
Ryan McGrath 164ce76e94 Added in API documentation concerning the (seemingly undocumented) process.chdir() method, complementary to process.cwd() 2009-12-18 14:59:33 +01:00
Ryan Dahl 89df4d1c86 fix typo 2009-12-08 07:20:51 +01:00
Christopher Lenz f8ba9c3bc9 Add http.Client.prototype.request()
Change the http.Client API so that it provides a single request() method
taking an optional parameter to specify the HTTP method (defaulting to
"GET"), instead of the five methods get(), head(), post(), del() and put().
2009-12-06 18:36:32 +01:00
Ryan Dahl c6affb64f9 bump version 2009-12-06 17:59:37 +01:00
Ryan Dahl aa42c6790d bump version 2009-11-28 17:04:42 +01:00
Ryan Dahl 38e425d9bf Add V8 heap info to process.memoryUsage() 2009-11-28 16:31:29 +01:00
choonkeat 44d5f212fe Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
2009-11-28 15:13:12 +01:00
Ryan Dahl 633d6be328 bump version 2009-11-28 01:49:11 +01:00
simonw 516874f4a1 Documented repl.scope for explicitly exposing variables within the repl. 2009-11-27 23:02:13 +01:00
Friedemann Altrock 0433d828cf add process.umask() 2009-11-22 19:52:52 +01:00
Rhys Jones b6dda61249 Initial TLS support 2009-11-22 04:03:53 +01:00
Felix Geisendörfer 528c449901 Multipart improvements
Multipart parts now have a name and filename property. Those are the
same as:

part.headers['content-disposition'].name
part.headers['content-disposition'].filename

This patch also updates and improves the docs for the multipart module.
2009-11-21 17:16:06 +01:00
Ryan Dahl 6de2173d7c Add options to process.watchFile() 2009-11-17 22:35:47 +01:00
Ryan Dahl 027829d285 bump version 2009-11-17 15:05:10 +01:00
Ryan Dahl 0bf34b598f add link to slides on web page 2009-11-17 14:22:23 +01:00
Ryan Dahl 8d2f9e83a4 Add process.watchFile() process.unwatchFile()
This is an interface to libev's ev_stat watcher.
2009-11-17 14:07:48 +01:00
Ryan Dahl ca2c7d1745 Add doc for uncaughtException 2009-11-15 01:06:13 +01:00
fwg bd6c08a984 Add EventEmitter.removeListener 2009-11-13 17:12:41 +01:00
Ryan Dahl 2ca788e6e2 Add 'drain' event to tcp.Connection 2009-11-10 17:43:37 +01:00
Ryan Dahl d1f69ef35d bump version 2009-11-07 20:20:30 +01:00
Ryan Dahl d3de943eb1 Fix google-analytics on index.html 2009-11-04 00:18:05 +01:00
Ryan Dahl 726865af7b bump version 2009-11-03 13:48:02 +01:00
Ryan Dahl 3a70129a9c Add sys.memoryUsage() 2009-11-03 01:30:01 +01:00
Ryan Dahl f481183140 Add process.platform 2009-11-03 00:21:00 +01:00
Ryan Dahl f97d339ce7 Add requires to google example in docs. 2009-11-02 23:09:57 +01:00
Ryan Dahl 2e40a9e15f Add mediacoder's logo to website 2009-11-02 12:28:08 +01:00
Ryan Dahl cf652b82a3 Update webpage with new module api 2009-10-31 20:26:03 +01:00
Ryan Dahl f683867b98 module.name renamed to module.id for commonjs compat 2009-10-31 19:47:41 +01:00
Ryan Dahl f5c95c388c Fix search-replace errors in api.txt 2009-10-31 19:14:24 +01:00
Ryan Dahl 7a2e784ad7 Module refactor - almost CommonJS compatible now
API change summary:

  * require("/sys.js") becomes require("sys")

  * require("circle.js") becomes require("./circle")

  * process.path.join() becomes require("path").join()
2009-10-31 19:10:30 +01:00
Ryan Dahl 57890465bd A few more node->process changes 2009-10-30 05:49:23 +01:00
Ryan Dahl ad0a4cefb8 Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
2009-10-29 23:36:41 +01:00
Felix Geisendörfer 659954d842 The return of Promise.cancel() with some additional tests & docs 2009-10-29 11:24:08 +01:00
Ryan Dahl 7b2fdc098b Clean up posix module docs 2009-10-29 11:17:26 +01:00
Ryan Dahl c536728335 Move node.dns.* into /dns.js 2009-10-28 23:02:52 +01:00
Ryan Dahl 3d8b14e6f7 node.fs.* moved into "/posix.js"
use require("/posix.js") to access them.
2009-10-28 22:45:46 +01:00
Ryan Dahl eca2de73ed bump version 2009-10-28 16:36:44 +01:00
Ryan Dahl efe34f5023 Only allow a promise to fire once, remove promise.cancel()
promise.cancel() is due to return at some point.
2009-10-28 15:37:03 +01:00
Ryan Dahl 04e53cab90 Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
2009-10-25 22:51:57 +01:00
Ryan Dahl 5f82c4baf0 Improve webpage
- add google-analytics
- add example to front-page
2009-10-16 14:29:51 +02:00
Ryan Dahl 3456a16f71 Accept string representations of signals in node.kill and child.kill 2009-10-15 15:45:04 +02:00
Brandon Beacher 334d56d2be Added external interface for signal handlers.
Also process.pid and node.kill().
2009-10-15 14:40:52 +02:00
Tim Caswell d2f5094096 Fix the link to the new Contribute section 2009-10-14 14:21:30 +02:00
Felix Geisendörfer fd189c8a73 New section about contributing for the homepage 2009-10-13 19:55:34 +02:00
Felix Geisendörfer f09d0cd93c Documentation for Promise.timeout() and Promise.cancel() 2009-10-12 17:07:17 +02:00
Ryan Dahl d79b6e9f7f bump version 2009-10-09 18:15:16 +02:00
Ryan Dahl 335d9af71f Update docs to use sys.js and not so much mixin(). 2009-10-09 14:18:10 +02:00
Ryan Dahl 82465fc4b1 Do not use /bin/sh to create child processes.
Instead directly call execvp(). This change is needed for the
soon-to-be-added signal handlers because the /bin/sh parent process does not
pass all signals to it's children, particularly SIGUSR1 on Linux.

The parameters of createChildProcess had to be changed slightly.
utils.exec() also has a changed implementation. A bug involving quoted
arguments was knowingly introduced into utils.exec(). Will fix later.
2009-10-07 01:08:33 +02:00
Ryan Dahl d67288b643 Add __module to reference current node.Module object. 2009-10-05 21:01:30 +02:00
Ryan Dahl 3e9dd0e2e3 Remove include() from website. 2009-10-05 19:15:38 +02:00
Ryan Dahl 8185e1fd25 Remove include() add node.mixin()
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.

Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of

  var x = require("/x.js");
  var foo = x.foo;
  var bar = x.bar;

The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:

  node.mixin(require("/x.js"));

Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
2009-10-05 15:46:31 +02:00
Ryan Dahl 522909bcbf Parse queryString into req.uri.params 2009-10-05 14:52:26 +02:00
Ryan Dahl 4c51af882d Fix typo 2009-10-05 13:16:56 +02:00
Ryan Dahl e2b7902469 Don't use parseUri for HTTP server
The big parseUri RE was showing up often in profiles - this is simpler and
yields better performance by taking advantage of the C http parser.
2009-10-04 12:19:01 +02:00
Ryan Dahl 7b8842b619 Modify node_addon configure api 2009-10-04 11:50:53 +02:00
Ryan Dahl 5c9fe1fce1 Update addon documentation 2009-10-04 11:14:39 +02:00
Ryan Dahl bf0d278a45 Improve "make dist" remove generated doc from repo. 2009-10-03 22:48:33 +02:00
Felix Geisendörfer eeaa267cbe Documentation for Multipart parser
Also added multipart.parse as a convenience function
2009-10-03 18:06:24 +02:00
Ryan Dahl 763137e705 chat.tinyclouds.org -> chat.nodejs.org 2009-10-02 16:24:49 +02:00
Ryan Dahl 9c9d67eb6c bump version 2009-09-30 23:21:25 +02:00
Ryan Dahl a8c0211e73 Bugfix: require() and include() should work in callbacks.
Removing requireAsync and includeAsync from global scope for now as a
temporary fix.  Reported by Yuffster.
2009-09-29 19:28:54 +02:00
Ryan Dahl 1ae69a68a4 Clean up some text in documentation. 2009-09-29 18:06:36 +02:00
Ryan Dahl 4ba5b7e24b Add doc for node.compile() 2009-09-28 22:16:43 +02:00
Ryan Dahl e972add0ea Update module loading docs 2009-09-28 19:44:40 +02:00
Ryan Dahl 9f07a690c6 docs: Reference node.libraryPaths in helpers section. 2009-09-28 18:48:19 +02:00
Ryan Dahl 27738d8e60 Clean up some things in the repl, add docs. 2009-09-28 18:48:19 +02:00
Ryan Dahl 23c7f472d0 API: Move node.exit() to process.exit(). 2009-09-28 18:48:18 +02:00
Ryan Dahl 095470854b Move tcp library to /tcp.js 2009-09-28 18:48:18 +02:00
Ryan Dahl f6657c3c9d Move http library to /http.js 2009-09-28 12:36:36 +02:00
Ryan Dahl 7abad8b7b3 API: Move node.puts(), node.exec() and others to /utils.js 2009-09-28 12:06:30 +02:00
Ryan Dahl 3e7f0deef9 Add docbook documentation 2009-09-27 12:52:28 +02:00
Ryan Dahl 4f69871c17 Add node.inspect() and deprecate p(). 2009-09-27 12:33:44 +02:00
Ryan Dahl 2f56ccb45e bump version 2009-09-24 13:51:10 +02:00
Ryan Dahl cfffa0bdd8 Clean up website a bit. 2009-09-24 13:44:25 +02:00