Large diffs are not rendered by default.

@@ -5,41 +5,41 @@ status: publish
category: Uncategorized
slug: libuv-status-report

We <a href="http://blog.nodejs.org/2011/06/23/porting-node-to-windows-with-microsoft%E2%80%99s-help/">announced</a> back in July that with Microsoft's support Joyent would be porting Node to Windows. This effort is ongoing but I thought it would be nice to make a status report post about the new platform library <code><a href="https://github.com/joyent/libuv">libuv</a></code> which has resulted from porting Node to Windows.

<code>libuv</code>'s purpose is to abstract platform-dependent code in Node into one place where it can be tested for correctness and performance before bindings to V8 are added. Since Node is totally non-blocking, <code>libuv</code> turns out to be a rather useful library itself: a BSD-licensed, minimal, high-performance, cross-platform networking library.

We attempt to not reinvent the wheel where possible. The entire Unix backend sits heavily on Marc Lehmann's beautiful libraries <a href="http://software.schmorp.de/pkg/libev.html">libev</a> and <a href="http://software.schmorp.de/pkg/libeio.html">libeio</a>. For DNS we integrated with Daniel Stenberg's <a href="http://c-ares.haxx.se/">C-Ares</a>. For cross-platform build-system support we're relying on Chrome's <a href="http://code.google.com/p/gyp/">GYP</a> meta-build system.

The current implmented features are:
<ul>
<li>Non-blocking TCP sockets (using IOCP on Windows)</li>
<li>Non-blocking named pipes</li>
<li>UDP</li>
<li>Timers</li>
<li>Child process spawning</li>
<li>Asynchronous DNS via <a href="http://c-ares.haxx.se/">c-ares</a> or <code>uv_getaddrinfo</code>.</li>
<li>Asynchronous file system APIs <code>uv_fs_*</code></li>
<li>High resolution time <code>uv_hrtime</code></li>
<li>Current executable path look up <code>uv_exepath</code></li>
<li>Thread pool scheduling <code>uv_queue_work</code></li>
</ul>
The features we are working on still are
<ul>
<li>File system events (Currently supports inotify, <code>ReadDirectoryChangesW</code> and will support kqueue and event ports in the near future.) <code>uv_fs_event_t</code></li>
<li>VT100 TTY <code>uv_tty_t</code></li>
<li>Socket sharing between processes <code>uv_ipc_t (<a href="https://gist.github.com/1233593">planned API</a>)</code></li>
</ul>
For complete documentation see the header file: <a href="https://github.com/joyent/libuv/blob/03d0c57ea216abd611286ff1e58d4e344a459f76/include/uv.h">include/uv.h</a>. There are a number of tests in <a href="https://github.com/joyent/libuv/tree/3ca382be741ec6ce6a001f0db04d6375af8cd642/test">the test directory</a> which demonstrate the API.

<code>libuv</code> supports Microsoft Windows operating systems since Windows XP SP2. It can be built with either Visual Studio or MinGW. Solaris 121 and later using GCC toolchain. Linux 2.6 or better using the GCC toolchain. Macinotsh Darwin using the GCC or XCode toolchain. It is known to work on the BSDs but we do not check the build regularly.

In addition to Node v0.5, a number of projects have begun to use <code>libuv</code>:
<ul>
<li>Mozilla's <a href="https://github.com/graydon/rust">Rust</a></li>
<li>Tim Caswell's <a href="https://github.com/creationix/luanode">LuaNode</a></li>
<li>Ben Noordhuis and Bert Belder's <a href="https://github.com/bnoordhuis/phode">Phode</a> async PHP project</li>
<li>Kerry Snyder's <a href="https://github.com/kersny/libuv-csharp">libuv-csharp</a></li>
<li>Andrea Lattuada's <a href="https://gist.github.com/1195428">web server</a></li>
</ul>
We <a href="http://blog.nodejs.org/2011/06/23/porting-node-to-windows-with-microsoft%E2%80%99s-help/">announced</a> back in July that with Microsoft's support Joyent would be porting Node to Windows. This effort is ongoing but I thought it would be nice to make a status report post about the new platform library <code><a href="https://github.com/joyent/libuv">libuv</a></code> which has resulted from porting Node to Windows.

<code>libuv</code>'s purpose is to abstract platform-dependent code in Node into one place where it can be tested for correctness and performance before bindings to V8 are added. Since Node is totally non-blocking, <code>libuv</code> turns out to be a rather useful library itself: a BSD-licensed, minimal, high-performance, cross-platform networking library.

We attempt to not reinvent the wheel where possible. The entire Unix backend sits heavily on Marc Lehmann's beautiful libraries <a href="http://software.schmorp.de/pkg/libev.html">libev</a> and <a href="http://software.schmorp.de/pkg/libeio.html">libeio</a>. For DNS we integrated with Daniel Stenberg's <a href="http://c-ares.haxx.se/">C-Ares</a>. For cross-platform build-system support we're relying on Chrome's <a href="http://code.google.com/p/gyp/">GYP</a> meta-build system.

The current implmented features are:
<ul>
<li>Non-blocking TCP sockets (using IOCP on Windows)</li>
<li>Non-blocking named pipes</li>
<li>UDP</li>
<li>Timers</li>
<li>Child process spawning</li>
<li>Asynchronous DNS via <a href="http://c-ares.haxx.se/">c-ares</a> or <code>uv_getaddrinfo</code>.</li>
<li>Asynchronous file system APIs <code>uv_fs_*</code></li>
<li>High resolution time <code>uv_hrtime</code></li>
<li>Current executable path look up <code>uv_exepath</code></li>
<li>Thread pool scheduling <code>uv_queue_work</code></li>
</ul>
The features we are working on still are
<ul>
<li>File system events (Currently supports inotify, <code>ReadDirectoryChangesW</code> and will support kqueue and event ports in the near future.) <code>uv_fs_event_t</code></li>
<li>VT100 TTY <code>uv_tty_t</code></li>
<li>Socket sharing between processes <code>uv_ipc_t (<a href="https://gist.github.com/1233593">planned API</a>)</code></li>
</ul>
For complete documentation see the header file: <a href="https://github.com/joyent/libuv/blob/03d0c57ea216abd611286ff1e58d4e344a459f76/include/uv.h">include/uv.h</a>. There are a number of tests in <a href="https://github.com/joyent/libuv/tree/3ca382be741ec6ce6a001f0db04d6375af8cd642/test">the test directory</a> which demonstrate the API.

<code>libuv</code> supports Microsoft Windows operating systems since Windows XP SP2. It can be built with either Visual Studio or MinGW. Solaris 121 and later using GCC toolchain. Linux 2.6 or better using the GCC toolchain. Macinotsh Darwin using the GCC or XCode toolchain. It is known to work on the BSDs but we do not check the build regularly.

In addition to Node v0.5, a number of projects have begun to use <code>libuv</code>:
<ul>
<li>Mozilla's <a href="https://github.com/graydon/rust">Rust</a></li>
<li>Tim Caswell's <a href="https://github.com/creationix/luanode">LuaNode</a></li>
<li>Ben Noordhuis and Bert Belder's <a href="https://github.com/bnoordhuis/phode">Phode</a> async PHP project</li>
<li>Kerry Snyder's <a href="https://github.com/kersny/libuv-csharp">libuv-csharp</a></li>
<li>Andrea Lattuada's <a href="https://gist.github.com/1195428">web server</a></li>
</ul>
We hope to see more people contributing and using <code>libuv</code> in the future!
@@ -5,7 +5,7 @@ status: publish
category: Uncategorized
slug: node-meetup-this-thursday

<a href="http://nodejs.org/meetup/" title="http://nodejs.org/meetup/ ">http://nodejs.org/meetup/</a>
<a href="http://nodemeetup.eventbrite.com/">http://nodemeetup.eventbrite.com/</a>

<a href="http://nodejs.org/meetup/" title="http://nodejs.org/meetup/ ">http://nodejs.org/meetup/</a>
<a href="http://nodemeetup.eventbrite.com/">http://nodemeetup.eventbrite.com/</a>

Three companies will describe their distributed Node applications. Sign up soon, space is limited!
@@ -5,8 +5,8 @@ status: publish
category: Uncategorized
slug: node-office-hours-cut-short

This week office hours are only from 4pm to 6pm. Isaac will be in the Joyent office in SF - everyone else is out of town. Sign up at http://nodeworkup.eventbrite.com/ if you would like to come.

The week after, Thursday May 5th, we will all be at NodeConf in Portland.

This week office hours are only from 4pm to 6pm. Isaac will be in the Joyent office in SF - everyone else is out of town. Sign up at http://nodeworkup.eventbrite.com/ if you would like to come.

The week after, Thursday May 5th, we will all be at NodeConf in Portland.

Normal office hours resume Thursday May 12th.
@@ -5,8 +5,8 @@ status: publish
category: Uncategorized
slug: office-hours

Starting next Thursday Isaac, Tom, and I will be holding weekly office hours at <a href="http://maps.google.com/maps?q=345+California+St,+San+Francisco,+CA+94104&amp;layer=c&amp;sll=37.793040,-122.400491&amp;cbp=13,178.31,,0,-60.77&amp;cbll=37.793131,-122.400484&amp;hl=en&amp;sspn=0.006295,0.006295&amp;ie=UTF8&amp;hq=&amp;hnear=345+California+St,+San+Francisco,+California+94104&amp;ll=37.793131,-122.400484&amp;spn=0.001295,0.003428&amp;z=19&amp;panoid=h0dlz3VG-hMKlzOu0LxMIg">Joyent HQ</a> in San Francisco. Office hours are meant to be subdued working time - there are no talks and no alcohol. Bring your bugs or just come and hack with us.

Our building requires that everyone attending be on a list so you must sign up at <a href="http://nodeworkup01.eventbrite.com/">Event Brite</a>.

Starting next Thursday Isaac, Tom, and I will be holding weekly office hours at <a href="http://maps.google.com/maps?q=345+California+St,+San+Francisco,+CA+94104&amp;layer=c&amp;sll=37.793040,-122.400491&amp;cbp=13,178.31,,0,-60.77&amp;cbll=37.793131,-122.400484&amp;hl=en&amp;sspn=0.006295,0.006295&amp;ie=UTF8&amp;hq=&amp;hnear=345+California+St,+San+Francisco,+California+94104&amp;ll=37.793131,-122.400484&amp;spn=0.001295,0.003428&amp;z=19&amp;panoid=h0dlz3VG-hMKlzOu0LxMIg">Joyent HQ</a> in San Francisco. Office hours are meant to be subdued working time - there are no talks and no alcohol. Bring your bugs or just come and hack with us.

Our building requires that everyone attending be on a list so you must sign up at <a href="http://nodeworkup01.eventbrite.com/">Event Brite</a>.

We start at 4p and end promptly at 8p.
@@ -5,8 +5,8 @@ status: publish
category: Uncategorized
slug: porting-node-to-windows-with-microsoft%e2%80%99s-help

I'm pleased to announce that Microsoft is partnering with Joyent in formally contributing resources towards porting Node to Windows. As you may have heard in <a href="http://nodejs.org/nodeconf.pdf" title="a talk">a talk</a> we gave earlier this year, we have started the undertaking of a native port to Windows - targeting the high-performance IOCP API.

This requires a rather large modification of the core structure, and we're very happy to have official guidance and engineering resources from Microsoft. <a href="https://www.cloudkick.com/">Rackspace</a> is also contributing <a href="https://github.com/piscisaureus">Bert Belder</a>'s time to this undertaking.

I'm pleased to announce that Microsoft is partnering with Joyent in formally contributing resources towards porting Node to Windows. As you may have heard in <a href="http://nodejs.org/nodeconf.pdf" title="a talk">a talk</a> we gave earlier this year, we have started the undertaking of a native port to Windows - targeting the high-performance IOCP API.

This requires a rather large modification of the core structure, and we're very happy to have official guidance and engineering resources from Microsoft. <a href="https://www.cloudkick.com/">Rackspace</a> is also contributing <a href="https://github.com/piscisaureus">Bert Belder</a>'s time to this undertaking.

The result will be an official binary node.exe releases on nodejs.org, which will work on Windows Azure and other Windows versions as far back as Server 2003.
@@ -5,9 +5,9 @@ status: publish
category: Uncategorized
slug: some-new-node-projects

