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