forked from nodejs/node-v0.x-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
API changes between v0.4 and v0.6
ry edited this page Oct 12, 2011
·
83 revisions
When editing this page please be as detailed as possible. Examples are encouraged!
- The
customFdsoption to thechild_process.spawnmethod is deprecated. Only the values -1, 0, 1, 2 will work withcustomFdsnow and only if those are TTY file descriptors. You can however use thestdinStream,stdoutStream, andstderrStreamoptions to achieve similar functionality. - You can no longer send a file descriptor through a unix pipe. Instead you can send a handle via
child_process.fork. -
fs.symlinktakes an optionalmodeargument, which can either be 'dir' or 'file'. The default is 'file'. This argument is only needed for Windows (it's ignored on other platforms). -
http.Agent.appendMessagewas removed. - The
require.pathshave been removed (useNODE_PATHenvironment variable instead). - C++
node::EventEmitterhas been removed. Instead usenode::MakeCallback() -
process.ENVwas removed. Useprocess.envinstead.
- zlib module http://nodejs.org/docs/v0.5.9/api/zlib.html
child_process.forkfs.watch-
assert(val)as a shorthand forassert.ok(val) -
process.arch,os.arch()