<ul>
<li>Superfeedr released <a href="http://blog.superfeedr.com/node-xmpp-server/">a Node XMPP Server</a>. "<i>Since <a href="http://spaceboyz.net/~astro/">astro</a> had been doing an <strong>amazing work</strong> with his <a href="https://github.com/astro/node-xmpp">node-xmpp</a> library to build <em>Client</em>, <em>Components</em> and even <em>Server to server</em> modules, the logical next step was to try to build a <em>Client to Server</em> module so that we could have a full blown server. That&#8217;s what we worked on the past couple days, and <a href="https://github.com/superfeedr/node-xmpp">it&#8217;s now on Github</a>!</i></li>

<li>Joyent's Mark Cavage released <a href="http://ldapjs.org/">LDAP.js</a>. "<i>ldapjs is a pure JavaScript, from-scratch framework for implementing <a href="http://tools.ietf.org/html/rfc4510">LDAP</a> clients and servers in <a href="http://nodejs.org">Node.js</a>. It is intended for developers used to interacting with HTTP services in node and <a href="http://expressjs.com">express</a>.</i></li>

<ul>
<li>Superfeedr released <a href="http://blog.superfeedr.com/node-xmpp-server/">a Node XMPP Server</a>. "<i>Since <a href="http://spaceboyz.net/~astro/">astro</a> had been doing an <strong>amazing work</strong> with his <a href="https://github.com/astro/node-xmpp">node-xmpp</a> library to build <em>Client</em>, <em>Components</em> and even <em>Server to server</em> modules, the logical next step was to try to build a <em>Client to Server</em> module so that we could have a full blown server. That&#8217;s what we worked on the past couple days, and <a href="https://github.com/superfeedr/node-xmpp">it&#8217;s now on Github</a>!</i></li>

<li>Joyent's Mark Cavage released <a href="http://ldapjs.org/">LDAP.js</a>. "<i>ldapjs is a pure JavaScript, from-scratch framework for implementing <a href="http://tools.ietf.org/html/rfc4510">LDAP</a> clients and servers in <a href="http://nodejs.org">Node.js</a>. It is intended for developers used to interacting with HTTP services in node and <a href="http://expressjs.com">express</a>.</i></li>

<li>Microsoft's Tomasz Janczuk released <a href="http://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html">iisnode</a> "<i>The <a href="https://github.com/tjanczuk/iisnode">iisnode</a> project provides a native IIS 7.x module that allows hosting of node.js applications in IIS.</i><br /><br />Scott Hanselman posted <a href="http://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx">a detailed walkthrough</a> of how to get started with iisnode
@@ -5,6 +5,6 @@ status: publish
category: Uncategorized
slug: the-videos-from-node-meetup

Uber, Voxer, and Joyent described how they use Node in production

Uber, Voxer, and Joyent described how they use Node in production

<a href="http://joyeur.com/2011/08/11/node-js-meetup-distributed-web-architectures/">http://joyeur.com/2011/08/11/node-js-meetup-distributed-web-architectures/</a>
@@ -5,13 +5,13 @@ status: publish
category: Uncategorized
slug: trademark

One of the things Joyent accepted when we took on the Node project was to provide resources to help the community grow. The Node project is amazing because of the expertize, dedication and hard work of the community. However in all communities there is the possibility of people acting inappropriately. We decided to introduce trademarks on the “Node.js” and the “Node logo” in order to ensure that people or organisations who are not investing in the Node community misrepresent, or create confusion about the role of themselves or their products with Node.

We are big fans of the people who have contributed to Node and we have worked hard to make sure that existing members of the community will be unaffected by this change. For most people they don’t have to do anything they are free to use the Node.js marks in their free open source projects (see guidelines). For others we’ve already granted them licenses to use Node.js marks in their domain names and their businesses. We value all of these contributions to the Node community and hope that we can continue to protect their good names and hard work.

Where does our trademark policy come from? We started by looking at popular open source foundations like the Apache Software Foundation and Linux. By strongly basing our policy on the one used by the Apache Software Foundation we feel that we’ve created a policy which is liberal enough to allow the open source community to easily make use of the mark in the context of free open source software, but secure enough to protect the community’s work from being misrepresented by other organisations.

While we realise that any changes involving lawyers can be intimidating to the community we want to make this transition as smoothly as possible and welcome your questions and feedback on the policy and how we are implementing it.

<a href="http://nodejs.org/trademark-policy.pdf">http://nodejs.org/trademark-policy.pdf</a>
One of the things Joyent accepted when we took on the Node project was to provide resources to help the community grow. The Node project is amazing because of the expertize, dedication and hard work of the community. However in all communities there is the possibility of people acting inappropriately. We decided to introduce trademarks on the “Node.js” and the “Node logo” in order to ensure that people or organisations who are not investing in the Node community misrepresent, or create confusion about the role of themselves or their products with Node.

We are big fans of the people who have contributed to Node and we have worked hard to make sure that existing members of the community will be unaffected by this change. For most people they don’t have to do anything they are free to use the Node.js marks in their free open source projects (see guidelines). For others we’ve already granted them licenses to use Node.js marks in their domain names and their businesses. We value all of these contributions to the Node community and hope that we can continue to protect their good names and hard work.

Where does our trademark policy come from? We started by looking at popular open source foundations like the Apache Software Foundation and Linux. By strongly basing our policy on the one used by the Apache Software Foundation we feel that we’ve created a policy which is liberal enough to allow the open source community to easily make use of the mark in the context of free open source software, but secure enough to protect the community’s work from being misrepresented by other organisations.

While we realise that any changes involving lawyers can be intimidating to the community we want to make this transition as smoothly as possible and welcome your questions and feedback on the policy and how we are implementing it.

<a href="http://nodejs.org/trademark-policy.pdf">http://nodejs.org/trademark-policy.pdf</a>
trademark@joyent.com
@@ -5,8 +5,8 @@ status: publish
category: Uncategorized
slug: version-0-6

Version 0.6.0 will be released next week. Please spend some time this week upgrading your code to v0.5.10. Report any API differences at <a href="https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6">https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6</a> or report a bug to us at <a href="http://github.com/joyent/node/issues">http://github.com/joyent/node/issues</a> if you hit problems.

The API changes between v0.4.12 and v0.5.10 are 99% cosmetic, minor, and easy to fix. Most people are able to migrate their code in 10 minutes. Don't fear.

Version 0.6.0 will be released next week. Please spend some time this week upgrading your code to v0.5.10. Report any API differences at <a href="https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6">https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6</a> or report a bug to us at <a href="http://github.com/joyent/node/issues">http://github.com/joyent/node/issues</a> if you hit problems.

The API changes between v0.4.12 and v0.5.10 are 99% cosmetic, minor, and easy to fix. Most people are able to migrate their code in 10 minutes. Don't fear.

Once you've ported your code to v0.5.10 please help out by testing third party modules. Make bug reports. Encourage authors to publish new versions of their modules. Go through the list of modules at <a href="http://search.npmjs.org/">http://search.npmjs.org/</a> and try out random ones. This is especially encouraged of Windows users!
@@ -5,85 +5,85 @@ status: publish
category: module
slug: multi-server-continuous-deployment-with-fleet

<p><img style="float:right;margin-left:1.2em;" alt="substack" src="http://substack.net/images/substackistan.png"><i>This is a guest post by James "SubStack" Halliday, originally posted <a href="http://substack.net/posts/16a9d8/multi-server-continuous-deployment-with-fleet">on his blog</a>, and reposted here with permission.</i></p>

<p>Writing applications as a sequence of tiny services that all talk to each other over the network has many upsides, but it can be annoyingly tedious to get all the subsystems up and running. </p>

<p>Running a <a href="http://substack.net/posts/7a1c42">seaport</a> can help with getting all the services to talk to each other, but running the processes is another matter, especially when you have new code to push into production. </p>

<p><a href="http://github.com/substack/fleet">fleet</a> aims to make it really easy for anyone on your team to push new code from git to an armada of servers and manage all the processes in your stack. </p>

<p>To start using fleet, just install the fleet command with <a href="http://npmjs.org">npm</a>: </p>

<pre style="">npm install -g fleet </pre>

<p>Then on one of your servers, start a fleet hub. From a fresh directory, give it a passphrase and a port to listen on: </p>

<pre style="">fleet hub --port=7000 --secret=beepboop </pre>

<p>Now fleet is listening on :7000 for commands and has started a git server on :7001 over http. There's no ssh keys or post commit hooks to configure, just run that command and you're ready to go! </p>

<p>Next set up some worker drones to run your processes. You can have as many workers as you like on a single server but each worker should be run from a separate directory. Just do: </p>

<pre style="">fleet drone --hub=x.x.x.x:7000 --secret=beepboop </pre>

<p>where <span class="code">x.x.x.x</span> is the address where the fleet hub is running. Spin up a few of these drones. </p>

<p>Now navigate to the directory of the app you want to deploy. First set a remote so you don't need to type <span class="code">--hub</span> and <span class="code">--secret</span> all the time. </p>

<pre style="">fleet remote add default --hub=x.x.x.x:7000 --secret=beepboop </pre>

<p>Fleet just created a <span class="code">fleet.json</span> file for you to save your settings. </p>

<p>From the same app directory, to deploy your code just do: </p>

<pre style="">fleet deploy </pre>

<p>The deploy command does a <span class="code">git push</span> to the fleet hub's git http server and then the hub instructs all the drones to pull from it. Your code gets checked out into a new directory on all the fleet drones every time you deploy. </p>

<p>Because fleet is designed specifically for managing applications with lots of tiny services, the deploy command isn't tied to running any processes. Starting processes is up to the programmer but it's super simple. Just use the <span class="code">fleet spawn</span> command: </p>

<pre style="">fleet spawn -- node server.js 8080 </pre>

<p>By default fleet picks a drone at random to run the process on. You can specify which drone you want to run a particular process on with the <span class="code">--drone</span> switch if it matters. </p>

<p>Start a few processes across all your worker drones and then show what is running with the <span class="code">fleet ps</span> command: </p>

<pre style="">fleet ps
drone#3dfe17b8
├─┬ pid#1e99f4
│ ├── status: running
│ ├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
│ └── command: node server.js 8888
└─┬ pid#d7048a
├── status: running
├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
└── command: node server.js 8889</pre>

<p>Now suppose that you have new code to push out into production. By default, fleet lets you spin up new services without disturbing your existing services. If you <span class="code">fleet deploy</span> again after checking in some new changes to git, the next time you <span class="code">fleet spawn</span> a new process, that process will be spun up in a completely new directory based on the git commit hash. To stop a process, just use <span class="code">fleet stop</span>. </p>

<p>This approach lets you verify that the new services work before bringing down the old services. You can even start experimenting with heterogeneous and incremental deployment by hooking into a custom <a href="http://substack.net/posts/5bd18d">http proxy</a>! </p>

<p>Even better, if you use a service registry like <a href="http://substack.net/posts/7a1c42">seaport</a> for managing the host/port tables, you can spin up new ad-hoc staging clusters all the time without disrupting the normal operation of your site before rolling out new code to users. </p>

<p>Fleet has many more commands that you can learn about with its git-style manpage-based help system! Just do <span class="code">fleet help</span> to get a list of all the commands you can run. </p>

<pre style="">fleet help
Usage: fleet &lt;command&gt; [&lt;args&gt;]

The commands are:
deploy Push code to drones.
drone Connect to a hub as a worker.
exec Run commands on drones.
hub Create a hub for drones to connect.
monitor Show service events system-wide.
ps List the running processes on the drones.
remote Manage the set of remote hubs.
spawn Run services on drones.
stop Stop processes running on drones.

For help about a command, try `fleet help `.</pre>

<p><span class="code">npm install -g fleet</span> and <a href="https://github.com/substack/fleet">check out the code on github</a>! </p>

<p><img style="float:right;margin-left:1.2em;" alt="substack" src="http://substack.net/images/substackistan.png"><i>This is a guest post by James "SubStack" Halliday, originally posted <a href="http://substack.net/posts/16a9d8/multi-server-continuous-deployment-with-fleet">on his blog</a>, and reposted here with permission.</i></p>

