Permalink
Commits on Jun 4, 2010
  1. Added a few simple features to process.EventEmitter:

    ryedin committed Jun 4, 2010
     - ability to wire listeners via constructor config like so:
        var e = new process.EventEmitter({
            on: {
                someEvent: function() { doSomething(); }
            }
        });
    
     - ability to specify a listener to only execute once:
        e.addListener("someEvent", listener, true);
        //or:
        e.once("someEvent", listener);
        //or:
        var e = new process.EventEmitter({
            once: {
                someEvent: listener
            }
        });
    
     - convenience aliases .on and .fire for methods .addListener and .emit respecitively
        I have an entire framework I'm porting that uses a .on/.fire API for events and if it's all the same to you I think adding these won't pose any issues whatsoever; just makes my life MUCH easier...
    
     - ability to suppress/unsuppress events (indefinitely or just one time)
       e.suppress("test");
       e.emit("test"); // no listeners for 'test' will execute
       e.emit("test"); // ditto
       e.unsuppress("test");
       e.emit("test"); // listeners for 'test' event fire normally again
    
       e.suppressOnce("test");
       e.emit("test"); // no listeners for 'test' will execute
       e.emit("test"); // listeners for 'test' event fire normally again
  2. Fix options parsing

    pgriess committed with ry Jun 4, 2010
    The current node has a bug where it will fail to pass the option argument
    immediately preceding the first non-option argument to V8. That is the
    --perf flag will be ignored by V8 when running 'node --perf script.js'.
  3. Apply fix for V8 bug 728

    ry committed Jun 4, 2010
  4. Use a less common port in docs

    ry committed Jun 4, 2010
Commits on Jun 3, 2010
  1. Fix: require.async module exception delegation

    felixge committed with ry Jun 3, 2010
    The fs.readFile bug was hiding another bug that was causing this test
    to pass, even so it was broken:
    
    require.async("../fixtures/throws_error1") in test-module-loading.js
    
    This patch fixes the original test by running _compile within a
    try..catch block for _loadScript.
    
    _loadScriptSync also had some useless (deprecated?) code for dealing
    with module entry point exceptions. This code was also removed for
    greater clarity.
  2. Fix: fs.readFile would execute callbacks twice

    felixge committed with ry Jun 3, 2010
    fs.readFile was executing a callback in a try..catch context, which is
    a problem in itself. To make matters worse, it would re-execute the
    same callback if there was an execution.
    
    This patch fixes both of these problems.
  3. Send and receive file descriptors through net.Stream.

    pgriess committed with ry Jun 3, 2010
    a) create a layer of indirection in net.Stream to allow swapping in
    different read/write implementations and
    
    b) emit an 'fd' event when file descriptors are received over a UNIX pipe,
    as finally as a tangential benefit
    
    c) remove a bunch of conditionals from the primary codepaths for
    ease-of-reading.
Commits on Jun 2, 2010
  1. Better 'make' output

    ry committed Jun 2, 2010
    Removes 'make all-debug' since it is unnecessary now.
  2. Add a parameter to spawn() that sets the child's stdio file descriptors.

    orlandov committed with ry Jun 1, 2010
    After the child is forked, these file descriptors will get dup2()'d to STDIN,
    STDIO, and STDERR.
    
    (API may be changed.)
  3. Revert "More dynmaic linking options"

    ry committed Jun 2, 2010
    Broke the build. Will fix and reapply soon.
    
    This reverts commit 75f0cf4.
  4. More dynmaic linking options

    ry committed Jun 2, 2010
    This adds the following options to the `configure` program
    
      --shared-v8           Link to a shared V8 DLL instead of static linking
      --shared-v8-includes=SHARED_V8_INCLUDES
                            Directory containing V8 header files
      --shared-v8-libpath=SHARED_V8_LIBPATH
                            A directory to search for the shared V8 DLL
      --shared-cares        Link to a shared C-Ares DLL instead of static linking
      --shared-cares-includes=SHARED_CARES_INCLUDES
                            Directory containing C-Ares header files
      --shared-cares-libpath=SHARED_CARES_LIBPATH
                            A directory to search for the shared C-Ares DLL
      --shared-libev        Link to a shared libev DLL instead of static linking
      --shared-libev-includes=SHARED_LIBEV_INCLUDES
                            Directory containing libev header files
      --shared-libev-libpath=SHARED_LIBEV_LIBPATH
                            A directory to search for the shared libev DLL
    
    and removes --system.
Commits on Jun 1, 2010
  1. Fix style in sys.js

    ry committed Jun 1, 2010
Commits on May 31, 2010
  1. Upgrade to V8 2.2.13

    ry committed May 31, 2010
Commits on May 30, 2010
  1. bump version

    ry committed May 30, 2010
  2. Remove throttling bug notes

    ry committed May 30, 2010
Commits on May 29, 2010
  1. API: readFileSync without encoding argument now returns a Buffer

    ry committed May 29, 2010
    Correctly load utf8 data; add a test test-fs-read-file-sync.js
  2. Deprecate the 'ini' module

    ry committed May 29, 2010
  3. Rename node_net2.cc to node_net.cc

    ry committed May 29, 2010
  4. Execute repl code in new context

    isaacs committed with ry May 10, 2010
  5. Use duck-typing as well as instanceof in sys.inspect

    isaacs committed with ry May 9, 2010
    This makes it so that inspecting objects from other contexts works as expected.
  6. addons should have debugging symbols

    ry committed May 29, 2010
Commits on May 28, 2010
  1. Check for a couple of edge cases on the inspect hook.

    creationix committed with ry May 28, 2010
    Don't treat sys.inspect special, same with prototype objects.
  2. Insert some hot paths into HTTP

    ry committed May 28, 2010
  3. Refactor HTTP

    ry committed May 27, 2010
    Allow throttling from outgoing messages.
  4. :%s/8000/PORT/g for a few tests

    ry committed May 27, 2010
Commits on May 27, 2010
  1. Bugfix: fs.ReadStream.setEncoding

    ry committed May 27, 2010
    Improve test-fs-read-stream test.
  2. Fix Solaris V8 build

    ry committed May 27, 2010
Commits on May 26, 2010
  1. Adding experimental support for fs.chown and fs.chownSync.

    miksago committed with ry May 26, 2010
    Notes:
    - Currently only accepts numeric user and group ids.
    - No tests, as tests depend on getpwuid and getgrgid.
    - No documentation, as there is no tests and this is experimental.
  2. Simplify a few internal HTTP events.

    ry committed May 26, 2010