forked from nodejs/node-v0.x-archive
-
Notifications
You must be signed in to change notification settings - Fork 1
API changes between v0.6 and v0.8
AndreasMadsen edited this page Jan 26, 2012
·
10 revisions
When editing this page please be as detailed as possible. Examples are encouraged!
http.Client()
-
path.{exists,existsSync}
was moved tofs.{exists,existsSync}
-
waf
build system -node.js
will be usinggyp
now -
sys
throws
-
cluster
-
cluster.fork()
no longer return achild_process.fork()
object usecluster.fork().process
to get the object. - the
'exit'
event is renamed to'death'
. - the
kill()
method is renamed todestroy()
. - the
CLUSTER_WORKER_ID
env is now calledCLUSTER_UNIQUE_ID
, but you should not have used that any way.
-
-
http
-
http.Server
emits'connect'
event instead of'upgrade'
when the CONNECT method is requested. -
http.ClientRequest
emits'connect'
event instead of'request'
when the CONNECT method is responded.
-
-
child_process
-
arguments
andoptions
arguments ofchild_process.fork()
became an option.
-
-
child_process
-
silent
option tochild_process.fork()
-stdout
andstderr
won't be shared with parent. -
thread
option - make a new thread and not a new process
-
-
cluster
-
'fork'
,'online'
,'listening'
, and'setup'
events. -
Worker
object which is provided fromcluster.workers
(in the master) orcluster.worker
(in the worker). -
env
optional argument tocluster.fork()
. -
cluster.setupMaster()
andcluster.settings
.
-
-
crypto
-
cipher.setAutoPadding()
anddecipher.setAutoPadding()
.
-
-
fs
-
fs.appendFile()
,fs.appendFileSync()
. -
fs.exists()
andfs.existsSync()
.
-
-
https
-
rejectUnauthorized
option tohttps.request()
andhttps.get()
.
-
-
net
-
net.connect(options, [connectionListener)
.
-
-
process
-
process.abort()
.
-
-
querystring
-
querystring.parse(str, [sep], [eq], [options])
.
-
-
tls
-
tls.connect(options, [secureConnectionListener])
. -
rejectUnauthorized
andsocket
options totls.connect()
.
-
-
zlib
-
dictionary
option.
-