<p>Writing applications as a sequence of tiny services that all talk to each other over the network has many upsides, but it can be annoyingly tedious to get all the subsystems up and running. </p>

<p>Running a <a href="http://substack.net/posts/7a1c42">seaport</a> can help with getting all the services to talk to each other, but running the processes is another matter, especially when you have new code to push into production. </p>

<p><a href="http://github.com/substack/fleet">fleet</a> aims to make it really easy for anyone on your team to push new code from git to an armada of servers and manage all the processes in your stack. </p>

<p>To start using fleet, just install the fleet command with <a href="http://npmjs.org">npm</a>: </p>

<pre style="">npm install -g fleet </pre>

<p>Then on one of your servers, start a fleet hub. From a fresh directory, give it a passphrase and a port to listen on: </p>

<pre style="">fleet hub --port=7000 --secret=beepboop </pre>

<p>Now fleet is listening on :7000 for commands and has started a git server on :7001 over http. There's no ssh keys or post commit hooks to configure, just run that command and you're ready to go! </p>

<p>Next set up some worker drones to run your processes. You can have as many workers as you like on a single server but each worker should be run from a separate directory. Just do: </p>

<pre style="">fleet drone --hub=x.x.x.x:7000 --secret=beepboop </pre>

<p>where <span class="code">x.x.x.x</span> is the address where the fleet hub is running. Spin up a few of these drones. </p>

<p>Now navigate to the directory of the app you want to deploy. First set a remote so you don't need to type <span class="code">--hub</span> and <span class="code">--secret</span> all the time. </p>

<pre style="">fleet remote add default --hub=x.x.x.x:7000 --secret=beepboop </pre>

<p>Fleet just created a <span class="code">fleet.json</span> file for you to save your settings. </p>

<p>From the same app directory, to deploy your code just do: </p>

<pre style="">fleet deploy </pre>

<p>The deploy command does a <span class="code">git push</span> to the fleet hub's git http server and then the hub instructs all the drones to pull from it. Your code gets checked out into a new directory on all the fleet drones every time you deploy. </p>

<p>Because fleet is designed specifically for managing applications with lots of tiny services, the deploy command isn't tied to running any processes. Starting processes is up to the programmer but it's super simple. Just use the <span class="code">fleet spawn</span> command: </p>

<pre style="">fleet spawn -- node server.js 8080 </pre>

<p>By default fleet picks a drone at random to run the process on. You can specify which drone you want to run a particular process on with the <span class="code">--drone</span> switch if it matters. </p>

<p>Start a few processes across all your worker drones and then show what is running with the <span class="code">fleet ps</span> command: </p>

<pre style="">fleet ps
drone#3dfe17b8
├─┬ pid#1e99f4
│ ├── status: running
│ ├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
│ └── command: node server.js 8888
└─┬ pid#d7048a
├── status: running
├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
└── command: node server.js 8889</pre>

<p>Now suppose that you have new code to push out into production. By default, fleet lets you spin up new services without disturbing your existing services. If you <span class="code">fleet deploy</span> again after checking in some new changes to git, the next time you <span class="code">fleet spawn</span> a new process, that process will be spun up in a completely new directory based on the git commit hash. To stop a process, just use <span class="code">fleet stop</span>. </p>

<p>This approach lets you verify that the new services work before bringing down the old services. You can even start experimenting with heterogeneous and incremental deployment by hooking into a custom <a href="http://substack.net/posts/5bd18d">http proxy</a>! </p>

<p>Even better, if you use a service registry like <a href="http://substack.net/posts/7a1c42">seaport</a> for managing the host/port tables, you can spin up new ad-hoc staging clusters all the time without disrupting the normal operation of your site before rolling out new code to users. </p>

<p>Fleet has many more commands that you can learn about with its git-style manpage-based help system! Just do <span class="code">fleet help</span> to get a list of all the commands you can run. </p>

<pre style="">fleet help
Usage: fleet &lt;command&gt; [&lt;args&gt;]

The commands are:
deploy Push code to drones.
drone Connect to a hub as a worker.
exec Run commands on drones.
hub Create a hub for drones to connect.
monitor Show service events system-wide.
ps List the running processes on the drones.
remote Manage the set of remote hubs.
spawn Run services on drones.
stop Stop processes running on drones.

For help about a command, try `fleet help `.</pre>

<p><span class="code">npm install -g fleet</span> and <a href="https://github.com/substack/fleet">check out the code on github</a>! </p>

<img src="http://substack.net/images/fleet.png" width="849" height="568">

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -5,60 +5,60 @@ status: publish
category: npm
slug: npm-1-0-global-vs-local-installation

<p><i>npm 1.0 is in release candidate mode. <a href="http://groups.google.com/group/npm-/browse_thread/thread/43d3e76d71d1f141">Go get it!</a></i></p>

<p>More than anything else, the driving force behind the npm 1.0 rearchitecture was the desire to simplify what a package installation directory structure looks like.</p>

<p>In npm 0.x, there was a command called <code>bundle</code> that a lot of people liked. <code>bundle</code> let you install your dependencies locally in your project, but even still, it was basically a hack that never really worked very reliably.</p>

<p>Also, there was that activation/deactivation thing. That&#8217;s confusing.</p>

<h2>Two paths</h2>

<p>In npm 1.0, there are two ways to install things:</p>

<ol> <li>globally &#8212;- This drops modules in <code>{prefix}/lib/node_modules</code>, and puts executable files in <code>{prefix}/bin</code>, where <code>{prefix}</code> is usually something like <code>/usr/local</code>. It also installs man pages in <code>{prefix}/share/man</code>, if they&#8217;re supplied.</li> <li>locally &#8212;- This installs your package in the current working directory. Node modules go in <code>./node_modules</code>, executables go in <code>./node_modules/.bin/</code>, and man pages aren&#8217;t installed at all.</li> </ol>

<h2>Which to choose</h2>

<p>Whether to install a package globally or locally depends on the <code>global</code> config, which is aliased to the <code>-g</code> command line switch.</p>

<p>Just like how global variables are kind of gross, but also necessary in some cases, global packages are important, but best avoided if not needed.</p>

<p>In general, the rule of thumb is:</p>

<ol> <li>If you&#8217;re installing something that you want to use <em>in</em> your program, using <code>require('whatever')</code>, then install it locally, at the root of your project.</li> <li>If you&#8217;re installing something that you want to use in your <em>shell</em>, on the command line or something, install it globally, so that its binaries end up in your <code>PATH</code> environment variable.</li> </ol>

<h2>When you can't choose</h2>

<p>Of course, there are some cases where you want to do both. <a href="http://coffeescript.org/">Coffee-script</a> and <a href="http://expressjs.com/">Express</a> both are good examples of apps that have a command line interface, as well as a library. In those cases, you can do one of the following:</p>

<ol> <li>Install it in both places. Seriously, are you that short on disk space? It&#8217;s fine, really. They&#8217;re tiny JavaScript programs.</li> <li>Install it globally, and then <code>npm link coffee-script</code> or <code>npm link express</code> (if you&#8217;re on a platform that supports symbolic links.) Then you only need to update the global copy to update all the symlinks as well.</li> </ol>

<p>The first option is the best in my opinion. Simple, clear, explicit. The second is really handy if you are going to re-use the same library in a bunch of different projects. (More on <code>npm link</code> in a future installment.)</p>

<p>You can probably think of other ways to do it by messing with environment variables. But I don&#8217;t recommend those ways. Go with the grain.</p>

<h2 id="slight_exception_it8217s_not_always_the_cwd">Slight exception: It&#8217;s not always the cwd.</h2>

<p>Let&#8217;s say you do something like this:</p>

<pre style="background:#333!important;color:#ccc!important;overflow:auto!important;padding:2px!important;"><code>cd ~/projects/foo # go into my project
npm install express # ./node_modules/express
cd lib/utils # move around in there
vim some-thing.js # edit some stuff, work work work
npm install redis # ./lib/utils/node_modules/redis!? ew.</code></pre>

<p>In this case, npm will install <code>redis</code> into <code>~/projects/foo/node_modules/redis</code>. Sort of like how git will work anywhere within a git repository, npm will work anywhere within a package, defined by having a <code>node_modules</code> folder.</p>

<h2>Test runners and stuff</h2>

<p>If your package's <code>scripts.test</code> command uses a command-line program installed by one of your dependencies, not to worry. npm makes <code>./node_modules/.bin</code> the first entry in the <code>PATH</code> environment variable when running any lifecycle scripts, so this will work fine, even if your program is not globally installed:

