13 Jun 2012

Finished Tech Review and the move to Node 0.8.x

Just finished the final tech review of my Learning Node book. At 400 pages, it's a big book. I must admit to being more than a little tired. Right now, I feel I could sleep for a week.

The big announcement in Node land is that unstable 0.7.x is being moved to stable 0.8.x next week. As a final act for my book, I put all the examples through a 0.7.10 tests. The results were better than I expected, not as good as I hoped.

I hit a couple of minor deprecation issues. For instance, path.exists has been deprecated in favor of fs.exists. I used the exit event with one child process application, and I needed to convert it to the new close event. This new event not only waits for the process to end, but all stdio pipes are closed.

Other modules ran into the same deprecation issues. Most of the testing modules in Chapter 14 won't work with Node 0.8.x, but I think the changes to make them work will be minor.

Socket.IO didn't work with 0.7.10 and the developers know it. I'm more than a little surprised at the reaction to people turning in issues related to the problem. Not to mention, closing the bugs without even attempting a fix. As I wrote in comments to the issues, today's 0.7.x stable is about to become next week's 0.8.x stable, and this bug is going to get very popular.

The db-mysql module also didn't work with 0.7.10, and the highly popular jsdom module also had problems.

I noted the compatibility issues in the chapters, and provided alternative examples for those I could correct. That is the best I can do.

I've giv'n her all she's got, Captain!