Ryan Dahl
c2e58c9dee
Remove a few wait() calls in the tests
15 years ago
Ryan Dahl
0314a10e10
Clean up and rename test-stat-handler
15 years ago
Ryan Dahl
92292c8394
Rename a few remaining fs.cat calls.
15 years ago
Ryan Dahl
5013bf1781
API: OutgoingMessage.prototype.finish() renamed to close()
15 years ago
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
15 years ago
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'
15 years ago
isaacs
46a47d2799
Add some puts() to test-multipart.js to show what it's doing.
15 years ago
Ryan Dahl
23cf502db7
API: connection.send() renamed to connection.write()
15 years ago
Jonas Pfenniger
80ace36e4c
Added failing test: promise.wait() after promise.emitXXX()
15 years ago
Yuichiro MASUI
1793ee1c80
Fixed: promise late chain
15 years ago
Mark Hansen
98e61db216
sys.inspect(Date) now shows the date value
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Ryan Dahl
bc17d94a0a
API: tcp events 'receive' to 'data', 'eof' to 'end'
No deprecation messages. Not sure how...
15 years ago
Felix Geisendörfer
211e82e8d9
Simple test case for require.async()
This is to make sure this doesn't break after implementing the new
truly sync require() function.
15 years ago
Felix Geisendörfer
6c94b8e4e4
Implemented posix.catSync()
15 years ago
Ryan Dahl
1b42276851
Small clean up to test-timers.js
15 years ago
Felix Geisendörfer
b02b54e003
Fix: Module cache did not propagate
This patch makes sure nested modules are available in their parents
cache. The module simplification broke this behavior.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/e875132469547d2
b73f61a137
15 years ago
Michael Stillwell
9f6f19df1b
Add test: modifying event listeners during callback.
15 years ago
Tim Caswell
e33c66654a
Rewrite sys.inspect to be more reliable and handle crazy edge cases.
15 years ago
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.
15 years ago
Ryan Dahl
ae1fc497bb
Fix stdout flush issue
http://github.com/ry/node/issues#issue/53
15 years ago
Ryan Dahl
a695065305
Add failing test for stdout flush on exit
15 years ago
Ryan Dahl
fe85062046
Bugfix: blocked pumping in stdio coupling
This should fix the test in c05b5d8
by Mikeal Rogers.
15 years ago
Mikeal Rogers
c05b5d8b59
Adding test for bug in stdio.
http://groups.google.com/group/nodejs/browse_thread/thread/10fda8eaf7276642/e5d5147f2b666abd
15 years ago
Felix Geisendörfer
b73f61a137
Simplified module system
createModule got removed as it was unnecessary and caused issues by
doing its own cache checks independent of loadModule. Internal modules
are now the only globally cached modules, all other modules are only
cached by inheriting their parent modules cache.
Credits: Module specific cache and a few other diffs by Blaine Cook
431662d25c
http://romeda.org/blog/2010/01/hot-code-loading-in-nodejs.html
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/1994
15 years ago
Ryan Dahl
173a8c9842
Disable dns and fs-sendfile tests.
15 years ago
Ryan Dahl
33509bdbe5
eof -> end
15 years ago
Felix Geisendörfer
ac2abe5b1e
Bugfix: Handle Content-Type headers with charset
Some HTTP clients include a charset parameter in the Content-Type, e.g:
multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY
This patch makes the multipart parser more forgiving towards unexpected
information included in the Content-Type header.
15 years ago
Ryan Dahl
785531691b
Add buffer.unpack
15 years ago
Ryan Dahl
4347906b7f
Fix require() in test-buffer.js
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
30b0522157
Bugfix: HTTP client automatically reconnecting
Test case by tlynn.
15 years ago
Blaine Cook
cd6397cc45
Add support for MX, TXT, and SRV records in DNS module.
15 years ago
Felix Geisendörfer
c86c614cac
Bug Fix: Late promise promise callbacks firing
Late promise bindings would fire regardless of the outcome of the
promise.
Test case by: Jonas "zimbatm" Pfenniger <jonas@pfenniger.name>
15 years ago
Ryan Dahl
dda1d681f7
Provide buffer in HTTPParser callbacks.
15 years ago
Ryan Dahl
42ee16978e
Implement new http-parser binding using Buffer
15 years ago
David Sklar
6f738d6e7a
Adjust passing-FDs test to wait until socket is really writeable
15 years ago
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.
15 years ago
Ryan Dahl
faefb3f5a4
test-http-eof-on-connect missing require('./common')
15 years ago
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.
15 years ago
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.
15 years ago
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.
15 years ago
Micheil Smith
6e3d12f617
Allow optional params to setTimeout, setInterval
15 years ago
Ryan Dahl
8abeffa9ea
Add process.nextTick()
This is a replacement for the common hack:
setTimeout(cb, 0);
It's much more efficient.
15 years ago
Ryan Dahl
aeb7d6d168
Add process.IdleWatcher
With priorities. Will be used for process.nextLoop().
15 years ago
Ryan Dahl
70293a43c9
API: Move Promise and EventEmitter into 'events' module
15 years ago
Ben Williamson
a3631a383b
Added regression test for issue #44
15 years ago
David Sklar
a876df6c71
Initial take on passing FDs between processes
15 years ago
isaacs
988174a629
Add tests for path module.
15 years ago
Ryan Dahl
53413598b6
Fix another problem with the EIO interface
Should call eio_poll() when given a done_poll signal as well.
Bug report and test case by Kris Zyp <kriszyp@gmail.com>
15 years ago