<pre style="background:#333!important;color:#ccc!important;overflow:auto!important;padding:2px!important;"><code>{ "name" : "my-program"
, "version" : "1.2.3"
, "dependencies": { "express": "*", "coffee-script": "*" }
, "devDependencies": { "vows": "*" }
, "scripts":
{ "test": "vows test/*.js"
<p><i>npm 1.0 is in release candidate mode. <a href="http://groups.google.com/group/npm-/browse_thread/thread/43d3e76d71d1f141">Go get it!</a></i></p>

<p>More than anything else, the driving force behind the npm 1.0 rearchitecture was the desire to simplify what a package installation directory structure looks like.</p>

<p>In npm 0.x, there was a command called <code>bundle</code> that a lot of people liked. <code>bundle</code> let you install your dependencies locally in your project, but even still, it was basically a hack that never really worked very reliably.</p>

<p>Also, there was that activation/deactivation thing. That&#8217;s confusing.</p>

<h2>Two paths</h2>

<p>In npm 1.0, there are two ways to install things:</p>

<ol> <li>globally &#8212;- This drops modules in <code>{prefix}/lib/node_modules</code>, and puts executable files in <code>{prefix}/bin</code>, where <code>{prefix}</code> is usually something like <code>/usr/local</code>. It also installs man pages in <code>{prefix}/share/man</code>, if they&#8217;re supplied.</li> <li>locally &#8212;- This installs your package in the current working directory. Node modules go in <code>./node_modules</code>, executables go in <code>./node_modules/.bin/</code>, and man pages aren&#8217;t installed at all.</li> </ol>

<h2>Which to choose</h2>

<p>Whether to install a package globally or locally depends on the <code>global</code> config, which is aliased to the <code>-g</code> command line switch.</p>

<p>Just like how global variables are kind of gross, but also necessary in some cases, global packages are important, but best avoided if not needed.</p>

<p>In general, the rule of thumb is:</p>

<ol> <li>If you&#8217;re installing something that you want to use <em>in</em> your program, using <code>require('whatever')</code>, then install it locally, at the root of your project.</li> <li>If you&#8217;re installing something that you want to use in your <em>shell</em>, on the command line or something, install it globally, so that its binaries end up in your <code>PATH</code> environment variable.</li> </ol>

<h2>When you can't choose</h2>

<p>Of course, there are some cases where you want to do both. <a href="http://coffeescript.org/">Coffee-script</a> and <a href="http://expressjs.com/">Express</a> both are good examples of apps that have a command line interface, as well as a library. In those cases, you can do one of the following:</p>

<ol> <li>Install it in both places. Seriously, are you that short on disk space? It&#8217;s fine, really. They&#8217;re tiny JavaScript programs.</li> <li>Install it globally, and then <code>npm link coffee-script</code> or <code>npm link express</code> (if you&#8217;re on a platform that supports symbolic links.) Then you only need to update the global copy to update all the symlinks as well.</li> </ol>

<p>The first option is the best in my opinion. Simple, clear, explicit. The second is really handy if you are going to re-use the same library in a bunch of different projects. (More on <code>npm link</code> in a future installment.)</p>

<p>You can probably think of other ways to do it by messing with environment variables. But I don&#8217;t recommend those ways. Go with the grain.</p>

<h2 id="slight_exception_it8217s_not_always_the_cwd">Slight exception: It&#8217;s not always the cwd.</h2>

<p>Let&#8217;s say you do something like this:</p>

<pre style="background:#333!important;color:#ccc!important;overflow:auto!important;padding:2px!important;"><code>cd ~/projects/foo # go into my project
npm install express # ./node_modules/express
cd lib/utils # move around in there
vim some-thing.js # edit some stuff, work work work
npm install redis # ./lib/utils/node_modules/redis!? ew.</code></pre>

<p>In this case, npm will install <code>redis</code> into <code>~/projects/foo/node_modules/redis</code>. Sort of like how git will work anywhere within a git repository, npm will work anywhere within a package, defined by having a <code>node_modules</code> folder.</p>

<h2>Test runners and stuff</h2>

<p>If your package's <code>scripts.test</code> command uses a command-line program installed by one of your dependencies, not to worry. npm makes <code>./node_modules/.bin</code> the first entry in the <code>PATH</code> environment variable when running any lifecycle scripts, so this will work fine, even if your program is not globally installed:

<pre style="background:#333!important;color:#ccc!important;overflow:auto!important;padding:2px!important;"><code>{ "name" : "my-program"
, "version" : "1.2.3"
, "dependencies": { "express": "*", "coffee-script": "*" }
, "devDependencies": { "vows": "*" }
, "scripts":
{ "test": "vows test/*.js"
, "preinstall": "cake build" } }</code></pre>

Large diffs are not rendered by default.

@@ -5,32 +5,32 @@ status: publish
category: npm
slug: npm-1-0-released

<p>npm 1.0 has been released. Here are the highlights:</p>

<ul> <li><a href="http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/">Global vs local installation</a></li> <li><a href="http://blog.nodejs.org/2011/03/17/npm-1-0-the-new-ls/">ls displays a tree</a>, instead of being a remote search</li> <li>No more &#8220;activation&#8221; concept - dependencies are nested</li> <li><a href="http://blog.nodejs.org/2011/04/06/npm-1-0-link/">Updates to link command</a></li> <li>Install script cleans up any 0.x cruft it finds. (That is, it removes old packages, so that they can be installed properly.)</li> <li>Simplified &#8220;search&#8221; command. One line per package, rather than one line per version.</li> <li>Renovated &#8220;completion&#8221; approach</li> <li>More help topics</li> <li>Simplified folder structure</li> </ul>

<p>The focus is on npm being a development tool, rather than an apt-wannabe.</p>

<h2 id="installing_it">Installing it</h2>

<p>To get the new version, run this command:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | sh </code></pre>

<p>This will prompt to ask you if it&#8217;s ok to remove all the old 0.x cruft. If you want to not be asked, then do this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | clean=yes sh </code></pre>

<p>Or, if you want to not do the cleanup, and leave the old stuff behind, then do this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | clean=no sh </code></pre>

<p>A lot of people in the node community were brave testers and helped make this release a lot better (and swifter) than it would have otherwise been. Thanks :)</p>

<h2 id="code_freeze">Code Freeze</h2>

<p>npm will not have any major feature enhancements or architectural changes <span style="border-bottom:1px dotted;cursor:default;" title="That is, the freeze ends no sooner than November 1, 2011">for at least 6 months</span>. There are interesting developments planned that leverage npm in some ways, but it&#8217;s time to let the client itself settle. Also, I want to focus attention on some other problems for a little while.</p>

<p>Of course, <a href="https://github.com/isaacs/npm/issues">bug reports</a> are always welcome.</p>

<p>npm 1.0 has been released. Here are the highlights:</p>

<ul> <li><a href="http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/">Global vs local installation</a></li> <li><a href="http://blog.nodejs.org/2011/03/17/npm-1-0-the-new-ls/">ls displays a tree</a>, instead of being a remote search</li> <li>No more &#8220;activation&#8221; concept - dependencies are nested</li> <li><a href="http://blog.nodejs.org/2011/04/06/npm-1-0-link/">Updates to link command</a></li> <li>Install script cleans up any 0.x cruft it finds. (That is, it removes old packages, so that they can be installed properly.)</li> <li>Simplified &#8220;search&#8221; command. One line per package, rather than one line per version.</li> <li>Renovated &#8220;completion&#8221; approach</li> <li>More help topics</li> <li>Simplified folder structure</li> </ul>

<p>The focus is on npm being a development tool, rather than an apt-wannabe.</p>

<h2 id="installing_it">Installing it</h2>

<p>To get the new version, run this command:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | sh </code></pre>

<p>This will prompt to ask you if it&#8217;s ok to remove all the old 0.x cruft. If you want to not be asked, then do this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | clean=yes sh </code></pre>

<p>Or, if you want to not do the cleanup, and leave the old stuff behind, then do this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>curl http://npmjs.org/install.sh | clean=no sh </code></pre>

<p>A lot of people in the node community were brave testers and helped make this release a lot better (and swifter) than it would have otherwise been. Thanks :)</p>

<h2 id="code_freeze">Code Freeze</h2>

<p>npm will not have any major feature enhancements or architectural changes <span style="border-bottom:1px dotted;cursor:default;" title="That is, the freeze ends no sooner than November 1, 2011">for at least 6 months</span>. There are interesting developments planned that leverage npm in some ways, but it&#8217;s time to let the client itself settle. Also, I want to focus attention on some other problems for a little while.</p>

<p>Of course, <a href="https://github.com/isaacs/npm/issues">bug reports</a> are always welcome.</p>

<p>See you at NodeConf!</p>
@@ -5,140 +5,140 @@ status: publish
category: npm
slug: npm-1-0-the-new-ls

<p><em>This is the first in a series of hopefully more than 1 posts, each detailing some aspect of npm 1.0.</em></p>

<p>In npm 0.x, the <code>ls</code> command was a combination of both searching the registry as well as reporting on what you have installed.</p>

<p>As the registry has grown in size, this has gotten unwieldy. Also, since npm 1.0 manages dependencies differently, nesting them in <code>node_modules</code> folder and installing locally by default, there are different things that you want to view.</p>

<p>The functionality of the <code>ls</code> command was split into two different parts. <code>search</code> is now the way to find things on the registry (and it only reports one line per package, instead of one line per version), and <code>ls</code> shows a tree view of the packages that are installed locally.</p>

<p>Here&#8217;s an example of the output:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls
npm@1.0.0 /Users/isaacs/dev-src/js/npm
├── semver@1.0.1
├─┬ ronn@0.3.5
│ └── opts@1.2.1
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
├─┬ connect@1.1.0
│ ├── qs@0.0.7
│ └── mime@1.2.1
├── mime@1.2.1
└── qs@0.0.7
</code></pre>

<p>This is after I&#8217;ve done <code>npm install semver ronn express</code> in the npm source directory. Since express isn&#8217;t actually a dependency of npm, it shows up with that &#8220;extraneous&#8221; marker.</p>

<p>Let&#8217;s see what happens when we create a broken situation:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ rm -rf ./node_modules/express/node_modules/connect
$ npm ls
npm@1.0.0 /Users/isaacs/dev-src/js/npm
├── semver@1.0.1
├─┬ ronn@0.3.5
│ └── opts@1.2.1
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
├── <span style="background:#000;color:#f00;">UNMET DEPENDENCY</span> connect &gt;= 1.1.0 &lt; 2.0.0
├── mime@1.2.1
└── qs@0.0.7
</code></pre>

<p>Tree views are great for human readability, but some times you want to pipe that stuff to another program. For that output, I took the same datastructure, but instead of building up a treeview string for each line, it spits out just the folders like this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -p
/Users/isaacs/dev-src/js/npm
/Users/isaacs/dev-src/js/npm/node_modules/semver
/Users/isaacs/dev-src/js/npm/node_modules/ronn
/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts
/Users/isaacs/dev-src/js/npm/node_modules/express
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/qs
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/mime
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/mime
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/qs
</code></pre>

<p>Since you sometimes want a bigger view, I added the <code>--long</code> option to (shorthand: <code>-l</code>) to spit out more info:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -l
npm@1.0.0
│ /Users/isaacs/dev-src/js/npm
│ A package manager for node
│ git://github.com/isaacs/npm.git
│ http://npmjs.org/
├── semver@1.0.1
│ ./node_modules/semver
│ The semantic version parser used by npm.
│ git://github.com/isaacs/node-semver.git
├─┬ ronn@0.3.5
│ │ ./node_modules/ronn
│ │ markdown to roff and html converter
│ └── opts@1.2.1
│ ./node_modules/ronn/node_modules/opts
│ Command line argument parser written in the style of commonjs. To be used with node.js
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
│ ./node_modules/express
│ Sinatra inspired web development framework
├─┬ connect@1.1.0
│ │ ./node_modules/express/node_modules/connect
│ │ High performance middleware framework
│ │ git://github.com/senchalabs/connect.git
│ ├── qs@0.0.7
│ │ ./node_modules/express/node_modules/connect/node_modules/qs
│ │ querystring parser
│ └── mime@1.2.1
│ ./node_modules/express/node_modules/connect/node_modules/mime
│ A comprehensive library for mime-type mapping
├── mime@1.2.1
│ ./node_modules/express/node_modules/mime
│ A comprehensive library for mime-type mapping
└── qs@0.0.7
./node_modules/express/node_modules/qs
querystring parser

$ npm ls -lp
/Users/isaacs/dev-src/js/npm:npm@1.0.0::::
/Users/isaacs/dev-src/js/npm/node_modules/semver:semver@1.0.1::::
/Users/isaacs/dev-src/js/npm/node_modules/ronn:ronn@0.3.5::::
/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts:opts@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express:express@2.0.0rc3:EXTRANEOUS:::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect:connect@1.1.0::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/qs:qs@0.0.7::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/mime:mime@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/mime:mime@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/qs:qs@0.0.7::::
</code></pre>

<p>And, if you want to get at the globally-installed modules, you can use ls with the global flag:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -g
/usr/local
├─┬ A@1.2.3 -&gt; /Users/isaacs/dev-src/js/A
│ ├── B@1.2.3 -&gt; /Users/isaacs/dev-src/js/B
│ └─┬ npm@0.3.15
│ └── semver@1.0.1
├─┬ B@1.2.3 -&gt; /Users/isaacs/dev-src/js/B
│ └── A@1.2.3 -&gt; /Users/isaacs/dev-src/js/A
├── glob@2.0.5
├─┬ npm@1.0.0 -&gt; /Users/isaacs/dev-src/js/npm
│ ├── semver@1.0.1
│ └─┬ ronn@0.3.5
│ └── opts@1.2.1
└── supervisor@0.1.2 -&gt; /Users/isaacs/dev-src/js/node-supervisor

$ npm ls -gpl
/usr/local:::::
/usr/local/lib/node_modules/A:A@1.2.3::::/Users/isaacs/dev-src/js/A
/usr/local/lib/node_modules/A/node_modules/npm:npm@0.3.15::::/Users/isaacs/dev-src/js/A/node_modules/npm
/usr/local/lib/node_modules/A/node_modules/npm/node_modules/semver:semver@1.0.1::::/Users/isaacs/dev-src/js/A/node_modules/npm/node_modules/semver
/usr/local/lib/node_modules/B:B@1.2.3::::/Users/isaacs/dev-src/js/B
/usr/local/lib/node_modules/glob:glob@2.0.5::::
/usr/local/lib/node_modules/npm:npm@1.0.0::::/Users/isaacs/dev-src/js/npm
/usr/local/lib/node_modules/npm/node_modules/semver:semver@1.0.1::::/Users/isaacs/dev-src/js/npm/node_modules/semver
/usr/local/lib/node_modules/npm/node_modules/ronn:ronn@0.3.5::::/Users/isaacs/dev-src/js/npm/node_modules/ronn
/usr/local/lib/node_modules/npm/node_modules/ronn/node_modules/opts:opts@1.2.1::::/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts
/usr/local/lib/node_modules/supervisor:supervisor@0.1.2::::/Users/isaacs/dev-src/js/node-supervisor
</code></pre>

<p><em>This is the first in a series of hopefully more than 1 posts, each detailing some aspect of npm 1.0.</em></p>

<p>In npm 0.x, the <code>ls</code> command was a combination of both searching the registry as well as reporting on what you have installed.</p>

<p>As the registry has grown in size, this has gotten unwieldy. Also, since npm 1.0 manages dependencies differently, nesting them in <code>node_modules</code> folder and installing locally by default, there are different things that you want to view.</p>

<p>The functionality of the <code>ls</code> command was split into two different parts. <code>search</code> is now the way to find things on the registry (and it only reports one line per package, instead of one line per version), and <code>ls</code> shows a tree view of the packages that are installed locally.</p>

