This repository was archived by the owner on Apr 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
API changes between v0.6 and v0.8
shigeki edited this page Mar 30, 2012
·
66 revisions
When editing this page please be as detailed as possible. Examples are encouraged!
http.Client()-
path.{exists,existsSync}was moved tofs.{exists,existsSync} -
tty.setRawMode(mode)was moved totty.ReadStream#setRawMode()(i.e.process.stdin.setRawMode())
-
wafbuild system -node.jswill be usinggypnow -
systhrows
-
cluster-
cluster.fork()no longer return achild_process.fork()object usecluster.fork().processto get the object. - the
'exit'event is renamed to'death'. - the
kill()method is renamed todestroy(). - the
CLUSTER_WORKER_IDenv is now calledCLUSTER_UNIQUE_ID, but you should not have used that any way.
-
-
http-
http.Serveremits'connect'event instead of'upgrade'when the CONNECT method is requested. -
http.ServerResponsesendsDate:header by default. You can disable it by settingresponse.sendDatetofalse. -
http.ClientRequestemits'connect'event instead of'request'when the CONNECT method is responded.
-
-
child_process-
argumentsandoptionsarguments ofchild_process.fork()became an option.
-
-
readline-
argumentsofrl.createInterface(input, output, completer)became an option asrl.createInterface(options)
-
-
child_process-
silentoption tochild_process.fork()-stdoutandstderrwon't be shared with parent. -
.disconnect()when usingchild_process.fork()this will allow the child to die graceful.
-
-
cluster-
'fork','online','listening', and'setup'events. -
Workerobject which is provided fromcluster.workers(in the master) orcluster.worker(in the worker). -
envoptional argument tocluster.fork(). -
cluster.setupMaster()andcluster.settings.
-
-
crypto-
crypto.getDiffieHellman(). -
cipher.setAutoPadding()anddecipher.setAutoPadding(). -
ciphersoption tocrypto.createCredentials().
-
-
fs-
fs.appendFile()andfs.appendFileSync(). -
fs.exists()andfs.existsSync(). -
wx,wx+,ax, andax+modes tofs.open()andfs.openSync().
-
-
http- callback optional argument to
server.close(). -
sendDateproperty tohttp.ServerResponse.
- callback optional argument to
-
https-
ciphers,rejectUnauthorizedoption tohttps.request()andhttps.get().
-
-
net-
net.connect(options, [connectionListener). - callback optional argument to
server.close().
-
-
process-
process.abort(). -
process.hrtime(), hi-res timer with up to nanosecond granularity.
-
-
querystring-
querystring.parse(str, [sep], [eq], [options]).
-
-
tls-
tls.CLIENT_RENEG_LIMITandtls.CLIENT_RENEG_WINDOWto mitigate session renegotiation attacks -
tls.connect(options, [secureConnectionListener]). -
ciphers,rejectUnauthorizedandsocketoptions totls.connect(). -
cleartextStream.getCipher()was added in the api doc and open to the public.
-
-
zlib-
dictionaryoption.
-