Browse Source

Generate static HTML blog content out of markdown

v0.9.1-release
isaacs 13 years ago
parent
commit
8f1a38d916
  1. 2
      .gitignore
  2. 13
      Makefile
  3. 209
      doc/blog.html
  4. 10
      doc/blog/Uncategorized/ldapjs-a-reprise-of-ldap.md
  5. 13
      doc/blog/Uncategorized/welcome-to-the-node-blog.md
  6. 16
      doc/blog/module/multi-server-continuous-deployment-with-fleet.md
  7. 2
      doc/blog/npm/managing-node-js-dependencies-with-shrinkwrap.md
  8. 25
      doc/blog/release/node-v0-4-10.md
  9. 39
      doc/blog/release/node-v0-4-11.md
  10. 29
      doc/blog/release/node-v0-4-12.md
  11. 33
      doc/blog/release/node-v0-4-3.md
  12. 27
      doc/blog/release/node-v0-4-4.md
  13. 29
      doc/blog/release/node-v0-4-5.md
  14. 27
      doc/blog/release/node-v0-4-6.md
  15. 23
      doc/blog/release/node-v0-4-7.md
  16. 55
      doc/blog/release/node-v0-4-8.md
  17. 30
      doc/blog/release/node-v0-4-9.md
  18. 39
      doc/blog/release/node-v0-5-0-unstable.md
  19. 30
      doc/blog/release/node-v0-5-1.md
  20. 41
      doc/blog/release/node-v0-5-10.md
  21. 27
      doc/blog/release/node-v0-5-2.md
  22. 53
      doc/blog/release/node-v0-5-3.md
  23. 36
      doc/blog/release/node-v0-5-4.md
  24. 40
      doc/blog/release/node-v0-5-5.md
  25. 49
      doc/blog/release/node-v0-5-6.md
  26. 35
      doc/blog/release/node-v0-5-7-unstable.md
  27. 26
      doc/blog/release/node-v0-5-8.md
  28. 27
      doc/blog/release/node-v0-5-9.md
  29. 80
      doc/blog/release/node-v0-6-0.md
  30. 33
      doc/blog/release/node-v0-6-1.md
  31. 30
      doc/blog/release/node-v0-6-10.md
  32. 27
      doc/blog/release/node-v0-6-2.md
  33. 30
      doc/blog/release/node-v0-6-3.md
  34. 31
      doc/blog/release/node-v0-6-4.md
  35. 21
      doc/blog/release/node-v0-6-5.md
  36. 32
      doc/blog/release/node-v0-6-6.md
  37. 41
      doc/blog/release/node-v0-6-7.md
  38. 31
      doc/blog/release/node-v0-6-8.md
  39. 30
      doc/blog/release/node-v0-6-9.md
  40. 29
      doc/blog/release/node-v0-7-0-unstable.md
  41. 30
      doc/blog/release/node-v0-7-1.md
  42. 32
      doc/blog/release/node-v0-7-2-unstable.md
  43. 39
      doc/blog/release/node-v0-7-3.md
  44. 61
      doc/blog/release/node-version-0-6-19-stable.md
  45. 73
      doc/blog/release/node-version-0-7-9-unstable.md
  46. 64
      doc/blog/release/version-0-6-11-stable.md
  47. 66
      doc/blog/release/version-0-6-12-stable.md
  48. 50
      doc/blog/release/version-0-6-13-stable.md
  49. 55
      doc/blog/release/version-0-6-14-stable.md
  50. 53
      doc/blog/release/version-0-6-15-stable.md
  51. 59
      doc/blog/release/version-0-6-16-stable.md
  52. 47
      doc/blog/release/version-0-6-17-stable.md
  53. 59
      doc/blog/release/version-0-6-18-stable.md
  54. 86
      doc/blog/release/version-0-7-10-unstable.md
  55. 80
      doc/blog/release/version-0-7-11-unstable.md
  56. 56
      doc/blog/release/version-0-7-12.md
  57. 50
      doc/blog/release/version-0-7-4-unstable.md
  58. 62
      doc/blog/release/version-0-7-5-unstable.md
  59. 72
      doc/blog/release/version-0-7-6-unstable.md
  60. 71
      doc/blog/release/version-0-7-7-unstable.md
  61. 71
      doc/blog/release/version-0-7-8-unstable.md
  62. 25
      doc/blog/video/bryan-cantrill-instrumenting-the-real-time-web.md
  63. 6
      doc/blog/vulnerability/http-server-security-vulnerability-please-upgrade-to-0-6-17.md
  64. 5
      tools/blog/README.md
  65. 261
      tools/blog/generate.js
  66. 1
      tools/blog/node_modules/.bin/marked
  67. 0
      tools/blog/node_modules/ejs/.gitmodules
  68. 4
      tools/blog/node_modules/ejs/.npmignore
  69. 98
      tools/blog/node_modules/ejs/History.md
  70. 23
      tools/blog/node_modules/ejs/Makefile
  71. 151
      tools/blog/node_modules/ejs/Readme.md
  72. 14
      tools/blog/node_modules/ejs/benchmark.js
  73. 567
      tools/blog/node_modules/ejs/ejs.js
  74. 2
      tools/blog/node_modules/ejs/ejs.min.js
  75. 24
      tools/blog/node_modules/ejs/examples/client.html
  76. 7
      tools/blog/node_modules/ejs/examples/list.ejs
  77. 14
      tools/blog/node_modules/ejs/examples/list.js
  78. 2
      tools/blog/node_modules/ejs/index.js
  79. 298
      tools/blog/node_modules/ejs/lib/ejs.js
  80. 198
      tools/blog/node_modules/ejs/lib/filters.js
  81. 23
      tools/blog/node_modules/ejs/lib/utils.js
  82. 23
      tools/blog/node_modules/ejs/package.json
  83. 174
      tools/blog/node_modules/ejs/support/compile.js
  84. 329
      tools/blog/node_modules/ejs/test/ejs.test.js
  85. 1
      tools/blog/node_modules/ejs/test/fixtures/user.ejs
  86. 2
      tools/blog/node_modules/glob/.npmignore
  87. 4
      tools/blog/node_modules/glob/.travis.yml
  88. 25
      tools/blog/node_modules/glob/LICENCE
  89. 233
      tools/blog/node_modules/glob/README.md
  90. 9
      tools/blog/node_modules/glob/examples/g.js
  91. 9
      tools/blog/node_modules/glob/examples/usr-local.js
  92. 601
      tools/blog/node_modules/glob/glob.js
  93. 1
      tools/blog/node_modules/glob/node_modules/graceful-fs/.npmignore
  94. 23
      tools/blog/node_modules/glob/node_modules/graceful-fs/LICENSE
  95. 5
      tools/blog/node_modules/glob/node_modules/graceful-fs/README.md
  96. 275
      tools/blog/node_modules/glob/node_modules/graceful-fs/graceful-fs.js
  97. 22
      tools/blog/node_modules/glob/node_modules/graceful-fs/package.json
  98. 51
      tools/blog/node_modules/glob/node_modules/inherits/README.md
  99. 29
      tools/blog/node_modules/glob/node_modules/inherits/inherits.js
  100. 25
      tools/blog/node_modules/glob/node_modules/inherits/package.json

2
.gitignore

