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
Ryan Dahl
55a2e8271e
Decrease default TCP backlog to 128
...
...after seeing http://lionet.livejournal.com/42016.html
2009-09-23 17:57:12 +02:00
Ryan Dahl
2d256f34c5
Change example at beginning of api.txt
2009-09-23 17:00:20 +02:00
Ryan Dahl
8c7babdf10
Syntax highlighting for <tt> elements.
2009-09-23 16:58:28 +02:00
Ryan Dahl
a3229ed7b7
Add documentation about requiring system modules.
2009-09-23 16:53:34 +02:00
Ryan Dahl
e0ec0036ca
Add connection.setNoDelay() to disable Nagle algorithm.
2009-09-23 15:36:34 +02:00
Felix Geisendörfer
be3dddeec9
Syntax highlighting for api.html.
...
Asciidoc does not seem to support including custom JS, so this patch is a hack
for toc.js to dynamically include the needed CSS / JS. It should be ok unless
somebody has a better approach ...
2009-09-23 11:25:31 +02:00
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
...
Deprecation warnings have been added to help the conversion to this new API.
2009-09-21 12:27:22 +02:00
Ryan Dahl
5ddc4f5d0c
bump version
2009-09-18 18:32:25 +02:00
Ryan Dahl
6f31a3763d
Add more explanation to docs for request.finish().
2009-09-17 15:15:05 +02:00
Ryan Dahl
9db2e5f375
Default to utf8 encoding for node.fs.cat()
2009-09-15 22:41:25 +02:00
Ryan Dahl
16185ae57e
update doc for node.fs.write()
2009-09-15 22:32:37 +02:00
Ryan Dahl
083d150bc4
Add node.exec()
2009-09-15 15:42:16 +02:00
Ryan Dahl
fdc136df69
Add documentation for promise.emitSuccess and emitError
2009-09-15 15:25:06 +02:00
Ryan Dahl
7fa694a3b6
fix typo on website
2009-09-14 22:44:25 +02:00
Ryan Dahl
0d1ec5fdbe
API: node.fs.read() takes a normal encoding parameter.
...
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings.
node.fs.read() now supports "raws" encoding.
2009-09-13 18:31:17 +02:00
Ryan Dahl
69e8a01c58
Fix broken asciidoc section
2009-09-12 19:14:16 +02:00
Ryan
dbe116ddfe
API: Change arguments of emit(), emitSuccess(), emitError()
...
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
2009-09-12 14:21:37 +02:00
Ryan
97355f3613
spell check api.txt
2009-09-11 21:27:20 +02:00
Ryan
12bb0d46ce
bump version
2009-09-11 21:06:50 +02:00
Ryan
5629fd574a
Add doc note about 'raws' encoding
2009-09-11 21:04:02 +02:00
Ryan
d03c7e38e9
Just add the gernerated doc files. Make life easier.
2009-09-11 20:51:39 +02:00
Ryan
d851bf9a66
Revert "Add xsl files to doc directory so people can build docs easily"
...
This reverts commit 412b4636c8
.
2009-09-11 20:47:45 +02:00
Ryan
412b4636c8
Add xsl files to doc directory so people can build docs easily
2009-09-11 20:34:55 +02:00
Ryan
241950c1df
Add isDirectory(), isFile(), isSocket(), ... methods to stats object.
...
Thanks to Felix Geisendörfer for the initial patch.
2009-09-11 13:41:47 +02:00
Ryan
dc39e82024
Add access to user environment via ENV
2009-09-10 14:07:35 +02:00
Ryan
68dda0a7d8
Man page generation.
2009-09-10 13:40:38 +02:00