<p>Here&#8217;s an example of the output:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls
npm@1.0.0 /Users/isaacs/dev-src/js/npm
├── semver@1.0.1
├─┬ ronn@0.3.5
│ └── opts@1.2.1
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
├─┬ connect@1.1.0
│ ├── qs@0.0.7
│ └── mime@1.2.1
├── mime@1.2.1
└── qs@0.0.7
</code></pre>

<p>This is after I&#8217;ve done <code>npm install semver ronn express</code> in the npm source directory. Since express isn&#8217;t actually a dependency of npm, it shows up with that &#8220;extraneous&#8221; marker.</p>

<p>Let&#8217;s see what happens when we create a broken situation:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ rm -rf ./node_modules/express/node_modules/connect
$ npm ls
npm@1.0.0 /Users/isaacs/dev-src/js/npm
├── semver@1.0.1
├─┬ ronn@0.3.5
│ └── opts@1.2.1
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
├── <span style="background:#000;color:#f00;">UNMET DEPENDENCY</span> connect &gt;= 1.1.0 &lt; 2.0.0
├── mime@1.2.1
└── qs@0.0.7
</code></pre>

<p>Tree views are great for human readability, but some times you want to pipe that stuff to another program. For that output, I took the same datastructure, but instead of building up a treeview string for each line, it spits out just the folders like this:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -p
/Users/isaacs/dev-src/js/npm
/Users/isaacs/dev-src/js/npm/node_modules/semver
/Users/isaacs/dev-src/js/npm/node_modules/ronn
/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts
/Users/isaacs/dev-src/js/npm/node_modules/express
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/qs
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/mime
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/mime
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/qs
</code></pre>

<p>Since you sometimes want a bigger view, I added the <code>--long</code> option to (shorthand: <code>-l</code>) to spit out more info:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -l
npm@1.0.0
│ /Users/isaacs/dev-src/js/npm
│ A package manager for node
│ git://github.com/isaacs/npm.git
│ http://npmjs.org/
├── semver@1.0.1
│ ./node_modules/semver
│ The semantic version parser used by npm.
│ git://github.com/isaacs/node-semver.git
├─┬ ronn@0.3.5
│ │ ./node_modules/ronn
│ │ markdown to roff and html converter
│ └── opts@1.2.1
│ ./node_modules/ronn/node_modules/opts
│ Command line argument parser written in the style of commonjs. To be used with node.js
└─┬ express@2.0.0rc3 <span style="background:#000;color:#0f0;">extraneous</span>
│ ./node_modules/express
│ Sinatra inspired web development framework
├─┬ connect@1.1.0
│ │ ./node_modules/express/node_modules/connect
│ │ High performance middleware framework
│ │ git://github.com/senchalabs/connect.git
│ ├── qs@0.0.7
│ │ ./node_modules/express/node_modules/connect/node_modules/qs
│ │ querystring parser
│ └── mime@1.2.1
│ ./node_modules/express/node_modules/connect/node_modules/mime
│ A comprehensive library for mime-type mapping
├── mime@1.2.1
│ ./node_modules/express/node_modules/mime
│ A comprehensive library for mime-type mapping
└── qs@0.0.7
./node_modules/express/node_modules/qs
querystring parser

$ npm ls -lp
/Users/isaacs/dev-src/js/npm:npm@1.0.0::::
/Users/isaacs/dev-src/js/npm/node_modules/semver:semver@1.0.1::::
/Users/isaacs/dev-src/js/npm/node_modules/ronn:ronn@0.3.5::::
/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts:opts@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express:express@2.0.0rc3:EXTRANEOUS:::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect:connect@1.1.0::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/qs:qs@0.0.7::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/connect/node_modules/mime:mime@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/mime:mime@1.2.1::::
/Users/isaacs/dev-src/js/npm/node_modules/express/node_modules/qs:qs@0.0.7::::
</code></pre>

<p>And, if you want to get at the globally-installed modules, you can use ls with the global flag:</p>

<pre style="background:#333;color:#ccc;overflow:auto;padding:2px;"><code>$ npm ls -g
/usr/local
├─┬ A@1.2.3 -&gt; /Users/isaacs/dev-src/js/A
│ ├── B@1.2.3 -&gt; /Users/isaacs/dev-src/js/B
│ └─┬ npm@0.3.15
│ └── semver@1.0.1
├─┬ B@1.2.3 -&gt; /Users/isaacs/dev-src/js/B
│ └── A@1.2.3 -&gt; /Users/isaacs/dev-src/js/A
├── glob@2.0.5
├─┬ npm@1.0.0 -&gt; /Users/isaacs/dev-src/js/npm
│ ├── semver@1.0.1
│ └─┬ ronn@0.3.5
│ └── opts@1.2.1
└── supervisor@0.1.2 -&gt; /Users/isaacs/dev-src/js/node-supervisor

$ npm ls -gpl
/usr/local:::::
/usr/local/lib/node_modules/A:A@1.2.3::::/Users/isaacs/dev-src/js/A
/usr/local/lib/node_modules/A/node_modules/npm:npm@0.3.15::::/Users/isaacs/dev-src/js/A/node_modules/npm
/usr/local/lib/node_modules/A/node_modules/npm/node_modules/semver:semver@1.0.1::::/Users/isaacs/dev-src/js/A/node_modules/npm/node_modules/semver
/usr/local/lib/node_modules/B:B@1.2.3::::/Users/isaacs/dev-src/js/B
/usr/local/lib/node_modules/glob:glob@2.0.5::::
/usr/local/lib/node_modules/npm:npm@1.0.0::::/Users/isaacs/dev-src/js/npm
/usr/local/lib/node_modules/npm/node_modules/semver:semver@1.0.1::::/Users/isaacs/dev-src/js/npm/node_modules/semver
/usr/local/lib/node_modules/npm/node_modules/ronn:ronn@0.3.5::::/Users/isaacs/dev-src/js/npm/node_modules/ronn
/usr/local/lib/node_modules/npm/node_modules/ronn/node_modules/opts:opts@1.2.1::::/Users/isaacs/dev-src/js/npm/node_modules/ronn/node_modules/opts
/usr/local/lib/node_modules/supervisor:supervisor@0.1.2::::/Users/isaacs/dev-src/js/node-supervisor
</code></pre>

<p>Those <code>-&gt;</code> flags are indications that the package is link-installed, which will be covered in the next installment.</p>
@@ -6,20 +6,20 @@ status: publish
category: release
slug: node-v0-4-10

2011.07.19, Version 0.4.10 (stable)
<ul><li>#394 Fix Buffer drops last null character in UTF-8
<li>#829 Backport r8577 from V8 (Ben Noordhuis)
<li>#877 Don't wait for HTTP Agent socket pool to establish connections.
<li>#915 Find kqueue on FreeBSD correctly (Brett Kiefer)
<li>#1085 HTTP: Fix race in abort/dispatch code (Stefan Rusu)
<li>#1274 debugger improvement (Yoshihiro Kikuchi)
<li>#1291 Properly respond to HEAD during end(body) hot path (Reid Burke)
<li>#1304 TLS: Fix race in abort/connection code (Stefan Rusu)
<li>#1360 Allow _ in url hostnames.
<li>Revert 37d529f8 - unbreaks debugger command parsing.
<li>Bring back global execScript
<li>Doc improvements</ul>

Download: <a href="http://nodejs.org/dist/node-v0.4.10.tar.gz">http://nodejs.org/dist/node-v0.4.10.tar.gz</a>
Website: <a href="http://nodejs.org/docs/v0.4.10">http://nodejs.org/docs/v0.4.10</a>
2011.07.19, Version 0.4.10 (stable)
<ul><li>#394 Fix Buffer drops last null character in UTF-8
<li>#829 Backport r8577 from V8 (Ben Noordhuis)
<li>#877 Don't wait for HTTP Agent socket pool to establish connections.
<li>#915 Find kqueue on FreeBSD correctly (Brett Kiefer)
<li>#1085 HTTP: Fix race in abort/dispatch code (Stefan Rusu)
<li>#1274 debugger improvement (Yoshihiro Kikuchi)
<li>#1291 Properly respond to HEAD during end(body) hot path (Reid Burke)
<li>#1304 TLS: Fix race in abort/connection code (Stefan Rusu)
<li>#1360 Allow _ in url hostnames.
<li>Revert 37d529f8 - unbreaks debugger command parsing.
<li>Bring back global execScript
<li>Doc improvements</ul>

Download: <a href="http://nodejs.org/dist/node-v0.4.10.tar.gz">http://nodejs.org/dist/node-v0.4.10.tar.gz</a>
Website: <a href="http://nodejs.org/docs/v0.4.10">http://nodejs.org/docs/v0.4.10</a>
Documentation: <a href="http://nodejs.org/docs/v0.4.10/api">http://nodejs.org/docs/v0.4.10/api</a>
@@ -6,34 +6,34 @@ status: publish
category: release
slug: node-v0-4-11

2011.08.17, Version 0.4.11 (stable)
<ul><li><a href="http://github.com/joyent/node/issues/738">#738</a> Fix crypto encryption/decryption with Base64. (SAWADA Tadashi)

<li><a href="http://github.com/joyent/node/issues/1202">#1202</a> net.createConnection defer DNS lookup error events to next tick (Ben Noordhuis)

<li><a href="http://github.com/joyent/node/issues/1374">#1374</a> fix setting ServerResponse.statusCode in writeHead (Trent Mick)

<li><a href="http://github.com/joyent/node/issues/1417">#1417</a> Fix http.ClientRequest crashes if end() was called twice

<li><a href="http://github.com/joyent/node/issues/1497">#1497</a> querystring: Replace 'in' test with 'hasOwnProperty' (isaacs)

<li><a href="http://github.com/joyent/node/issues/1546">#1546</a> http perf improvement

<li>fix memleak in libeio (Tom Hughes)

<li>cmake improvements (Tom Hughes)

<li>node_net.cc: fix incorrect sizeof() (Tom Hughes)

<li>Windows/cygwin: no more GetConsoleTitleW errors on XP (Bert Belder)

<li>Doc improvements (koichik, Logan Smyth, Ben Noordhuis, Arnout Kazemier)</ul>




Download: <a href="http://nodejs.org/dist/node-v0.4.11.tar.gz">http://nodejs.org/dist/node-v0.4.11.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.11/">http://nodejs.org/docs/v0.4.11/</a>

2011.08.17, Version 0.4.11 (stable)
<ul><li><a href="http://github.com/joyent/node/issues/738">#738</a> Fix crypto encryption/decryption with Base64. (SAWADA Tadashi)

<li><a href="http://github.com/joyent/node/issues/1202">#1202</a> net.createConnection defer DNS lookup error events to next tick (Ben Noordhuis)

<li><a href="http://github.com/joyent/node/issues/1374">#1374</a> fix setting ServerResponse.statusCode in writeHead (Trent Mick)

<li><a href="http://github.com/joyent/node/issues/1417">#1417</a> Fix http.ClientRequest crashes if end() was called twice

<li><a href="http://github.com/joyent/node/issues/1497">#1497</a> querystring: Replace 'in' test with 'hasOwnProperty' (isaacs)

<li><a href="http://github.com/joyent/node/issues/1546">#1546</a> http perf improvement

<li>fix memleak in libeio (Tom Hughes)

<li>cmake improvements (Tom Hughes)

<li>node_net.cc: fix incorrect sizeof() (Tom Hughes)

<li>Windows/cygwin: no more GetConsoleTitleW errors on XP (Bert Belder)

<li>Doc improvements (koichik, Logan Smyth, Ben Noordhuis, Arnout Kazemier)</ul>




Download: <a href="http://nodejs.org/dist/node-v0.4.11.tar.gz">http://nodejs.org/dist/node-v0.4.11.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.11/">http://nodejs.org/docs/v0.4.11/</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.11/api/">http://nodejs.org/docs/v0.4.11/api/</a>
@@ -6,24 +6,24 @@ status: publish
category: release
slug: node-v0-4-12

2011.09.15, Version 0.4.12 (stable)