@ -18,6 +18,7 @@ node_g
# various stuff that VC++ produces/uses # various stuff that VC++ produces/uses
Debug/ Debug/
Release/ Release/
!doc/blog/**
*.sln *.sln
!nodemsi.sln !nodemsi.sln
*.suo *.suo
@ -39,6 +40,5 @@ ipch/
/npm.wxs /npm.wxs
/tools/msvs/npm.wixobj /tools/msvs/npm.wixobj
email.md email.md
blog.html
deps/v8-* deps/v8-*
./node_modules ./node_modules

13
Makefile

@ -130,7 +130,13 @@ website_files = \
out/doc/changelog.html \ out/doc/changelog.html \
$(doc_images) $(doc_images)
doc: program $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ doc: program $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ blog
blogclean:
rm -rf out/blog
blog: doc/blog out/Release/node tools/blog
out/Release/node tools/blog/generate.js doc/blog/ out/blog/ doc/blog.html
$(apidoc_dirs): $(apidoc_dirs):
mkdir -p $@ mkdir -p $@
@ -160,6 +166,9 @@ email.md: ChangeLog tools/email-footer.md
blog.html: email.md blog.html: email.md
cat $< | ./node tools/doc/node_modules/.bin/marked > $@ cat $< | ./node tools/doc/node_modules/.bin/marked > $@
blog-upload: blog
rsync -r out/blog/ node@nodejs.org:~/web/nodejs.org/blog/
website-upload: doc website-upload: doc
rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/ rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
ssh node@nodejs.org '\ ssh node@nodejs.org '\
@ -260,4 +269,4 @@ cpplint:
lint: jslint cpplint lint: jslint cpplint
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload pkg .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload pkg blog blogclean

209
doc/blog.html

@ -0,0 +1,209 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://nodejs.org/pipe.css">
<link rel="stylesheet" href="http://nodejs.org/sh_vim-dark.css">
<style>
#column1 h1 {
clear:both;
}
#column1 li, #content h1 + p {
color:inherit;
font-family: inherit;
font-size: 14px;
line-height:24px;
}
#content #column1 p.meta, #content #column1 p.respond {
font-size: 14px;
line-height: 24px;
color:#690;
font-family: inherit;
}
#content #column1 p.respond {
font-style:italic;
padding:2em 0;
}
#column1 a {
color: #8c0;
}
#column2 ul {
padding:0;
}
#column2 {
margin-top:-66px!important;
}
div.post-in-feed {
padding-bottom:1em;
}
p.next { float:right; width: 40%; text-align:right; }
p.prev { float:left; width:40%; text-align:left; }
pre { overflow: auto; }
</style>
<title><%= title %></title>
</head>
<body class="int blog" id="<%= pageid %>">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page"><img id="logo" src=
"http://nodejs.org/logo.png" alt="node.js"></a>
</div>
<div id="content" class="clearfix">
<div id="column2" class="interior">
<ul>
<li><a href="http://nodejs.org/" class="home">Home</a></li>
<li><a href="http://nodejs.org/#download" class=
"download">Download</a></li>
<li><a href="http://nodejs.org/about/" class="about">About</a></li>
<li><a href="http://search.npmjs.org/" class="npm">npm
Registry</a></li>
<li><a href="http://nodejs.org/api/" class="docs">Docs</a></li>
<li><a href="http://blog.nodejs.org/" class="blog current">Blog</a></li>
<li><a href="http://nodejs.org/community/" class=
"community">Community</a></li>
<li><a href="http://nodejs.org/logos/" class=
"logos">Logos</a></li>
<li><a href="http://jobs.nodejs.org/" class="jobs">Jobs</a></li>
</ul>
<p class="twitter"><a href="http://twitter.com/nodejs">@nodejs</a></p>
</div>
<div id="column1" class="interior">
<h1><%- title %></h1>
<% if (typeof post !== 'undefined') {
// just one post on this page
%>
<p class="meta"><%=
post.author + ' - ' +
post.date.toUTCString().replace(/ GMT$/, '')
%></p>
<%- post.content %>
<p class="respond">Please post feedback and comments on
<a href="https://groups.google.com/group/nodejs">the Node.JS
user mailing list</a>.</p>
<%
if (post.next || post.prev) {
if (post.prev) {
%><p class="prev"><a href="<%=
post.prev.permalink
%>">&larr; <%=
post.prev.title
%></a></p>
<%
}
if (post.next) {
%><p class="next"><a href="<%=
post.next.permalink
%>"><%=
post.next.title
%> &rarr;</a></p>
<%
}
}
} else { // not single post page
if (paginated && total > 1 ) {
if (page > 0) {
// add 1 to all of the displayed numbers, because
// humans are not zero-indexed like they ought to be.
%>
<p class="prev"><a href="<%= uri + (page - 1) %>">
&larr; Page <%- page %>
</a></p>
<%
}
if (page < total - 1) { %>
<p class="next"><a href="<%= uri + (page + 1) %>">
Page <%- page + 2 %> &rarr;
</a></p>
<%
}
}
posts.forEach(function(post) {
%>
<div class="post-in-feed">
<h1><a href="<%=
post.permalink
%>" class="permalink"><%-
post.title
%></a></h1>
<p class="meta"><%=
post.author + ' - ' +
post.date.toUTCString().replace(/ GMT$/, '')
%></p>
<%- post.content %>
</div>
<%
});
if (paginated && total > 1 ) {
if (page > 0) {
// add 1 to all of the displayed numbers, because
// humans are not zero-indexed like they ought to be.
%>
<p class="prev"><a href="<%= uri + (page - 1) %>">
&larr; Page <%- page %>
</a></p>
<%
}
if (page < total - 1) { %>
<p class="next"><a href="<%= uri + (page + 1) %>">
Page <%- page + 2 %> &rarr;
</a></p>
<%
}
} // pagination
} // not a single post
%>
</div>
</div>
<div id="footer">
<ul class="clearfix">
<li><a href="/">Node.js</a></li>
<li><a href="/#download">Download</a></li>
<li><a href="/about/">About</a></li>
<li><a href="http://search.npmjs.org/">npm Registry</a></li>
<li><a href="http://nodejs.org/api/">Docs</a></li>
<li><a href="http://blog.nodejs.org">Blog</a></li>
<li><a href="/community/">Community</a></li>
<li><a href="/logos/">Logos</a></li>
<li><a href="http://jobs.nodejs.org/">Jobs</a></li>
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
</ul>
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/master/LICENSE">license</a>.</p>
</div>
<script src="../sh_main.js"></script>
<script src="../sh_javascript.min.js"></script>
<script>highlight(undefined, undefined, 'pre');</script>
<script>
var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script>
try {
var pageTracker = _gat._getTracker("UA-10874194-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

10
doc/blog/Uncategorized/ldapjs-a-reprise-of-ldap.md

@ -7,6 +7,7 @@ slug: ldapjs-a-reprise-of-ldap
This post has been about 10 years in the making. My first job out of college was at IBM working on the <a title="Tivoli Directory Server" href="http://www-01.ibm.com/software/tivoli/products/directory-server/">Tivoli Directory Server</a>, and at the time I had a preconceived notion that working on anything related to Internet RFCs was about as hot as you could get. I spent a lot of time back then getting "down and dirty" with everything about LDAP: the protocol, performance, storage engines, indexing and querying, caching, customer use cases and patterns, general network server patterns, etc. Basically, I soaked up as much as I possibly could while I was there. On top of that, I listened to all the "gray beards" tell me about the history of LDAP, which was a bizarre marriage of telecommunications conglomerates and graduate students. The point of this blog post is to give you a crash course in LDAP, and explain what makes <a title="ldapjs" href="http://ldapjs.org">ldapjs</a> different. Allow me to be the gray beard for a bit... This post has been about 10 years in the making. My first job out of college was at IBM working on the <a title="Tivoli Directory Server" href="http://www-01.ibm.com/software/tivoli/products/directory-server/">Tivoli Directory Server</a>, and at the time I had a preconceived notion that working on anything related to Internet RFCs was about as hot as you could get. I spent a lot of time back then getting "down and dirty" with everything about LDAP: the protocol, performance, storage engines, indexing and querying, caching, customer use cases and patterns, general network server patterns, etc. Basically, I soaked up as much as I possibly could while I was there. On top of that, I listened to all the "gray beards" tell me about the history of LDAP, which was a bizarre marriage of telecommunications conglomerates and graduate students. The point of this blog post is to give you a crash course in LDAP, and explain what makes <a title="ldapjs" href="http://ldapjs.org">ldapjs</a> different. Allow me to be the gray beard for a bit...
<h2>What is LDAP and where did it come from?</h2> <h2>What is LDAP and where did it come from?</h2>
Directory services were largely pioneered by the telecommunications companies (e.g., AT&amp;T) to allow fast information retrieval of all the crap you'd expect would be in a telephone book and directory. That is, given a name, or an address, or an area code, or a number, or a foo support looking up customer records, billing information, routing information, etc. The efforts of several telcos came to exist in the <a title="X.500" href="http://en.wikipedia.org/wiki/X.500">X.500</a> standard(s). An X.500 directory is one of the most complicated beasts you can possibly imagine, but on a high note, there's Directory services were largely pioneered by the telecommunications companies (e.g., AT&amp;T) to allow fast information retrieval of all the crap you'd expect would be in a telephone book and directory. That is, given a name, or an address, or an area code, or a number, or a foo support looking up customer records, billing information, routing information, etc. The efforts of several telcos came to exist in the <a title="X.500" href="http://en.wikipedia.org/wiki/X.500">X.500</a> standard(s). An X.500 directory is one of the most complicated beasts you can possibly imagine, but on a high note, there's
probably not a thing you can imagine in a directory service that wasn't thought of in there. It is literally the kitchen sink. Oh, and it doesn't run over IP (it's <em>actually</em> on the <a title="OSI Model" href="http://en.wikipedia.org/wiki/OSI_model">OSI</a> model). probably not a thing you can imagine in a directory service that wasn't thought of in there. It is literally the kitchen sink. Oh, and it doesn't run over IP (it's <em>actually</em> on the <a title="OSI Model" href="http://en.wikipedia.org/wiki/OSI_model">OSI</a> model).
@ -22,6 +23,7 @@ Macro point is that there have actually been very few "fresh" implementations o
That said, while there certainly is some wacky stuff in the LDAP protocol itself, it really suffered from poor and buggy implementations more than the fact that LDAP itself was fundamentally flawed. As <a title="Engine Yard LDAP" href="http://www.engineyard.com/blog/2009/ldap-directories-the-forgotten-nosql/">engine yard pointed out a few years back</a>, you can think of LDAP as the original NoSQL store. That said, while there certainly is some wacky stuff in the LDAP protocol itself, it really suffered from poor and buggy implementations more than the fact that LDAP itself was fundamentally flawed. As <a title="Engine Yard LDAP" href="http://www.engineyard.com/blog/2009/ldap-directories-the-forgotten-nosql/">engine yard pointed out a few years back</a>, you can think of LDAP as the original NoSQL store.
<h2>LDAP: The Good Parts</h2> <h2>LDAP: The Good Parts</h2>
So what's awesome about LDAP? Since it's a directory system it maintains a hierarchy of your data, which as an information management pattern aligns So what's awesome about LDAP? Since it's a directory system it maintains a hierarchy of your data, which as an information management pattern aligns
with _a lot_ of use case (the quintessential example is white pages for people in your company, but subscriptions to SaaS applications, "host groups" with _a lot_ of use case (the quintessential example is white pages for people in your company, but subscriptions to SaaS applications, "host groups"
for tracking machines/instances, physical goods tracking, etc., all have use cases that fit that organization scheme). For example, presumably at your job for tracking machines/instances, physical goods tracking, etc., all have use cases that fit that organization scheme). For example, presumably at your job
@ -50,6 +52,7 @@ I could keep going, but the gist is that LDAP has "full" boolean predicate logi
Oh, and on top of the technical merits, better or worse, it's an established standard for both administrators and applications (i.e., most "shipped" intranet software has either a local user repository or the ability to leverage an LDAP server somewhere). So there's a lot of compelling reasons to look at leveraging LDAP. Oh, and on top of the technical merits, better or worse, it's an established standard for both administrators and applications (i.e., most "shipped" intranet software has either a local user repository or the ability to leverage an LDAP server somewhere). So there's a lot of compelling reasons to look at leveraging LDAP.
<h2>ldapjs: Why do I care?</h2> <h2>ldapjs: Why do I care?</h2>
As I said earlier, I spent a lot of time at IBM observing how customers used LDAP, and the real items I took away from that experience were: As I said earlier, I spent a lot of time at IBM observing how customers used LDAP, and the real items I took away from that experience were:
<ul> <ul>
<li>LDAP implementations have suffered a lot from never having been designed from the ground up for a large number of concurrent connections with asynchronous operations.</li> <li>LDAP implementations have suffered a lot from never having been designed from the ground up for a large number of concurrent connections with asynchronous operations.</li>
@ -57,7 +60,6 @@ As I said earlier, I spent a lot of time at IBM observing how customers used LD
<li>Replication was always a sticking point. LDAP vendors all tried to offer a big multi-master, multi-site replication model. It was a lot of "bolt-on" complexity, done before the <a title="CAP Theorem" href="http://en.wikipedia.org/wiki/CAP_theorem">CAP theorem</a> was written, and certainly before it was accepted as "truth."</li> <li>Replication was always a sticking point. LDAP vendors all tried to offer a big multi-master, multi-site replication model. It was a lot of "bolt-on" complexity, done before the <a title="CAP Theorem" href="http://en.wikipedia.org/wiki/CAP_theorem">CAP theorem</a> was written, and certainly before it was accepted as "truth."</li>
<li>Nobody uses all of the protocol. In fact, 20% of the features solve 80% of the use cases (I'm making that number up, but you get the idea).</li> <li>Nobody uses all of the protocol. In fact, 20% of the features solve 80% of the use cases (I'm making that number up, but you get the idea).</li>
</ul> </ul>
<div>
For all the good parts of LDAP, those are really damned big failing points, and even I eventually abandoned LDAP for the greener pastures of NoSQL somewhere For all the good parts of LDAP, those are really damned big failing points, and even I eventually abandoned LDAP for the greener pastures of NoSQL somewhere
along the way. But it always nagged at me that LDAP didn't get it's due because of a lot of implementation problems (to be clear, if I could, I'd change some along the way. But it always nagged at me that LDAP didn't get it's due because of a lot of implementation problems (to be clear, if I could, I'd change some
@ -70,7 +72,6 @@ Well, in the last year, I went to work for <a title="Joyent" href="http://www.jo
<li><strong>Replication is hard. CAP is right:</strong> There are a lot of distributed databases out vying to solve exactly this problem. At Joyent we went with <a title="Riak" href="http://www.basho.com/">Riak</a>. Check!</li> <li><strong>Replication is hard. CAP is right:</strong> There are a lot of distributed databases out vying to solve exactly this problem. At Joyent we went with <a title="Riak" href="http://www.basho.com/">Riak</a>. Check!</li>
<li><strong>Don't need all of the protocol:</strong> I'm lazy. Let's just skip the stupid things most people don't need. Check!</li> <li><strong>Don't need all of the protocol:</strong> I'm lazy. Let's just skip the stupid things most people don't need. Check!</li>
</ul> </ul>
<div>
So that's the crux of ldapjs right there. Giving you the ability to put LDAP back into your application while nailing those 4 fundamental problems that plague most existing LDAP deployments. So that's the crux of ldapjs right there. Giving you the ability to put LDAP back into your application while nailing those 4 fundamental problems that plague most existing LDAP deployments.
@ -78,11 +79,6 @@ The obvious question is how it turned out, and the answer is, honestly, better 
Within 24 hours of releasing ldapjs on <a title="twitter" href="http://twitter.com/#!/mcavage/status/106767571012952064">Twitter</a>, there was an <a title="github ldapjs address book" href="https://gist.github.com/1173999">implementation of an address book</a> that works with Thunderbird/Evolution, by the end of that weekend there was some <a href="http://i.imgur.com/uR16U.png">slick integration with CouchDB</a>, and ldapjs even got used in one of the <a href="http://twitter.com/#!/jheusala/status/108977708649811970">node knockout apps</a>. Off to a pretty good start! Within 24 hours of releasing ldapjs on <a title="twitter" href="http://twitter.com/#!/mcavage/status/106767571012952064">Twitter</a>, there was an <a title="github ldapjs address book" href="https://gist.github.com/1173999">implementation of an address book</a> that works with Thunderbird/Evolution, by the end of that weekend there was some <a href="http://i.imgur.com/uR16U.png">slick integration with CouchDB</a>, and ldapjs even got used in one of the <a href="http://twitter.com/#!/jheusala/status/108977708649811970">node knockout apps</a>. Off to a pretty good start!
</div>
</div>
<h2>The Road Ahead</h2> <h2>The Road Ahead</h2>
<div>
Hopefully you've been motivated to learn a little bit more about LDAP and try out <a href="http://ldapjs.org">ldapjs</a>. The best place to start is probably the <a title="ldapjs guide" href="http://ldapjs.org/guide.html">guide</a>. After that you'll probably need to pick up a book from <a href="http://www.amazon.com/Understanding-Deploying-LDAP-Directory-Services/dp/0672323168">back in the day</a>. ldapjs itself is still in its infancy; there's quite a bit of room to add some slick client-side logic (e.g., connection pools, automatic reconnects), easy to use schema validation, backends, etc. By the time this post is live, there will be experimental <a href="http://en.wikipedia.org/wiki/DTrace">dtrace</a> support if you're running on Mac OS X or preferably Joyent's <a href="http://smartos.org/">SmartOS</a> (shameless plug). And that nagging percentage of the protocol I didn't do will get filled in over time I suspect. If you've got an interest in any of this, send me some pull requests, but most importantly, I just want to see LDAP not just be a skeleton in the closet and get used in places where you should be using it. So get out there and write you some LDAP. Hopefully you've been motivated to learn a little bit more about LDAP and try out <a href="http://ldapjs.org">ldapjs</a>. The best place to start is probably the <a title="ldapjs guide" href="http://ldapjs.org/guide.html">guide</a>. After that you'll probably need to pick up a book from <a href="http://www.amazon.com/Understanding-Deploying-LDAP-Directory-Services/dp/0672323168">back in the day</a>. ldapjs itself is still in its infancy; there's quite a bit of room to add some slick client-side logic (e.g., connection pools, automatic reconnects), easy to use schema validation, backends, etc. By the time this post is live, there will be experimental <a href="http://en.wikipedia.org/wiki/DTrace">dtrace</a> support if you're running on Mac OS X or preferably Joyent's <a href="http://smartos.org/">SmartOS</a> (shameless plug). And that nagging percentage of the protocol I didn't do will get filled in over time I suspect. If you've got an interest in any of this, send me some pull requests, but most importantly, I just want to see LDAP not just be a skeleton in the closet and get used in places where you should be using it. So get out there and write you some LDAP.
</div>

13
doc/blog/Uncategorized/welcome-to-the-node-blog.md

@ -1,13 +0,0 @@
title: Welcome to the Node blog
author: ryandahl
date: Thu Mar 17 2011 20:17:12 GMT-0700 (PDT)
status: publish
category: Uncategorized
slug: welcome-to-the-node-blog
Since Livejournal is disintegrating into Russian spam, I'm moving my technical blog to http://blog.nodejs.org/. I hope to do frequent small posts about what's going on in Node development and include posts from other core Node developers. Please subscribe to the RSS feed.
To avoid making this post completely devoid of content, here is a new video from a talk I gave at the SF PHP group tastefully produced by <A href="http://marakana.com/forums/java/general/278.html">Marakana</a>:
<iframe width="640" height="360"
src="http://www.youtube.com/embed/jo_B4LTHi3I" frameborder="0"
allowfullscreen></iframe>

16
doc/blog/module/multi-server-continuous-deployment-with-fleet.md

@ -15,41 +15,41 @@ slug: multi-server-continuous-deployment-with-fleet
<p>To start using fleet, just install the fleet command with <a href="http://npmjs.org">npm</a>: </p> <p>To start using fleet, just install the fleet command with <a href="http://npmjs.org">npm</a>: </p>
<pre style="font-size:1.2em;">$ npm install -g fleet </pre> <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> <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="font-size:1.2em;">$ fleet hub --port=7000 --secret=beepboop </pre> <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>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> <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="font-size:1.2em;">$ fleet drone --hub=x.x.x.x:7000 --secret=beepboop </pre> <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>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> <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="font-size:1.2em;">$ fleet remote add default --hub=x.x.x.x:7000 --secret=beepboop </pre> <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>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> <p>From the same app directory, to deploy your code just do: </p>
<pre style="font-size:1.2em;">$ fleet deploy </pre> <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>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> <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="font-size:1.2em;">$ fleet spawn -- node server.js 8080 </pre> <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>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> <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="font-size:1.2em;">$ fleet ps <pre style="">fleet ps
drone#3dfe17b8 drone#3dfe17b8
├─┬ pid#1e99f4 ├─┬ pid#1e99f4
│ ├── status: running │ ├── status: running
@ -68,7 +68,7 @@ drone#3dfe17b8
<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> <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="font-size:1.2em;">$ fleet help <pre style="">fleet help
Usage: fleet &lt;command&gt; [&lt;args&gt;] Usage: fleet &lt;command&gt; [&lt;args&gt;]
The commands are: The commands are:

2
doc/blog/npm/managing-node-js-dependencies-with-shrinkwrap.md

@ -5,7 +5,7 @@ status: publish
category: npm category: npm
slug: managing-node-js-dependencies-with-shrinkwrap slug: managing-node-js-dependencies-with-shrinkwrap
<p><div style="float:right;text-align:center;font-size:x-small;margin:5px;"><a href="http://www.flickr.com/photos/luc_viatour/4247957432/"><img class="size-medium wp-image-652" style="border:1px #000000 solid;" title="Web" src="http://dtrace.org/blogs/dap/files/2012/02/web-300x300.jpg" alt="" width="250" height="250" /></a> <p><div style="float:right;text-align:center;margin:5px;"><a href="http://www.flickr.com/photos/luc_viatour/4247957432/"><img class="size-medium wp-image-652" style="border:1px #000000 solid;" title="Web" src="http://dtrace.org/blogs/dap/files/2012/02/web-300x300.jpg" alt="" width="250" height="250" /></a>
Photo by Luc Viatour (flickr)</div>Managing dependencies is a fundamental problem in building complex software. The terrific success of github and <a href="http://npmjs.org/">npm</a> have made code reuse especially easy in the Node world, where packages don&#039;t exist in isolation but rather as nodes in a large graph. The software is constantly changing (releasing new versions), and each package has its own constraints about what other packages it requires to run (dependencies). npm keeps track of these constraints, and authors express what kind of changes are compatible using <a href="http://npmjs.org/doc/semver.html">semantic versioning</a>, allowing authors to specify that their package will work with even future versions of its dependencies as long as the semantic versions are assigned properly. Photo by Luc Viatour (flickr)</div>Managing dependencies is a fundamental problem in building complex software. The terrific success of github and <a href="http://npmjs.org/">npm</a> have made code reuse especially easy in the Node world, where packages don&#039;t exist in isolation but rather as nodes in a large graph. The software is constantly changing (releasing new versions), and each package has its own constraints about what other packages it requires to run (dependencies). npm keeps track of these constraints, and authors express what kind of changes are compatible using <a href="http://npmjs.org/doc/semver.html">semantic versioning</a>, allowing authors to specify that their package will work with even future versions of its dependencies as long as the semantic versions are assigned properly.
</p> </p>

25
doc/blog/release/node-v0-4-10.md

@ -0,0 +1,25 @@
version: 0.4.10
title: Node v0.4.10
author: ryandahl
date: Wed Jul 20 2011 07:36:38 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.10/api">http://nodejs.org/docs/v0.4.10/api</a>

39
doc/blog/release/node-v0-4-11.md

@ -0,0 +1,39 @@
version: 0.4.11
title: Node v0.4.11
author: ryandahl
date: Thu Aug 18 2011 01:44:42 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.11/api/">http://nodejs.org/docs/v0.4.11/api/</a>

29
doc/blog/release/node-v0-4-12.md

@ -0,0 +1,29 @@
version: 0.4.12
title: Node v0.4.12
author: ryandahl
date: Thu Sep 15 2011 17:32:07 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.12/api/">http://nodejs.org/docs/v0.4.12/api/</a>

33
doc/blog/release/node-v0-4-3.md

@ -0,0 +1,33 @@
version: 0.4.3
title: Node v0.4.3
author: ryandahl
date: Fri Mar 18 2011 22:17:59 GMT-0700 (PDT)
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>
<a href="https://github.com/joyent/node/tree/v0.4.3">commit</a>

27
doc/blog/release/node-v0-4-4.md

@ -0,0 +1,27 @@
version: 0.4.4
title: Node v0.4.4
author: ryandahl
date: Sat Mar 26 2011 08:58:45 GMT-0700 (PDT)
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>
<a href="https://groups.google.com/d/topic/nodejs/LlQCYhDEPAc/discussion">announcement</a>

29
doc/blog/release/node-v0-4-5.md

@ -0,0 +1,29 @@
version: 0.4.5
title: node v0.4.5
author: ryandahl
date: Sat Apr 02 2011 02:04:58 GMT-0700 (PDT)
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>
<a href="https://groups.google.com/d/topic/nodejs/aOC7SRLJhQY/discussion">announcement</a>

27
doc/blog/release/node-v0-4-6.md

@ -0,0 +1,27 @@
version: 0.4.6
title: Node v0.4.6
author: ryandahl
date: Thu Apr 14 2011 05:00:30 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.6/api/">http://nodejs.org/docs/v0.4.6/api/</a>

23
doc/blog/release/node-v0-4-7.md

@ -0,0 +1,23 @@
version: 0.4.7
title: Node v0.4.7
author: ryandahl
date: Sat Apr 23 2011 00:47:55 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.7/api">http://nodejs.org/docs/v0.4.7/api</a>

55
doc/blog/release/node-v0-4-8.md

@ -0,0 +1,55 @@
version: 0.4.8
title: Node v0.4.8
author: ryandahl
date: Sat May 21 2011 07:06:00 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.8/api/">http://nodejs.org/docs/v0.4.8/api/</a>

30
doc/blog/release/node-v0-4-9.md

@ -0,0 +1,30 @@
version: 0.4.9
title: Node v0.4.9
author: ryandahl
date: Wed Jun 29 2011 11:41:05 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.4.9/api">http://nodejs.org/docs/v0.4.9/api</a>

39
doc/blog/release/node-v0-5-0-unstable.md

@ -0,0 +1,39 @@
version: 0.5.0
title: Node v0.5.0 (Unstable)
author: ryandahl
date: Wed Jul 06 2011 02:23:17 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.5.0/api/">http://nodejs.org/docs/v0.5.0/api/</a>

30
doc/blog/release/node-v0-5-1.md

@ -0,0 +1,30 @@
version: 0.5.1
title: Node v0.5.1
author: ryandahl
date: Thu Jul 14 2011 23:48:08 GMT-0700 (PDT)
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>
Website: <a href="http://nodejs.org/dist/v0.5.1/docs">http://nodejs.org/dist/v0.5.1/docs</a>

41
doc/blog/release/node-v0-5-10.md

@ -0,0 +1,41 @@
version: 0.5.10
title: Node v0.5.10
author: ryandahl
date: Fri Oct 21 2011 19:12:31 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/docs/v0.5.10/api/">http://nodejs.org/docs/v0.5.10/api/</a>

27
doc/blog/release/node-v0-5-2.md

@ -0,0 +1,27 @@
version: 0.5.2
title: Node v0.5.2
author: ryandahl
date: Fri Jul 22 2011 11:40:22 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/dist/v0.5.2/docs/api">http://nodejs.org/dist/v0.5.2/docs/api</a>

53
doc/blog/release/node-v0-5-3.md

@ -0,0 +1,53 @@
version: 0.5.3
title: Node v0.5.3
author: ryandahl
date: Tue Aug 02 2011 08:03:06 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/dist/v0.5.3/docs/api">http://nodejs.org/dist/v0.5.3/docs/api</a>

36
doc/blog/release/node-v0-5-4.md

@ -0,0 +1,36 @@
version: 0.5.4
title: Node v0.5.4
author: ryandahl
date: Fri Aug 12 2011 08:38:26 GMT-0700 (PDT)
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>
Documentation: <a href="http://nodejs.org/dist/v0.5.4/docs/api">http://nodejs.org/dist/v0.5.4/docs/api</a>

40
doc/blog/release/node-v0-5-5.md

@ -0,0 +1,40 @@
version: 0.5.5
title: Node v0.5.5
author: bennoordhuis
date: Fri Aug 26 2011 23:20:10 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-5-5
<p>2011.08.26, Version 0.5.5 (unstable)</p>
<ul>
<li>typed arrays, implementation from Plesk
<li>fix IP multicast on SunOS
<li>fix DNS lookup order: IPv4 first, IPv6 second (--use-uv only)
<li>remove support for UNIX datagram sockets (--use-uv only)
<li>UDP support for Windows (Bert Belder)
<li>#1572 improve tab completion for objects in the REPL (Nathan Rajlich)
<li>#1563 fix buffer overflow in child_process module (reported by Dean McNamee)
<li>#1546 fix performance regression in http module (reported by Brian Geffon)
<li>#1491 add PBKDF2 crypto support (Glen Low)
<li>#1447 remove deprecated http.cat() function (Mikeal Rogers)
<li>#1140 fix incorrect dispatch of vm.runInContext's filename argument<br />
(Antranig Basman)</p>
<li>#1140 document vm.runInContext() and vm.createContext() (Antranig Basman)
<li>#1428 fix os.freemem() on 64 bits freebsd (Artem Zaytsev)
<li>#1164 make all DNS lookups async, fixes uncatchable exceptions<br />
(Koichi Kobayashi)</p>
<li>fix incorrect ssl shutdown check (Tom Hughes)
<li>various cmake fixes (Tom Hughes)
<li>improved documentation (Koichi Kobayashi, Logan Smyth, Fedor Indutny,<br />
Mikeal Rogers, Maciej Małecki, Antranig Basman, Mickaël Delahaye)</p>
<li>upgrade libuv to commit 835782a
<li>upgrade V8 to 3.5.8
</ul>
<p>Download: <a href="http://nodejs.org/dist/node-v0.5.5.tar.gz">http://nodejs.org/dist/node-v0.5.5.tar.gz</a></p>
<p>Windows Executable: <a href="http://nodejs.org/dist/v0.5.5/node.exe">http://nodejs.org/dist/v0.5.5/node.exe</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.5.5/">http://nodejs.org/docs/v0.5.5/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.5.5/api/">http://nodejs.org/docs/v0.5.5/api/</a></p>
<br /><br />
<b>Update:</b> The <code>.exe</code> has a bug that results in incompatibility with Windows XP and Server 2003. This has been reported in <a href="https://github.com/joyent/node/issues/1592">issue #1592</a> and fixed. A new binary was made that is compatibile with the older Windows: <a href="http://nodejs.org/dist/v0.5.5/node-186364e.exe">http://nodejs.org/dist/v0.5.5/node-186364e.exe</a>.

49
doc/blog/release/node-v0-5-6.md

@ -0,0 +1,49 @@
version: 0.5.6
title: Node v0.5.6 (unstable)
author: piscisaureus
date: Fri Sep 09 2011 16:30:39 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-5-6
2011.09.08, Version 0.5.6 (unstable)
<ul>
<li>#345, #1635, #1648 Documentation improvements (Thomas Shinnick, Abimanyu Raja, AJ ONeal, Koichi Kobayashi, Michael Jackson, Logan Smyth, Ben Noordhuis)</li>
<li>#650 Improve path parsing on windows (Bert Belder)</li>
<li>#752 Remove headers sent check in OutgoingMessage.getHeader() (Peter Lyons)</li>
<li>#1236, #1438, #1506, #1513, #1621, #1640, #1647 Libuv-related bugs fixed (Jorge Chamorro Bieling, Peter Bright, Luis Lavena, Igor Zinkovsky)</li>
<li>#1296, #1612 crypto: Fix BIO's usage. (Koichi Kobayashi)</li>
<li>#1345 Correctly set socket.remoteAddress with libuv backend (Bert Belder)</li>
<li>#1429 Don't clobber quick edit mode on windows (Peter Bright)</li>
<li>#1503 Make libuv backend default on unix, override with `node --use-legacy`</li>
<li>#1565 Fix fs.stat for paths ending with \ on windows (Igor Zinkovsky)</li>
<li>#1568 Fix x509 certificate subject parsing (Koichi Kobayashi)</li>
<li>#1586 Make socket write encoding case-insensitive (Koichi Kobayashi)</li>
<li>#1591, #1656, #1657 Implement fs in libuv, remove libeio and pthread-win32 dependency on windows (Igor Zinkovsky, Ben Noordhuis, Ryan Dahl, Isaac Schlueter)</li>
<li>#1592 Don't load-time link against CreateSymbolicLink on windows (Peter Bright)</li>
<li>#1601 Improve API consistency when dealing with the socket underlying a HTTP client request (Mikeal Rogers)</li>
<li>#1610 Remove DigiNotar CA from trusted list (Isaac Schlueter)</li>
<li>#1617 Added some win32 os functions (Karl Skomski)</li>
<li>#1624 avoid buffer overrun with 'binary' encoding (Koichi Kobayashi)</li>
<li>#1633 make Buffer.write() always set _charsWritten (Koichi Kobayashi)</li>
<li>#1644 Windows: set executables to be console programs (Peter Bright)</li>
<li>#1651 improve inspection for sparse array (Koichi Kobayashi)</li>
<li>#1672 set .code='ECONNRESET' on socket hang up errors (Ben Noordhuis)</li>
<li>Add test case for foaf+ssl client certificate (Niclas Hoyer)</li>
<li>Added RPATH environment variable to override run-time library paths (Ashok Mudukutore)</li>
<li>Added TLS client-side session resumption support (Sean Cunningham)</li>
<li>Added additional properties to getPeerCertificate (Nathan Rixham, Niclas Hoyer)</li>
<li>Don't eval repl command twice when an error is thrown (Nathan Rajlich)</li>
<li>Improve util.isDate() (Nathan Rajlich)</li>
<li>Improvements in libuv backend and bindings, upgrade libuv to bd6066cb349a9b3a1b0d87b146ddaee06db31d10</li>
<li>Show warning when using lib/sys.js (Maciej Malecki)</li>
<li>Support plus sign in url protocol (Maciej Malecki)</li>
<li>Upgrade V8 to 3.6.2</li>
</ul>
Download: <a href="http://nodejs.org/dist/v0.5.6/node-v0.5.6.tar.gz">http://nodejs.org/dist/v0.5.6/node-v0.5.6.tar.gz</a>
Windows Executable: <a href="http://nodejs.org/dist/v0.5.6/node.exe">http://nodejs.org/dist/v0.5.6/node.exe</a>
Website: <a href="http://nodejs.org/docs/v0.5.6/">http://nodejs.org/docs/v0.5.6/</a>
Documentation: <a href="http://nodejs.org/docs/v0.5.6/api/">http://nodejs.org/docs/v0.5.6/api/</a>

35
doc/blog/release/node-v0-5-7-unstable.md

@ -0,0 +1,35 @@
version: 0.5.7
title: Node v0.5.7 (unstable)
author: ryandahl
date: Fri Sep 16 2011 18:57:03 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-5-7-unstable
2011.09.16, Version 0.5.7 (unstable)
<ul>
<li>Upgrade V8 to 3.6.4
<li>Improve Windows compatibility
<li>Documentation improvements
<li>Debugger and REPL improvements (Fedor Indutny)
<li>Add legacy API support: net.Stream(fd), process.stdout.writable, process.stdout.fd
<li>Fix mkdir EEXIST handling (isaacs)
<li>Use net_uv instead of net_legacy for stdio
<li>Do not load readline from util.inspect
<li>#1673 Fix bug related to V8 context with accessors (Fedor Indutny)
<li>#1634 util: Fix inspection for Error (koichik)
<li>#1645 fs: Add positioned file writing feature to fs.WriteStream (Thomas Shinnick)
<li>#1637 fs: Unguarded fs.watchFile cache statWatchers checking fixed (Thomas Shinnick)
<li>#1695 Forward customFds to ChildProcess.spawn
<li>#1707 Fix hasOwnProperty security problem in querystring (isaacs)
<li>#1719 Drain OpenSSL error queue</ul>
Download: <a href="http://nodejs.org/dist/v0.5.7/node-v0.5.7.tar.gz">http://nodejs.org/dist/v0.5.7/node-v0.5.7.tar.gz</a>
Windows Executable: <a href="http://nodejs.org/dist/v0.5.7/node.exe">http://nodejs.org/dist/v0.5.7/node.exe</a>
Website: <a href="http://nodejs.org/docs/v0.5.7/">http://nodejs.org/docs/v0.5.7/</a>
Documentation: <a href="http://nodejs.org/docs/v0.5.7/api/">http://nodejs.org/docs/v0.5.7/api/</a>

26
doc/blog/release/node-v0-5-8.md

@ -0,0 +1,26 @@
version: 0.5.8
title: Node v0.5.8
author: ryandahl
date: Fri Sep 30 2011 16:47:11 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-5-8
2011.09.30, Version 0.5.8 (unstable)<ul><li>zlib bindings (isaacs)
<li>Windows supports TTY ANSI escape codes (Bert Belder)
<li>Debugger improvements (Fedor Indutny)
<li>crypto: look up SSL errors with ERR_print_errors() (Ben Noordhuis)
<li>dns callbacks go through MakeCallback now
<li>Raise an error when a malformed package.json file is found. (Ben Leslie)
<li>buffers: handle bad length argument in constructor (Ben Noordhuis)
<li>#1726, unref process.stdout
<li>Doc improvements (Ben Noordhuis, Fedor Indutny, koichik)
<li>Upgrade libuv to fe18438</ul>
Download: <a href="http://nodejs.org/dist/v0.5.8/node-v0.5.8.tar.gz">http://nodejs.org/dist/v0.5.8/node-v0.5.8.tar.gz</a>
Windows Executable: <a href="http://nodejs.org/dist/v0.5.8/node.exe">http://nodejs.org/dist/v0.5.8/node.exe</a>
Website: <a href="http://nodejs.org/docs/v0.5.8/">http://nodejs.org/docs/v0.5.8/</a>
Documentation: <a href="http://nodejs.org/docs/v0.5.8/api/">http://nodejs.org/docs/v0.5.8/api/</a>

27
doc/blog/release/node-v0-5-9.md

@ -0,0 +1,27 @@
version: 0.5.9
title: Node v0.5.9
author: ryandahl
date: Mon Oct 10 2011 19:06:21 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-5-9
2011.10.10, Version 0.5.9 (unstable)
<ul><li>fs.watch interface backed by kqueue, inotify, and ReadDirectoryChangesW (Igor Zinkovsky, Ben Noordhuis)</li>
<li>add dns.resolveTxt (Christian Tellnes)</li>
<li>Remove legacy http library (Ben Noordhuis)</li>
<li>child_process.fork returns and works on Windows. Allows passing handles. (Igor Zinkovsky, Bert Belder)</li>
<li>#1774 Lint and clean up for --harmony_block_scoping (Tyler Larson, Colton Baker)</li>
<li>#1813 Fix ctrl+c on Windows (Bert Belder)</li>
<li>#1844 unbreak --use-legacy (Ben Noordhuis)</li>
<li>process.stderr now goes through libuv. Both process.stdout and process.stderr are blocking when referencing a TTY.</li>
<li>net_uv performance improvements (Ben Noordhuis, Bert Belder)</li></ul>
Download: <a href="http://nodejs.org/dist/v0.5.9/node-v0.5.9.tar.gz">http://nodejs.org/dist/v0.5.9/node-v0.5.9.tar.gz</a>
Windows Executable: <a href="http://nodejs.org/dist/v0.5.9/node.exe">http://nodejs.org/dist/v0.5.9/node.exe</a>
Website: <a href="http://nodejs.org/docs/v0.5.9/">http://nodejs.org/docs/v0.5.9/</a>
Documentation: <a href="http://nodejs.org/docs/v0.5.9/api/">http://nodejs.org/docs/v0.5.9/api/</a>

80
doc/blog/release/node-v0-6-0.md

@ -0,0 +1,80 @@
version: 0.6.0
title: Node v0.6.0
author: ryandahl
date: Sat Nov 05 2011 02:07:10 GMT-0700 (PDT)
status: publish
category: release
slug: node-v0-6-0
We are happy to announce the third stable branch of Node v0.6. We will be freezing JavaScript, C++, and binary interfaces for all v0.6 releases.
The major differences between v0.4 and v0.6 are<ul>
<li>Native Windows support using I/O Completion Ports for sockets.
<li>Integrated load balancing over multiple processes. <a href="http://nodejs.org/docs/v0.6.0/api/cluster.html">docs</a>
<li>Better support for IPC between Node instances <a href="http://nodejs.org/docs/v0.6.0/api/child_processes.html#child_process.fork">docs</a>
<li>Improved command line debugger <a href="http://nodejs.org/docs/v0.6.0/api/debugger.html">docs</a>
<li>Built-in binding to zlib for compression <a href="http://nodejs.org/docs/v0.6.0/api/zlib.html">docs</a>
<li>Upgrade v8 from 3.1 to 3.6</ul>
In order to support Windows we reworked much of the core architecture. There was some fear that our work would degrade performance on UNIX systems but this was not the case. Here is a Linux system we benched for demonstration:
<table><tr> <th></th> <th>v0.4.12 (linux)</th><th>v0.6.0 (linux)</th></tr>
<tr> <td>http_simple.js /bytes/1024</td> <td>5461 r/s</td> <td>6263 r/s</td> </tr>
<tr> <td>io.js read </td> <td>19.75 mB/s</td> <td>26.63 mB/s</td> </tr>
<tr> <td>io.js write </td> <td>21.60 mB/s</td> <td>17.40 mB/s</td> </tr>
<tr> <td>startup.js </td> <td>74.7 ms</td> <td>49.6 ms</td> </tr></table>
Bigger is better in http and io benchmarks, smaller is better in startup. The http benchmark was done with 600 clients on a 10GE network served from three load generation machines.
In the last version of Node, v0.4, we could only run Node on Windows with Cygwin. Therefore we've gotten massive improvements by targeting the native APIs. Benchmarks on the same machine:
<table><tr><th></th><th>v0.4.12 (windows)</th><th>v0.6.0 (windows)</th></tr>
<tr> <td>http_simple.js /bytes/1024</td> <td>3858 r/s</td> <td>5823 r/s</td> </tr>
<tr> <td>io.js read </td> <td>12.41 mB/s</td> <td>26.51 mB/s</td> </tr>
<tr> <td>io.js write </td> <td>12.61 mB/s</td> <td>33.58 mB/s</td> </tr>
<tr> <td>startup.js </td> <td>152.81 ms</td> <td>52.04 ms</td> </tr></table>
We consider this a good intermediate stage for the Windows port. There is still work to be done. For example, we are not yet providing users with a blessed path for building addon modules in MS Visual Studio. Work will continue in later releases.
For users upgrading code bases from v0.4 to v0.6 <a href="https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6">we've documented</a> most of the issues that you will run into. Most people find the change painless. Despite the long list of changes most core APIs remain untouched.
Our release cycle will be tightened dramatically now. Expect to see a new stable branch in January. We wish to eventually have our releases in sync with Chrome and V8's 6 week cycle.
Thank you to everyone who contributed code, tests, docs, or sent in bug reports.
Here are the changes between v0.5.12 and v0.6.0:
2011.11.04, Version 0.6.0 (stable)
<ul><li>print undefined on undefined values in REPL (Nathan Rajlich)</li>
<li>doc improvements (koichik, seebees, bnoordhuis, Maciej Małecki, Jacob Kragh)</li>
<li>support native addon loading in windows (Bert Belder)</li>
<li>rename getNetworkInterfaces() to networkInterfaces() (bnoordhuis)</li>
<li>add pending accepts knob for windows (igorzi)</li>
<li>http.request(url.parse(x)) (seebees)</li>
<li>#1929 zlib Respond to 'resume' events properly (isaacs)</li>
<li>stream.pipe: Remove resume and pause events</li>
<li>test fixes for windows (igorzi)</li>
<li>build system improvements (bnoordhuis)</li>
<li>#1936 tls: does not emit 'end' from EncryptedStream (koichik)</li>
<li>#758 tls: add address(), remoteAddress/remotePort</li>
<li>#1399 http: emit Error object after .abort() (bnoordhuis)</li>
<li>#1999 fs: make mkdir() default to 0777 permissions (bnoordhuis)</li>
<li>#2001 fix pipe error codes</li>
<li>#2002 Socket.write should reset timeout timer</li>
<li>stdout and stderr are blocking when associated with file too.</li>
<li>remote debugger support on windows (Bert Belder)</li>
<li>convenience methods for zlib (Matt Robenolt)</li>
<li>process.kill support on windows (igorzi)</li>
<li>process.uptime() support on windows (igorzi)</li>
<li>Return IPv4 addresses before IPv6 addresses from getaddrinfo</li>
<li>util.inspect improvements (Nathan Rajlich)</li>
<li>cluster module api changes</li>
<li>Downgrade V8 to 3.6.6.6</li></ul>
Download: <a href="http://nodejs.org/dist/v0.6.0/node-v0.6.0.tar.gz">http://nodejs.org/dist/v0.6.0/node-v0.6.0.tar.gz</a>
Windows Executable: <a href="http://nodejs.org/dist/v0.6.0/node.exe">http://nodejs.org/dist/v0.6.0/node.exe</a>
Website: <a href="http://nodejs.org/docs/v0.6.0/">http://nodejs.org/docs/v0.6.0/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.0/api/">http://nodejs.org/docs/v0.6.0/api/</a>

33
doc/blog/release/node-v0-6-1.md

@ -0,0 +1,33 @@
version: 0.6.1
title: Node v0.6.1
author: ryandahl
date: Fri Nov 11 2011 15:34:15 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-1
2011.11.11, Version 0.6.1 (stable)
<ul><li>doc improvements (Eric Lovett, Ben Noordhuis, Scott Anderson, Yoji SHIDARA)</li>
<li>crypto: make thread-safe (Ben Noordhuis)</li>
<li>fix process.kill error object</li>
<li>debugger: correctly handle source with multi-byte characters (Shigeki Ohtsu)</li>
<li>make stdout and stderr non-destroyable (Igor Zinkovsky)</li>
<li>fs: don't close uninitialized fs.watch handle (Ben Noordhuis)</li>
<li>#2026 fix man page install on BSDs (Ben Noordhuis)</li>
<li>#2040 fix unrecognized errno assert in uv_err_name</li>
<li>#2043 fs: mkdir() should call callback if mode is omitted</li>
<li>#2045 fs: fix fs.realpath on windows to return on error (Benjamin Pasero)</li>
<li>#2047 minor cluster improvements</li>
<li>#2052 readline get window columns correctly</li>
<li>Upgrade V8 to 3.6.6.7</li></ul>
Source Code: <a href="http://nodejs.org/dist/v0.6.1/node-v0.6.1.tar.gz">http://nodejs.org/dist/v0.6.1/node-v0.6.1.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.6.1/node-v0.6.1.msi">http://nodejs.org/dist/v0.6.1/node-v0.6.1.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.1/node-v0.6.1.pkg">http://nodejs.org/dist/v0.6.1/node-v0.6.1.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.6.1/">http://nodejs.org/docs/v0.6.1/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.1/api/">http://nodejs.org/docs/v0.6.1/api/</a>

30
doc/blog/release/node-v0-6-10.md

@ -0,0 +1,30 @@
version: 0.6.10
title: Node v0.6.10
author: Isaac Schlueter
date: Thu Feb 02 2012 17:22:03 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-10
<p>2012.02.02, Version 0.6.10 (stable)</p>
<ul>
<li><p>Update V8 to 3.6.6.20</p></li>
<li><p>Add npm msysgit bash shim to msi installer (isaacs)</p></li>
<li><p>buffers: fix intermittent out of bounds error (Ben Noordhuis)</p></li>
<li><p>buffers: honor length argument in base64 decoder (Ben Noordhuis)</p></li>
<li><p>windows: Fix path.exists regression (Bert Belder)</p></li>
<li><p>Make QueryString.parse run faster (Philip Tellis)</p></li>
<li><p>http: avoid freeing http-parser objects too early (koichik)</p></li>
<li><p>timers: add v0.4 compatibility hack (Ben Noordhuis)</p></li>
<li><p>Proper EPERM error code support (Igor Zinkovsky, Brandon Philips)</p></li>
<li><p>dgram: Implement udp multicast methods on windows (Bert Belder)</p></li>
</ul><p>Source Code: <a href="http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz">http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.10/node-v0.6.10.msi">http://nodejs.org/dist/v0.6.10/node-v0.6.10.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.10/node-v0.6.10.pkg">http://nodejs.org/dist/v0.6.10/node-v0.6.10.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.10/">http://nodejs.org/docs/v0.6.10/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.10/api/">http://nodejs.org/docs/v0.6.10/api/</a></p>

27
doc/blog/release/node-v0-6-2.md

@ -0,0 +1,27 @@
version: 0.6.2
title: Node v0.6.2
author: bennoordhuis
date: Fri Nov 18 2011 15:35:32 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-2
<p>2011.11.18, Version 0.6.2 (stable)</p>
<ul>
<li>doc improvements (Artur Adib, Trevor Burnham, Ryan Emery, Trent Mick)</li>
<li>timers: remember extra setTimeout() arguments when timeout==0</li>
<li>punycode: use Mathias Bynens's punycode library, it's more compliant</li>
<li>repl: improved tab completion (Ryan Emery)</li>
<li>buffer: fix range checks in .writeInt() functions (Lukasz Walukiewicz)</li>
<li>tls: make cipher list configurable</li>
<li>addons: make Buffer and ObjectWrap visible to Windows add-ons (Bert Belder)</li>
<li>crypto: add PKCS#1 a.k.a RSA public key verification support</li>
<li>windows: fix stdout writes when redirected to nul</li>
<li>sunos: fix build on Solaris and Illumos</li>
<li>Upgrade V8 to 3.6.6.8</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.2/node-v0.6.2.tar.gz">http://nodejs.org/dist/v0.6.2/node-v0.6.2.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.2/node-v0.6.2.msi">http://nodejs.org/dist/v0.6.2/node-v0.6.2.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.2/node-v0.6.2.pkg">http://nodejs.org/dist/v0.6.2/node-v0.6.2.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.2/">http://nodejs.org/docs/v0.6.2/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.2/api/">http://nodejs.org/docs/v0.6.2/api/</a></p>

30
doc/blog/release/node-v0-6-3.md

@ -0,0 +1,30 @@
version: 0.6.3
title: Node v0.6.3
author: piscisaureus
date: Fri Nov 25 2011 02:54:08 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-3
2011.11.25, Version 0.6.3 (stable)
<ul>
<li>#2083 Land NPM in Node. It is included in packages/installers and installed on `make install`.</li>
<li>#2076 Add logos to windows installer.</li>
<li>#1711 Correctly handle http requests without headers. (Ben Noordhuis, Felix Geisendörfer)</li>
<li>TLS: expose more openssl SSL context options and constants. (Ben Noordhuis)</li>
<li>#2177 Windows: don't kill UDP socket when a packet fails to reach its destination. (Bert Belder)</li>
<li>Windows: support paths longer than 260 characters. (Igor Zinkovsky)</li>
<li>Windows: correctly resolve drive-relative paths. (Bert Belder)</li>
<li>#2166 Don't leave file descriptor open after lchmod. (Isaac Schlueter)</li>
<li>#2084 Add OS X .pkg build script to make file.</li>
<li>#2160 Documentation improvements. (Ben Noordhuis)</li>
</ul>
Source Code: <a href="http://nodejs.org/dist/v0.6.3/node-v0.6.3.tar.gz">http://nodejs.org/dist/v0.6.3/node-v0.6.3.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.6.3/node-v0.6.3.msi">http://nodejs.org/dist/v0.6.3/node-v0.6.3.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.3/node-v0.6.3.pkg">http://nodejs.org/dist/v0.6.3/node-v0.6.3.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.6.3/">http://nodejs.org/docs/v0.6.3/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.3/api/">http://nodejs.org/docs/v0.6.3/api/</a>

31
doc/blog/release/node-v0-6-4.md

@ -0,0 +1,31 @@
version: 0.6.4
title: Node v0.6.4
author: bennoordhuis
date: Thu Dec 01 2011 18:20:14 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-4
2011.12.02, Version 0.6.4 (stable)
<ul>
<li>doc improvements (Kyle Young, Tim Oxley, Roman Shtylman, Mathias Bynens)</li>
<li>upgrade bundled npm (Isaac Schlueter)</li>
<li>polish Windows installer (Igor Zinkovsky, Isaac Schlueter)</li>
<li>punycode: upgrade to v0.2.1 (Mathias Bynens)</li>
<li>build: add --without-npm flag to configure script</li>
<li>sys: deprecate module some more, print stack trace if NODE_DEBUG=sys</li>
<li>cli: add -p switch, prints result of --eval</li>
<li>#1997: fix Blowfish ECB encryption and decryption (Ingmar Runge)</li>
<li>#2223: fix socket 'close' event being emitted twice</li>
<li>#2224: fix RSS memory usage &gt; 4 GB reporting (Russ Bradberry)</li>
<li>#2225: fix util.inspect() object stringification bug (Nathan Rajlich)</li>
</ul>
Source Code: <a href="http://nodejs.org/dist/v0.6.4/node-v0.6.4.tar.gz">http://nodejs.org/dist/v0.6.4/node-v0.6.4.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.6.4/node-v0.6.4.msi">http://nodejs.org/dist/v0.6.4/node-v0.6.4.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.4/node-v0.6.4.pkg">http://nodejs.org/dist/v0.6.4/node-v0.6.4.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.6.4/">http://nodejs.org/docs/v0.6.4/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.4/api/">http://nodejs.org/docs/v0.6.4/api/</a>

21
doc/blog/release/node-v0-6-5.md

@ -0,0 +1,21 @@
version: 0.6.5
title: Node v0.6.5
author: ryandahl
date: Sun Dec 04 2011 00:59:57 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-5
2011.12.04, Version 0.6.5 (stable)
<ul><li>npm workaround Windows antivirus software (isaacs)
<li>Upgrade V8 to 3.6.6.11</ul>
Source Code: <a href="http://nodejs.org/dist/v0.6.5/node-v0.6.5.tar.gz">http://nodejs.org/dist/v0.6.5/node-v0.6.5.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.6.5/node-v0.6.5.msi">http://nodejs.org/dist/v0.6.5/node-v0.6.5.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.5/node-v0.6.5.pkg">http://nodejs.org/dist/v0.6.5/node-v0.6.5.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.6.5/">http://nodejs.org/docs/v0.6.5/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.5/api/">http://nodejs.org/docs/v0.6.5/api/</a>

32
doc/blog/release/node-v0-6-6.md

@ -0,0 +1,32 @@
version: 0.6.6
title: Node v0.6.6
author: Isaac Schlueter
date: Thu Dec 15 2011 11:07:57 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-6
2011.12.14, Version 0.6.6 (stable)
<ul>
<li>npm update to 1.1.0-beta-4 (Isaac Z. Schlueter)</li>
<li>cli: fix output of --help (Ben Noordhuis)</li>
<li>new website</li>
<li>pause/resume semantics for stdin (Isaac Z. Schlueter)</li>
<li>Travis CI integration (Maciej Małecki)</li>
<li>child_process: Fix bug regarding closed stdin (Ben Noordhuis)</li>
<li>Enable upgrades in MSI. (Igor Zinkovsky)</li>
<li>net: Fixes memory leak (Ben Noordhuis)</li>
<li>fs: handle fractional or NaN ReadStream buffer size (Ben Noordhuis)</li>
<li>crypto: fix memory leaks in PBKDF2 error path (Ben Noordhuis)</li>
</ul>
Source Code: <a href="http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz">http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.6.6/node-v0.6.6.msi">http://nodejs.org/dist/v0.6.6/node-v0.6.6.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.6/node-v0.6.6.pkg">http://nodejs.org/dist/v0.6.6/node-v0.6.6.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.6.6/">http://nodejs.org/docs/v0.6.6/</a>
Documentation: <a href="http://nodejs.org/docs/v0.6.6/api/">http://nodejs.org/docs/v0.6.6/api/</a>

41
doc/blog/release/node-v0-6-7.md

@ -0,0 +1,41 @@
version: 0.6.7
title: Node v0.6.7
author: Isaac Schlueter
date: Fri Jan 06 2012 17:54:49 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-7
<p>2012.01.06, Version 0.6.7 (stable)</p>
<ul>
<li><p>V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry)</p></li>
<li><p>Upgrade V8 to 3.6.6.15</p></li>
<li><p>Upgrade npm to 1.1.0-beta-10 (isaacs)</p></li>
<li><p>many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine,
Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik)</p></li>
<li><p>Fix segfault in <code>node_http_parser.cc</code></p></li>
<li><p>dgram, timers: fix memory leaks (Ben Noordhuis, Yoshihiro Kikuchi)</p></li>
<li><p>repl: fix repl.start not passing the <code>ignoreUndefined</code> arg (Damon Oehlman)</p></li>
<li><p>#1980: Socket.pause null reference when called on a closed Stream (koichik)</p></li>
<li><p>#2263: XMLHttpRequest piped in a writable file stream hang (koichik)</p></li>
<li><p>#2069: http resource leak (koichik)</p></li>
<li><p>buffer.readInt global pollution fix (Phil Sung)</p></li>
<li><p>timers: fix performance regression (Ben Noordhuis)</p></li>
<li><p>#2308, #2246: node swallows openssl error on request (koichik)</p></li>
<li><p>#2114: timers: remove _idleTimeout from item in .unenroll() (James Hartig)</p></li>
<li><p>#2379: debugger: Request backtrace w/o refs (Fedor Indutny)</p></li>
<li><p>simple DTrace ustack helper (Dave Pacheco)</p></li>
<li><p>crypto: rewrite HexDecode without snprintf (Roman Shtylman)</p></li>
<li><p>crypto: don&#8217;t ignore DH init errors (Ben Noordhuis)</p></li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.7/node-v0.6.7.tar.gz">http://nodejs.org/dist/v0.6.7/node-v0.6.7.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.7/node-v0.6.7.msi">http://nodejs.org/dist/v0.6.7/node-v0.6.7.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.7/node-v0.6.7.pkg">http://nodejs.org/dist/v0.6.7/node-v0.6.7.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.7/">http://nodejs.org/docs/v0.6.7/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.7/api/">http://nodejs.org/docs/v0.6.7/api/</a></p>

31
doc/blog/release/node-v0-6-8.md

@ -0,0 +1,31 @@
version: 0.6.8
title: Node v0.6.8
author: Isaac Schlueter
date: Thu Jan 19 2012 19:59:53 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-8
<p>2012.01.19, Version 0.6.8 (stable)</p>
<ul>
<li><p>Update V8 to 3.6.6.19</p></li>
<li><p>Numeric key hash collision fix for V8 (Erik Corry, Fedor Indutny)</p></li>
<li><p>Add missing TTY key translations for F1-F5 on Windows (Brandon Benvie)</p></li>
<li><p>path.extname bugfix with . and .. paths (Bert Belder)</p></li>
<li><p>cluster: don't always kill the master on uncaughtException (Ben Noordhuis)</p></li>
<li><p>Update npm to 1.1.0-2 (isaacs)</p></li>
<li><p>typed arrays: set class name (Ben Noordhuis)</p></li>
<li><p>zlib binding cleanup (isaacs, Bert Belder)</p></li>
<li><p>dgram: use slab memory allocator (Michael Bernstein)</p></li>
<li><p>fix segfault #2473</p></li>
<li><p>#2521 60% improvement in fs.stat on Windows (Igor Zinkovsky)</p></li>
</ul><p>Source Code: <a href="http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz">http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.8/node-v0.6.8.msi">http://nodejs.org/dist/v0.6.8/node-v0.6.8.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.8/node-v0.6.8.pkg">http://nodejs.org/dist/v0.6.8/node-v0.6.8.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.8/">http://nodejs.org/docs/v0.6.8/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.8/api/">http://nodejs.org/docs/v0.6.8/api/</a></p>

30
doc/blog/release/node-v0-6-9.md

@ -0,0 +1,30 @@
version: 0.6.9
title: Node v0.6.9
author: Isaac Schlueter
date: Fri Jan 27 2012 16:58:18 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-6-9
<p>2012.01.27, Version 0.6.9 (stable)</p>
<ul>
<li>
<p>dgram: Bring back missing functionality for Unix (Dan VerWeire,
Roman Shtylman, Ben Noordhuis)</p>
<p>- Note: Windows UDP support not yet complete.</p></li>
<li><p>http: Fix parser memory leak (koichik)</p></li>
<li><p>zlib: Fix #2365 crashes on invalid input (Nicolas LaCasse)</p></li>
<li><p>module: fix --debug-brk on symlinked scripts (Fedor Indutny)</p></li>
<li><p>Documentation Restyling (Matthew Fitzsimmons)</p></li>
<li><p>Update npm to 1.1.0-3 (isaacs)</p></li>
<li><p>Windows: fix regression in stat() calls to C:\ (Bert Belder)</p></li>
</ul><p>Source Code: <a href="http://nodejs.org/dist/v0.6.9/node-v0.6.9.tar.gz">http://nodejs.org/dist/v0.6.9/node-v0.6.9.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.9/node-v0.6.9.msi">http://nodejs.org/dist/v0.6.9/node-v0.6.9.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.9/node-v0.6.9.pkg">http://nodejs.org/dist/v0.6.9/node-v0.6.9.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.9/">http://nodejs.org/docs/v0.6.9/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.9/api/">http://nodejs.org/docs/v0.6.9/api/</a></p>

29
doc/blog/release/node-v0-7-0-unstable.md

@ -0,0 +1,29 @@
version: 0.7.0
title: Node v0.7.0 (Unstable)
author: ryandahl
date: Mon Jan 16 2012 19:58:28 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-7-0-unstable
<strong>This is the first release in the unstable v0.7 series. Almost all users will want to remain using the stable v0.6 releases.</strong>
2012.01.16, Version 0.7.0 (unstable)
<ul>
<li>Upgrade V8 to 3.8.6
<li>Use GYP build system on unix (Ben Noordhuis)
<li>Experimenetal isolates support (Ben Noordhuis)
<li>Improvements to Cluster API (Andreas Madsen)
<li>Use isolates for internal debugger (Fedor Indutny)
<li>Bug fixes</ul>
Source Code: <a href="http://nodejs.org/dist/v0.7.0/node-v0.7.0.tar.gz">http://nodejs.org/dist/v0.7.0/node-v0.7.0.tar.gz</a>
Windows Installer: <a href="http://nodejs.org/dist/v0.7.0/node-v0.7.0.msi">http://nodejs.org/dist/v0.7.0/node-v0.7.0.msi</a>
Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.0/node-v0.7.0.pkg">http://nodejs.org/dist/v0.7.0/node-v0.7.0.pkg</a>
Website: <a href="http://nodejs.org/docs/v0.7.0/">http://nodejs.org/docs/v0.7.0/</a>
Documentation: <a href="http://nodejs.org/docs/v0.7.0/api/">http://nodejs.org/docs/v0.7.0/api/</a>

30
doc/blog/release/node-v0-7-1.md

@ -0,0 +1,30 @@
version: 0.7.1
title: Node v0.7.1
author: Isaac Schlueter
date: Mon Jan 23 2012 17:35:59 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-7-1
<p>2012.01.23, Version 0.7.1 (unstable)</p>
<ul>
<li><p>Update V8 to 3.8.8</p></li>
<li><p>Install node-waf by default (Fedor Indutny)</p></li>
<li><p>crypto: Add ability to turn off PKCS padding (Ingmar Runge)</p></li>
<li><p>v8: implement VirtualMemory class on SunOS (Ben Noordhuis)</p></li>
<li><p>Add cluster.setupMaster (Andreas Madsen)</p></li>
<li><p>move <code>path.exists*</code> to <code>fs.exists*</code> (Maciej Małecki)</p></li>
<li><p>typed arrays: set class name (Ben Noordhuis)</p></li>
<li><p>libuv bug fixes (Igor Zinkovsky, Ben Noordhuis, Dan VerWeire)</p></li>
</ul>
<p>Source: <a href="http://nodejs.org/dist/v0.7.1/node-v0.7.1.tar.gz">http://nodejs.org/dist/v0.7.1/node-v0.7.1.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.1/node-v0.7.1.msi">http://nodejs.org/dist/v0.7.1/node-v0.7.1.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.1/node-v0.7.1.pkg">http://nodejs.org/dist/v0.7.1/node-v0.7.1.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.1/">http://nodejs.org/docs/v0.7.1/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.1/api/">http://nodejs.org/docs/v0.7.1/api/</a></p>

32
doc/blog/release/node-v0-7-2-unstable.md

@ -0,0 +1,32 @@
version: 0.7.2
title: Node v0.7.2 (unstable)
author: Isaac Schlueter
date: Wed Feb 01 2012 13:13:04 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-7-2-unstable
<p>2012.02.01, Version 0.7.2 (unstable)</p>
<ul>
<li><p>Update V8 to 3.8.9</p></li>
<li><p>Support for sharing streams across Isolates (Igor Zinkovsky)</p></li>
<li><p>#2636 - Fix case where http_parsers are freed too early (koichik)</p></li>
<li><p>url: Support for IPv6 addresses in URLs (Łukasz Walukiewicz)</p></li>
<li><p>child_process: Add disconnect() method to child processes (Andreas Madsen)</p></li>
<li><p>fs: add O_EXCL support, exclusive open file (Ben Noordhuis)</p></li>
<li><p>fs: more specific error messages (Tj Holowaychuk)</p></li>
<li><p>tty: emit 'unknown' key event if key sequence not found (Dan VerWeire, Nathan Rajlich)</p></li>
<li><p>build: compile release build too if BUILDTYPE=Debug (Ben Noordhuis)</p></li>
<li><p>module: fix --debug-brk on symlinked scripts (Fedor Indutny)</p></li>
<li><p>zlib: fix <code>Failed to set dictionary</code> issue (Fedor Indutny)</p></li>
<li><p>waf: predict target arch for OS X (Fedor Indutny)</p></li>
</ul><p>Source Code: <a href="http://nodejs.org/dist/v0.7.2/node-v0.7.2.tar.gz">http://nodejs.org/dist/v0.7.2/node-v0.7.2.tar.gz</a></p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.2/node-v0.7.2.msi">http://nodejs.org/dist/v0.7.2/node-v0.7.2.msi</a></p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.2/node-v0.7.2.pkg">http://nodejs.org/dist/v0.7.2/node-v0.7.2.pkg</a></p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.2/">http://nodejs.org/docs/v0.7.2/</a></p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.2/api/">http://nodejs.org/docs/v0.7.2/api/</a></p>

39
doc/blog/release/node-v0-7-3.md

@ -0,0 +1,39 @@
version: 0.7.3
title: Node v0.7.3 (unstable)
author: Isaac Schlueter
date: Tue Feb 07 2012 17:08:27 GMT-0800 (PST)
status: publish
category: release
slug: node-v0-7-3
<p>2012.02.07, Version 0.7.3 (unstable)
</p>
<ul>
<li><p>Upgrade V8 to 3.9.2</p>
</li>
<li><p>Revert support for isolates. (Ben Noordhuis)</p>
</li>
<li><p>cluster: Cleanup docs, event handling, and process.disconnect (Andreas Madsen)</p>
</li>
<li><p>gyp_addon: link with node.lib on Windows (Nathan Rajlich)</p>
</li>
<li><p>http: fix case where http-parser is freed twice (koichik)</p>
</li>
<li><p>Windows: disable RTTI and exceptions (Bert Belder)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.3/node-v0.7.3.tar.gz">http://nodejs.org/dist/v0.7.3/node-v0.7.3.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.3/node-v0.7.3.msi">http://nodejs.org/dist/v0.7.3/node-v0.7.3.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.3/node-v0.7.3.pkg">http://nodejs.org/dist/v0.7.3/node-v0.7.3.pkg</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.3/">http://nodejs.org/docs/v0.7.3/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.3/api/">http://nodejs.org/docs/v0.7.3/api/</a>
</p>

61
doc/blog/release/node-version-0-6-19-stable.md

@ -0,0 +1,61 @@
version: 0.6.19
title: Node Version 0.6.19 (stable)
author: Isaac Schlueter
date: Wed Jun 06 2012 09:55:37 GMT-0700 (PDT)
status: publish
category: release
slug: node-version-0-6-19-stable
<p>2012.06.06 Version 0.6.19 (stable)
</p>
<ul>
<li><p>npm: upgrade to 1.1.24</p>
</li>
<li><p>fs: no end emit after createReadStream.pause() (Andreas Madsen)</p>
</li>
<li><p>vm: cleanup module memory leakage (Marcel Laverdet)</p>
</li>
<li><p>unix: fix loop starvation under high network load (Ben Noordhuis)</p>
</li>
<li><p>unix: remove abort() in ev_unref() (Ben Noordhuis)</p>
</li>
<li><p>windows/tty: never report error after forcibly aborting line-buffered read (Bert Belder)</p>
</li>
<li><p>windows: skip GetFileAttributes call when opening a file (Bert Belder)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.19/node-v0.6.19.tar.gz">http://nodejs.org/dist/v0.6.19/node-v0.6.19.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.19/node-v0.6.19.msi">http://nodejs.org/dist/v0.6.19/node-v0.6.19.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.19/x64/">http://nodejs.org/dist/v0.6.19/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.19/node-v0.6.19.pkg">http://nodejs.org/dist/v0.6.19/node-v0.6.19.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.19/">http://nodejs.org/dist/v0.6.19/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.19/">http://nodejs.org/docs/v0.6.19/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.19/api/">http://nodejs.org/docs/v0.6.19/api/</a>
</p>
<p>Shasums:</p>
<pre>ef4f5c1e5f12f6ef3478a794d6a81f59669332f9 node-v0.6.19.msi
781616f33208f532f168633758a648c20e1ea68b node-v0.6.19.pkg
f6c5cfbadff4788ac3a95f8263a0c2f4e07444b6 node-v0.6.19.tar.gz
10f729ca236825821d97556441fa64f994cb4ca8 node.exe
5b8cd02e5f92ed6512aabdac11766ad8c1abc436 node.exp
20037e4901de605e08e48d0c85531334912844e3 node.lib
c44f62852918d449850014d9b29dd073cb6920a5 node.pdb
04db25c93c5357394941dd2de12cb61959eb82d1 x64/node-v0.6.19.msi
f77c77f2e470cfc9071853af2f277ba91d660b9c x64/node.exe
fcf26a3f984a3f19804e0567414604b77b1d3bac x64/node.exp
bfed2a24f253dbac99379d6f22fc8e9e85ade7ed x64/node.lib
95226c1cc5170ea05c2e54431040f06c3e95e99f x64/node.pdb</pre>

73
doc/blog/release/node-version-0-7-9-unstable.md

@ -0,0 +1,73 @@
version: 0.7.9
title: Node Version 0.7.9 (unstable)
author: Isaac Schlueter
date: Tue May 29 2012 10:11:45 GMT-0700 (PDT)
status: publish
category: release
slug: node-version-0-7-9-unstable
<p>2012.05.28, Version 0.7.9 (unstable)
</p>
<ul>
<li><p>Upgrade V8 to 3.11.1</p>
</li>
<li><p>Upgrade npm to 1.1.23</p>
</li>
<li><p>uv: rework reference counting scheme (Ben Noordhuis)</p>
</li>
<li><p>uv: add interface for joining external event loops (Bert Belder)</p>
</li>
<li><p>repl, readline: Handle Ctrl+Z and SIGCONT better (Nathan Rajlich)</p>
</li>
<li><p>fs: 64bit offsets for fs calls (Igor Zinkovsky)</p>
</li>
<li><p>fs: add sync open flags &apos;rs&apos; and &apos;rs+&apos; (Kevin Bowman)</p>
</li>
<li><p>windows: enable creating directory junctions with fs.symlink (Igor Zinkovsky, Bert Belder)</p>
</li>
<li><p>windows: fix fs.lstat to properly detect symlinks. (Igor Zinkovsky)</p>
</li>
<li><p>Fix #3270 Escape url.parse delims (isaacs)</p>
</li>
<li><p>http: make http.get() accept a URL (Adam Malcontenti-Wilson)</p>
</li>
<li><p>Cleanup vm module memory leakage (Marcel Laverdet)</p>
</li>
<li><p>Optimize writing strings with Socket.write (Bert Belder)</p>
</li>
<li><p>add support for CESU-8 and UTF-16LE encodings (koichik)</p>
</li>
<li><p>path: add path.sep to get the path separator. (Yi, EungJun)</p>
</li>
<li><p>net, http: add backlog parameter to .listen() (Erik Dubbelboer)</p>
</li>
<li><p>debugger: support mirroring Date objects (Fedor Indutny)</p>
</li>
<li><p>addon: add AtExit() function (Ben Noordhuis)</p>
</li>
<li><p>net: signal localAddress bind failure in connect (Brian Schroeder)</p>
</li>
<li><p>util: handle non-string return value in .inspect() (Alex Kocharin)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.9/node-v0.7.9.tar.gz">http://nodejs.org/dist/v0.7.9/node-v0.7.9.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.9/node-v0.7.9.msi">http://nodejs.org/dist/v0.7.9/node-v0.7.9.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.9/x64/">http://nodejs.org/dist/v0.7.9/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.9/node-v0.7.9.pkg">http://nodejs.org/dist/v0.7.9/node-v0.7.9.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.9/">http://nodejs.org/dist/v0.7.9/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.9/">http://nodejs.org/docs/v0.7.9/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.9/api/">http://nodejs.org/docs/v0.7.9/api/</a>
</p>

64
doc/blog/release/version-0-6-11-stable.md

@ -0,0 +1,64 @@
version: 0.6.11
title: Version 0.6.11 (stable)
author: Isaac Schlueter
date: Fri Feb 17 2012 13:32:55 GMT-0800 (PST)
status: publish
category: release
slug: version-0-6-11-stable
<p>2012.02.17 Version 0.6.11 (stable)
</p>
<ul>
<li><p>http: allow multiple WebSocket RFC6455 headers (Einar Otto Stangvik)</p>
</li>
<li><p>http: allow multiple WWW-Authenticate headers (Ben Noordhuis)</p>
</li>
<li><p>windows: support unicode argv and environment variables (Bert Belder)</p>
</li>
<li><p>tls: mitigate session renegotiation attacks (Ben Noordhuis)</p>
</li>
<li><p>tcp, pipe: don&apos;t assert on uv_accept() errors (Ben Noordhuis)</p>
</li>
<li><p>tls: Allow establishing secure connection on the existing socket (koichik)</p>
</li>
<li><p>dgram: handle close of dgram socket before DNS lookup completes (Seth Fitzsimmons)</p>
</li>
<li><p>windows: Support half-duplex pipes (Igor Zinkovsky)</p>
</li>
<li><p>build: disable omit-frame-pointer on solaris systems (Dave Pacheco)</p>
</li>
<li><p>debugger: fix --debug-brk (Ben Noordhuis)</p>
</li>
<li><p>net: fix large file downloads failing (koichik)</p>
</li>
<li><p>fs: fix ReadStream failure to read from existing fd (Christopher Jeffrey)</p>
</li>
<li><p>net: destroy socket on DNS error (Stefan Rusu)</p>
</li>
<li><p>dtrace: add missing translator (Dave Pacheco)</p>
</li>
<li><p>unix: don&apos;t flush tty on switch to raw mode (Ben Noordhuis)</p>
</li>
<li><p>windows: reset brightness when reverting to default text color (Bert Belder)</p>
</li>
<li><p>npm: update to 1.1.1</p>
<p>- Update which, fstream, mkdirp, request, and rimraf<br>- Fix #2123 Set path properly for lifecycle scripts on windows<br>- Mark the root as seen, so we don&apos;t recurse into it. Fixes #1838. (Martin Cooper)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz">http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.11/node-v0.6.11.msi">http://nodejs.org/dist/v0.6.11/node-v0.6.11.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.11/node-v0.6.11.pkg">http://nodejs.org/dist/v0.6.11/node-v0.6.11.pkg</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.11/">http://nodejs.org/docs/v0.6.11/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.11/api/">http://nodejs.org/docs/v0.6.11/api/</a>
</p>

66
doc/blog/release/version-0-6-12-stable.md

@ -0,0 +1,66 @@
version: 0.6.12
title: Version 0.6.12 (stable)
author: Isaac Schlueter
date: Fri Mar 02 2012 13:22:49 GMT-0800 (PST)
status: publish
category: release
slug: version-0-6-12-stable
<p>2012.03.02 Version 0.6.12 (stable)
</p>
<ul>
<li><p>Upgrade V8 to 3.6.6.24</p>
</li>
<li><p>dtrace ustack helper improvements (Dave Pacheco)</p>
</li>
<li><p>API Documentation refactor (isaacs)</p>
</li>
<li><p>#2827 net: fix race write() before and after connect() (koichik)</p>
</li>
<li><p>#2554 #2567 throw if fs args for &apos;start&apos; or &apos;end&apos; are strings (AJ ONeal)</p>
</li>
<li><p>punycode: Update to v1.0.0 (Mathias Bynens)</p>
</li>
<li><p>Make a fat binary for the OS X pkg (isaacs)</p>
</li>
<li><p>Fix hang on accessing process.stdin (isaacs)</p>
</li>
<li><p>repl: make tab completion work on non-objects (Nathan Rajlich)</p>
</li>
<li><p>Fix fs.watch on OS X (Ben Noordhuis)</p>
</li>
<li><p>Fix #2515 nested setTimeouts cause premature process exit (Ben Noordhuis)</p>
</li>
<li><p>windows: fix time conversion in stat (Igor Zinkovsky)</p>
</li>
<li><p>windows: fs: handle EOF in read (Brandon Philips)</p>
</li>
<li><p>windows: avoid IOCP short-circuit on non-ifs lsps (Igor Zinkovsky)</p>
</li>
<li><p>Upgrade npm to 1.1.4 (isaacs)</p>
<p>
- windows fixes<br>
- Bundle nested bundleDependencies properly<br>
- install: support --save with url install targets<br>
- shrinkwrap: behave properly with url-installed modules<br>
- support installing uncompressed tars or single file modules from urls etc.<br>
- don&apos;t run make clean on rebuild<br>
- support HTTPS-over-HTTP proxy tunneling<br>
</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.12/node-v0.6.12.tar.gz">http://nodejs.org/dist/v0.6.12/node-v0.6.12.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.12/node-v0.6.12.msi">http://nodejs.org/dist/v0.6.12/node-v0.6.12.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.12/node-v0.6.12.pkg">http://nodejs.org/dist/v0.6.12/node-v0.6.12.pkg</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.12/">http://nodejs.org/docs/v0.6.12/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.12/api/">http://nodejs.org/docs/v0.6.12/api/</a>
</p>

50
doc/blog/release/version-0-6-13-stable.md

@ -0,0 +1,50 @@
version: 0.6.13
title: Version 0.6.13 (stable)
author: Isaac Schlueter
date: Thu Mar 15 2012 10:37:02 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-13-stable
<p>2012.03.15 Version 0.6.13 (stable)
</p>
<ul>
<li><p>Windows: Many libuv test fixes (Bert Belder)</p>
</li>
<li><p>Windows: avoid uv_guess_handle crash in when fd &lt; 0 (Bert Belder)</p>
</li>
<li><p>Map EBUSY and ENOTEMPTY errors (Bert Belder)</p>
</li>
<li><p>Windows: include syscall in fs errors (Bert Belder)</p>
</li>
<li><p>Fix fs.watch ENOSYS on Linux kernel version mismatch (Ben Noordhuis)</p>
</li>
<li><p>Update npm to 1.1.9</p>
<p>
- upgrade node-gyp to 0.3.5 (Nathan Rajlich)<br>
- Fix isaacs/npm#2249 Add cache-max and cache-min configs<br>
- Properly redirect across https/http registry requests<br>
- log config usage if undefined key in set function (Kris Windham)<br>
- Add support for os/cpu fields in package.json (Adam Blackburn)<br>
- Automatically node-gyp packages containing a binding.gyp<br>
- Fix failures unpacking in UNC shares<br>
- Never create un-listable directories<br>
- Handle cases where an optionalDependency fails to build
</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.tar.gz">http://nodejs.org/dist/v0.6.13/node-v0.6.13.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.msi">http://nodejs.org/dist/v0.6.13/node-v0.6.13.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.pkg">http://nodejs.org/dist/v0.6.13/node-v0.6.13.pkg</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.13/">http://nodejs.org/docs/v0.6.13/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.13/api/">http://nodejs.org/docs/v0.6.13/api/</a>
</p>

55
doc/blog/release/version-0-6-14-stable.md

@ -0,0 +1,55 @@
version: 0.6.14
title: Version 0.6.14 (stable)
author: Isaac Schlueter
date: Fri Mar 23 2012 11:22:22 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-14-stable
<p>2012.03.22 Version 0.6.14 (stable)
</p>
<ul>
<li><p>net: don&apos;t crash when queued write fails (Igor Zinkovsky)</p>
</li>
<li><p>sunos: fix EMFILE on process.memoryUsage() (Bryan Cantrill)</p>
</li>
<li><p>crypto: fix compile-time error with openssl 0.9.7e (Ben Noordhuis)</p>
</li>
<li><p>unix: ignore ECONNABORTED errors from accept() (Ben Noordhuis)</p>
</li>
<li><p>Add UV_ENOSPC and mappings to it (Bert Belder)</p>
</li>
<li><p>http-parser: Fix response body is not read (koichik)</p>
</li>
<li><p>Upgrade npm to 1.1.12</p>
<p>
- upgrade node-gyp to 0.3.7<br>
- work around AV-locked directories on Windows<br>
- Fix isaacs/npm#2293 Don&apos;t try to &apos;uninstall&apos; /<br>
- Exclude symbolic links from packages.<br>
- Fix isaacs/npm#2275 Spurious &apos;unresolvable cycle&apos; error.<br>
- Exclude/include dot files as if they were normal files
</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.14/node-v0.6.14.tar.gz">http://nodejs.org/dist/v0.6.14/node-v0.6.14.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.14/node-v0.6.14.msi">http://nodejs.org/dist/v0.6.14/node-v0.6.14.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.14/x64/">http://nodejs.org/dist/v0.6.14/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.14/node-v0.6.14.pkg">http://nodejs.org/dist/v0.6.14/node-v0.6.14.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.14/">http://nodejs.org/dist/v0.6.14/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.14/">http://nodejs.org/docs/v0.6.14/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.14/api/">http://nodejs.org/docs/v0.6.14/api/</a>
</p>

53
doc/blog/release/version-0-6-15-stable.md

@ -0,0 +1,53 @@
version: 0.6.15
title: Version 0.6.15 (stable)
author: Isaac Schlueter
date: Mon Apr 09 2012 10:39:18 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-15-stable
<p>2012.04.09 Version 0.6.15 (stable)
</p>
<ul>
<li><p>Update npm to 1.1.16</p>
</li>
<li><p>Show licenses in binary installers.</p>
</li>
<li><p>unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64 (Ben Noordhuis)</p>
</li>
<li><p>add 64bit offset fs functions (Igor Zinkovsky)</p>
</li>
<li><p>windows: don&apos;t report ENOTSOCK when attempting to bind an udp handle twice (Bert Belder)</p>
</li>
<li><p>windows: backport pipe-connect-to-file fixes from master (Bert Belder)</p>
</li>
<li><p>windows: never call fs event callbacks after closing the watcher (Bert Belder)</p>
</li>
<li><p>fs.readFile: don&apos;t make the callback before the fd is closed (Bert Belder)</p>
</li>
<li><p>windows: use 64bit offsets for uv_fs apis (Igor Zinkovsky)</p>
</li>
<li><p>Fix #2061: segmentation fault on OS X due to stat size mismatch (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.15/node-v0.6.15.tar.gz">http://nodejs.org/dist/v0.6.15/node-v0.6.15.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.15/node-v0.6.15.msi">http://nodejs.org/dist/v0.6.15/node-v0.6.15.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.15/x64/">http://nodejs.org/dist/v0.6.15/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.15/node-v0.6.15.pkg">http://nodejs.org/dist/v0.6.15/node-v0.6.15.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.15/">http://nodejs.org/dist/v0.6.15/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.15/">http://nodejs.org/docs/v0.6.15/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.15/api/">http://nodejs.org/docs/v0.6.15/api/</a>
</p>

59
doc/blog/release/version-0-6-16-stable.md

@ -0,0 +1,59 @@
version: 0.6.16
title: Version 0.6.16 (stable)
author: Isaac Schlueter
date: Mon Apr 30 2012 11:13:50 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-16-stable
<p>2012.04.30 Version 0.6.16 (stable)
</p>
<ul>
<li><p>Upgrade V8 to 3.6.6.25</p>
</li>
<li><p>Upgrade npm to 1.1.18</p>
</li>
<li><p>Windows: add mappings for UV_ENOENT (Bert Belder)</p>
</li>
<li><p>linux: add IN_MOVE_SELF to inotify event mask (Ben Noordhuis)</p>
</li>
<li><p>unix: call pipe handle connection cb on accept() error (Ben Noordhuis)</p>
</li>
<li><p>unix: handle EWOULDBLOCK (Ben Noordhuis)</p>
</li>
<li><p>map EWOULDBLOCK to UV_EAGAIN (Ben Noordhuis)</p>
</li>
<li><p>Map ENOMEM to UV_ENOMEM (isaacs)</p>
</li>
<li><p>Child process: support the <code>gid</code> and <code>uid</code> options (Bert Belder)</p>
</li>
<li><p>test: cluster: add worker death event test (Ben Noordhuis)</p>
</li>
<li><p>typo in node_http_parser (isaacs)</p>
</li>
<li><p>http_parser: Eat CRLF between requests, even on connection:close. (Ben Noordhuis)</p>
</li>
<li><p>don&apos;t check return value of unsetenv (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.16/node-v0.6.16.tar.gz">http://nodejs.org/dist/v0.6.16/node-v0.6.16.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.16/node-v0.6.16.msi">http://nodejs.org/dist/v0.6.16/node-v0.6.16.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.16/x64/">http://nodejs.org/dist/v0.6.16/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.16/node-v0.6.16.pkg">http://nodejs.org/dist/v0.6.16/node-v0.6.16.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.16/">http://nodejs.org/dist/v0.6.16/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.16/">http://nodejs.org/docs/v0.6.16/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.16/api/">http://nodejs.org/docs/v0.6.16/api/</a>
</p>

47
doc/blog/release/version-0-6-17-stable.md

@ -0,0 +1,47 @@
version: 0.6.17
title: Version 0.6.17 (stable)
author: Isaac Schlueter
date: Fri May 04 2012 13:33:12 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-17-stable
<p>2012.05.04 Version 0.6.17 (stable)
</p>
<ul>
<li><p>Upgrade npm to 1.1.21</p>
</li>
<li><p>uv: Add support for EROFS errors (Ben Noordhuis, Maciej Małecki)</p>
</li>
<li><p>uv: Add support for EIO and ENOSPC errors (Fedor Indutny)</p>
</li>
<li><p>windows: Add support for EXDEV errors (Bert Belder)</p>
</li>
<li><p>http: Fix client memory leaks (isaacs, Vincent Voyer)</p>
</li>
<li><p>fs: fix file descriptor leak in sync functions (Ben Noordhuis)</p>
</li>
<li><p>fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.17/node-v0.6.17.tar.gz">http://nodejs.org/dist/v0.6.17/node-v0.6.17.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.17/node-v0.6.17.msi">http://nodejs.org/dist/v0.6.17/node-v0.6.17.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.17/x64/">http://nodejs.org/dist/v0.6.17/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.17/node-v0.6.17.pkg">http://nodejs.org/dist/v0.6.17/node-v0.6.17.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.17/">http://nodejs.org/dist/v0.6.17/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.17/">http://nodejs.org/docs/v0.6.17/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.17/api/">http://nodejs.org/docs/v0.6.17/api/</a>
</p>

59
doc/blog/release/version-0-6-18-stable.md

@ -0,0 +1,59 @@
version: 0.6.18
title: Version 0.6.18 (stable)
author: Isaac Schlueter
date: Tue May 15 2012 10:06:13 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-6-18-stable
<p>2012.05.15 Version 0.6.18 (stable)
</p>
<ul>
<li><p>windows: skip GetFileAttributes call when opening a file (Bert Belder)</p>
</li>
<li><p>crypto: add PKCS12/PFX support (Sambasiva Suda)</p>
</li>
<li><p>#3240: child_process: delete NODE_CHANNEL_FD from env in spawn (Ben Noordhuis)</p>
</li>
<li><p>windows: add test for path.normalize with UNC paths (Bert Belder)</p>
</li>
<li><p>windows: make path.normalize convert all slashes to backslashes (Bert Belder)</p>
</li>
<li><p>fs: Automatically close FSWatcher on error (Bert Belder)</p>
</li>
<li><p>#3258: fs.ReadStream.pause() emits duplicate data event (koichik)</p>
</li>
<li><p>pipe_wrap: don&apos;t assert() on pipe accept errors (Ben Noordhuis)</p>
</li>
<li><p>Better exception output for module load and process.nextTick (Felix Geisendörfer)</p>
</li>
<li><p>zlib: fix error reporting (Ben Noordhuis)</p>
</li>
<li><p>http: Don&apos;t destroy on timeout (isaacs)</p>
</li>
<li><p>#3231: http: Don&apos;t try to emit error on a null&apos;ed req object (isaacs)</p>
</li>
<li><p>#3236: http: Refactor ClientRequest.onSocket (isaacs)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.6.18/node-v0.6.18.tar.gz">http://nodejs.org/dist/v0.6.18/node-v0.6.18.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.6.18/node-v0.6.18.msi">http://nodejs.org/dist/v0.6.18/node-v0.6.18.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.6.18/x64/">http://nodejs.org/dist/v0.6.18/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.6.18/node-v0.6.18.pkg">http://nodejs.org/dist/v0.6.18/node-v0.6.18.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.6.18/">http://nodejs.org/dist/v0.6.18/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.6.18/">http://nodejs.org/docs/v0.6.18/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.6.18/api/">http://nodejs.org/docs/v0.6.18/api/</a>
</p>

86
doc/blog/release/version-0-7-10-unstable.md

@ -0,0 +1,86 @@
version: 0.7.10
title: Version 0.7.10 (unstable)
author: Isaac Schlueter
date: Mon Jun 11 2012 09:00:25 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-10-unstable
<p>2012.06.11, Version 0.7.10 (unstable)
</p>
<p>This is the second-to-last release on the 0.7 branch. Version 0.8.0
will be released some time next week. As other even-numbered Node
releases before it, the v0.8.x releases will maintain API and binary
compatibility.
</p>
<p>The major changes are detailed in
<a href="https://github.com/joyent/node/wiki/API-changes-between-v0.6-and-v0.8">https://github.com/joyent/node/wiki/API-changes-between-v0.6-and-v0.8</a>
</p>
<p>Please try out this release. There will be very few changes between
this and the v0.8.x release family. This is the last chance to comment
on the API before it is locked down for stability.
</p>
<ul>
<li><p>Roll V8 back to 3.9.24.31</p>
</li>
<li><p>build: x64 target should always pass -m64 (Robert Mustacchi)</p>
</li>
<li><p>add NODE_EXTERN to node::Start (Joel Brandt)</p>
</li>
<li><p>repl: Warn about running npm commands (isaacs)</p>
</li>
<li><p>slab_allocator: fix crash in dtor if V8 is dead (Ben Noordhuis)</p>
</li>
<li><p>slab_allocator: fix leak of Persistent handles (Shigeki Ohtsu)</p>
</li>
<li><p>windows/msi: add node.js prompt to startmenu (Jeroen Janssen)</p>
</li>
<li><p>windows/msi: fix adding node to PATH (Jeroen Janssen)</p>
</li>
<li><p>windows/msi: add start menu links when installing (Jeroen Janssen)</p>
</li>
<li><p>windows: don&apos;t install x64 version into the &apos;program files (x86)&apos; folder (Matt Gollob)</p>
</li>
<li><p>domain: Fix #3379 domain.intercept no longer passes error arg to cb (Marc Harter)</p>
</li>
<li><p>fs: make callbacks run in global context (Ben Noordhuis)</p>
</li>
<li><p>fs: enable fs.realpath on windows (isaacs)</p>
</li>
<li><p>child_process: expose UV_PROCESS_DETACHED as options.detached (Charlie McConnell)</p>
</li>
<li><p>child_process: new stdio API for .spawn() method (Fedor Indutny)</p>
</li>
<li><p>child_process: spawn().ref() and spawn().unref() (Fedor Indutny)</p>
</li>
<li><p>Upgrade npm to 1.1.25</p>
</li>
<ul><li>Enable npm link on windows</li>
<li>Properly remove sh-shim on Windows</li>
<li>Abstract out registry client and logger</li></ul>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.10/node-v0.7.10.tar.gz">http://nodejs.org/dist/v0.7.10/node-v0.7.10.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.10/node-v0.7.10.msi">http://nodejs.org/dist/v0.7.10/node-v0.7.10.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.10/x64/">http://nodejs.org/dist/v0.7.10/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.10/node-v0.7.10.pkg">http://nodejs.org/dist/v0.7.10/node-v0.7.10.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.10/">http://nodejs.org/dist/v0.7.10/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.10/">http://nodejs.org/docs/v0.7.10/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.10/api/">http://nodejs.org/docs/v0.7.10/api/</a>
</p>

80
doc/blog/release/version-0-7-11-unstable.md

@ -0,0 +1,80 @@
version: 0.7.11
title: Version 0.7.11 (unstable)
author: Isaac Schlueter
date: Fri Jun 15 2012 12:45:20 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-11-unstable
<p>This is the most stable 0.7 release yet. Please try it out.
</p>
<p>Version 0.8 will be out very soon. You can follow the remaining issues
on the github issue tracker.
</p>
<p><a href="https://github.com/joyent/node/issues?milestone=10&amp;state=open">https://github.com/joyent/node/issues?milestone=10&amp;state=open</a>
</p>
<p>2012.06.15, Version 0.7.11 (unstable)
</p>
<ul>
<li><p>V8: Upgrade to v3.11.10</p>
</li>
<li><p>npm: Upgrade to 1.1.26</p>
</li>
<li><p>doc: Improve cross-linking in API docs markdown (Ben Kelly)</p>
</li>
<li><p>Fix #3425: removeAllListeners should delete array (Reid Burke)</p>
</li>
<li><p>cluster: don&apos;t silently drop messages when the write queue gets big (Bert Belder)</p>
</li>
<li><p>Add Buffer.concat method (isaacs)</p>
</li>
<li><p>windows: make symlinks tolerant to forward slashes (Bert Belder)</p>
</li>
<li><p>build: Add node.d and node.1 to installer (isaacs)</p>
</li>
<li><p>cluster: rename worker.unqiueID to worker.id (Andreas Madsen)</p>
</li>
<li><p>Windows: Enable ETW events on Windows for existing DTrace probes. (Igor Zinkovsky)</p>
</li>
<li><p>test: bundle node-weak in test/gc so that it doesn&apos;t need to be downloaded (Nathan Rajlich)</p>
</li>
<li><p>Make many tests pass on Windows (Bert Belder)</p>
</li>
<li><p>Fix #3388 Support listening on file descriptors (isaacs)</p>
</li>
<li><p>Fix #3407 Add os.tmpDir() (isaacs)</p>
</li>
<li><p>Unbreak the snapshotted build on Windows (Bert Belder)</p>
</li>
<li><p>Clean up child_process.kill throws (Bert Belder)</p>
</li>
<li><p>crypto: make cipher/decipher accept buffer args (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.11/node-v0.7.11.tar.gz">http://nodejs.org/dist/v0.7.11/node-v0.7.11.tar.gz</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.11/node-v0.7.11.pkg">http://nodejs.org/dist/v0.7.11/node-v0.7.11.pkg</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.11/node-v0.7.11-x86.msi">http://nodejs.org/dist/v0.7.11/node-v0.7.11-x86.msi</a>
</p>
<p>Windows x64 Installer: <a href="http://nodejs.org/dist/v0.7.11/node-v0.7.11-x64.msi">http://nodejs.org/dist/v0.7.11/node-v0.7.11-x64.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.11/x64/">http://nodejs.org/dist/v0.7.11/x64/</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.11/">http://nodejs.org/dist/v0.7.11/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.11/">http://nodejs.org/docs/v0.7.11/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.11/api/">http://nodejs.org/docs/v0.7.11/api/</a>
</p>

56
doc/blog/release/version-0-7-12.md

@ -0,0 +1,56 @@
version: 0.7.12
title: Version 0.7.12
author: Isaac Schlueter
date: Tue Jun 19 2012 16:31:09 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-12
<p>2012.06.19, Version 0.7.12 (unstable) </p>
<p>This is the last release on the 0.7 branch. Version 0.8.0 will be released some time later this week, barring any major problems. </p>
<p>As with other even-numbered Node releases before it, the v0.8.x releases will maintain API and binary compatibility. </p>
<p>The major changes between v0.6 and v0.8 are detailed in <a href="https://github.com/joyent/node/wiki/API-changes-between-v0.6-and-v0.8">https://github.com/joyent/node/wiki/API-changes-between-v0.6-and-v0.8</a> </p>
<p>Please try out this release. There will be very virtually no changes between this and the v0.8.x release family. This is the last chance to comment before it is locked down for stability. The API is effectively frozen now. </p>
<p>This version adds backwards-compatible shims for binary addons that use libeio and libev directly. If you find that binary modules that could compile on v0.6 can not compile on this version, please let us know. Note that libev is officially deprecated in v0.8, and will be removed in v0.9. You should be porting your modules to use libuv as soon as possible. </p>
<p>V8 is on 3.11.10 currently, and will remain on the V8 3.11.x branch for the duration of Node v0.8.x. </p>
<ul> <li><p>npm: Upgrade to 1.1.30<br> - Improved &apos;npm init&apos;<br> - Fix the &apos;cb never called&apos; error from &apos;oudated&apos; and &apos;update&apos;<br> - Add --save-bundle|-B config<br> - Fix isaacs/npm#2465: Make npm script and windows shims cygwin-aware<br> - Fix isaacs/npm#2452 Use --save(-dev|-optional) in npm rm<br> - <code>logstream</code> option to replace removed <code>logfd</code> (Rod Vagg)<br> - Read default descriptions from README.md files </p>
</li> <li><p>Shims to support deprecated <code>ev_*</code> and <code>eio_*</code> methods (Ben Noordhuis)</p>
</li> <li><p>#3118 net.Socket: Delay pause/resume until after connect (isaacs)</p>
</li> <li><p>#3465 Add ./configure --no-ifaddrs flag (isaacs)</p>
</li> <li><p>child_process: add .stdin stream to forks (Fedor Indutny)</p>
</li> <li><p>build: fix <code>make install DESTDIR=/path</code> (Ben Noordhuis)</p>
</li> <li><p>tls: fix off-by-one error in renegotiation check (Ben Noordhuis)</p>
</li> <li><p>crypto: Fix diffie-hellman key generation UTF-8 errors (Fedor Indutny)</p>
</li> <li><p>node: change the constructor name of process from EventEmitter to process (Andreas Madsen)</p>
</li> <li><p>net: Prevent property access throws during close (Reid Burke)</p>
</li> <li><p>querystring: improved speed and code cleanup (Felix Böhm)</p>
</li> <li><p>sunos: fix assertion errors breaking fs.watch() (Fedor Indutny)</p>
</li> <li><p>unix: stat: detect sub-second changes (Ben Noordhuis)</p>
</li> <li><p>add stat() based file watcher (Ben Noordhuis)</p>
</li> </ul> <p>Source Code: <a href="http://nodejs.org/dist/v0.7.12/node-v0.7.12.tar.gz">http://nodejs.org/dist/v0.7.12/node-v0.7.12.tar.gz</a> </p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.12/node-v0.7.12.pkg">http://nodejs.org/dist/v0.7.12/node-v0.7.12.pkg</a> </p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.12/node-v0.7.12-x86.msi">http://nodejs.org/dist/v0.7.12/node-v0.7.12-x86.msi</a> </p>
<p>Windows x64 Installer: <a href="http://nodejs.org/dist/v0.7.12/x64/node-v0.7.12-x64.msi">http://nodejs.org/dist/v0.7.12/x64/node-v0.7.12-x64.msi</a> </p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.12/x64/">http://nodejs.org/dist/v0.7.12/x64/</a> </p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.12/">http://nodejs.org/dist/v0.7.12/</a> </p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.12/">http://nodejs.org/docs/v0.7.12/</a> </p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.12/api/">http://nodejs.org/docs/v0.7.12/api/</a> </p>
<h2>Shasums</h2>
<pre>ded6a2197b1149b594eb45fea921e8538ba442aa blog.html
dfabff0923d4b4f1d53bd9831514c1ac8c4b1876 email.md
be313d35511e6d7e43cae5fa2b18f3e0d2275ba1 node-v0.7.12-x86.msi
8f7ba0c8283e3863de32fd5c034f5b599c78f830 node-v0.7.12.pkg
cb570abacbf4eb7e23c3d2620d00dd3080d9c19d node-v0.7.12.tar.gz
e13a6edfcba1c67ffe794982dd20a222ce8ce40f node.exe
20906ad76a43eca52795b2a089654a105e11c1e6 node.exp
acbcbb87b6f7f2af34a3ed0abe6131d9e7a237af node.lib
4013d5b25fe36ae4245433b972818686cd9a2205 node.pdb
6c0a7a2e8ee360e2800156293fb2f6a5c1a57382 npm-1.1.30.tgz
9d23e42e8260fa20001d5618d2583a62792bf63f npm-1.1.30.zip
840157b2d6f7389ba70b07fc9ddc048b92c501cc x64/node-v0.7.12-x64.msi
862d42706c21ea83bf73cd827101f0fe598b0cf7 x64/node.exe
de0af95fac083762f99c875f91bab830dc030f71 x64/node.exp
3122bd886dfb96f3b41846cef0bdd7e97326044a x64/node.lib
e0fa4e42cd19cadf8179e492ca606b7232bbc018 x64/node.pdb</pre>

50
doc/blog/release/version-0-7-4-unstable.md

@ -0,0 +1,50 @@
version: 0.7.4
title: Node v0.7.4 (unstable)
author: Isaac Schlueter
date: Wed Feb 15 2012 11:38:35 GMT-0800 (PST)
status: publish
category: release
slug: version-0-7-4-unstable
<p>2012.02.14, Version 0.7.4 (unstable)
</p>
<ul>
<li><p>Upgrade V8 to 3.9.5</p>
</li>
<li><p>Upgrade npm to 1.1.1</p>
</li>
<li><p>build: Detect host_arch better (Karl Skomski)</p>
</li>
<li><p>debugger: export <code>debug_port</code> to <code>process</code> (Fedor Indutny)</p>
</li>
<li><p>api docs: CSS bug fixes (isaacs)</p>
</li>
<li><p>build: use -fPIC for native addons on UNIX (Nathan Rajlich)</p>
</li>
<li><p>Re-add top-level v8::Locker (Marcel Laverdet)</p>
</li>
<li><p>Move images out of the dist tarballs (isaacs)</p>
</li>
<li><p>libuv: Remove uv_export and uv_import (Ben Noordhuis)</p>
</li>
<li><p>build: Support x64 build on Windows (Igor Zinkovsky)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.4/node-v0.7.4.tar.gz">http://nodejs.org/dist/v0.7.4/node-v0.7.4.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.4/node-v0.7.4.msi">http://nodejs.org/dist/v0.7.4/node-v0.7.4.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.4/node-v0.7.4.pkg">http://nodejs.org/dist/v0.7.4/node-v0.7.4.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.4/">http://nodejs.org/dist/v0.7.4/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.4/">http://nodejs.org/docs/v0.7.4/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.4/api/">http://nodejs.org/docs/v0.7.4/api/</a>
</p>

62
doc/blog/release/version-0-7-5-unstable.md

@ -0,0 +1,62 @@
version: 0.7.5
title: Version 0.7.5 (unstable)
author: Isaac Schlueter
date: Thu Feb 23 2012 14:45:21 GMT-0800 (PST)
status: publish
category: release
slug: version-0-7-5-unstable
<p>2012.02.23, Version 0.7.5 (unstable)
</p>
<ul>
<li><p>startup speed improvements (Maciej Małecki)</p>
</li>
<li><p>crypto: add function getDiffieHellman() (Tomasz Buchert)</p>
</li>
<li><p>buffer: support decoding of URL-safe base64 (Ben Noordhuis)</p>
</li>
<li><p>Make QueryString.parse() even faster (Brian White)</p>
</li>
<li><p>url: decode url entities in auth section (Ben Noordhuis)</p>
</li>
<li><p>http: support PURGE request method (Ben Noordhuis)</p>
</li>
<li><p>http: Generate Date headers on responses (Mark Nottingham)</p>
</li>
<li><p>Fix #2762: Add callback to close function. (Mikeal Rogers)</p>
</li>
<li><p>dgram: fix out-of-bound memory read (Ben Noordhuis)</p>
</li>
<li><p>repl: add automatic loading of built-in libs (Brandon Benvie)</p>
</li>
<li><p>repl: remove double calls where possible (Fedor Indutny)</p>
</li>
<li><p>Readline improvements. Related: #2737 #2756 (Colton Baker)</p>
</li>
<li><p>build: disable -fomit-frame-pointer on solaris (Dave Pacheco)</p>
</li>
<li><p>build: arch detection improvements (Nathan Rajlich)</p>
</li>
<li><p>build: Make a fat binary for the OS X <code>make pkg</code>. (Nathan Rajlich)</p>
</li>
<li><p>jslint src/ and lib/ on &apos;make test&apos; (isaacs)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.5/node-v0.7.5.tar.gz">http://nodejs.org/dist/v0.7.5/node-v0.7.5.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.5/node-v0.7.5.msi">http://nodejs.org/dist/v0.7.5/node-v0.7.5.msi</a>
</p>
<p>Macintosh Installer: <a href="http://nodejs.org/dist/v0.7.5/node-v0.7.5.pkg">http://nodejs.org/dist/v0.7.5/node-v0.7.5.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.5/">http://nodejs.org/dist/v0.7.5/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.5/">http://nodejs.org/docs/v0.7.5/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.5/api/">http://nodejs.org/docs/v0.7.5/api/</a>
</p>

72
doc/blog/release/version-0-7-6-unstable.md

@ -0,0 +1,72 @@
version: 0.7.6
title: Version 0.7.6 (unstable)
author: Isaac Schlueter
date: Tue Mar 13 2012 14:12:30 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-6-unstable
<p>2012.03.13, Version 0.7.6 (unstable)
</p>
<ul>
<li><p>Upgrade v8 to 3.9.17</p>
</li>
<li><p>Upgrade npm to 1.1.8</p>
<p>
- Add support for os/cpu fields in package.json (Adam Blackburn)<br>
- Automatically node-gyp packages containing a binding.gyp<br>
- Fix failures unpacking in UNC shares<br>
- Never create un-listable directories<br>
- Handle cases where an optionalDependency fails to build<br>
</p>
</li>
<li><p>events: newListener emit correct fn when using &apos;once&apos; (Roly Fentanes)</p>
</li>
<li><p>url: Ignore empty port component (Łukasz Walukiewicz)</p>
</li>
<li><p>module: replace &apos;children&apos; array (isaacs)</p>
</li>
<li><p>tls: parse multiple values of a key in ssl certificate (Sambasiva Suda)</p>
</li>
<li><p>cluster: support passing of named pipes (Ben Noordhuis)</p>
</li>
<li><p>Windows: include syscall in fs errors (Bert Belder)</p>
</li>
<li><p>http: #2888 Emit end event only once (Igor Zinkovsky)</p>
</li>
<li><p>readline: add multiline support (Rlidwka)</p>
</li>
<li><p>process: add <code>process.hrtime()</code> (Nathan Rajlich)</p>
</li>
<li><p>net, http, https: add localAddress option (Dmitry Nizovtsev)</p>
</li>
<li><p>addon improvements (Nathan Rajlich)</p>
</li>
<li><p>build improvements (Ben Noordhuis, Sadique Ali, T.C. Hollingsworth, Nathan Rajlich)</p>
</li>
<li><p>add support for &quot;SEARCH&quot; request methods (Nathan Rajlich)</p>
</li>
<li><p>expose the zlib and http_parser version in process.versions (Nathan Rajlich)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.tar.gz">http://nodejs.org/dist/v0.7.6/node-v0.7.6.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.msi">http://nodejs.org/dist/v0.7.6/node-v0.7.6.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.6/x64/">http://nodejs.org/dist/v0.7.6/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.pkg">http://nodejs.org/dist/v0.7.6/node-v0.7.6.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.6/">http://nodejs.org/dist/v0.7.6/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.6/">http://nodejs.org/docs/v0.7.6/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.6/api/">http://nodejs.org/docs/v0.7.6/api/</a>
</p>

71
doc/blog/release/version-0-7-7-unstable.md

@ -0,0 +1,71 @@
version: 0.7.7
title: Version 0.7.7 (unstable)
author: Isaac Schlueter
date: Fri Mar 30 2012 11:56:19 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-7-unstable
<p>2012.03.30, Version 0.7.7 (unstable)
</p>
<ul>
<li><p>Upgrade V8 to 3.9.24.7</p>
</li>
<li><p>Upgrade npm to 1.1.15</p>
</li>
<li><p>Handle Emoji characters properly (Erik Corry, Bert Belder)</p>
</li>
<li><p>readline: migrate ansi/vt100 logic from tty to readline (Nathan Rajlich)</p>
</li>
<li><p>readline: Fix multiline handling (Alex Kocharin)</p>
</li>
<li><p>add a -i/--interactive flag to force the REPL (Nathan Rajlich)</p>
</li>
<li><p>debugger: add breakOnException command (Fedor Indutny)</p>
</li>
<li><p>cluster: kill workers when master dies (Andreas Madsen)</p>
</li>
<li><p>cluster: add graceful disconnect support (Andreas Madsen)</p>
</li>
<li><p>child_process: Separate &apos;close&apos; event from &apos;exit&apos; (Charlie McConnell)</p>
</li>
<li><p>typed arrays: add Uint8ClampedArray (Mikael Bourges-Sevenier)</p>
</li>
<li><p>buffer: Fix byte alignment issues (Ben Noordhuis, Erik Lundin)</p>
</li>
<li><p>tls: fix CryptoStream.setKeepAlive() (Shigeki Ohtsu)</p>
</li>
<li><p>Expose http parse error codes (Felix Geisendörfer)</p>
</li>
<li><p>events: don&apos;t delete the listeners array (Ben Noordhuis, Nathan Rajlich)</p>
</li>
<li><p>process: add process.config to view node&apos;s ./configure settings (Nathan Rajlich)</p>
</li>
<li><p>process: process.execArgv to see node&apos;s arguments (Micheil Smith)</p>
</li>
<li><p>process: fix process.title setter (Ben Noordhuis)</p>
</li>
<li><p>timers: handle negative or non-numeric timeout values (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.7/node-v0.7.7.tar.gz">http://nodejs.org/dist/v0.7.7/node-v0.7.7.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.7/node-v0.7.7.msi">http://nodejs.org/dist/v0.7.7/node-v0.7.7.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.7/x64/">http://nodejs.org/dist/v0.7.7/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.7/node-v0.7.7.pkg">http://nodejs.org/dist/v0.7.7/node-v0.7.7.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.7/">http://nodejs.org/dist/v0.7.7/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.7/">http://nodejs.org/docs/v0.7.7/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.7/api/">http://nodejs.org/docs/v0.7.7/api/</a>
</p>

71
doc/blog/release/version-0-7-8-unstable.md

@ -0,0 +1,71 @@
version: 0.7.8
title: Version 0.7.8 (unstable)
author: Isaac Schlueter
date: Wed Apr 18 2012 10:39:02 GMT-0700 (PDT)
status: publish
category: release
slug: version-0-7-8-unstable
<p>2012.04.18, Version 0.7.8, (unstable)
</p>
<ul>
<li><p>Upgrade V8 to 3.9.24.9</p>
</li>
<li><p>Upgrade OpenSSL to 1.0.0f</p>
</li>
<li><p>Upgrade npm to 1.1.18</p>
</li>
<li><p>Show licenses in Binary installers</p>
</li>
<li><p>Domains (isaacs)</p>
</li>
<li><p>readline: rename &quot;end&quot; to &quot;close&quot; (Nathan Rajlich)</p>
</li>
<li><p>tcp: make getsockname() return address family as string (Shigeki Ohtsu)</p>
</li>
<li><p>http, https: fix .setTimeout() (ssuda)</p>
</li>
<li><p>os: add cross platform EOL character (Mustansir Golawala)</p>
</li>
<li><p>typed arrays: unexport SizeOfArrayElementForType() (Aaron Jacobs)</p>
</li>
<li><p>net: honor &apos;enable&apos; flag in .setNoDelay() (Ben Noordhuis)</p>
</li>
<li><p>child_process: emit error when .kill fails (Andreas Madsen)</p>
</li>
<li><p>gyp: fix &apos;argument list too long&apos; build error (Ben Noordhuis)</p>
</li>
<li><p>fs.WriteStream: Handle modifications to fs.open (isaacs)</p>
</li>
<li><p>repl, readline: Handle newlines better (Nathan Rajlich, Nathan Friedly)</p>
</li>
<li><p>build: target OSX 10.5 when building on darwin (Nathan Rajlich)</p>
</li>
<li><p>Fix #3052 Handle errors properly in zlib (isaacs)</p>
</li>
<li><p>build: add support for DTrace and postmortem (Dave Pacheco)</p>
</li>
<li><p>core: add reusable Slab allocator (Ben Noordhuis)</p>
</li>
</ul>
<p>Source Code: <a href="http://nodejs.org/dist/v0.7.8/node-v0.7.8.tar.gz">http://nodejs.org/dist/v0.7.8/node-v0.7.8.tar.gz</a>
</p>
<p>Windows Installer: <a href="http://nodejs.org/dist/v0.7.8/node-v0.7.8.msi">http://nodejs.org/dist/v0.7.8/node-v0.7.8.msi</a>
</p>
<p>Windows x64 Files: <a href="http://nodejs.org/dist/v0.7.8/x64/">http://nodejs.org/dist/v0.7.8/x64/</a>
</p>
<p>Macintosh Installer (Universal): <a href="http://nodejs.org/dist/v0.7.8/node-v0.7.8.pkg">http://nodejs.org/dist/v0.7.8/node-v0.7.8.pkg</a>
</p>
<p>Other release files: <a href="http://nodejs.org/dist/v0.7.8/">http://nodejs.org/dist/v0.7.8/</a>
</p>
<p>Website: <a href="http://nodejs.org/docs/v0.7.8/">http://nodejs.org/docs/v0.7.8/</a>
</p>
<p>Documentation: <a href="http://nodejs.org/docs/v0.7.8/api/">http://nodejs.org/docs/v0.7.8/api/</a>
</p>

25
doc/blog/video/bryan-cantrill-instrumenting-the-real-time-web.md

@ -14,6 +14,29 @@ This talk was given at Velocity Conf in 2011.
src="http://www.youtube.com/embed/F5jCXdTYJYc" frameborder="0" src="http://www.youtube.com/embed/F5jCXdTYJYc" frameborder="0"
allowfullscreen></iframe> allowfullscreen></iframe>
<div id="__ss_8332407"> <strong><a href="http://www.slideshare.net/bcantrill/instrumenting-the-realtime-web" title="Instrumenting the real-time web" target="_blank">Instrumenting the real-time web</a></strong> <div style="width:425px" id="__ss_8332407"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/bcantrill/instrumenting-the-realtime-web" title="Instrumenting the real-time web" target="_blank">Instrumenting the real-time web</a></strong> <object id="__sse8332407" width="425" height="355"> <param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=velocity-110616190636-phpapp02&stripped_title=instrumenting-the-realtime-web&userName=bcantrill" /> <param name="allowFullScreen" value="true"/> <param name="allowScriptAccess" value="always"/> <param name="wmode" value="transparent"/> <embed name="__sse8332407" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=velocity-110616190636-phpapp02&stripped_title=instrumenting-the-realtime-web&userName=bcantrill" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="425" height="355"></embed> </object> <div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/bcantrill" target="_blank">bcantrill</a> </div> </div> <div style="width:425px" id="__ss_8332407">
<strong style="display:block;margin:12px 0 4px"><a href=
"http://www.slideshare.net/bcantrill/instrumenting-the-realtime-web"
title="Instrumenting the real-time web" target=
"_blank">Instrumenting the real-time web</a></strong>
<object id="__sse8332407" width="425" height="355">
<param name="movie" value=
"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=velocity-110616190636-phpapp02&amp;stripped_title=instrumenting-the-realtime-web&amp;userName=bcantrill">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<param name="wmode" value="transparent">
<embed name="__sse8332407" src=
"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=velocity-110616190636-phpapp02&amp;stripped_title=instrumenting-the-realtime-web&amp;userName=bcantrill"
type="application/x-shockwave-flash" allowscriptaccess=
"always" allowfullscreen="true" wmode="transparent" width=
"425" height="355">
</object>
<div style="padding:5px 0 12px">
View more <a href="http://www.slideshare.net/" target=
"_blank">presentations</a> from <a href=
"http://www.slideshare.net/bcantrill" target=
"_blank">bcantrill</a>
</div>
</div> </div>
</td></td></table> </td></td></table>

6
doc/blog/vulnerability/http-server-security-vulnerability-please-upgrade-to-0-6-17.md

@ -15,13 +15,13 @@ slug: http-server-security-vulnerability-please-upgrade-to-0-6-17
<p>A few weeks ago, Matthew Daley found a security vulnerability in Node&apos;s HTTP implementation, and thankfully did the responsible thing and reported it to us via email. He explained it quite well, so I'll quote him here:</p> <p>A few weeks ago, Matthew Daley found a security vulnerability in Node&apos;s HTTP implementation, and thankfully did the responsible thing and reported it to us via email. He explained it quite well, so I'll quote him here:</p>
<blockquote> <blockquote>
<p>There is a vulnerability in node&apos;s http_parser binding which allows information disclosure to a remote attacker: <p>There is a vulnerability in node&apos;s `http_parser` binding which allows information disclosure to a remote attacker:
</p> </p>
<p>In node::StringPtr::Update, an attempt is made at an optimization on certain inputs (node_http_parser.cc, line 151). The intent is that if the current string pointer plus the current string size is equal to the incoming string pointer, the current string size is just increased to match, as the incoming string lies just beyond the current string pointer. However, the check to see whether or not this can be done is incorrect; &quot;size&quot; is used whereas &quot;size_&quot; should be used. Therefore, an attacker can call Update with a string of certain length and cause the current string to have other data appended to it. In the case of HTTP being parsed out of incoming socket data, this can be incoming data from other sockets. <p>In node::StringPtr::Update, an attempt is made at an optimization on certain inputs (`node_http_parser.cc`, line 151). The intent is that if the current string pointer plus the current string size is equal to the incoming string pointer, the current string size is just increased to match, as the incoming string lies just beyond the current string pointer. However, the check to see whether or not this can be done is incorrect; &quot;size&quot; is used whereas &quot;size_&quot; should be used. Therefore, an attacker can call Update with a string of certain length and cause the current string to have other data appended to it. In the case of HTTP being parsed out of incoming socket data, this can be incoming data from other sockets.
</p> </p>
<p>Normally node::StringPtr::Save, which is called after each execution of http_parser, would stop this from being exploitable as it converts strings to non-optimizable heap-based strings. However, this is not done to 0-length strings. An attacker can therefore exploit the mistake by making Update set a 0-length string, and then Update past its boundary, so long as it is done in one http_parser execution. This can be done with an HTTP header with empty value, followed by a continuation with a value of certain length. <p>Normally node::StringPtr::Save, which is called after each execution of `http_parser`, would stop this from being exploitable as it converts strings to non-optimizable heap-based strings. However, this is not done to 0-length strings. An attacker can therefore exploit the mistake by making Update set a 0-length string, and then Update past its boundary, so long as it is done in one `http_parser` execution. This can be done with an HTTP header with empty value, followed by a continuation with a value of certain length.
</p> </p>
<p>The <a href="https://gist.github.com/2628868">attached files</a> demonstrate the issue: </p> <p>The <a href="https://gist.github.com/2628868">attached files</a> demonstrate the issue: </p>

5
tools/blog/README.md

@ -0,0 +1,5 @@
# node-blog-gen
Generates the node blog from the markdown files in doc/blog/.

261
tools/blog/generate.js

@ -0,0 +1,261 @@
#!/usr/bin/env node
var fs = require('fs');
var marked = require('marked');
var mkdirp = require('mkdirp');
var glob = require('glob');
var ejs = require('ejs');
var path = require('path');
var semver = require('semver');
var input = path.resolve(process.argv[2]);
var output = path.resolve(process.argv[3]);
var template = path.resolve(process.argv[4]);
var config = {
postsPerPage: 5
};
console.error("argv=%j", process.argv)
fs.readFile(template, 'utf8', function(er, contents) {
if (er) throw er;
template = ejs.compile(contents, template);
readInput();
});
function readInput() {
glob(input + '/**/*.md', function(er, files) {
if (er) throw er;
readFiles(files);
});
}
function readFiles(files) {
var n = files.length;
var data = { files: {}, feeds: {}, posts: {}};
files.forEach(function(file) {
fs.readFile(file, 'utf8', next(file));
});
function next(file) { return function(er, contents) {
if (er) throw er;
if (contents) {
contents = parseFile(file, contents);
if (contents) {
data.files[file] = contents
}
}
if (--n === 0) {
buildOutput(data);
}
}}
}
function parseFile(file, contents) {
var c = contents.split('\n\n');
var head = c.shift();
c = c.join('\n\n');
var post = head.split('\n').reduce(function(set, kv) {
kv = kv.split(':');
var key = kv.shift().trim();
var val = kv.join(':').trim();
set[key] = val;
return set;
}, {});
if (post.status && post.status !== 'publish') return null;
post.body = c;
return post;
}
function buildPermalinks(data) {
Object.keys(data.files).forEach(function(k) {
data.posts[k] = buildPermalink(k, data.files[k]);
});
}
function buildPermalink(key, post) {
var data = {};
data.pageid = post.slug;
data.title = post.title;
data.content = post.content = marked.parse(post.body);
// Fix for chjj/marked#56
data.content = post.content = data.content
.replace(/<a href="([^"]+)&lt;\/a&gt;">\1&lt;\/a&gt;/g, '$1');
data.post = post;
var d = post.date = new Date(post.date);
var y = d.getYear() + 1900;
var m = d.getMonth() + 1;
if (m < 10) m = '0' + m;
var d = d.getDate();
if (d < 10) d = '0' + d;
var uri = '/' + y + '/' + m + '/' + d + '/' + post.slug + '/';
post.data = data;
post.uri = uri;
post.permalink = data.permalink = uri;
return data;
}
function writeFile(uri, data) {
data.uri = path.join(data.uri);
uri = path.join(uri);
var contents = template(data);
var outdir = path.join(output, uri);
mkdirp(outdir, function(er) {
if (er) throw er;
var file = path.resolve(outdir, 'index.html');
fs.writeFile(file, contents, 'utf8', function(er) {
if (er) throw er;
console.log('wrote: ', data.pageid, path.relative(process.cwd(), file));
});
});
}
// sort in reverse chronological order
// prune out any releases that are not the most recent on their branch.
function buildFeeds(data) {
// first, sort by date.
var posts = Object.keys(data.posts).map(function(k) {
return data.posts[k].post;
}).sort(function(a, b) {
a = a.date.getTime();
b = b.date.getTime();
return (a === b) ? 0 : a > b ? -1 : 1;
})
// separate release posts by release families.
var releases = posts.reduce(function(releases, post) {
if (post.category !== 'release') return releases;
var ver = semver.parse(post.version);
if (!ver) return;
var major = +ver[1];
var minor = +ver[2];
var patch = +ver[3];
var family = [major, minor];
ver = [major, minor, patch, post];
if (family[1] % 2) family[1]++;
family = family.join('.');
post.family = family;
releases[family] = releases[family] || [];
releases[family].push(post);
return releases;
}, {});
// separate by categories.
var categories = posts.reduce(function(categories, post) {
if (!post.category) return categories;
if (!categories[post.category]) {
categories[post.category] = [];
}
categories[post.category].push(post);
return categories;
}, {});
// paginate categories.
for (var cat in categories) {
categories[cat] = paginate(categories[cat], cat);
}
// filter non-latest release notices out of main feeds.
var main = posts.filter(function(post) {
if (post.version && post.family && post !== releases[post.family][0]) {
return false;
}
return true;
});
// add previous/next based on main feed.
main.forEach(function (post, i, posts) {
post.next = posts[i - 1];
post.prev = posts[i + 1];
})
// paginate each feed.
main = paginate(main, '');
// put previous/next links on orphaned old releases so you can get back
for (var family in releases) {
releases[family].forEach(function(post, i, family) {
if (!post.next) post.next = family[i - 1];
if (!post.next) post.next = family[0].next;
// if (!post.next) post.next = family[0];
if (!post.prev) post.prev = family[i + 1];
if (!post.prev) post.prev = family[0].prev;
});
// paginate
releases[family] = paginate(releases[family], 'release-' + family);
}
// paginate
data.feeds = {
main: main,
categories: categories,
releases: releases
};
}
function paginate(set, title) {
var pp = config.postsPerPage || 5
var pages = [];
for (var i = 0; i < set.length; i += pp) {
pages.push(set.slice(i, i + pp));
}
var id = title.replace(/[^a-zA-Z0-9.]+/g, '-');
return { id: id || 'index', pageid: id, posts: set, pages: pages, title: title };
}
function writePermalinks(data) {
Object.keys(data.posts).forEach(function(k) {
var post = data.posts[k];
writeFile(post.permalink, post);
});
}
function writeFeeds(data) {
writeFeed(data.feeds.main);
for (var feed in data.feeds.categories) {
writeFeed(data.feeds.categories[feed]);
}
for (var feed in data.feeds.releases) {
writeFeed(data.feeds.releases[feed]);
}
}
function writeFeed(feed) {
var title = feed.title;
feed.pages.forEach(function(page, p, pages) {
writePaginated(feed.title, page, p, pages.length, feed.id);
});
}
function writePaginated(title, posts, p, total, id) {
var uri = '/' + encodeURIComponent(title) + '/';
var d = {
title: title,
page: p,
posts: posts,
total: total,
paginated: true,
pageid: id + '-' + p,
uri: uri
};
if (p === 0) {
writeFile(uri, d);
}
writeFile(uri + p, d);
}
function buildOutput(data) {
buildPermalinks(data);
buildFeeds(data);
writePermalinks(data);
writeFeeds(data);
}

