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 23, 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 todeath
. - 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. -
env
optional argument tocluster.fork()
.
-
-
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.
-
-
cluster
-
'fork'
,'online'
,'listening'
events. -
Worker
object which is provided fromcluster.workers
(in the master) orcluster.worker
(in the worker).
-
-
fs
-
fs.appendFile()
,fs.appendFileSync()
.
-
-
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.
-