<ul>
<li>Improve docs
<li>#1563 overflow in ChildProcess custom_fd.
<li>#1569, parse error on multi-line HTTP headers. (Ben Noordhuis)
<li>#1586 net: Socket write encoding case sensitivity (koichik)
<li>#1610 Remove DigiNotar CA from trusted list (isaacs)
<li>#1624 buffer: Avoid overrun with 'binary' encoding. (koichik)
<li>#1633 buffer: write() should always set _charsWritten. (koichik)
<li>#1707 hasOwnProperty usage security hole in querystring (isaacs)
<li>#1719 Drain OpenSSL error queue
<li>Fix error reporting in net.Server.listen</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.12.tar.gz">http://nodejs.org/dist/node-v0.4.12.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.12/">http://nodejs.org/docs/v0.4.12/</a>

2011.09.15, Version 0.4.12 (stable)

<ul>
<li>Improve docs
<li>#1563 overflow in ChildProcess custom_fd.
<li>#1569, parse error on multi-line HTTP headers. (Ben Noordhuis)
<li>#1586 net: Socket write encoding case sensitivity (koichik)
<li>#1610 Remove DigiNotar CA from trusted list (isaacs)
<li>#1624 buffer: Avoid overrun with 'binary' encoding. (koichik)
<li>#1633 buffer: write() should always set _charsWritten. (koichik)
<li>#1707 hasOwnProperty usage security hole in querystring (isaacs)
<li>#1719 Drain OpenSSL error queue
<li>Fix error reporting in net.Server.listen</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.12.tar.gz">http://nodejs.org/dist/node-v0.4.12.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.12/">http://nodejs.org/docs/v0.4.12/</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.12/api/">http://nodejs.org/docs/v0.4.12/api/</a>
@@ -6,28 +6,28 @@ status: publish
category: release
slug: node-v0-4-3

2011.03.18, Version 0.4.3 (stable)
<ul>
<li> Don't decrease server connection counter again if destroy() is called more than once GH-431 (Andreas Reich, Anders Conbere)
<li> Documentation improvements (koichik)
<li> Fix bug with setMaxListeners GH-682
<li> Start up memory footprint improvement. (Tom Hughes)
<li> Solaris improvements.
<li> Buffer::Length(Buffer*) should not invoke itself recursively GH-759 (Ben Noordhuis)
<li> TLS: Advertise support for client certs GH-774 (Theo Schlossnagle)
<li> HTTP Agent bugs: GH-787, GH-784, GH-803.
<li> Don't call GetMemoryUsage every 5 seconds.
<li> Upgrade V8 to 3.1.8.3
</ul>



Download: http://nodejs.org/dist/node-v0.4.3.tar.gz

Website: http://nodejs.org/docs/v0.4.3/

Documentation: http://nodejs.org/docs/v0.4.3/api

<a href="https://groups.google.com/d/topic/nodejs/JrYQCQtf6lM/discussion">Announcement</a>

2011.03.18, Version 0.4.3 (stable)
<ul>
<li> Don't decrease server connection counter again if destroy() is called more than once GH-431 (Andreas Reich, Anders Conbere)
<li> Documentation improvements (koichik)
<li> Fix bug with setMaxListeners GH-682
<li> Start up memory footprint improvement. (Tom Hughes)
<li> Solaris improvements.
<li> Buffer::Length(Buffer*) should not invoke itself recursively GH-759 (Ben Noordhuis)
<li> TLS: Advertise support for client certs GH-774 (Theo Schlossnagle)
<li> HTTP Agent bugs: GH-787, GH-784, GH-803.
<li> Don't call GetMemoryUsage every 5 seconds.
<li> Upgrade V8 to 3.1.8.3
</ul>



Download: http://nodejs.org/dist/node-v0.4.3.tar.gz

Website: http://nodejs.org/docs/v0.4.3/

Documentation: http://nodejs.org/docs/v0.4.3/api

<a href="https://groups.google.com/d/topic/nodejs/JrYQCQtf6lM/discussion">Announcement</a>

<a href="https://github.com/joyent/node/tree/v0.4.3">commit</a>
@@ -6,22 +6,22 @@ status: publish
category: release
slug: node-v0-4-4

2011.03.26, Version 0.4.4 (stable)
<ul>
<li> CryptoStream.end shouldn't throw if not writable GH-820
<li> Drop out if connection destroyed before connect() GH-819
<li> expose https.Agent
<li> Correctly setsid in tty.open GH-815
<li> Bug fix for failed buffer construction
<li> Added support for removing .once listeners (GH-806)
<li> Upgrade V8 to 3.1.8.5</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.4.tar.gz">http://nodejs.org/dist/node-v0.4.4.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.4/">http://nodejs.org/docs/v0.4.4</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.4/api/">http://nodejs.org/docs/v0.4.4/api</a>

2011.03.26, Version 0.4.4 (stable)
<ul>
<li> CryptoStream.end shouldn't throw if not writable GH-820
<li> Drop out if connection destroyed before connect() GH-819
<li> expose https.Agent
<li> Correctly setsid in tty.open GH-815
<li> Bug fix for failed buffer construction
<li> Added support for removing .once listeners (GH-806)
<li> Upgrade V8 to 3.1.8.5</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.4.tar.gz">http://nodejs.org/dist/node-v0.4.4.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.4/">http://nodejs.org/docs/v0.4.4</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.4/api/">http://nodejs.org/docs/v0.4.4/api</a>

<a href="https://groups.google.com/d/topic/nodejs/LlQCYhDEPAc/discussion">announcement</a>
@@ -6,24 +6,24 @@ status: publish
category: release
slug: node-v0-4-5

2011.04.01, Version 0.4.5 (stable)
<ul>
<li> Fix listener leak in stream.pipe() (Mikeal Rogers)
<li> Retain buffers in fs.read/write() GH-814 (Jorge Chamorro Bieling)
<li> TLS performance improvements
<li> SlowBuffer.prototype.slice bug GH-843
<li> process.stderr.write should return true
<li> Immediate pause/resume race condition GH-535 (isaacs)
<li> Set default host header properly GH-721 (isaacs)
<li> Upgrade V8 to 3.1.8.8</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.5.tar.gz">http://nodejs.org/dist/node-v0.4.5.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.5">http://nodejs.org/docs/v0.4.5</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.5/api">http://nodejs.org/docs/v0.4.5/api</a>


2011.04.01, Version 0.4.5 (stable)
<ul>
<li> Fix listener leak in stream.pipe() (Mikeal Rogers)
<li> Retain buffers in fs.read/write() GH-814 (Jorge Chamorro Bieling)
<li> TLS performance improvements
<li> SlowBuffer.prototype.slice bug GH-843
<li> process.stderr.write should return true
<li> Immediate pause/resume race condition GH-535 (isaacs)
<li> Set default host header properly GH-721 (isaacs)
<li> Upgrade V8 to 3.1.8.8</ul>



Download: <a href="http://nodejs.org/dist/node-v0.4.5.tar.gz">http://nodejs.org/dist/node-v0.4.5.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.5">http://nodejs.org/docs/v0.4.5</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.5/api">http://nodejs.org/docs/v0.4.5/api</a>


<a href="https://groups.google.com/d/topic/nodejs/aOC7SRLJhQY/discussion">announcement</a>
@@ -6,22 +6,22 @@ status: publish
category: release
slug: node-v0-4-6

2011.04.13, Version 0.4.6 (stable)
<ul><li> Don't error on ENOTCONN from shutdown() #670
<li> Auto completion of built-in debugger suggests prefix match rather than partial match. (koichik)
<li> circular reference in vm modules. #822 (Jakub Lekstan)
<li> http response.readable should be false after 'end' #867 (Abe Fettig)
<li> Implemenet os.cpus() and os.uptime() on Solaris (Scott McWhirter)
<li> fs.ReadStream: Allow omission of end option for range reads #801 (Felix Geisendörfer)
<li> Buffer.write() with UCS-2 should not be write partial char #916 (koichik)
<Li> Pass secureProtocol through on tls.Server creation (Theo Schlossnagle)
<li> TLS use RC4-SHA by default
<li> Don't strangely drop out of event loop on HTTPS client uploads #892
<li> Doc improvements
<li> Upgrade v8 to 3.1.8.10</ul>

Download: <a href="http://nodejs.org/dist/node-v0.4.6.tar.gz">http://nodejs.org/dist/node-v0.4.6.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.6/">http://nodejs.org/docs/v0.4.6/</a>

2011.04.13, Version 0.4.6 (stable)
<ul><li> Don't error on ENOTCONN from shutdown() #670
<li> Auto completion of built-in debugger suggests prefix match rather than partial match. (koichik)
<li> circular reference in vm modules. #822 (Jakub Lekstan)
<li> http response.readable should be false after 'end' #867 (Abe Fettig)
<li> Implemenet os.cpus() and os.uptime() on Solaris (Scott McWhirter)
<li> fs.ReadStream: Allow omission of end option for range reads #801 (Felix Geisendörfer)
<li> Buffer.write() with UCS-2 should not be write partial char #916 (koichik)
<Li> Pass secureProtocol through on tls.Server creation (Theo Schlossnagle)
<li> TLS use RC4-SHA by default
<li> Don't strangely drop out of event loop on HTTPS client uploads #892
<li> Doc improvements
<li> Upgrade v8 to 3.1.8.10</ul>

Download: <a href="http://nodejs.org/dist/node-v0.4.6.tar.gz">http://nodejs.org/dist/node-v0.4.6.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.6/">http://nodejs.org/docs/v0.4.6/</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.6/api/">http://nodejs.org/docs/v0.4.6/api/</a>
@@ -6,18 +6,18 @@ status: publish
category: release
slug: node-v0-4-7

2011.04.22, Version 0.4.7 (stable)
<ul><li> Don't emit error on ECONNRESET from read() #670
<li> Fix: Multiple pipes to the same stream were broken #929 (Felix Geisendörfer)
<li> URL parsing/formatting corrections #954 (isaacs)
<li> make it possible to do repl.start('', stream) (Wade Simmons)
<li> Add os.loadavg for SunOS (Robert Mustacchi)
<li> Fix timeouts with floating point numbers #897 (Jorge Chamorro Bieling)
<li> Improve docs.</ul>


Download: <a href="http://nodejs.org/dist/node-v0.4.7.tar.gz">http://nodejs.org/dist/node-v0.4.7.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.7/">http://nodejs.org/docs/v0.4.7/</a>

2011.04.22, Version 0.4.7 (stable)
<ul><li> Don't emit error on ECONNRESET from read() #670
<li> Fix: Multiple pipes to the same stream were broken #929 (Felix Geisendörfer)
<li> URL parsing/formatting corrections #954 (isaacs)
<li> make it possible to do repl.start('', stream) (Wade Simmons)
<li> Add os.loadavg for SunOS (Robert Mustacchi)
<li> Fix timeouts with floating point numbers #897 (Jorge Chamorro Bieling)
<li> Improve docs.</ul>


Download: <a href="http://nodejs.org/dist/node-v0.4.7.tar.gz">http://nodejs.org/dist/node-v0.4.7.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.7/">http://nodejs.org/docs/v0.4.7/</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.7/api">http://nodejs.org/docs/v0.4.7/api</a>
@@ -6,50 +6,50 @@ status: publish
category: release
slug: node-v0-4-8

2011.05.20, Version 0.4.8 (stable)

* #974 Properly report traceless errors (isaacs)

* #983 Better JSON.parse error detection in REPL (isaacs)

* #836 Agent socket errors bubble up to req only if req exists

* #1041 Fix event listener leak check timing (koichik)

* #1038 Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
(koichik)

* #1073 Share SSL context between server connections (Fedor Indutny)

* Disable compression with OpenSSL. Improves memory perf.

* Implement os.totalmem() and os.freemem() for SunOS (Alexandre Marangone)

* Fix a special characters in URL regression (isaacs)

* Fix idle timeouts in HTTPS (Felix Geisendörfer)

* SlowBuffer.write() with 'ucs2' throws ReferenceError. (koichik)

* http.ServerRequest 'close' sometimes gets an error argument
(Felix Geisendörfer)

* Doc improvements

* cleartextstream.destroy() should close(2) the socket. Previously was being
mapped to a shutdown(2) syscall.

* No longer compile out asserts and debug statements in normal build.

* Debugger improvements.

* Upgrade V8 to 3.1.8.16.