1
tools/blog/node_modules/.bin/marked

@ -0,0 +1 @@
/Users/isaacs/dev/js/node-master/tools/blog/node_modules/marked/bin/marked

0
tools/blog/node_modules/ejs/.gitmodules

4
tools/blog/node_modules/ejs/.npmignore

@ -0,0 +1,4 @@
# ignore any vim files:
*.sw[a-z]
vim/.netrwhist
node_modules

98
tools/blog/node_modules/ejs/History.md

@ -0,0 +1,98 @@
0.7.1 / 2012-03-26
==================
* Fixed exception when using express in production caused by typo. [slaskis]
0.7.0 / 2012-03-24
==================
* Added newline consumption support (`-%>`) [whoatemydomain]
0.6.1 / 2011-12-09
==================
* Fixed `ejs.renderFile()`
0.6.0 / 2011-12-09
==================
* Changed: you no longer need `{ locals: {} }`
0.5.0 / 2011-11-20
==================
* Added express 3.x support
* Added ejs.renderFile()
* Added 'json' filter
* Fixed tests for 0.5.x
0.4.3 / 2011-06-20
==================
* Fixed stacktraces line number when used multiline js expressions [Octave]
0.4.2 / 2011-05-11
==================
* Added client side support
0.4.1 / 2011-04-21
==================
* Fixed error context
0.4.0 / 2011-04-21
==================
* Added; ported jade's error reporting to ejs. [slaskis]
0.3.1 / 2011-02-23
==================
* Fixed optional `compile()` options
0.3.0 / 2011-02-14
==================
* Added 'json' filter [Yuriy Bogdanov]
* Use exported version of parse function to allow monkey-patching [Anatoliy Chakkaev]
0.2.1 / 2010-10-07
==================
* Added filter support
* Fixed _cache_ option. ~4x performance increase
0.2.0 / 2010-08-05
==================
* Added support for global tag config
* Added custom tag support. Closes #5
* Fixed whitespace bug. Closes #4
0.1.0 / 2010-08-04
==================
* Faster implementation [ashleydev]
0.0.4 / 2010-08-02
==================
* Fixed single quotes for content outside of template tags. [aniero]
* Changed; `exports.compile()` now expects only "locals"
0.0.3 / 2010-07-15
==================
* Fixed single quotes
0.0.2 / 2010-07-09
==================
* Fixed newline preservation
0.0.1 / 2010-07-09
==================
* Initial release

