Node.js 0.10.0 coming out soon - time to check for API changes and migrate code


Node.js v0.10.0 is about to be released, meaning that it's time to check the API changes and take a look at changes you need to make in your code.  For me this means verifying the code I'm writing for the updated version of Node Web Development (see links in sidebar) will not be broken.  API changes can of course break your application.

See ChangeLog for more details:

Other than the Streams2 interface introduction I don't see much in the Change Log to be worried over.  Most of the API changes are in features that (I think) won't see wide usage.  But here's a couple high points:

In some cases where you use process.nextTick to dispatch work to the future, you should use process.setImmediate instead.  Do this when your nextTick's are recursive.

Parsed URL objects will now have all fields, even for fields that are empty.  Those fields will be set to null.

EventEmitter subclasses must now be done the correct way, by using util.inherits.

And of course there is the aforementioned Streams2 interface.