Website: <a href="http://nodejs.org/docs/v0.4.8/">http://nodejs.org/docs/v0.4.8/</a>

Download: <a href="http://nodejs.org/dist/node-v0.4.8.tar.gz">http://nodejs.org/dist/node-v0.4.8.tar.gz</a>

2011.05.20, Version 0.4.8 (stable)

* #974 Properly report traceless errors (isaacs)

* #983 Better JSON.parse error detection in REPL (isaacs)

* #836 Agent socket errors bubble up to req only if req exists

* #1041 Fix event listener leak check timing (koichik)

* #1038 Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
(koichik)

* #1073 Share SSL context between server connections (Fedor Indutny)

* Disable compression with OpenSSL. Improves memory perf.

* Implement os.totalmem() and os.freemem() for SunOS (Alexandre Marangone)

* Fix a special characters in URL regression (isaacs)

* Fix idle timeouts in HTTPS (Felix Geisendörfer)

* SlowBuffer.write() with 'ucs2' throws ReferenceError. (koichik)

* http.ServerRequest 'close' sometimes gets an error argument
(Felix Geisendörfer)

* Doc improvements

* cleartextstream.destroy() should close(2) the socket. Previously was being
mapped to a shutdown(2) syscall.

* No longer compile out asserts and debug statements in normal build.

* Debugger improvements.

* Upgrade V8 to 3.1.8.16.




Website: <a href="http://nodejs.org/docs/v0.4.8/">http://nodejs.org/docs/v0.4.8/</a>

Download: <a href="http://nodejs.org/dist/node-v0.4.8.tar.gz">http://nodejs.org/dist/node-v0.4.8.tar.gz</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.8/api/">http://nodejs.org/docs/v0.4.8/api/</a>
@@ -6,25 +6,25 @@ status: publish
category: release
slug: node-v0-4-9

2011.06.29, Version 0.4.9 (stable)<ul>
<li> Improve documentation
<li> #1095 error handling bug in stream.pipe() (Felix Geisendörfer)
<li> #1097 Fix a few leaks in node_crypto.cc (Ben Noordhuis)
<li> #562 #1078 Parse file:// urls properly (Ryan Petrello)
<li> #880 Option to disable SSLv2 (Jérémy Lal)
<li> #1087 Disabling SSL compression disabled with early OpenSSLs.
<li> #1144 debugger: don't allow users to input non-valid commands (Siddharth Mahendraker)
<li> Perf improvement for util.inherits
<li> #1166 Support for signature verification with RSA/DSA public keys (Mark Cavage)
<li> #1177 Remove node_modules lookup optimization to better support nested project structures (Mathias Buus)
<li> #1203 Add missing scope.Close to fs.sendfileSync
<li> #1187 Support multiple 'link' headers
<li> #1196 Fix -e/--eval can't load module from node_modules (Koichi Kobayashi)
<li> Upgrade V8 to 3.1.8.25, upgrade http-parser.</ul>


Download: <a href="http://nodejs.org/dist/node-v0.4.9.tar.gz">http://nodejs.org/dist/node-v0.4.9.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.9">http://nodejs.org/docs/v0.4.9</a>

2011.06.29, Version 0.4.9 (stable)<ul>
<li> Improve documentation
<li> #1095 error handling bug in stream.pipe() (Felix Geisendörfer)
<li> #1097 Fix a few leaks in node_crypto.cc (Ben Noordhuis)
<li> #562 #1078 Parse file:// urls properly (Ryan Petrello)
<li> #880 Option to disable SSLv2 (Jérémy Lal)
<li> #1087 Disabling SSL compression disabled with early OpenSSLs.
<li> #1144 debugger: don't allow users to input non-valid commands (Siddharth Mahendraker)
<li> Perf improvement for util.inherits
<li> #1166 Support for signature verification with RSA/DSA public keys (Mark Cavage)
<li> #1177 Remove node_modules lookup optimization to better support nested project structures (Mathias Buus)
<li> #1203 Add missing scope.Close to fs.sendfileSync
<li> #1187 Support multiple 'link' headers
<li> #1196 Fix -e/--eval can't load module from node_modules (Koichi Kobayashi)
<li> Upgrade V8 to 3.1.8.25, upgrade http-parser.</ul>


Download: <a href="http://nodejs.org/dist/node-v0.4.9.tar.gz">http://nodejs.org/dist/node-v0.4.9.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.4.9">http://nodejs.org/docs/v0.4.9</a>

Documentation: <a href="http://nodejs.org/docs/v0.4.9/api">http://nodejs.org/docs/v0.4.9/api</a>
@@ -6,34 +6,34 @@ status: publish
category: release
slug: node-v0-5-0-unstable

2011.07.05, Version 0.5.0 (unstable)

<li> New non-default libuv backend to support IOCP on Windows. Use <code>--use-uv</code> to enable.
<li> deprecate http.cat
<li> docs improved.
<li> add child_process.fork
<li> add fs.utimes() and fs.futimes() support (Ben Noordhuis)
<li> add process.uptime() (Tom Huges)
<li> add path.relative (Tony Huang)
<li> add os.getNetworkInterfaces()
<li> add remoteAddress and remotePort for client TCP connections (Brian White)
<li> add secureOptions flag, setting ciphers, SSL_OP_CRYPTOPRO_TLSEXT_BUG to TLS (Theo Schlossnagle)
<li> add process.arch (Nathan Rajlich)
<li> add reading/writing of floats and doubles from/to buffers (Brian White)
<li> Allow script to be read from stdin
<li> #477 add Buffer::fill method to do memset (Konstantin Käfer)
<li> #573 Diffie-Hellman support to crypto module (Håvard Stranden)
<li> #695 add 'hex' encoding to buffer (isaacs)
<li> #851 Update how REPLServer uses contexts (Ben Weaver)
<li> #853 add fs.lchow, fs.lchmod, fs.fchmod, fs.fchown (isaacs)
<li> #889 Allow to remove all EventEmitter listeners at once (Felix Geisendörfer)
<li> #926 OpenSSL NPN support (Fedor Indutny)
<li> #955 Change ^C handling in REPL (isaacs)
<li> #979 add support for Unix Domain Sockets to HTTP (Mark Cavage)
<li> #1173 #1170 add AMD, asynchronous module definition (isaacs)
<li> DTrace probes: support X-Forwarded-For (Dave Pacheco) </ul>
Download: <a href="http://nodejs.org/dist/node-v0.5.0.tar.gz">http://nodejs.org/dist/node-v0.5.0.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.5.0/">http://nodejs.org/docs/v0.5.0/</a>

2011.07.05, Version 0.5.0 (unstable)

<li> New non-default libuv backend to support IOCP on Windows. Use <code>--use-uv</code> to enable.
<li> deprecate http.cat
<li> docs improved.
<li> add child_process.fork
<li> add fs.utimes() and fs.futimes() support (Ben Noordhuis)
<li> add process.uptime() (Tom Huges)
<li> add path.relative (Tony Huang)
<li> add os.getNetworkInterfaces()
<li> add remoteAddress and remotePort for client TCP connections (Brian White)
<li> add secureOptions flag, setting ciphers, SSL_OP_CRYPTOPRO_TLSEXT_BUG to TLS (Theo Schlossnagle)
<li> add process.arch (Nathan Rajlich)
<li> add reading/writing of floats and doubles from/to buffers (Brian White)
<li> Allow script to be read from stdin
<li> #477 add Buffer::fill method to do memset (Konstantin Käfer)
<li> #573 Diffie-Hellman support to crypto module (Håvard Stranden)
<li> #695 add 'hex' encoding to buffer (isaacs)
<li> #851 Update how REPLServer uses contexts (Ben Weaver)
<li> #853 add fs.lchow, fs.lchmod, fs.fchmod, fs.fchown (isaacs)
<li> #889 Allow to remove all EventEmitter listeners at once (Felix Geisendörfer)
<li> #926 OpenSSL NPN support (Fedor Indutny)
<li> #955 Change ^C handling in REPL (isaacs)
<li> #979 add support for Unix Domain Sockets to HTTP (Mark Cavage)
<li> #1173 #1170 add AMD, asynchronous module definition (isaacs)
<li> DTrace probes: support X-Forwarded-For (Dave Pacheco) </ul>
Download: <a href="http://nodejs.org/dist/node-v0.5.0.tar.gz">http://nodejs.org/dist/node-v0.5.0.tar.gz</a>

Website: <a href="http://nodejs.org/docs/v0.5.0/">http://nodejs.org/docs/v0.5.0/</a>

Documentation: <a href="http://nodejs.org/docs/v0.5.0/api/">http://nodejs.org/docs/v0.5.0/api/</a>
@@ -6,25 +6,25 @@ status: publish
category: release
slug: node-v0-5-1

2011.07.14, Version 0.5.1 (unstable)
<ul><li> #1233 Fix os.totalmem on FreeBSD amd64 (Artem Zaytsev)
<li> #1149 IDNA and Punycode support in url.parse (Jeremy Selier, Ben Noordhuis, isaacs)
<li> Export $CC and $CXX to uv and V8's build systems
<li> Include pthread-win32 static libraries in build (Igor Zinkovsky)
<li> #1199, #1094 Fix fs can't handle large file on 64bit platform (koichik)
<li> #1281 Make require a public member of module (isaacs)
<li> #1303 Stream.pipe returns the destination (Elijah Insua)
<li> #1229 Addons should not -DEV_MULTIPLICITY=0 (Brian White)
<li> libuv backend improvements
<li> Upgrade V8 to 3.4.10</ul>




Download: <a href="http://nodejs.org/dist/v0.5.1/node-v0.5.1.tar.gz">http://nodejs.org/dist/v0.5.1/node-v0.5.1.tar.gz</a>

Windows Build: <a href="http://nodejs.org/dist/v0.5.1/node.exe">http://nodejs.org/dist/v0.5.1/node.exe</a>

Documentation: <a href="http://nodejs.org/dist/v0.5.1/docs/api/">http://nodejs.org/dist/v0.5.1/docs/api/</a>

2011.07.14, Version 0.5.1 (unstable)
<ul><li> #1233 Fix os.totalmem on FreeBSD amd64 (Artem Zaytsev)
<li> #1149 IDNA and Punycode support in url.parse (Jeremy Selier, Ben Noordhuis, isaacs)
<li> Export $CC and $CXX to uv and V8's build systems
<li> Include pthread-win32 static libraries in build (Igor Zinkovsky)
<li> #1199, #1094 Fix fs can't handle large file on 64bit platform (koichik)
<li> #1281 Make require a public member of module (isaacs)
<li> #1303 Stream.pipe returns the destination (Elijah Insua)
<li> #1229 Addons should not -DEV_MULTIPLICITY=0 (Brian White)
<li> libuv backend improvements
<li> Upgrade V8 to 3.4.10</ul>




Download: <a href="http://nodejs.org/dist/v0.5.1/node-v0.5.1.tar.gz">http://nodejs.org/dist/v0.5.1/node-v0.5.1.tar.gz</a>

Windows Build: <a href="http://nodejs.org/dist/v0.5.1/node.exe">http://nodejs.org/dist/v0.5.1/node.exe</a>

Documentation: <a href="http://nodejs.org/dist/v0.5.1/docs/api/">http://nodejs.org/dist/v0.5.1/docs/api/</a>

Website: <a href="http://nodejs.org/dist/v0.5.1/docs">http://nodejs.org/dist/v0.5.1/docs</a>
@@ -6,36 +6,36 @@ status: publish
category: release
slug: node-v0-5-10