23
tools/blog/node_modules/ejs/Makefile

@ -0,0 +1,23 @@
SRC = $(shell find lib -name "*.js" -type f)
UGLIFY_FLAGS = --no-mangle
all: ejs.min.js
test:
@./node_modules/.bin/mocha \
--ui exports
ejs.js: $(SRC)
@node support/compile.js $^
ejs.min.js: ejs.js
@uglifyjs $(UGLIFY_FLAGS) $< > $@ \
&& du ejs.min.js \
&& du ejs.js
clean:
rm -f ejs.js
rm -f ejs.min.js
.PHONY: test

151
tools/blog/node_modules/ejs/Readme.md

@ -0,0 +1,151 @@
# EJS
Embedded JavaScript templates.
## Installation
$ npm install ejs
## Features
* Complies with the [Express](http://expressjs.com) view system
* Static caching of intermediate JavaScript
* Unbuffered code for conditionals etc `<% code %>`
* Escapes html by default with `<%= code %>`
* Unescaped buffering with `<%- code %>`
* Supports tag customization
* Filter support for designer-friendly templates
* Client-side support
* Newline slurping with `<% code -%>` or `<% -%>` or `<%= code -%>` or `<%- code -%>`
## Example
<% if (user) { %>
<h2><%= user.name %></h2>
<% } %>
## Usage
ejs.compile(str, options);
// => Function
ejs.render(str, options);
// => str
## Options
- `cache` Compiled functions are cached, requires `filename`
- `filename` Used by `cache` to key caches
- `scope` Function execution context
- `debug` Output generated function body
- `open` Open tag, defaulting to "<%"
- `close` Closing tag, defaulting to "%>"
- * All others are template-local variables
## Custom tags
Custom tags can also be applied globally:
var ejs = require('ejs');
ejs.open = '{{';
ejs.close = '}}';
Which would make the following a valid template:
<h1>{{= title }}</h1>
## Filters
EJS conditionally supports the concept of "filters". A "filter chain"
is a designer friendly api for manipulating data, without writing JavaScript.
Filters can be applied by supplying the _:_ modifier, so for example if we wish to take the array `[{ name: 'tj' }, { name: 'mape' }, { name: 'guillermo' }]` and output a list of names we can do this simply with filters:
Template:
<p><%=: users | map:'name' | join %></p>
Output:
<p>Tj, Mape, Guillermo</p>
Render call:
ejs.render(str, {
users: [
{ name: 'tj' },
{ name: 'mape' },
{ name: 'guillermo' }
]
});
Or perhaps capitalize the first user's name for display:
<p><%=: users | first | capitalize %></p>
## Filter list
Currently these filters are available:
- first
- last
- capitalize
- downcase
- upcase
- sort
- sort_by:'prop'
- size
- length
- plus:n
- minus:n
- times:n
- divided_by:n
- join:'val'
- truncate:n
- truncate_words:n
- replace:pattern,substitution
- prepend:val
- append:val
- map:'prop'
- reverse
- get:'prop'
## Adding filters
To add a filter simply add a method to the `.filters` object:
```js
ejs.filters.last = function(obj) {
return obj[obj.length - 1];
};
```
## client-side support
include `./ejs.js` or `./ejs.min.js` and `require("ejs").compile(str)`.
## License
(The MIT License)
Copyright (c) 2009-2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

14
tools/blog/node_modules/ejs/benchmark.js

@ -0,0 +1,14 @@
var ejs = require('./lib/ejs'),
str = '<% if (foo) { %><p><%= foo %></p><% } %>',
times = 50000;
console.log('rendering ' + times + ' times');
var start = new Date;
while (times--) {
ejs.render(str, { cache: true, filename: 'test', locals: { foo: 'bar' }});
}
console.log('took ' + (new Date - start) + 'ms');

567
tools/blog/node_modules/ejs/ejs.js

@ -0,0 +1,567 @@
// CommonJS require()
function require(p){
if ('fs' == p) return {};
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
return mod.exports;
}
require.modules = {};
require.resolve = function (path){
var orig = path
, reg = path + '.js'
, index = path + '/index.js';
return require.modules[reg] && reg
|| require.modules[index] && index
|| orig;
};
require.register = function (path, fn){
require.modules[path] = fn;
};
require.relative = function (parent) {
return function(p){
if ('.' != p.substr(0, 1)) return require(p);
var path = parent.split('/')
, segs = p.split('/');
path.pop();
for (var i = 0; i < segs.length; i++) {
var seg = segs[i];
if ('..' == seg) path.pop();
else if ('.' != seg) path.push(seg);
}
return require(path.join('/'));
};
};
require.register("ejs.js", function(module, exports, require){
/*!
* EJS
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('./utils')
, fs = require('fs');
/**
* Library version.
*/
exports.version = '0.6.1';
/**
* Filters.
*
* @type Object
*/
var filters = exports.filters = require('./filters');
/**
* Intermediate js cache.
*
* @type Object
*/
var cache = {};
/**
* Clear intermediate js cache.
*
* @api public
*/
exports.clearCache = function(){
cache = {};
};
/**
* Translate filtered code into function calls.
*
* @param {String} js
* @return {String}
* @api private
*/
function filtered(js) {
return js.substr(1).split('|').reduce(function(js, filter){
var parts = filter.split(':')
, name = parts.shift()
, args = parts.shift() || '';
if (args) args = ', ' + args;
return 'filters.' + name + '(' + js + args + ')';
});
};
/**
* Re-throw the given `err` in context to the
* `str` of ejs, `filename`, and `lineno`.
*
* @param {Error} err
* @param {String} str
* @param {String} filename
* @param {String} lineno
* @api private
*/
function rethrow(err, str, filename, lineno){
var lines = str.split('\n')
, start = Math.max(lineno - 3, 0)
, end = Math.min(lines.length, lineno + 3);
// Error context
var context = lines.slice(start, end).map(function(line, i){
var curr = i + start + 1;
return (curr == lineno ? ' >> ' : ' ')
+ curr
+ '| '
+ line;
}).join('\n');
// Alter exception message
err.path = filename;
err.message = (filename || 'ejs') + ':'
+ lineno + '\n'
+ context + '\n\n'
+ err.message;
throw err;
}
/**
* Parse the given `str` of ejs, returning the function body.
*
* @param {String} str
* @return {String}
* @api public
*/
var parse = exports.parse = function(str, options){
var options = options || {}
, open = options.open || exports.open || '<%'
, close = options.close || exports.close || '%>';
var buf = [
"var buf = [];"
, "\nwith (locals) {"
, "\n buf.push('"
];
var lineno = 1;
for (var i = 0, len = str.length; i < len; ++i) {
if (str.slice(i, open.length + i) == open) {
i += open.length
var prefix, postfix, line = '__stack.lineno=' + lineno;
switch (str.substr(i, 1)) {
case '=':
prefix = "', escape((" + line + ', ';
postfix = ")), '";
++i;
break;
case '-':
prefix = "', (" + line + ', ';
postfix = "), '";
++i;
break;
default:
prefix = "');" + line + ';';
postfix = "; buf.push('";
}
var end = str.indexOf(close, i)
, js = str.substring(i, end)
, start = i
, n = 0;
while (~(n = js.indexOf("\n", n))) n++, lineno++;
if (js.substr(0, 1) == ':') js = filtered(js);
buf.push(prefix, js, postfix);
i += end - start + close.length - 1;
} else if (str.substr(i, 1) == "\\") {
buf.push("\\\\");
} else if (str.substr(i, 1) == "'") {
buf.push("\\'");
} else if (str.substr(i, 1) == "\r") {
buf.push(" ");
} else if (str.substr(i, 1) == "\n") {
buf.push("\\n");
lineno++;
} else {
buf.push(str.substr(i, 1));
}
}
buf.push("');\n}\nreturn buf.join('');");
return buf.join('');
};
/**
* Compile the given `str` of ejs into a `Function`.
*
* @param {String} str
* @param {Object} options
* @return {Function}
* @api public
*/
var compile = exports.compile = function(str, options){
options = options || {};
var input = JSON.stringify(str)
, filename = options.filename
? JSON.stringify(options.filename)
: 'undefined';
// Adds the fancy stack trace meta info
str = [
'var __stack = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
rethrow.toString(),
'try {',
exports.parse(str, options),
'} catch (err) {',
' rethrow(err, __stack.input, __stack.filename, __stack.lineno);',
'}'
].join("\n");
if (options.debug) console.log(str);
var fn = new Function('locals, filters, escape', str);
return function(locals){
return fn.call(this, locals, filters, utils.escape);
}
};
/**
* Render the given `str` of ejs.
*
* Options:
*
* - `locals` Local variables object
* - `cache` Compiled functions are cached, requires `filename`
* - `filename` Used by `cache` to key caches
* - `scope` Function execution context
* - `debug` Output generated function body
* - `open` Open tag, defaulting to "<%"
* - `close` Closing tag, defaulting to "%>"
*
* @param {String} str
* @param {Object} options
* @return {String}
* @api public
*/
exports.render = function(str, options){
var fn
, options = options || {};
if (options.cache) {
if (options.filename) {
fn = cache[options.filename] || (cache[options.filename] = compile(str, options));
} else {
throw new Error('"cache" option requires "filename".');
}
} else {
fn = compile(str, options);
}
options.__proto__ = options.locals;
return fn.call(options.scope, options);
};
/**
* Render an EJS file at the given `path` and callback `fn(err, str)`.
*
* @param {String} path
* @param {Object|Function} options or callback
* @param {Function} fn
* @api public
*/
exports.renderFile = function(path, options, fn){
var key = path + ':string';
if ('function' == typeof options) {
fn = options, options = {};
}
options.filename = path;
try {
var str = options.cache
? exports.cache[key] || (exports.cache[key] = fs.readFileSync(path, 'utf8'))
: fs.readFileSync(path, 'utf8');
fn(null, exports.render(str, options));
} catch (err) {
fn(err);
}
};
// express support
exports.__express = exports.renderFile;
/**
* Expose to require().
*/
if (require.extensions) {
require.extensions['.ejs'] = function(module, filename) {
source = require('fs').readFileSync(filename, 'utf-8');
module._compile(compile(source, {}), filename);
};
} else if (require.registerExtension) {
require.registerExtension('.ejs', function(src) {
return compile(src, {});
});
}
}); // module: ejs.js
require.register("filters.js", function(module, exports, require){
/*!
* EJS - Filters
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* First element of the target `obj`.
*/
exports.first = function(obj) {
return obj[0];
};
/**
* Last element of the target `obj`.
*/
exports.last = function(obj) {
return obj[obj.length - 1];
};
/**
* Capitalize the first letter of the target `str`.
*/
exports.capitalize = function(str){
str = String(str);
return str[0].toUpperCase() + str.substr(1, str.length);
};
/**
* Downcase the target `str`.
*/
exports.downcase = function(str){
return String(str).toLowerCase();
};
/**
* Uppercase the target `str`.
*/
exports.upcase = function(str){
return String(str).toUpperCase();
};
/**
* Sort the target `obj`.
*/
exports.sort = function(obj){
return Object.create(obj).sort();
};
/**
* Sort the target `obj` by the given `prop` ascending.
*/
exports.sort_by = function(obj, prop){
return Object.create(obj).sort(function(a, b){
a = a[prop], b = b[prop];
if (a > b) return 1;
if (a < b) return -1;
return 0;
});
};
/**
* Size or length of the target `obj`.
*/
exports.size = exports.length = function(obj) {
return obj.length;
};
/**
* Add `a` and `b`.
*/
exports.plus = function(a, b){
return Number(a) + Number(b);
};
/**
* Subtract `b` from `a`.
*/
exports.minus = function(a, b){
return Number(a) - Number(b);
};
/**
* Multiply `a` by `b`.
*/
exports.times = function(a, b){
return Number(a) * Number(b);
};
/**
* Divide `a` by `b`.
*/
exports.divided_by = function(a, b){
return Number(a) / Number(b);
};
/**
* Join `obj` with the given `str`.
*/
exports.join = function(obj, str){
return obj.join(str || ', ');
};
/**
* Truncate `str` to `len`.
*/
exports.truncate = function(str, len){
str = String(str);
return str.substr(0, len);
};
/**
* Truncate `str` to `n` words.
*/
exports.truncate_words = function(str, n){
var str = String(str)
, words = str.split(/ +/);
return words.slice(0, n).join(' ');
};
/**
* Replace `pattern` with `substitution` in `str`.
*/
exports.replace = function(str, pattern, substitution){
return String(str).replace(pattern, substitution || '');
};
/**
* Prepend `val` to `obj`.
*/
exports.prepend = function(obj, val){
return Array.isArray(obj)
? [val].concat(obj)
: val + obj;
};
/**
* Append `val` to `obj`.
*/
exports.append = function(obj, val){
return Array.isArray(obj)
? obj.concat(val)
: obj + val;
};
/**
* Map the given `prop`.
*/
exports.map = function(arr, prop){
return arr.map(function(obj){
return obj[prop];
});
};
/**
* Reverse the given `obj`.
*/
exports.reverse = function(obj){
return Array.isArray(obj)
? obj.reverse()
: String(obj).split('').reverse().join('');
};
/**
* Get `prop` of the given `obj`.
*/
exports.get = function(obj, prop){
return obj[prop];
};
/**
* Packs the given `obj` into json string
*/
exports.json = function(obj){
return JSON.stringify(obj);
};
}); // module: filters.js
require.register("utils.js", function(module, exports, require){
/*!
* EJS
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Escape the given string of `html`.
*
* @param {String} html
* @return {String}
* @api private
*/
exports.escape = function(html){
return String(html)
.replace(/&(?!\w+;)/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
};
}); // module: utils.js

2
tools/blog/node_modules/ejs/ejs.min.js

File diff suppressed because one or more lines are too long

24
tools/blog/node_modules/ejs/examples/client.html

@ -0,0 +1,24 @@
<html>
<head>
<script src="../ejs.js"></script>
<script id="users" type="text/template">
<% if (names.length) { %>
<ul>
<% names.forEach(function(name){ %>
<li><%= name %></li>
<% }) %>
</ul>
<% } %>
</script>
<script>
onload = function(){
var users = document.getElementById('users').innerHTML;
var names = ['loki', 'tobi', 'jane'];
var html = require('ejs').render(users, { names: names });
document.body.innerHTML = html;
}
</script>
</head>
<body>
</body>
</html>

7
tools/blog/node_modules/ejs/examples/list.ejs

@ -0,0 +1,7 @@
<% if (names.length) { %>
<ul>
<% names.forEach(function(name){ %>
<li><%= name %></li>
<% }) %>
</ul>
<% } %>

14
tools/blog/node_modules/ejs/examples/list.js

@ -0,0 +1,14 @@
/**
* Module dependencies.
*/
var ejs = require('../')
, fs = require('fs')
, str = fs.readFileSync(__dirname + '/list.ejs', 'utf8');
var ret = ejs.render(str, {
names: ['foo', 'bar', 'baz']
});
console.log(ret);

2
tools/blog/node_modules/ejs/index.js

@ -0,0 +1,2 @@
module.exports = require('./lib/ejs');

298
tools/blog/node_modules/ejs/lib/ejs.js

@ -0,0 +1,298 @@
/*!
* EJS
* Copyright(c) 2012 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('./utils')
, fs = require('fs');
/**
* Library version.
*/
exports.version = '0.7.1';
/**
* Filters.
*
* @type Object
*/
var filters = exports.filters = require('./filters');
/**
* Intermediate js cache.
*
* @type Object
*/
var cache = {};
/**
* Clear intermediate js cache.
*
* @api public
*/
exports.clearCache = function(){
cache = {};
};
/**
* Translate filtered code into function calls.
*
* @param {String} js
* @return {String}
* @api private
*/
function filtered(js) {
return js.substr(1).split('|').reduce(function(js, filter){
var parts = filter.split(':')
, name = parts.shift()
, args = parts.shift() || '';
if (args) args = ', ' + args;
return 'filters.' + name + '(' + js + args + ')';
});
};
/**
* Re-throw the given `err` in context to the
* `str` of ejs, `filename`, and `lineno`.
*
* @param {Error} err
* @param {String} str
* @param {String} filename
* @param {String} lineno
* @api private
*/
function rethrow(err, str, filename, lineno){
var lines = str.split('\n')
, start = Math.max(lineno - 3, 0)
, end = Math.min(lines.length, lineno + 3);
// Error context
var context = lines.slice(start, end).map(function(line, i){
var curr = i + start + 1;
return (curr == lineno ? ' >> ' : ' ')
+ curr
+ '| '
+ line;
}).join('\n');
// Alter exception message
err.path = filename;
err.message = (filename || 'ejs') + ':'
+ lineno + '\n'
+ context + '\n\n'
+ err.message;
throw err;
}
/**
* Parse the given `str` of ejs, returning the function body.
*
* @param {String} str
* @return {String}
* @api public
*/
var parse = exports.parse = function(str, options){
var options = options || {}
, open = options.open || exports.open || '<%'
, close = options.close || exports.close || '%>';
var buf = [
"var buf = [];"
, "\nwith (locals) {"
, "\n buf.push('"
];
var lineno = 1;
var consumeEOL = false;
for (var i = 0, len = str.length; i < len; ++i) {
if (str.slice(i, open.length + i) == open) {
i += open.length
var prefix, postfix, line = '__stack.lineno=' + lineno;
switch (str.substr(i, 1)) {
case '=':
prefix = "', escape((" + line + ', ';
postfix = ")), '";
++i;
break;
case '-':
prefix = "', (" + line + ', ';
postfix = "), '";
++i;
break;
default:
prefix = "');" + line + ';';
postfix = "; buf.push('";
}
var end = str.indexOf(close, i)
, js = str.substring(i, end)
, start = i
, n = 0;
if ('-' == js[js.length-1]){
js = js.substring(0, js.length - 2);
consumeEOL = true;
}
while (~(n = js.indexOf("\n", n))) n++, lineno++;
if (js.substr(0, 1) == ':') js = filtered(js);
buf.push(prefix, js, postfix);
i += end - start + close.length - 1;
} else if (str.substr(i, 1) == "\\") {
buf.push("\\\\");
} else if (str.substr(i, 1) == "'") {
buf.push("\\'");
} else if (str.substr(i, 1) == "\r") {
buf.push(" ");
} else if (str.substr(i, 1) == "\n") {
if (consumeEOL) {
consumeEOL = false;
} else {
buf.push("\\n");
lineno++;
}
} else {
buf.push(str.substr(i, 1));
}
}
buf.push("');\n}\nreturn buf.join('');");
return buf.join('');
};
/**
* Compile the given `str` of ejs into a `Function`.
*
* @param {String} str
* @param {Object} options
* @return {Function}
* @api public
*/
var compile = exports.compile = function(str, options){
options = options || {};
var input = JSON.stringify(str)
, filename = options.filename
? JSON.stringify(options.filename)
: 'undefined';
// Adds the fancy stack trace meta info
str = [
'var __stack = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
rethrow.toString(),
'try {',
exports.parse(str, options),
'} catch (err) {',
' rethrow(err, __stack.input, __stack.filename, __stack.lineno);',
'}'
].join("\n");
if (options.debug) console.log(str);
var fn = new Function('locals, filters, escape', str);
return function(locals){
return fn.call(this, locals, filters, utils.escape);
}
};
/**
* Render the given `str` of ejs.
*
* Options:
*
* - `locals` Local variables object
* - `cache` Compiled functions are cached, requires `filename`
* - `filename` Used by `cache` to key caches
* - `scope` Function execution context
* - `debug` Output generated function body
* - `open` Open tag, defaulting to "<%"
* - `close` Closing tag, defaulting to "%>"
*
* @param {String} str
* @param {Object} options
* @return {String}
* @api public
*/
exports.render = function(str, options){
var fn
, options = options || {};
if (options.cache) {
if (options.filename) {
fn = cache[options.filename] || (cache[options.filename] = compile(str, options));
} else {
throw new Error('"cache" option requires "filename".');
}
} else {
fn = compile(str, options);
}
options.__proto__ = options.locals;
return fn.call(options.scope, options);
};
/**
* Render an EJS file at the given `path` and callback `fn(err, str)`.
*
* @param {String} path
* @param {Object|Function} options or callback
* @param {Function} fn
* @api public
*/
exports.renderFile = function(path, options, fn){
var key = path + ':string';
if ('function' == typeof options) {
fn = options, options = {};
}
options.filename = path;
try {
var str = options.cache
? cache[key] || (cache[key] = fs.readFileSync(path, 'utf8'))
: fs.readFileSync(path, 'utf8');
fn(null, exports.render(str, options));
} catch (err) {
fn(err);
}
};
// express support
exports.__express = exports.renderFile;
/**
* Expose to require().
*/
if (require.extensions) {
require.extensions['.ejs'] = function(module, filename) {
source = require('fs').readFileSync(filename, 'utf-8');
module._compile(compile(source, {}), filename);
};
} else if (require.registerExtension) {
require.registerExtension('.ejs', function(src) {
return compile(src, {});
});
}

198
tools/blog/node_modules/ejs/lib/filters.js

@ -0,0 +1,198 @@
/*!
* EJS - Filters
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* First element of the target `obj`.
*/
exports.first = function(obj) {
return obj[0];
};
/**
* Last element of the target `obj`.
*/
exports.last = function(obj) {
return obj[obj.length - 1];
};
/**
* Capitalize the first letter of the target `str`.
*/
exports.capitalize = function(str){
str = String(str);
return str[0].toUpperCase() + str.substr(1, str.length);
};
/**
* Downcase the target `str`.
*/
exports.downcase = function(str){
return String(str).toLowerCase();
};
/**
* Uppercase the target `str`.
*/
exports.upcase = function(str){
return String(str).toUpperCase();
};
/**
* Sort the target `obj`.
*/
exports.sort = function(obj){
return Object.create(obj).sort();
};
/**
* Sort the target `obj` by the given `prop` ascending.
*/
exports.sort_by = function(obj, prop){
return Object.create(obj).sort(function(a, b){
a = a[prop], b = b[prop];
if (a > b) return 1;
if (a < b) return -1;
return 0;
});
};
/**
* Size or length of the target `obj`.
*/
exports.size = exports.length = function(obj) {
return obj.length;
};
/**
* Add `a` and `b`.
*/
exports.plus = function(a, b){
return Number(a) + Number(b);
};
/**
* Subtract `b` from `a`.
*/
exports.minus = function(a, b){
return Number(a) - Number(b);
};
/**
* Multiply `a` by `b`.
*/
exports.times = function(a, b){
return Number(a) * Number(b);
};
/**
* Divide `a` by `b`.
*/
exports.divided_by = function(a, b){
return Number(a) / Number(b);
};
/**
* Join `obj` with the given `str`.
*/
exports.join = function(obj, str){
return obj.join(str || ', ');
};
/**
* Truncate `str` to `len`.
*/
exports.truncate = function(str, len){
str = String(str);
return str.substr(0, len);
};
/**
* Truncate `str` to `n` words.
*/
exports.truncate_words = function(str, n){
var str = String(str)
, words = str.split(/ +/);
return words.slice(0, n).join(' ');
};
/**
* Replace `pattern` with `substitution` in `str`.
*/
exports.replace = function(str, pattern, substitution){
return String(str).replace(pattern, substitution || '');
};
/**
* Prepend `val` to `obj`.
*/
exports.prepend = function(obj, val){
return Array.isArray(obj)
? [val].concat(obj)
: val + obj;
};
/**
* Append `val` to `obj`.
*/
exports.append = function(obj, val){
return Array.isArray(obj)
? obj.concat(val)
: obj + val;
};
/**
* Map the given `prop`.
*/
exports.map = function(arr, prop){
return arr.map(function(obj){
return obj[prop];
});
};
/**
* Reverse the given `obj`.
*/
exports.reverse = function(obj){
return Array.isArray(obj)
? obj.reverse()
: String(obj).split('').reverse().join('');
};
/**
* Get `prop` of the given `obj`.
*/
exports.get = function(obj, prop){
return obj[prop];
};
/**
* Packs the given `obj` into json string
*/
exports.json = function(obj){
return JSON.stringify(obj);
};

23
tools/blog/node_modules/ejs/lib/utils.js

@ -0,0 +1,23 @@
/*!
* EJS
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Escape the given string of `html`.
*
* @param {String} html
* @return {String}
* @api private
*/
exports.escape = function(html){
return String(html)
.replace(/&(?!\w+;)/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
};

23
tools/blog/node_modules/ejs/package.json

@ -0,0 +1,23 @@
{
"name": "ejs",
"description": "Embedded JavaScript templates",
"version": "0.7.1",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"keywords": [
"template",
"engine",
"ejs"
],
"devDependencies": {
"mocha": "*"
},
"main": "./lib/ejs.js",
"_id": "ejs@0.7.1",
"dist": {
"shasum": "9ed557b7e65f9f1adf5473060d079141ad7e680b"
},
"_from": "ejs"
}

174
tools/blog/node_modules/ejs/support/compile.js

@ -0,0 +1,174 @@
/**
* Module dependencies.
*/
var fs = require('fs');
/**
* Arguments.
*/
var args = process.argv.slice(2)
, pending = args.length
, files = {};
console.log('');
// parse arguments
args.forEach(function(file){
var mod = file.replace('lib/', '');
fs.readFile(file, 'utf8', function(err, js){
if (err) throw err;
console.log(' \033[90mcompile : \033[0m\033[36m%s\033[0m', file);
files[file] = parse(js);
--pending || compile();
});
});
/**
* Parse the given `js`.
*/
function parse(js) {
return parseInheritance(parseConditionals(js));
}
/**
* Parse __proto__.
*/
function parseInheritance(js) {
return js
.replace(/^ *(\w+)\.prototype\.__proto__ * = *(\w+)\.prototype *;?/gm, function(_, child, parent){
return child + '.prototype = new ' + parent + ';\n'
+ child + '.prototype.constructor = '+ child + ';\n';
});
}
/**
* Parse the given `js`, currently supporting:
*
* 'if' ['node' | 'browser']
* 'end'
*
*/
function parseConditionals(js) {
var lines = js.split('\n')
, len = lines.length
, buffer = true
, browser = false
, buf = []
, line
, cond;
for (var i = 0; i < len; ++i) {
line = lines[i];
if (/^ *\/\/ *if *(node|browser)/gm.exec(line)) {
cond = RegExp.$1;
buffer = browser = 'browser' == cond;
} else if (/^ *\/\/ *end/.test(line)) {
buffer = true;
browser = false;
} else if (browser) {
buf.push(line.replace(/^( *)\/\//, '$1'));
} else if (buffer) {
buf.push(line);
}
}
return buf.join('\n');
}
/**
* Compile the files.
*/
function compile() {
var buf = '';
buf += '\n// CommonJS require()\n\n';
buf += browser.require + '\n\n';
buf += 'require.modules = {};\n\n';
buf += 'require.resolve = ' + browser.resolve + ';\n\n';
buf += 'require.register = ' + browser.register + ';\n\n';
buf += 'require.relative = ' + browser.relative + ';\n\n';
args.forEach(function(file){
var js = files[file];
file = file.replace('lib/', '');
buf += '\nrequire.register("' + file + '", function(module, exports, require){\n';
buf += js;
buf += '\n}); // module: ' + file + '\n';
});
fs.writeFile('ejs.js', buf, function(err){
if (err) throw err;
console.log(' \033[90m create : \033[0m\033[36m%s\033[0m', 'ejs.js');
console.log();
});
}
// refactored version of weepy's
// https://github.com/weepy/brequire/blob/master/browser/brequire.js
var browser = {
/**
* Require a module.
*/
require: function require(p){
if ('fs' == p) return {};
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
return mod.exports;
},
/**
* Resolve module path.
*/
resolve: function(path){
var orig = path
, reg = path + '.js'
, index = path + '/index.js';
return require.modules[reg] && reg
|| require.modules[index] && index
|| orig;
},
/**
* Return relative require().
*/
relative: function(parent) {
return function(p){
if ('.' != p.substr(0, 1)) return require(p);
var path = parent.split('/')
, segs = p.split('/');
path.pop();
for (var i = 0; i < segs.length; i++) {
var seg = segs[i];
if ('..' == seg) path.pop();
else if ('.' != seg) path.push(seg);
}
return require(path.join('/'));
};
},
/**
* Register a module.
*/
register: function(path, fn){
require.modules[path] = fn;
}
};

329
tools/blog/node_modules/ejs/test/ejs.test.js

@ -0,0 +1,329 @@
/**
* Module dependencies.
*/
var ejs = require('../')
, assert = require('assert');
module.exports = {
'test .version': function(){
assert.ok(/^\d+\.\d+\.\d+$/.test(ejs.version), 'Test .version format');
},
'test html': function(){
assert.equal('<p>yay</p>', ejs.render('<p>yay</p>'));
},
'test renderFile': function(){
var html = '<h1>tj</h1>',
str = '<p><%= name %></p>',
options = { name: 'tj', open: '{', close: '}' };
ejs.renderFile(__dirname + '/fixtures/user.ejs', options, function(err, res){
assert.ok(!err);
assert.equal(res, html);
})
},
'test buffered code': function(){
var html = '<p>tj</p>',
str = '<p><%= name %></p>',
locals = { name: 'tj' };
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test unbuffered code': function(){
var html = '<p>tj</p>',
str = '<% if (name) { %><p><%= name %></p><% } %>',
locals = { name: 'tj' };
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test `scope` option': function(){
var html = '<p>tj</p>',
str = '<p><%= this %></p>';
assert.equal(html, ejs.render(str, { scope: 'tj' }));
},
'test escaping': function(){
assert.equal('&lt;script&gt;', ejs.render('<%= "<script>" %>'));
assert.equal('<script>', ejs.render('<%- "<script>" %>'));
},
'test newlines': function(){
var html = '\n<p>tj</p>\n<p>tj@sencha.com</p>',
str = '<% if (name) { %>\n<p><%= name %></p>\n<p><%= email %></p><% } %>',
locals = { name: 'tj', email: 'tj@sencha.com' };
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test single quotes': function(){
var html = '<p>WAHOO</p>',
str = "<p><%= up('wahoo') %></p>",
locals = { up: function(str){ return str.toUpperCase(); }};
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test single quotes in the html': function(){
var html = '<p>WAHOO that\'s cool</p>',
str = '<p><%= up(\'wahoo\') %> that\'s cool</p>',
locals = { up: function(str){ return str.toUpperCase(); }};
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test multiple single quotes': function() {
var html = "<p>couldn't shouldn't can't</p>",
str = "<p>couldn't shouldn't can't</p>";
assert.equal(html, ejs.render(str));
},
'test single quotes inside tags': function() {
var html = '<p>string</p>',
str = "<p><%= 'string' %></p>";
assert.equal(html, ejs.render(str));
},
'test back-slashes in the document': function() {
var html = "<p>backslash: '\\'</p>",
str = "<p>backslash: '\\'</p>";
assert.equal(html, ejs.render(str));
},
'test double quotes': function(){
var html = '<p>WAHOO</p>',
str = '<p><%= up("wahoo") %></p>',
locals = { up: function(str){ return str.toUpperCase(); }};
assert.equal(html, ejs.render(str, { locals: locals }));
},
'test multiple double quotes': function() {
var html = '<p>just a "test" wahoo</p>',
str = '<p>just a "test" wahoo</p>';
assert.equal(html, ejs.render(str));
},
'test pass options as locals': function(){
var html = '<p>foo</p>',
str = '<p><%="foo"%></p>';
assert.equal(html, ejs.render(str));
var html = '<p>foo</p>',
str = '<p><%=bar%></p>';
assert.equal(html, ejs.render(str, { bar: 'foo' }));
},
'test whitespace': function(){
var html = '<p>foo</p>',
str = '<p><%="foo"%></p>';
assert.equal(html, ejs.render(str));
var html = '<p>foo</p>',
str = '<p><%=bar%></p>';
assert.equal(html, ejs.render(str, { locals: { bar: 'foo' }}));
},
'test custom tags': function(){
var html = '<p>foo</p>',
str = '<p>{{= "foo" }}</p>';
assert.equal(html, ejs.render(str, {
open: '{{',
close: '}}'
}));
var html = '<p>foo</p>',
str = '<p><?= "foo" ?></p>';
assert.equal(html, ejs.render(str, {
open: '<?',
close: '?>'
}));
},
'test custom tags over 2 chars': function(){
var html = '<p>foo</p>',
str = '<p>{{{{= "foo" }>>}</p>';
assert.equal(html, ejs.render(str, {
open: '{{{{',
close: '}>>}'
}));
var html = '<p>foo</p>',
str = '<p><??= "foo" ??></p>';
assert.equal(html, ejs.render(str, {
open: '<??',
close: '??>'
}));
},
'test global custom tags': function(){
var html = '<p>foo</p>',
str = '<p>{{= "foo" }}</p>';
ejs.open = '{{';
ejs.close = '}}';
assert.equal(html, ejs.render(str));
delete ejs.open;
delete ejs.close;
},
'test iteration': function(){
var html = '<p>foo</p>',
str = '<% for (var key in items) { %>'
+ '<p><%= items[key] %></p>'
+ '<% } %>';
assert.equal(html, ejs.render(str, {
locals: {
items: ['foo']
}
}));
var html = '<p>foo</p>',
str = '<% items.forEach(function(item){ %>'
+ '<p><%= item %></p>'
+ '<% }) %>';
assert.equal(html, ejs.render(str, {
locals: {
items: ['foo']
}
}));
},
'test filter support': function(){
var html = 'Zab',
str = '<%=: items | reverse | first | reverse | capitalize %>';
assert.equal(html, ejs.render(str, {
locals: {
items: ['foo', 'bar', 'baz']
}
}));
},
'test filter argument support': function(){
var html = 'tj, guillermo',
str = '<%=: users | map:"name" | join:", " %>';
assert.equal(html, ejs.render(str, {
locals: {
users: [
{ name: 'tj' },
{ name: 'guillermo' }
]
}
}));
},
'test sort_by filter': function(){
var html = 'tj',
str = '<%=: users | sort_by:"name" | last | get:"name" %>';
assert.equal(html, ejs.render(str, {
locals: {
users: [
{ name: 'guillermo' },
{ name: 'tj' },
{ name: 'mape' }
]
}
}));
},
'test custom filters': function(){
var html = 'Welcome Tj Holowaychuk',
str = '<%=: users | first | greeting %>';
ejs.filters.greeting = function(user){
return 'Welcome ' + user.first + ' ' + user.last + '';
};
assert.equal(html, ejs.render(str, {
locals: {
users: [
{ first: 'Tj', last: 'Holowaychuk' }
]
}
}));
},
'test useful stack traces': function(){
var str = [
"A little somethin'",
"somethin'",
"<% if (name) { %>", // Failing line
" <p><%= name %></p>",
" <p><%= email %></p>",
"<% } %>"
].join("\n");
try {
ejs.render(str)
} catch (err) {
assert.ok(~err.message.indexOf("name is not defined"));
assert.deepEqual(err.name, "ReferenceError");
var lineno = parseInt(err.toString().match(/ejs:(\d+)\n/)[1]);
assert.deepEqual(lineno,3, "Error should been thrown on line 3, was thrown on line "+lineno);
}
},
'test useful stack traces multiline': function(){
var str = [
"A little somethin'",
"somethin'",
"<% var some = 'pretty';",
" var multiline = 'javascript';",
"%>",
"<% if (name) { %>", // Failing line
" <p><%= name %></p>",
" <p><%= email %></p>",
"<% } %>"
].join("\n");
try {
ejs.render(str)
} catch (err) {
assert.ok(~err.message.indexOf("name is not defined"));
assert.deepEqual(err.name, "ReferenceError");
var lineno = parseInt(err.toString().match(/ejs:(\d+)\n/)[1]);
assert.deepEqual(lineno, 6, "Error should been thrown on line 3, was thrown on line "+lineno);
}
},
'test slurp' : function() {
var expected = 'me\nhere',
str = 'me<% %>\nhere';
assert.equal(expected, ejs.render(str));
var expected = 'mehere',
str = 'me<% -%>\nhere';
assert.equal(expected, ejs.render(str));
var expected = 'me\nhere',
str = 'me<% -%>\n\nhere';
assert.equal(expected, ejs.render(str));
var expected = 'me inbetween \nhere',
str = 'me <%= x %> \nhere';
assert.equal(expected, ejs.render(str,{x:'inbetween'}));
var expected = 'me inbetween here',
str = 'me <%= x -%> \nhere';
assert.equal(expected, ejs.render(str,{x:'inbetween'}));
var expected = 'me <p>inbetween</p> here',
str = 'me <%- x -%> \nhere';
assert.equal(expected, ejs.render(str,{x:'<p>inbetween</p>'}));
var expected = '\n Hallo 0\n\n Hallo 1\n\n',
str = '<% for(var i in [1,2]) { %>\n' +
' Hallo <%= i %>\n' +
'<% } %>\n';
assert.equal(expected, ejs.render(str));
var expected = ' Hallo 0\n Hallo 1\n',
str = '<% for(var i in [1,2]) { -%>\n' +
' Hallo <%= i %>\n' +
'<% } -%>\n';
assert.equal(expected, ejs.render(str));
}
};

1
tools/blog/node_modules/ejs/test/fixtures/user.ejs

@ -0,0 +1 @@
<h1>{= name}</h1>

2
tools/blog/node_modules/glob/.npmignore

@ -0,0 +1,2 @@
.*.swp
test/a/

4
tools/blog/node_modules/glob/.travis.yml

@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.6
- 0.7

25
tools/blog/node_modules/glob/LICENCE

@ -0,0 +1,25 @@
Copyright (c) Isaac Z. Schlueter
All rights reserved.
The BSD License
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

233
tools/blog/node_modules/glob/README.md

@ -0,0 +1,233 @@
# Glob
This is a glob implementation in JavaScript. It uses the `minimatch`
library to do its matching.
## Attention: node-glob users!
The API has changed dramatically between 2.x and 3.x. This library is
now 100% JavaScript, and the integer flags have been replaced with an
options object.
Also, there's an event emitter class, proper tests, and all the other
things you've come to expect from node modules.
And best of all, no compilation!
## Usage
```javascript
var glob = require("glob")
// options is optional
glob("**/*.js", options, function (er, files) {
// files is an array of filenames.
// If the `nonull` option is set, and nothing
// was found, then files is ["**/*.js"]
// er is an error object or null.
})
```
## Features
Please see the [minimatch
documentation](https://github.com/isaacs/minimatch) for more details.
Supports these glob features:
* Brace Expansion
* Extended glob matching
* "Globstar" `**` matching
See:
* `man sh`
* `man bash`
* `man 3 fnmatch`
* `man 5 gitignore`
* [minimatch documentation](https://github.com/isaacs/minimatch)
## glob(pattern, [options], cb)
* `pattern` {String} Pattern to be matched
* `options` {Object}
* `cb` {Function}
* `err` {Error | null}
* `matches` {Array<String>} filenames found matching the pattern
Perform an asynchronous glob search.
## glob.sync(pattern, [options]
* `pattern` {String} Pattern to be matched
* `options` {Object}
* return: {Array<String>} filenames found matching the pattern
Perform a synchronous glob search.
## Class: glob.Glob
Create a Glob object by instanting the `glob.Glob` class.
```javascript
var Glob = require("glob").Glob
var mg = new Glob(pattern, options, cb)
```
It's an EventEmitter, and starts walking the filesystem to find matches
immediately.
### new glob.Glob(pattern, [options], [cb])
* `pattern` {String} pattern to search for
* `options` {Object}
* `cb` {Function} Called when an error occurs, or matches are found
* `err` {Error | null}
* `matches` {Array<String>} filenames found matching the pattern
Note that if the `sync` flag is set in the options, then matches will
be immediately available on the `g.found` member.
### Properties
* `minimatch` The minimatch object that the glob uses.
* `options` The options object passed in.
* `error` The error encountered. When an error is encountered, the
glob object is in an undefined state, and should be discarded.
* `aborted` Boolean which is set to true when calling `abort()`. There
is no way at this time to continue a glob search after aborting, but
you can re-use the statCache to avoid having to duplicate syscalls.
### Events
* `end` When the matching is finished, this is emitted with all the
matches found. If the `nonull` option is set, and no match was found,
then the `matches` list contains the original pattern. The matches
are sorted, unless the `nosort` flag is set.
* `match` Every time a match is found, this is emitted with the matched.
* `error` Emitted when an unexpected error is encountered, or whenever
any fs error occurs if `options.strict` is set.
* `abort` When `abort()` is called, this event is raised.
### Methods
* `abort` Stop the search.
### Options
All the options that can be passed to Minimatch can also be passed to
Glob to change pattern matching behavior. Also, some have been added,
or have glob-specific ramifications.
All options are false by default, unless otherwise noted.
All options are added to the glob object, as well.
* `cwd` The current working directory in which to search. Defaults
to `process.cwd()`.
* `root` The place where patterns starting with `/` will be mounted
onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
systems, and `C:\` or some such on Windows.)
* `nomount` By default, a pattern starting with a forward-slash will be
"mounted" onto the root setting, so that a valid filesystem path is
returned. Set this flag to disable that behavior.
* `mark` Add a `/` character to directory matches. Note that this
requires additional stat calls.
* `nosort` Don't sort the results.
* `stat` Set to true to stat *all* results. This reduces performance
somewhat, and is completely unnecessary, unless `readdir` is presumed
to be an untrustworthy indicator of file existence. It will cause
ELOOP to be triggered one level sooner in the case of cyclical
symbolic links.
* `silent` When an unusual error is encountered
when attempting to read a directory, a warning will be printed to
stderr. Set the `silent` option to true to suppress these warnings.
* `strict` When an unusual error is encountered
when attempting to read a directory, the process will just continue on
in search of other matches. Set the `strict` option to raise an error
in these cases.
* `statCache` A cache of results of filesystem information, to prevent
unnecessary stat calls. While it should not normally be necessary to
set this, you may pass the statCache from one glob() call to the
options object of another, if you know that the filesystem will not
change between calls. (See "Race Conditions" below.)
* `sync` Perform a synchronous glob search.
* `nounique` In some cases, brace-expanded patterns can result in the
same file showing up multiple times in the result set. By default,
this implementation prevents duplicates in the result set.
Set this flag to disable that behavior.
* `nonull` Set to never return an empty set, instead returning a set
containing the pattern itself. This is the default in glob(3).
* `nocase` Perform a case-insensitive match. Note that case-insensitive
filesystems will sometimes result in glob returning results that are
case-insensitively matched anyway, since readdir and stat will not
raise an error.
* `debug` Set to enable debug logging in minimatch and glob.
* `globDebug` Set to enable debug logging in glob, but not minimatch.
## Comparisons to other fnmatch/glob implementations
While strict compliance with the existing standards is a worthwhile
goal, some discrepancies exist between node-glob and other
implementations, and are intentional.
If the pattern starts with a `!` character, then it is negated. Set the
`nonegate` flag to suppress this behavior, and treat leading `!`
characters normally. This is perhaps relevant if you wish to start the
pattern with a negative extglob pattern like `!(a|B)`. Multiple `!`
characters at the start of a pattern will negate the pattern multiple
times.
If a pattern starts with `#`, then it is treated as a comment, and
will not match anything. Use `\#` to match a literal `#` at the
start of a line, or set the `nocomment` flag to suppress this behavior.
The double-star character `**` is supported by default, unless the
`noglobstar` flag is set. This is supported in the manner of bsdglob
and bash 4.1, where `**` only has special significance if it is the only
thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
`a/**b` will not. **Note that this is different from the way that `**` is
handled by ruby's `Dir` class.**
If an escaped pattern has no matches, and the `nonull` flag is set,
then glob returns the pattern as-provided, rather than
interpreting the character escapes. For example,
`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
`"*a?"`. This is akin to setting the `nullglob` option in bash, except
that it does not resolve escaped pattern characters.
If brace expansion is not disabled, then it is performed before any
other interpretation of the glob pattern. Thus, a pattern like
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
checked for validity. Since those two are valid, matching proceeds.
## Windows
**Please only use forward-slashes in glob expressions.**
Though windows uses either `/` or `\` as its path separator, only `/`
characters are used by this glob implementation. You must use
forward-slashes **only** in glob expressions. Back-slashes will always
be interpreted as escape characters, not path separators.
Results from absolute patterns such as `/foo/*` are mounted onto the
root setting using `path.join`. On windows, this will by default result
in `/foo/*` matching `C:\foo\bar.txt`.
## Race Conditions
Glob searching, by its very nature, is susceptible to race conditions,
since it relies on directory walking and such.
As a result, it is possible that a file that exists when glob looks for
it may have been deleted or modified by the time it returns the result.
As part of its internal implementation, this program caches all stat
and readdir calls that it makes, in order to cut down on system
overhead. However, this also makes it even more susceptible to races,
especially if the statCache object is reused between glob calls.
Users are thus advised not to use a glob result as a
guarantee of filesystem state in the face of rapid changes.
For the vast majority of operations, this is never a problem.

9
tools/blog/node_modules/glob/examples/g.js

@ -0,0 +1,9 @@
var Glob = require("../").Glob
var pattern = "test/a/**/[cg]/../[cg]"
console.log(pattern)
var mg = new Glob(pattern, {mark: true, sync:true}, function (er, matches) {
console.log("matches", matches)
})
console.log("after")

9
tools/blog/node_modules/glob/examples/usr-local.js

@ -0,0 +1,9 @@
var Glob = require("../").Glob
var pattern = "{./*/*,/*,/usr/local/*}"
console.log(pattern)
var mg = new Glob(pattern, {mark: true}, function (er, matches) {
console.log("matches", matches)
})
console.log("after")

601
tools/blog/node_modules/glob/glob.js

@ -0,0 +1,601 @@
// Approach:
//
// 1. Get the minimatch set
// 2. For each pattern in the set, PROCESS(pattern)
// 3. Store matches per-set, then uniq them
//
// PROCESS(pattern)
// Get the first [n] items from pattern that are all strings
// Join these together. This is PREFIX.
// If there is no more remaining, then stat(PREFIX) and
// add to matches if it succeeds. END.
// readdir(PREFIX) as ENTRIES
// If fails, END
// If pattern[n] is GLOBSTAR
// // handle the case where the globstar match is empty
// // by pruning it out, and testing the resulting pattern
// PROCESS(pattern[0..n] + pattern[n+1 .. $])
// // handle other cases.
// for ENTRY in ENTRIES (not dotfiles)
// // attach globstar + tail onto the entry
// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $])
//
// else // not globstar
// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
// Test ENTRY against pattern[n+1]
// If fails, continue
// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
//
// Caveat:
// Cache all stats and readdirs results to minimize syscall. Since all
// we ever care about is existence and directory-ness, we can just keep
// `true` for files, and [children,...] for directories, or `false` for
// things that don't exist.
module.exports = glob
var fs = require("graceful-fs")
, minimatch = require("minimatch")
, Minimatch = minimatch.Minimatch
, inherits = require("inherits")
, EE = require("events").EventEmitter
, path = require("path")
, isDir = {}
, assert = require("assert").ok
, EOF = {}
function glob (pattern, options, cb) {
if (typeof options === "function") cb = options, options = {}
if (!options) options = {}
if (typeof options === "number") {
deprecated()
return
}
var g = new Glob(pattern, options, cb)
return g.sync ? g.found : g
}
glob.fnmatch = deprecated
function deprecated () {
throw new Error("glob's interface has changed. Please see the docs.")
}
glob.sync = globSync
function globSync (pattern, options) {
if (typeof options === "number") {
deprecated()
return
}
options = options || {}
options.sync = true
return glob(pattern, options)
}
glob.Glob = Glob
inherits(Glob, EE)
function Glob (pattern, options, cb) {
if (!(this instanceof Glob)) {
return new Glob(pattern, options, cb)
}
if (typeof cb === "function") {
this.on("error", cb)
this.on("end", function (matches) {
// console.error("cb with matches", matches)
cb(null, matches)
})
}
options = options || {}
this.maxDepth = options.maxDepth || 1000
this.maxLength = options.maxLength || Infinity
this.statCache = options.statCache || {}
this.changedCwd = false
var cwd = process.cwd()
if (!options.hasOwnProperty("cwd")) this.cwd = cwd
else {
this.cwd = options.cwd
this.changedCwd = path.resolve(options.cwd) !== cwd
}
this.root = options.root || path.resolve(this.cwd, "/")
this.root = path.resolve(this.root)
this.nomount = !!options.nomount
if (!pattern) {
throw new Error("must provide pattern")
}
// base-matching: just use globstar for that.
if (options.matchBase && -1 === pattern.indexOf("/")) {
if (options.noglobstar) {
throw new Error("base matching requires globstar")
}
pattern = "**/" + pattern
}
this.dot = !!options.dot
this.mark = !!options.mark
this.sync = !!options.sync
this.nounique = !!options.nounique
this.nonull = !!options.nonull
this.nosort = !!options.nosort
this.nocase = !!options.nocase
this.stat = !!options.stat
this.debug = !!options.debug || !!options.globDebug
this.silent = !!options.silent
var mm = this.minimatch = new Minimatch(pattern, options)
this.options = mm.options
pattern = this.pattern = mm.pattern
this.error = null
this.aborted = false
EE.call(this)
// process each pattern in the minimatch set
var n = this.minimatch.set.length
// The matches are stored as {<filename>: true,...} so that
// duplicates are automagically pruned.
// Later, we do an Object.keys() on these.
// Keep them as a list so we can fill in when nonull is set.
this.matches = new Array(n)
this.minimatch.set.forEach(iterator.bind(this))
function iterator (pattern, i, set) {
this._process(pattern, 0, i, function (er) {
if (er) this.emit("error", er)
if (-- n <= 0) this._finish()
})
}
}
Glob.prototype._finish = function () {
assert(this instanceof Glob)
var nou = this.nounique
, all = nou ? [] : {}
for (var i = 0, l = this.matches.length; i < l; i ++) {
var matches = this.matches[i]
if (this.debug) console.error("matches[%d] =", i, matches)
// do like the shell, and spit out the literal glob
if (!matches) {
if (this.nonull) {
var literal = this.minimatch.globSet[i]
if (nou) all.push(literal)
else nou[literal] = true
}
} else {
// had matches
var m = Object.keys(matches)
if (nou) all.push.apply(all, m)
else m.forEach(function (m) {
all[m] = true
})
}
}
if (!nou) all = Object.keys(all)
if (!this.nosort) {
all = all.sort(this.nocase ? alphasorti : alphasort)
}
if (this.mark) {
// at *some* point we statted all of these
all = all.map(function (m) {
var sc = this.statCache[m]
if (!sc) return m
if (m.slice(-1) !== "/" && (Array.isArray(sc) || sc === 2)) {
return m + "/"
}
if (m.slice(-1) === "/") {
return m.replace(/\/$/, "")
}
return m
}, this)
}
if (this.debug) console.error("emitting end", all)
EOF = this.found = all
this.emitMatch(EOF)
}
function alphasorti (a, b) {
a = a.toLowerCase()
b = b.toLowerCase()
return alphasort(a, b)
}
function alphasort (a, b) {
return a > b ? 1 : a < b ? -1 : 0
}
Glob.prototype.abort = function () {
this.aborted = true
this.emit("abort")
}
Glob.prototype.pause = function () {
if (this.paused) return
if (this.sync)
this.emit("error", new Error("Can't pause/resume sync glob"))
this.paused = true
this.emit("pause")
}
Glob.prototype.resume = function () {
if (!this.paused) return
if (this.sync)
this.emit("error", new Error("Can't pause/resume sync glob"))
this.paused = false
this.emit("resume")
}
Glob.prototype.emitMatch = function (m) {
if (!this.paused) {
this.emit(m === EOF ? "end" : "match", m)
return
}
if (!this._emitQueue) {
this._emitQueue = []
this.once("resume", function () {
var q = this._emitQueue
this._emitQueue = null
q.forEach(function (m) {
this.emitMatch(m)
}, this)
})
}
this._emitQueue.push(m)
//this.once("resume", this.emitMatch.bind(this, m))
}
Glob.prototype._process = function (pattern, depth, index, cb_) {
assert(this instanceof Glob)
var cb = function cb (er, res) {
assert(this instanceof Glob)
if (this.paused) {
if (!this._processQueue) {
this._processQueue = []
this.once("resume", function () {
var q = this._processQueue
this._processQueue = null
q.forEach(function (cb) { cb() })
})
}
this._processQueue.push(cb_.bind(this, er, res))
} else {
cb_.call(this, er, res)
}
}.bind(this)
if (this.aborted) return cb()
if (depth > this.maxDepth) return cb()
// Get the first [n] parts of pattern that are all strings.
var n = 0
while (typeof pattern[n] === "string") {
n ++
}
// now n is the index of the first one that is *not* a string.
// see if there's anything else
var prefix
switch (n) {
// if not, then this is rather simple
case pattern.length:
prefix = pattern.join("/")
this._stat(prefix, function (exists, isDir) {
// either it's there, or it isn't.
// nothing more to do, either way.
if (exists) {
if (prefix.charAt(0) === "/" && !this.nomount) {
prefix = path.join(this.root, prefix)
}
this.matches[index] = this.matches[index] || {}
this.matches[index][prefix] = true
this.emitMatch(prefix)
}
return cb()
})
return
case 0:
// pattern *starts* with some non-trivial item.
// going to readdir(cwd), but not include the prefix in matches.
prefix = null
break
default:
// pattern has some string bits in the front.
// whatever it starts with, whether that's "absolute" like /foo/bar,
// or "relative" like "../baz"
prefix = pattern.slice(0, n)
prefix = prefix.join("/")
break
}
// get the list of entries.
var read
if (prefix === null) read = "."
else if (isAbsolute(prefix)) {
read = prefix = path.join("/", prefix)
if (this.debug) console.error('absolute: ', prefix, this.root, pattern)
} else read = prefix
if (this.debug) console.error('readdir(%j)', read, this.cwd, this.root)
return this._readdir(read, function (er, entries) {
if (er) {
// not a directory!
// this means that, whatever else comes after this, it can never match
return cb()
}
// globstar is special
if (pattern[n] === minimatch.GLOBSTAR) {
// test without the globstar, and with every child both below
// and replacing the globstar.
var s = [ pattern.slice(0, n).concat(pattern.slice(n + 1)) ]
entries.forEach(function (e) {
if (e.charAt(0) === "." && !this.dot) return
// instead of the globstar
s.push(pattern.slice(0, n).concat(e).concat(pattern.slice(n + 1)))
// below the globstar
s.push(pattern.slice(0, n).concat(e).concat(pattern.slice(n)))
}, this)
// now asyncForEach over this
var l = s.length
, errState = null
s.forEach(function (gsPattern) {
this._process(gsPattern, depth + 1, index, function (er) {
if (errState) return
if (er) return cb(errState = er)
if (--l <= 0) return cb()
})
}, this)
return
}
// not a globstar
// It will only match dot entries if it starts with a dot, or if
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
var pn = pattern[n]
if (typeof pn === "string") {
var found = entries.indexOf(pn) !== -1
entries = found ? entries[pn] : []
} else {
var rawGlob = pattern[n]._glob
, dotOk = this.dot || rawGlob.charAt(0) === "."
entries = entries.filter(function (e) {
return (e.charAt(0) !== "." || dotOk) &&
(typeof pattern[n] === "string" && e === pattern[n] ||
e.match(pattern[n]))
})
}
// If n === pattern.length - 1, then there's no need for the extra stat
// *unless* the user has specified "mark" or "stat" explicitly.
// We know that they exist, since the readdir returned them.
if (n === pattern.length - 1 &&
!this.mark &&
!this.stat) {
entries.forEach(function (e) {
if (prefix) {
if (prefix !== "/") e = prefix + "/" + e
else e = prefix + e
}
if (e.charAt(0) === "/" && !this.nomount) {
e = path.join(this.root, e)
}
this.matches[index] = this.matches[index] || {}
this.matches[index][e] = true
this.emitMatch(e)
}, this)
return cb.call(this)
}
// now test all the remaining entries as stand-ins for that part
// of the pattern.
var l = entries.length
, errState = null
if (l === 0) return cb() // no matches possible
entries.forEach(function (e) {
var p = pattern.slice(0, n).concat(e).concat(pattern.slice(n + 1))
this._process(p, depth + 1, index, function (er) {
if (errState) return
if (er) return cb(errState = er)
if (--l === 0) return cb.call(this)
})
}, this)
})
}
Glob.prototype._stat = function (f, cb) {
assert(this instanceof Glob)
var abs = f
if (f.charAt(0) === "/") {
abs = path.join(this.root, f)
} else if (this.changedCwd) {
abs = path.resolve(this.cwd, f)
}
if (this.debug) console.error('stat', [this.cwd, f, '=', abs])
if (f.length > this.maxLength) {
var er = new Error("Path name too long")
er.code = "ENAMETOOLONG"
er.path = f
return this._afterStat(f, abs, cb, er)
}
if (this.statCache.hasOwnProperty(f)) {
var exists = this.statCache[f]
, isDir = exists && (Array.isArray(exists) || exists === 2)
if (this.sync) return cb.call(this, !!exists, isDir)
return process.nextTick(cb.bind(this, !!exists, isDir))
}
if (this.sync) {
var er, stat
try {
stat = fs.statSync(abs)
} catch (e) {
er = e
}
this._afterStat(f, abs, cb, er, stat)
} else {
fs.stat(abs, this._afterStat.bind(this, f, abs, cb))
}
}
Glob.prototype._afterStat = function (f, abs, cb, er, stat) {
var exists
assert(this instanceof Glob)
if (er || !stat) {
exists = false
} else {
exists = stat.isDirectory() ? 2 : 1
}
this.statCache[f] = this.statCache[f] || exists
cb.call(this, !!exists, exists === 2)
}
Glob.prototype._readdir = function (f, cb) {
assert(this instanceof Glob)
var abs = f
if (f.charAt(0) === "/") {
abs = path.join(this.root, f)
} else if (isAbsolute(f)) {
abs = f
} else if (this.changedCwd) {
abs = path.resolve(this.cwd, f)
}
if (this.debug) console.error('readdir', [this.cwd, f, abs])
if (f.length > this.maxLength) {
var er = new Error("Path name too long")
er.code = "ENAMETOOLONG"
er.path = f
return this._afterReaddir(f, abs, cb, er)
}
if (this.statCache.hasOwnProperty(f)) {
var c = this.statCache[f]
if (Array.isArray(c)) {
if (this.sync) return cb.call(this, null, c)
return process.nextTick(cb.bind(this, null, c))
}
if (!c || c === 1) {
// either ENOENT or ENOTDIR
var code = c ? "ENOTDIR" : "ENOENT"
, er = new Error((c ? "Not a directory" : "Not found") + ": " + f)
er.path = f
er.code = code
if (this.debug) console.error(f, er)
if (this.sync) return cb.call(this, er)
return process.nextTick(cb.bind(this, er))
}
// at this point, c === 2, meaning it's a dir, but we haven't
// had to read it yet, or c === true, meaning it's *something*
// but we don't have any idea what. Need to read it, either way.
}
if (this.sync) {
var er, entries
try {
entries = fs.readdirSync(abs)
} catch (e) {
er = e
}
return this._afterReaddir(f, abs, cb, er, entries)
}
fs.readdir(abs, this._afterReaddir.bind(this, f, abs, cb))
}
Glob.prototype._afterReaddir = function (f, abs, cb, er, entries) {
assert(this instanceof Glob)
if (entries && !er) {
this.statCache[f] = entries
// if we haven't asked to stat everything for suresies, then just
// assume that everything in there exists, so we can avoid
// having to stat it a second time. This also gets us one step
// further into ELOOP territory.
if (!this.mark && !this.stat) {
entries.forEach(function (e) {
if (f === "/") e = f + e
else e = f + "/" + e
this.statCache[e] = true
}, this)
}
return cb.call(this, er, entries)
}
// now handle errors, and cache the information
if (er) switch (er.code) {
case "ENOTDIR": // totally normal. means it *does* exist.
this.statCache[f] = 1
return cb.call(this, er)
case "ENOENT": // not terribly unusual
case "ELOOP":
case "ENAMETOOLONG":
case "UNKNOWN":
this.statCache[f] = false
return cb.call(this, er)
default: // some unusual error. Treat as failure.
this.statCache[f] = false
if (this.strict) this.emit("error", er)
if (!this.silent) console.error("glob error", er)
return cb.call(this, er)
}
}
var isAbsolute = process.platform === "win32" ? absWin : absUnix
function absWin (p) {
if (absUnix(p)) return true
// pull off the device/UNC bit from a windows path.
// from node's lib/path.js
var splitDeviceRe =
/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?([\\\/])?/
, result = splitDeviceRe.exec(p)
, device = result[1] || ''
, isUnc = device && device.charAt(1) !== ':'
, isAbsolute = !!result[2] || isUnc // UNC paths are always absolute
return isAbsolute
}
function absUnix (p) {
return p.charAt(0) === "/" || p === ""
}

1
tools/blog/node_modules/glob/node_modules/graceful-fs/.npmignore

@ -0,0 +1 @@
node_modules/

23
tools/blog/node_modules/glob/node_modules/graceful-fs/LICENSE

@ -0,0 +1,23 @@
Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

5
tools/blog/node_modules/glob/node_modules/graceful-fs/README.md

@ -0,0 +1,5 @@
Just like node's `fs` module, but it does an incremental back-off when
EMFILE is encountered.
Useful in asynchronous situations where one needs to try to open lots
and lots of files.

275
tools/blog/node_modules/glob/node_modules/graceful-fs/graceful-fs.js

@ -0,0 +1,275 @@
// this keeps a queue of opened file descriptors, and will make
// fs operations wait until some have closed before trying to open more.
var fs = require("fs")
// there is such a thing as TOO graceful.
if (fs.open === gracefulOpen) return
var queue = []
, curOpen = 0
, constants = require("constants")
exports = module.exports = fs
fs.MIN_MAX_OPEN = 64
fs.MAX_OPEN = 1024
var originalOpen = fs.open
, originalOpenSync = fs.openSync
, originalClose = fs.close
, originalCloseSync = fs.closeSync
// prevent EMFILE errors
function OpenReq (path, flags, mode, cb) {
this.path = path
this.flags = flags
this.mode = mode
this.cb = cb
}
function noop () {}
fs.open = gracefulOpen
function gracefulOpen (path, flags, mode, cb) {
if (typeof mode === "function") cb = mode, mode = null
if (typeof cb !== "function") cb = noop
if (curOpen >= fs.MAX_OPEN) {
queue.push(new OpenReq(path, flags, mode, cb))
setTimeout(flush)
return
}
open(path, flags, mode, function (er, fd) {
if (er && er.code === "EMFILE" && curOpen > fs.MIN_MAX_OPEN) {
// that was too many. reduce max, get back in queue.
// this should only happen once in a great while, and only
// if the ulimit -n is set lower than 1024.
fs.MAX_OPEN = curOpen - 1
return fs.open(path, flags, mode, cb)
}
cb(er, fd)
})
}
function open (path, flags, mode, cb) {
cb = cb || noop
curOpen ++
originalOpen.call(fs, path, flags, mode, function (er, fd) {
if (er) {
onclose()
}
cb(er, fd)
})
}
fs.openSync = function (path, flags, mode) {
curOpen ++
return originalOpenSync.call(fs, path, flags, mode)
}
function onclose () {
curOpen --
flush()
}
function flush () {
while (curOpen < fs.MAX_OPEN) {
var req = queue.shift()
if (!req) break
open(req.path, req.flags || "r", req.mode || 0777, req.cb)
}
if (queue.length === 0) return
}
fs.close = function (fd, cb) {
cb = cb || noop
originalClose.call(fs, fd, function (er) {
onclose()
cb(er)
})
}
fs.closeSync = function (fd) {
onclose()
return originalCloseSync.call(fs, fd)
}
// (re-)implement some things that are known busted or missing.
var constants = require("constants")
// lchmod, broken prior to 0.6.2
// back-port the fix here.
if (constants.hasOwnProperty('O_SYMLINK') &&
process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
fs.lchmod = function (path, mode, callback) {
callback = callback || noop
fs.open( path
, constants.O_WRONLY | constants.O_SYMLINK
, mode
, function (err, fd) {
if (err) {
callback(err)
return
}
// prefer to return the chmod error, if one occurs,
// but still try to close, and report closing errors if they occur.
fs.fchmod(fd, mode, function (err) {
fs.close(fd, function(err2) {
callback(err || err2)
})
})
})
}
fs.lchmodSync = function (path, mode) {
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
// prefer to return the chmod error, if one occurs,
// but still try to close, and report closing errors if they occur.
var err, err2
try {
var ret = fs.fchmodSync(fd, mode)
} catch (er) {
err = er
}
try {
fs.closeSync(fd)
} catch (er) {
err2 = er
}
if (err || err2) throw (err || err2)
return ret
}
}
// lstat on windows, missing from early 0.5 versions
// replacing with stat isn't quite perfect, but good enough to get by.
if (process.platform === "win32" && !process.binding("fs").lstat) {
fs.lstat = fs.stat
fs.lstatSync = fs.statSync
}
// lutimes implementation, or no-op
if (!fs.lutimes) {
if (constants.hasOwnProperty("O_SYMLINK")) {
fs.lutimes = function (path, at, mt, cb) {
fs.open(path, constants.O_SYMLINK, function (er, fd) {
cb = cb || noop
if (er) return cb(er)
fs.futimes(fd, at, mt, function (er) {
fs.close(fd, function (er2) {
return cb(er || er2)
})
})
})
}
fs.lutimesSync = function (path, at, mt) {
var fd = fs.openSync(path, constants.O_SYMLINK)
, err
, err2
, ret
try {
var ret = fs.futimesSync(fd, at, mt)
} catch (er) {
err = er
}
try {
fs.closeSync(fd)
} catch (er) {
err2 = er
}
if (err || err2) throw (err || err2)
return ret
}
} else if (fs.utimensat && constants.hasOwnProperty("AT_SYMLINK_NOFOLLOW")) {
// maybe utimensat will be bound soonish?
fs.lutimes = function (path, at, mt, cb) {
fs.utimensat(path, at, mt, constants.AT_SYMLINK_NOFOLLOW, cb)
}
fs.lutimesSync = function (path, at, mt) {
return fs.utimensatSync(path, at, mt, constants.AT_SYMLINK_NOFOLLOW)
}
} else {
fs.lutimes = function (_a, _b, _c, cb) { process.nextTick(cb) }
fs.lutimesSync = function () {}
}
}
// https://github.com/isaacs/node-graceful-fs/issues/4
// Chown should not fail on einval or eperm if non-root.
fs.chown = chownFix(fs.chown)
fs.fchown = chownFix(fs.fchown)
fs.lchown = chownFix(fs.lchown)
fs.chownSync = chownFixSync(fs.chownSync)
fs.fchownSync = chownFixSync(fs.fchownSync)
fs.lchownSync = chownFixSync(fs.lchownSync)
function chownFix (orig) {
if (!orig) return orig
return function (target, uid, gid, cb) {
return orig.call(fs, target, uid, gid, function (er, res) {
if (chownErOk(er)) er = null
cb(er, res)
})
}
}
function chownFixSync (orig) {
if (!orig) return orig
return function (target, uid, gid) {
try {
return orig.call(fs, target, uid, gid)
} catch (er) {
if (!chownErOk(er)) throw er
}
}
}
function chownErOk (er) {
// if there's no getuid, or if getuid() is something other than 0,
// and the error is EINVAL or EPERM, then just ignore it.
// This specific case is a silent failure in cp, install, tar,
// and most other unix tools that manage permissions.
// When running as root, or if other types of errors are encountered,
// then it's strict.
if (!er || (!process.getuid || process.getuid() !== 0)
&& (er.code === "EINVAL" || er.code === "EPERM")) return true
}
// on Windows, A/V software can lock the directory, causing this
// to fail with an EACCES or EPERM if the directory contains newly
// created files. Try again on failure, for up to 1 second.
if (process.platform === "win32") {
var rename_ = fs.rename
fs.rename = function rename (from, to, cb) {
var start = Date.now()
rename_(from, to, function CB (er) {
if (er
&& (er.code === "EACCES" || er.code === "EPERM")
&& Date.now() - start < 1000) {
return rename_(from, to, CB)
}
cb(er)
})
}
}

22
tools/blog/node_modules/glob/node_modules/graceful-fs/package.json

@ -0,0 +1,22 @@
{
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me"
},
"name": "graceful-fs",
"description": "Just like node's `fs` module, but it does an incremental back-off when EMFILE is encountered.",
"version": "1.1.8",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-graceful-fs.git"
},
"main": "graceful-fs.js",
"engines": {
"node": ">=0.4.0"
},
"devDependencies": {},
"readme": "Just like node's `fs` module, but it does an incremental back-off when\nEMFILE is encountered.\n\nUseful in asynchronous situations where one needs to try to open lots\nand lots of files.\n",
"_id": "graceful-fs@1.1.8",
"_from": "graceful-fs@~1.1.2"
}

51
tools/blog/node_modules/glob/node_modules/inherits/README.md

@ -0,0 +1,51 @@
A dead simple way to do inheritance in JS.
var inherits = require("inherits")
function Animal () {
this.alive = true
}
Animal.prototype.say = function (what) {
console.log(what)
}
inherits(Dog, Animal)
function Dog () {
Dog.super.apply(this)
}
Dog.prototype.sniff = function () {
this.say("sniff sniff")
}
Dog.prototype.bark = function () {
this.say("woof woof")
}
inherits(Chihuahua, Dog)
function Chihuahua () {
Chihuahua.super.apply(this)
}
Chihuahua.prototype.bark = function () {
this.say("yip yip")
}
// also works
function Cat () {
Cat.super.apply(this)
}
Cat.prototype.hiss = function () {
this.say("CHSKKSS!!")
}
inherits(Cat, Animal, {
meow: function () { this.say("miao miao") }
})
Cat.prototype.purr = function () {
this.say("purr purr")
}
var c = new Chihuahua
assert(c instanceof Chihuahua)
assert(c instanceof Dog)
assert(c instanceof Animal)
The actual function is laughably small. 10-lines small.

29
tools/blog/node_modules/glob/node_modules/inherits/inherits.js

@ -0,0 +1,29 @@
module.exports = inherits
function inherits (c, p, proto) {
proto = proto || {}
var e = {}
;[c.prototype, proto].forEach(function (s) {
Object.getOwnPropertyNames(s).forEach(function (k) {
e[k] = Object.getOwnPropertyDescriptor(s, k)
})
})
c.prototype = Object.create(p.prototype, e)
c.super = p
}
//function Child () {
// Child.super.call(this)
// console.error([this
// ,this.constructor
// ,this.constructor === Child
// ,this.constructor.super === Parent
// ,Object.getPrototypeOf(this) === Child.prototype
// ,Object.getPrototypeOf(Object.getPrototypeOf(this))
// === Parent.prototype
// ,this instanceof Child
// ,this instanceof Parent])
//}
//function Parent () {}
//inherits(Child, Parent)
//new Child

25
tools/blog/node_modules/glob/node_modules/inherits/package.json

@ -0,0 +1,25 @@
{
"name": "inherits",
"description": "A dead simple way to do inheritance in JS.",
"version": "1.0.0",
"keywords": [
"inheritance",
"class",
"klass",
"oop",
"object-oriented"
],
"main": "./inherits.js",
"repository": {
"type": "git",
"url": "https://github.com/isaacs/inherits"
},
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"readme": "A dead simple way to do inheritance in JS.\n\n var inherits = require(\"inherits\")\n\n function Animal () {\n this.alive = true\n }\n Animal.prototype.say = function (what) {\n console.log(what)\n }\n\n inherits(Dog, Animal)\n function Dog () {\n Dog.super.apply(this)\n }\n Dog.prototype.sniff = function () {\n this.say(\"sniff sniff\")\n }\n Dog.prototype.bark = function () {\n this.say(\"woof woof\")\n }\n\n inherits(Chihuahua, Dog)\n function Chihuahua () {\n Chihuahua.super.apply(this)\n }\n Chihuahua.prototype.bark = function () {\n this.say(\"yip yip\")\n }\n\n // also works\n function Cat () {\n Cat.super.apply(this)\n }\n Cat.prototype.hiss = function () {\n this.say(\"CHSKKSS!!\")\n }\n inherits(Cat, Animal, {\n meow: function () { this.say(\"miao miao\") }\n })\n Cat.prototype.purr = function () {\n this.say(\"purr purr\")\n }\n\n\n var c = new Chihuahua\n assert(c instanceof Chihuahua)\n assert(c instanceof Dog)\n assert(c instanceof Animal)\n\nThe actual function is laughably small. 10-lines small.\n",
"_id": "inherits@1.0.0",
"_from": "inherits@1"
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save