음... 우선 오래된 버젼 api 문서가 다 사라졌네... 이건 소스를 받아야겠네
http.Client()-
- http.Client()는
path.{exists,existsSync}was moved tofs.{exists,existsSync}tty.setRawMode(mode)was moved totty.ReadStream#setRawMode()(i.e.process.stdin.setRawMode())- Direct use of
ev_*andeio_*functions is deprecated. Please use the methods provided bylibuvinstead. For help porting fromeio_customtouv_queue_work, see this wiki page. For help porting fromev_io_*touv_poll_*, see this wiki page.
wafbuild system -node.jswill be usinggypnow- If you are a native module author(you may still be one if you're not on this list), migrate to
node-gypASAP!
- If you are a native module author(you may still be one if you're not on this list), migrate to
require('sys')throws, userequire('util')now. The "sys" module was deprecated in node v0.4.process.installPrefixhas been removed (#3483).process.installPrefixwas (accidentally) alwaysundefinedin node v0.6.node --varshas been removed (#3483).node --varsalways (accidentally) has empty output in node v0.6
-
processprocess.stdin.on('keypress')will not be emitted by default, as it's an internal API. Use thekeypressmodule now.process.stdin.pipe(dest)will automatically callprocess.stdin.resume().
-
clustercluster.fork()no longer return achild_process.fork()object usecluster.fork().processto get the object.- the
'death'event on theclusterobject is renamed to'exit'. - the
kill()method is renamed todestroy(). - the
CLUSTER_WORKER_IDenv is now calledCLUSTER_UNIQUE_ID, but you should not have used that anyway. - workers now kill themselves when they accidentally lose their connection to the master.
-
httphttp.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.
-
netnet.listen(socketPath)no longer unlinks the socket unless you callserver.close(). Automatic unlinking was subject to race conditions in multi-process setups. Also applies tohttp.listen(socketPath).
-
child_processargumentsandoptionsarguments ofchild_process.fork()became an option.- the
'exit'event is now emitted right after the child process exits. It no longer waits for all stdio pipes to be closed. - the
'close'event was added that has is emitted after the child has exited and all the stdio pipes are closed.
-
readlineargumentsofrl.createInterfacebecame an option asrl.createInterface(options)but still took an old style asrl.createInterface(input, output, completer)
-
urlurl.parse()now parses IPv6 addresses.url.parse()now escapes delimiters characters rather than truncating the input.url.format()now escapes theauthsection, andurl.parse()decodes it.
-
fspath.exists()andpath.existsSync()has moved tofs.exists()andfs.existsSync().fs.symlinktypeargument can now be'junction'(for Windows only).fs.realpathandfs.lstatwork the same on Windows as on Unix
-
consoleconsole.timeEndnow throws when there's no such label
-
bufferSlowBuffernow inherits fromBuffer. So if you have a module that modifies the prototype, now you only need to alterBuffer.prototype.
-
osos.cpus().timesis now supported on Windowsos.uptimenow displays the correct uptime if the system's current uptime is > 50 days on Windows
-
buffer'utf16le'encoding.
-
child_processsilentoption tochild_process.fork()-stdoutandstderrwon't be shared with parent..disconnect()when usingchild_process.fork()this will allow the child to die gracefully.stdiooption forchild_process.spawn()- configuration of child's stdio (file descriptors).detachedoption forchild_process.spawn()- make the child a process group leader (see docs)child.send()can now sendnet.Serverandnet.Socketas second argument.
-
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.cluster.disconnect()andworker.disconnect().worker.idwhat there before was internally known asworkerID.worker.suicideflag set when worker disconnect or die, indicate if this was an accidental death.
-
cryptocrypto.getDiffieHellman().cipher.setAutoPadding()anddecipher.setAutoPadding().ciphersoption tocrypto.createCredentials().
-
domain -
fsfs.appendFile()andfs.appendFileSync().wx,wx+,ax, andax+modes tofs.open()andfs.openSync().
-
http- callback optional argument to
server.close(). sendDateproperty tohttp.ServerResponse.http.request()andhttp.get()can accept as their argument a url that is parsed withurl.parse()
- callback optional argument to
-
httpsciphers,rejectUnauthorizedoption tohttps.request()andhttps.get().
-
netnet.connect(options, [connectionListener]).- callback optional argument to
server.close(). server.listen({ fd: someNumber })to listen on arbitrary file descriptors.
-
processprocess.abort().process.hrtime(), hi-res timer with up to nanosecond granularity.
-
querystringquerystring.parse(str, [sep], [eq], [options]), limited to 1000 parameters by default.
-
stream'utf16le'and'ucs2'encoding tosetEncoding().
-
tlstls.CLIENT_RENEG_LIMITandtls.CLIENT_RENEG_WINDOWto mitigate session renegotiation attackstls.connect(options, [secureConnectionListener]).ciphers,rejectUnauthorizedandsocketoptions totls.connect().cleartextStream.getCipher()was added in the api doc and open to the public.
-
zlibdictionaryoption.