2011.10.21, Version 0.5.10 (unstable)
<ul><li>Remove cmake build system, support for Cygwin, legacy code base, process.ENV, process.ARGV, process.memoryUsage().vsize, os.openOSHandle</li>
<li>Documentation improvments (Igor Zinkovsky, Bert Belder, Ilya Dmitrichenko, koichik, Maciej Małecki, Guglielmo Ferri, isaacs)</li>
<li>Performance improvements (Daniel Ennis, Bert Belder, Ben Noordhuis) </li>
<li>Long process.title support (Ben Noordhuis)</li>
<li>net: register net.Server callback only once (Simen Brekken)</li>
<li>net: fix connect queue bugs (Ben Noordhuis)</li>
<li>debugger: fix backtrace err handling (Fedor Indutny)</li>
<li>Use getaddrinfo instead of c-ares for dns.lookup</li>
<li>Emit 'end' from crypto streams on close</li>
<li>repl: print out `undefined` (Nathan Rajlich)</li>
<li>#1902 buffer: use NO_NULL_TERMINATION flag (koichik)</li>
<li>#1907 http: Added support for HTTP PATCH verb (Thomas Parslow)</li>
<li>#1644 add GetCPUInfo on windows (Karl Skomski)</li>
<li>#1484, #1834, #1482, #771 Don't use a separate context for the repl. (isaacs)</li>
<li>#1882 zlib Update 'availOutBefore' value, and test (isaacs)</li>
<li>#1888 child_process.fork: don't modify args (koichik)</li>
<li>#1516 tls: requestCert unusable with Firefox and Chrome (koichik)</li>
<li>#1467 tls: The TLS API is inconsistent with the TCP API (koichik)</li>
<li>#1894 net: fix error handling in listen() (koichik)</li>
<li>#1860 console.error now goes through uv_tty_t</li>
<li>Upgrade V8 to 3.7.0</li>
<li>Upgrade GYP to r1081</li></ul>



Download: <a href="http://nodejs.org/dist/v0.5.10/node-v0.5.10.tar.gz">http://nodejs.org/dist/v0.5.10/node-v0.5.10.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.10/node.exe">http://nodejs.org/dist/v0.5.10/node.exe</a>

Website: <a href="http://nodejs.org/docs/v0.5.10/">http://nodejs.org/docs/v0.5.10/</a>

2011.10.21, Version 0.5.10 (unstable)
<ul><li>Remove cmake build system, support for Cygwin, legacy code base, process.ENV, process.ARGV, process.memoryUsage().vsize, os.openOSHandle</li>
<li>Documentation improvments (Igor Zinkovsky, Bert Belder, Ilya Dmitrichenko, koichik, Maciej Małecki, Guglielmo Ferri, isaacs)</li>
<li>Performance improvements (Daniel Ennis, Bert Belder, Ben Noordhuis) </li>
<li>Long process.title support (Ben Noordhuis)</li>
<li>net: register net.Server callback only once (Simen Brekken)</li>
<li>net: fix connect queue bugs (Ben Noordhuis)</li>
<li>debugger: fix backtrace err handling (Fedor Indutny)</li>
<li>Use getaddrinfo instead of c-ares for dns.lookup</li>
<li>Emit 'end' from crypto streams on close</li>
<li>repl: print out `undefined` (Nathan Rajlich)</li>
<li>#1902 buffer: use NO_NULL_TERMINATION flag (koichik)</li>
<li>#1907 http: Added support for HTTP PATCH verb (Thomas Parslow)</li>
<li>#1644 add GetCPUInfo on windows (Karl Skomski)</li>
<li>#1484, #1834, #1482, #771 Don't use a separate context for the repl. (isaacs)</li>
<li>#1882 zlib Update 'availOutBefore' value, and test (isaacs)</li>
<li>#1888 child_process.fork: don't modify args (koichik)</li>
<li>#1516 tls: requestCert unusable with Firefox and Chrome (koichik)</li>
<li>#1467 tls: The TLS API is inconsistent with the TCP API (koichik)</li>
<li>#1894 net: fix error handling in listen() (koichik)</li>
<li>#1860 console.error now goes through uv_tty_t</li>
<li>Upgrade V8 to 3.7.0</li>
<li>Upgrade GYP to r1081</li></ul>



Download: <a href="http://nodejs.org/dist/v0.5.10/node-v0.5.10.tar.gz">http://nodejs.org/dist/v0.5.10/node-v0.5.10.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.10/node.exe">http://nodejs.org/dist/v0.5.10/node.exe</a>

Website: <a href="http://nodejs.org/docs/v0.5.10/">http://nodejs.org/docs/v0.5.10/</a>

Documentation: <a href="http://nodejs.org/docs/v0.5.10/api/">http://nodejs.org/docs/v0.5.10/api/</a>
@@ -6,22 +6,22 @@ status: publish
category: release
slug: node-v0-5-2

2011.07.22, Version 0.5.2 (unstable)
<ul><li>libuv improvements; named pipe support
<li>#1242 check for SSL_COMP_get_compression_methods() (Ben Noordhuis)
<li>#1348 remove require.paths (isaacs)
<li>#1349 Delimit NODE_PATH with ; on Windows (isaacs)
<li>#1335 Remove EventEmitter from C++
<li>#1357 Load json files with require() (isaacs)
<li>#1374 fix setting ServerResponse.statusCode in writeHead (Trent Mick)
<li>Fixed: GC was being run too often.
<li>Upgrade V8 to 3.4.14
<li>doc improvements</ul>

Download: <a href="http://nodejs.org/dist/v0.5.2/node-v0.5.2.tar.gz">http://nodejs.org/dist/v0.5.2/node-v0.5.2.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.2/node.exe">http://nodejs.org/dist/v0.5.2/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.2/docs/">http://nodejs.org/dist/v0.5.2/docs/</a>

2011.07.22, Version 0.5.2 (unstable)
<ul><li>libuv improvements; named pipe support
<li>#1242 check for SSL_COMP_get_compression_methods() (Ben Noordhuis)
<li>#1348 remove require.paths (isaacs)
<li>#1349 Delimit NODE_PATH with ; on Windows (isaacs)
<li>#1335 Remove EventEmitter from C++
<li>#1357 Load json files with require() (isaacs)
<li>#1374 fix setting ServerResponse.statusCode in writeHead (Trent Mick)
<li>Fixed: GC was being run too often.
<li>Upgrade V8 to 3.4.14
<li>doc improvements</ul>

Download: <a href="http://nodejs.org/dist/v0.5.2/node-v0.5.2.tar.gz">http://nodejs.org/dist/v0.5.2/node-v0.5.2.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.2/node.exe">http://nodejs.org/dist/v0.5.2/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.2/docs/">http://nodejs.org/dist/v0.5.2/docs/</a>

Documentation: <a href="http://nodejs.org/dist/v0.5.2/docs/api">http://nodejs.org/dist/v0.5.2/docs/api</a>
@@ -6,48 +6,48 @@ status: publish
category: release
slug: node-v0-5-3

2011.08.01, Version 0.5.3 (unstable)

<ul><li>Fix crypto encryption/decryption with Base64. (SAWADA Tadashi)

<li>#243 Add an optional length argument to Buffer.write() (koichik)

<li>#657 convert nonbuffer data to string in fs.writeFile/Sync (Daniel Pihlström)

<li>Add process.features, remove process.useUV (Ben Noordhuis)

<li>#324 Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231 (Stefan Bühler)

<li>Add Socket::bytesRead, Socket::bytesWritten (Alexander Uvarov)

<li>#572 Don't print result of --eval in CLI (Ben Noordhuis)

<li>#1223 Fix http.ClientRequest crashes if end() was called twice (koichik)

<li>#1383 Emit 'close' after all connections have closed (Felix Geisendörfer)

<li>Add sprintf-like util.format() function (Ben Noordhuis)

<li>Add support for TLS SNI (Fedor Indutny)

<li>New http agent implementation. Off by default the command line flag <code>--use-http2</code> will enable it. <code>make test-http2</code> will run the tests for the new implementation. (Mikeal Rogers)

<li>Revert AMD compatibility. (isaacs)

<li>Windows: improvements, child_process support.

<li>Remove pkg-config file.

<li>Fix startup time regressions.

<li>doc improvements</ul>



Download: <a href="http://nodejs.org/dist/v0.5.3/node-v0.5.3.tar.gz">http://nodejs.org/dist/v0.5.3/node-v0.5.3.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.3/node.exe">http://nodejs.org/dist/v0.5.3/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.3/docs">http://nodejs.org/dist/v0.5.3/docs</a>

2011.08.01, Version 0.5.3 (unstable)

<ul><li>Fix crypto encryption/decryption with Base64. (SAWADA Tadashi)

<li>#243 Add an optional length argument to Buffer.write() (koichik)

<li>#657 convert nonbuffer data to string in fs.writeFile/Sync (Daniel Pihlström)

<li>Add process.features, remove process.useUV (Ben Noordhuis)

<li>#324 Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231 (Stefan Bühler)

<li>Add Socket::bytesRead, Socket::bytesWritten (Alexander Uvarov)

<li>#572 Don't print result of --eval in CLI (Ben Noordhuis)

<li>#1223 Fix http.ClientRequest crashes if end() was called twice (koichik)

<li>#1383 Emit 'close' after all connections have closed (Felix Geisendörfer)

<li>Add sprintf-like util.format() function (Ben Noordhuis)

<li>Add support for TLS SNI (Fedor Indutny)

<li>New http agent implementation. Off by default the command line flag <code>--use-http2</code> will enable it. <code>make test-http2</code> will run the tests for the new implementation. (Mikeal Rogers)

<li>Revert AMD compatibility. (isaacs)

<li>Windows: improvements, child_process support.

<li>Remove pkg-config file.

<li>Fix startup time regressions.

<li>doc improvements</ul>



Download: <a href="http://nodejs.org/dist/v0.5.3/node-v0.5.3.tar.gz">http://nodejs.org/dist/v0.5.3/node-v0.5.3.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.3/node.exe">http://nodejs.org/dist/v0.5.3/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.3/docs">http://nodejs.org/dist/v0.5.3/docs</a>

Documentation: <a href="http://nodejs.org/dist/v0.5.3/docs/api">http://nodejs.org/dist/v0.5.3/docs/api</a>
@@ -6,31 +6,31 @@ status: publish
category: release
slug: node-v0-5-4

2011.08.12, Version 0.5.4 (unstable)

<ul><li>libuv/Windows compatibility improvements

<li>Build on Microsoft Visual Studio via GYP. Use generate-projects.bat in the to build sln files. (Peter Bright, Igor Zinkovsky)

<li>Make Mikeal's HTTP agent client the default. Use old HTTP client with <code>--use-http1</code>

<li>Fixes https host header default port handling. (Mikeal Rogers)

<li>#1440 strip byte order marker when loading *.js and *.json files (Ben Noordhuis)

<li>#1434 Improve util.format() compatibility with browser. (Koichi Kobayashi)

<li>Provide unchecked uint entry points for integer Buffer.read/writeInt methods. (Robert Mustacchi)

<li>CMake improvements (Tom Huges)

<li>Upgrade V8 to 3.5.4.</ul>


Download: <a href="http://nodejs.org/dist/v0.5.4/node-v0.5.4.tar.gz">http://nodejs.org/dist/v0.5.4/node-v0.5.4.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.4/node.exe">http://nodejs.org/dist/v0.5.4/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.4/docs">http://nodejs.org/dist/v0.5.4/docs</a>

2011.08.12, Version 0.5.4 (unstable)

<ul><li>libuv/Windows compatibility improvements

<li>Build on Microsoft Visual Studio via GYP. Use generate-projects.bat in the to build sln files. (Peter Bright, Igor Zinkovsky)

<li>Make Mikeal's HTTP agent client the default. Use old HTTP client with <code>--use-http1</code>

<li>Fixes https host header default port handling. (Mikeal Rogers)

<li>#1440 strip byte order marker when loading *.js and *.json files (Ben Noordhuis)

<li>#1434 Improve util.format() compatibility with browser. (Koichi Kobayashi)

<li>Provide unchecked uint entry points for integer Buffer.read/writeInt methods. (Robert Mustacchi)

<li>CMake improvements (Tom Huges)

<li>Upgrade V8 to 3.5.4.</ul>


Download: <a href="http://nodejs.org/dist/v0.5.4/node-v0.5.4.tar.gz">http://nodejs.org/dist/v0.5.4/node-v0.5.4.tar.gz</a>

Windows Executable: <a href="http://nodejs.org/dist/v0.5.4/node.exe">http://nodejs.org/dist/v0.5.4/node.exe</a>

Website: <a href="http://nodejs.org/dist/v0.5.4/docs">http://nodejs.org/dist/v0.5.4/docs</a>

Documentation: <a href="http://nodejs.org/dist/v0.5.4/docs/api">http://nodejs.org/dist/v0.5.4/docs/api</a>