Ryan Dahl [Sat, 31 Jul 2010 21:32:59 +0000 (14:32 -0700)]
Upgrade http-parser for clang compat
Ryan Dahl [Fri, 30 Jul 2010 19:20:32 +0000 (12:20 -0700)]
[v8] Remove global.print from v8natives.js (fixes issue 791)
Review URL: http://codereview.chromium.org/
3045016
Ryan Dahl [Fri, 30 Jul 2010 17:54:43 +0000 (10:54 -0700)]
Fix style
Ben Noordhuis [Fri, 30 Jul 2010 12:01:03 +0000 (14:01 +0200)]
Buffer: graciously handle padding in base64-encoded input.
Ryan Dahl [Fri, 30 Jul 2010 16:42:36 +0000 (09:42 -0700)]
Fix email address in AUTHORS file
Ryan Dahl [Thu, 29 Jul 2010 21:48:07 +0000 (14:48 -0700)]
Fix ending \0 in base64 decoding
Ben Noordhuis [Wed, 28 Jul 2010 12:20:23 +0000 (14:20 +0200)]
Buffer: adjust buffer size so the base64-decoded input fits snugly.
Stops Valgrind from complaining about uninitialized memory access.
Ryan Dahl [Wed, 28 Jul 2010 03:36:58 +0000 (20:36 -0700)]
Fix --debug-brk; hacky solution
Ryan Dahl [Tue, 27 Jul 2010 19:19:08 +0000 (12:19 -0700)]
Add todos
Ryan Dahl [Tue, 27 Jul 2010 19:16:48 +0000 (12:16 -0700)]
Clarify string encoding docs
Ryan Dahl [Tue, 27 Jul 2010 17:58:45 +0000 (10:58 -0700)]
Globalize the Buffer object
Ryan Dahl [Tue, 27 Jul 2010 02:08:21 +0000 (19:08 -0700)]
Only one line break before stacktrace
Ryan Dahl [Tue, 27 Jul 2010 02:07:31 +0000 (19:07 -0700)]
Use kqueue on recent macintosh builds
Matt Ranney [Tue, 27 Jul 2010 01:38:49 +0000 (18:38 -0700)]
Check for socket on Unix domain connect.
Change scope to context in REPL docs.
Ryan Dahl [Mon, 26 Jul 2010 22:01:54 +0000 (15:01 -0700)]
Upgrade http-parser
support for
- long messages
- spaces in header fields
Ryan Dahl [Mon, 26 Jul 2010 21:26:42 +0000 (14:26 -0700)]
Upgrade V8 to 2.3.3
Benjamin Kramer [Sat, 24 Jul 2010 13:29:11 +0000 (15:29 +0200)]
Constify read-only global data
Also silences a compiler warning about deprecated conversion from const
char* to char*.
Benjamin Kramer [Fri, 23 Jul 2010 20:20:18 +0000 (22:20 +0200)]
Add missing parentheses
& has higher precedence than ==, making this a noop. Use the less
error-prone S_IS* macros instead. Found by clang.
Benjamin Kramer [Sat, 17 Jul 2010 15:45:47 +0000 (17:45 +0200)]
Fix addrlen for unix_dgram sockets
The old definition was off by one byte on BSD. Also simplify
ADDRESS_TO_JS because sun_path is always zero-terminated now.
Ryan Dahl [Mon, 26 Jul 2010 19:42:59 +0000 (12:42 -0700)]
Add write() callback TODO item
Chandra Sekar S [Mon, 26 Jul 2010 06:38:37 +0000 (12:08 +0530)]
Support for HOME and END in REPL.
Ryan Dahl [Mon, 26 Jul 2010 17:35:45 +0000 (10:35 -0700)]
Fix DNS example in docs
Ryan Dahl [Mon, 26 Jul 2010 06:39:58 +0000 (23:39 -0700)]
bump version
Ryan Dahl [Mon, 26 Jul 2010 06:21:39 +0000 (23:21 -0700)]
Add reference to base64 encoding
Dmitry Baranovskiy [Thu, 22 Jul 2010 11:51:26 +0000 (21:51 +1000)]
Added ability to pass offset to buffer write and toString methods as a string, i.e. '2' and encoding as anything
Dmitry Baranovskiy [Thu, 22 Jul 2010 11:26:55 +0000 (21:26 +1000)]
Fixed format, so it wouldn’t blow up if %d argument is null or undefined + ensure that numbers will be numbers
Ryan Dahl [Fri, 23 Jul 2010 23:36:47 +0000 (16:36 -0700)]
Implement buffer.write for base64
There might be an off-by-one on the returned value.
Ryan Dahl [Fri, 23 Jul 2010 20:52:44 +0000 (13:52 -0700)]
Implement buffer.toString('base64')
Ryan Dahl [Fri, 23 Jul 2010 19:14:51 +0000 (12:14 -0700)]
Fix case in docs
isaacs [Fri, 23 Jul 2010 07:41:28 +0000 (00:41 -0700)]
Fix dirname so that dirname('/a/b/') -> '/a', like sh's does.
Before there was this comment:
Can't strip trailing slashes since module.js incorrectly
thinks dirname('/a/b/') should yield '/a/b' instead of '/a'.
But now, such thinking is corrected.
Andrew Naylor [Fri, 23 Jul 2010 00:20:02 +0000 (01:20 +0100)]
Buffer for Cipher, Decipher, Hmac, Sign and Verify
Ryan Dahl [Wed, 21 Jul 2010 19:43:19 +0000 (12:43 -0700)]
Remove Werror from SConstruct
Ryan Dahl [Wed, 21 Jul 2010 19:31:43 +0000 (12:31 -0700)]
Upgrade V8 to 2.3.2
Ryan Dahl [Wed, 21 Jul 2010 18:44:47 +0000 (11:44 -0700)]
TODO items
Chandra Sekar S [Tue, 20 Jul 2010 12:46:27 +0000 (18:16 +0530)]
Support for reading byte ranges from files using fs.createReadStream.
Peter Griess [Tue, 20 Jul 2010 22:23:30 +0000 (17:23 -0500)]
Fix Buffer.toString() on 0-length slices.
- Buffer.toString('ascii', 0, 0) incorrectly returns the entire contents
of the buffer. Fix this.
- Provide similar behavior to Buffer.write() and Buffer.copy() when
dealing with 0-length in valid and invalid byte ranges.
Sam Shull [Tue, 20 Jul 2010 19:41:39 +0000 (12:41 -0700)]
Add parenthesis to NODE_VERSION_AT_LEAST
Robert Keizer [Tue, 20 Jul 2010 19:30:33 +0000 (14:30 -0500)]
Added process.binding('stdio').getRows()
isaacs [Tue, 20 Jul 2010 00:54:49 +0000 (17:54 -0700)]
Support including modules that don't have an extension.
This way, require("/foo") will work if there is a "foo.js", or a file named
simply "foo" with no extension.
Ryan Dahl [Tue, 20 Jul 2010 03:08:33 +0000 (20:08 -0700)]
Specify env differently in execFile
Callbacks should always be the last argument.
Brian [Mon, 19 Jul 2010 20:59:09 +0000 (16:59 -0400)]
Consistency changes in api docs
isaacs [Thu, 15 Jul 2010 17:41:40 +0000 (10:41 -0700)]
Cache modules based on filename rather than ID
This is ever so slightly less efficient than caching based on ID, since the
filename has to be looked up before we can check the cache. However, it's
the most minimal approach possible to get this change in place. Since
require() is a blocking startup-time operation anyway, a bit of slowness is
not a huge problem.
A test involving require.paths modification and absolute loading. Here's the
gist of it.
Files: /p1/foo.js /p2/foo.js
1. Add "/p1" to require.paths.
2. foo1 = require("foo")
3. assert foo1 === require("/p1/foo") (fail)
4. Remove /p1 from require.paths.
5. Add /p2 to require.paths.
6. foo2 = require("foo")
7. assert foo1 !== foo2 (fail)
8. assert foo2 === require("/p2/foo") (fail)
It's an edge case, but it affects how dependencies are mapped by npm.
If your module requires foo-1.2.3, and my module requires foo-2.3.4,
then you should expect to have require("foo") give you foo-1.2.3, and
I should expect require("foo") to give me foo-2.3.4. However, with
module ID based caching, if your code loads *first*, then your "foo"
is THE "foo", so I'll get your version instead of mine.
It hasn't yet been a problem, but only because there are so few
modules, and everyone pretty much uses the latest version all the
time. But as things start to get to the 1.x and 2.x versions, it'll
be an issue, I'm sure. Dependency hell isn't fun, so this is a way to
avoid it before it strikes.
Peter Griess [Mon, 19 Jul 2010 15:48:58 +0000 (10:48 -0500)]
Document setuid/setgid sync resolution capability.
Micheil Smith [Mon, 19 Jul 2010 08:55:11 +0000 (18:55 +1000)]
querystring: Removing typecasting of numeric strings to numbers
The tests did not accurately test for a strict equality, meaning that the
number == to the string.
Jan Kassens [Sun, 18 Jul 2010 19:09:13 +0000 (21:09 +0200)]
querystring.js: JSLint warnings fixed
Jan Kassens [Sat, 17 Jul 2010 11:20:20 +0000 (13:20 +0200)]
querystring doc fix
Jan Kassens [Sun, 18 Jul 2010 20:16:43 +0000 (22:16 +0200)]
querystring.stringify is now more solid
* handles NaN and Infinity
* works with arrays from other contexts
Ryan Dahl [Mon, 19 Jul 2010 17:35:59 +0000 (10:35 -0700)]
Add todo item
Ryan Dahl [Mon, 19 Jul 2010 17:32:56 +0000 (10:32 -0700)]
Fix for issue #214
Benjamin Fritsch [Mon, 19 Jul 2010 06:04:22 +0000 (08:04 +0200)]
added test for Issue #214
Ryan Dahl [Mon, 19 Jul 2010 17:16:20 +0000 (10:16 -0700)]
Fix style in readline
Jérémy Lal [Sun, 18 Jul 2010 23:12:27 +0000 (01:12 +0200)]
Support DEL in the REPL.
Ryan Dahl [Sun, 18 Jul 2010 06:26:58 +0000 (23:26 -0700)]
Apple's SUN_LEN is broken, override
Ryan Dahl [Sun, 18 Jul 2010 06:10:38 +0000 (23:10 -0700)]
Set SO_REUSEADDR on all sockets
Ryan Dahl [Sat, 17 Jul 2010 08:22:16 +0000 (01:22 -0700)]
Upgrade http-parser
Ryan Dahl [Sat, 17 Jul 2010 05:36:22 +0000 (22:36 -0700)]
Fix solaris build
Ryan Dahl [Sat, 17 Jul 2010 04:50:26 +0000 (21:50 -0700)]
bump version
Ryan Dahl [Sat, 17 Jul 2010 02:05:28 +0000 (19:05 -0700)]
fs.writeSync should return bytes written
Marco Rogers [Fri, 16 Jul 2010 06:36:35 +0000 (23:36 -0700)]
Fix console formatter to recognize json properly
Ryan Dahl [Fri, 16 Jul 2010 01:52:48 +0000 (18:52 -0700)]
Upgrade V8 to 2.3.0
Сергей Крыжановский [Fri, 9 Jul 2010 13:05:54 +0000 (17:05 +0400)]
added env to child_process.exec
Matt Ranney [Thu, 15 Jul 2010 21:36:21 +0000 (14:36 -0700)]
Fix unix dgram socket address resolution on Linux.
Ryan Dahl [Thu, 15 Jul 2010 21:37:03 +0000 (14:37 -0700)]
instanceof Buffer to Buffer.isBuffer()
Ryan Dahl [Thu, 15 Jul 2010 21:32:45 +0000 (14:32 -0700)]
More instanceof Array fixes
Ryan Dahl [Thu, 15 Jul 2010 18:32:51 +0000 (11:32 -0700)]
Update TODO
Ryan Dahl [Thu, 15 Jul 2010 21:14:05 +0000 (14:14 -0700)]
Fix test-executable-path.js
Now that process.version doesn't say if the build is debug or not.
Ryan Dahl [Thu, 15 Jul 2010 21:09:33 +0000 (14:09 -0700)]
Remove race conditions and simplify test-http-exceptions.js
Ryan Dahl [Thu, 15 Jul 2010 20:42:39 +0000 (13:42 -0700)]
Adjust tests for error reporting on JSON.parse(undefined)
The V8 upgrade changed the stacktrace reports (?)
Ryan Dahl [Thu, 15 Jul 2010 18:47:25 +0000 (11:47 -0700)]
Update tests to work with module contexts
Ryan Dahl [Thu, 15 Jul 2010 17:52:31 +0000 (10:52 -0700)]
Fix reference to root global context
Ryan Dahl [Thu, 15 Jul 2010 17:36:35 +0000 (10:36 -0700)]
Add TODO list
Ryan Dahl [Wed, 14 Jul 2010 21:29:28 +0000 (14:29 -0700)]
Use Array.isArray instead of instanceof
Ryan Dahl [Wed, 14 Jul 2010 21:22:58 +0000 (14:22 -0700)]
Add 'root' global variable as reference to sandbox
Ryan Dahl [Tue, 13 Jul 2010 23:40:54 +0000 (16:40 -0700)]
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
Matt Ranney [Mon, 5 Jul 2010 20:38:13 +0000 (13:38 -0700)]
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
Peter Griess [Thu, 15 Jul 2010 13:52:15 +0000 (08:52 -0500)]
Buffer.copy() should liberally allow empty copies.
Peter Griess [Wed, 14 Jul 2010 23:07:17 +0000 (18:07 -0500)]
Buffer('') should create a 0-length buffer
Ryan Dahl [Wed, 14 Jul 2010 18:16:20 +0000 (11:16 -0700)]
Upgrade V8 to 2.2.24
Paul Querna [Wed, 14 Jul 2010 07:17:21 +0000 (00:17 -0700)]
Move evals to extension module.
Paul Querna [Wed, 14 Jul 2010 07:10:38 +0000 (00:10 -0700)]
Move the Stat structure functions to node_file.cc
from node.cc, so we can convert fs to a module.
Paul Querna [Wed, 14 Jul 2010 06:58:15 +0000 (23:58 -0700)]
Move Buffer to extension model.
Paul Querna [Wed, 14 Jul 2010 06:55:15 +0000 (23:55 -0700)]
Move child process to extension model.
Paul Querna [Wed, 14 Jul 2010 06:51:08 +0000 (23:51 -0700)]
Move http parser to extension model.
Paul Querna [Wed, 14 Jul 2010 06:45:24 +0000 (23:45 -0700)]
Move signal_watcher to extension model.
Paul Querna [Wed, 14 Jul 2010 06:42:23 +0000 (23:42 -0700)]
Move cares to extension model
Paul Querna [Wed, 14 Jul 2010 06:38:49 +0000 (23:38 -0700)]
Move stdio to extension model.
Paul Querna [Wed, 14 Jul 2010 06:32:38 +0000 (23:32 -0700)]
Use the top level check for the bindings cache
(rather than each potential module having its own if check)
Paul Querna [Wed, 14 Jul 2010 06:22:41 +0000 (23:22 -0700)]
Register builtin extensions via a macro, rather than a manual strcmp
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
isaacs [Sat, 3 Jul 2010 04:38:06 +0000 (21:38 -0700)]
Use execPath for default NODE_PATH, not installPrefix
Jérémy Lal [Wed, 14 Jul 2010 12:10:17 +0000 (14:10 +0200)]
Update ronnjs (fix rendering of html self-closing tags)
Ryan Dahl [Wed, 14 Jul 2010 16:50:17 +0000 (09:50 -0700)]
Update README, remove ref to Ronn
Mikeal Rogers [Wed, 14 Jul 2010 00:17:05 +0000 (17:17 -0700)]
Adds "pause" and "resume" events to pump and it's readable argument.
David Siegel [Thu, 1 Jul 2010 18:19:54 +0000 (20:19 +0200)]
fix corner-case bug in Module
and added a test to expose it
Ryan Dahl [Tue, 13 Jul 2010 17:16:33 +0000 (10:16 -0700)]
JSON is %j not %f
Paul Querna [Tue, 13 Jul 2010 08:33:51 +0000 (01:33 -0700)]
Add support for the module structure to process.dlopen.
Paul Querna [Tue, 13 Jul 2010 07:22:33 +0000 (00:22 -0700)]
Add basic structure and macros for node modules.
Paul Querna [Tue, 13 Jul 2010 06:59:57 +0000 (23:59 -0700)]
Move node version to a single static header file.
Some compile time variables like the cflags and prefix have been moved to
the node_config.h.in, in the anticipation that they will be removed at
somepoint.
Peter Griess [Mon, 12 Jul 2010 22:05:06 +0000 (15:05 -0700)]
Free kbuf[] in Verify::VerifyFinal().
Peter Griess [Mon, 12 Jul 2010 22:04:15 +0000 (15:04 -0700)]
Coverity stack size warnings in DefineConstants().
rick [Tue, 29 Jun 2010 01:33:21 +0000 (18:33 -0700)]
use delete for removing events after removing the final listener