{ "source": "doc/api/deprecations.md", "modules": [ { "textRaw": "Deprecated APIs", "name": "deprecated_apis", "introduced_in": "v7.7.0", "desc": "

Node.js may deprecate APIs when either: (a) use of the API is considered to be\nunsafe, (b) an improved alternative API has been made available, or (c)\nbreaking changes to the API are expected in a future major release.

\n

Node.js utilizes three kinds of Deprecations:

\n\n

A Documentation-only deprecation is one that is expressed only within the\nNode.js API docs. These generate no side-effects while running Node.js.

\n

A Runtime deprecation will, by default, generate a process warning that will\nbe printed to stderr the first time the deprecated API is used. When the\n--throw-deprecation command-line flag is used, a Runtime deprecation will\ncause an error to be thrown.

\n

An End-of-Life deprecation is used to identify code that either has been\nremoved or will soon be removed from Node.js.

\n", "modules": [ { "textRaw": "Un-deprecation", "name": "un-deprecation", "desc": "

From time-to-time the deprecation of an API may be reversed. Such action may\nhappen in either a semver-minor or semver-major release. In such situations,\nthis document will be updated with information relevant to the decision.\nHowever, the deprecation identifier will not be modified.

\n", "type": "module", "displayName": "Un-deprecation" }, { "textRaw": "List of Deprecated APIs", "name": "list_of_deprecated_apis", "desc": "

\n", "modules": [ { "textRaw": "DEP0001: http.OutgoingMessage.prototype.flush", "name": "dep0001:_http.outgoingmessage.prototype.flush", "desc": "

Type: Runtime

\n

The OutgoingMessage.prototype.flush() method is deprecated. Use\nOutgoingMessage.prototype.flushHeaders() instead.

\n

\n", "type": "module", "displayName": "DEP0001: http.OutgoingMessage.prototype.flush" }, { "textRaw": "DEP0002: require('\\_linklist')", "name": "dep0002:_require('\\_linklist')", "desc": "

Type: End-of-Life

\n

The _linklist module is deprecated. Please use a userland alternative.

\n

\n", "type": "module", "displayName": "DEP0002: require('\\_linklist')" }, { "textRaw": "DEP0004: CryptoStream.prototype.readyState", "name": "dep0004:_cryptostream.prototype.readystate", "desc": "

Type: Documentation-only

\n

The CryptoStream.prototype.readyState property is deprecated and should not\nbe used.

\n

\n", "type": "module", "displayName": "DEP0004: CryptoStream.prototype.readyState" }, { "textRaw": "DEP0005: Buffer() constructor", "name": "dep0005:_buffer()_constructor", "desc": "

Type: Documentation-only

\n

The Buffer() function and new Buffer() constructor are deprecated due to\nAPI usability issues that can potentially lead to accidental security issues.

\n

As an alternative, use of the following methods of constructing Buffer objects\nis strongly recommended:

\n\n

\n", "type": "module", "displayName": "DEP0005: Buffer() constructor" }, { "textRaw": "DEP0008: require('constants')", "name": "dep0008:_require('constants')", "desc": "

Type: Documentation-only

\n

The constants module has been deprecated. When requiring access to constants\nrelevant to specific Node.js builtin modules, developers should instead refer\nto the constants property exposed by the relevant module. For instance,\nrequire('fs').constants and require('os').constants.

\n

\n", "type": "module", "displayName": "DEP0008: require('constants')" }, { "textRaw": "DEP0009: crypto.pbkdf2 without digest", "name": "dep0009:_crypto.pbkdf2_without_digest", "desc": "

Type: End-of-life

\n

Use of the crypto.pbkdf2() API without specifying a digest was deprecated\nin Node.js 6.0 because the method defaulted to using the non-recommended\n'SHA1' digest. Previously, a deprecation warning was printed. Starting in\nNode.js 8.0.0, calling crypto.pbkdf2() or crypto.pbkdf2Sync() with an\nundefined digest will throw a TypeError.

\n

\n", "type": "module", "displayName": "DEP0009: crypto.pbkdf2 without digest" }, { "textRaw": "DEP0013: fs asynchronous function without callback", "name": "dep0013:_fs_asynchronous_function_without_callback", "desc": "

Type: Runtime

\n

Calling an asynchronous function without a callback is deprecated.

\n

\n", "type": "module", "displayName": "DEP0013: fs asynchronous function without callback" }, { "textRaw": "DEP0014: fs.read legacy String interface", "name": "dep0014:_fs.read_legacy_string_interface", "desc": "

Type: End-of-Life

\n

The fs.read() legacy String interface is deprecated. Use the Buffer API as\nmentioned in the documentation instead.

\n

\n", "type": "module", "displayName": "DEP0014: fs.read legacy String interface" }, { "textRaw": "DEP0015: fs.readSync legacy String interface", "name": "dep0015:_fs.readsync_legacy_string_interface", "desc": "

Type: End-of-Life

\n

The fs.readSync() legacy String interface is deprecated. Use the Buffer\nAPI as mentioned in the documentation instead.

\n

\n", "type": "module", "displayName": "DEP0015: fs.readSync legacy String interface" }, { "textRaw": "DEP0016: GLOBAL/root", "name": "dep0016:_global/root", "desc": "

Type: Runtime

\n

The GLOBAL and root aliases for the global property have been deprecated\nand should no longer be used.

\n

\n", "type": "module", "displayName": "DEP0016: GLOBAL/root" }, { "textRaw": "DEP0018: Unhandled promise rejections", "name": "dep0018:_unhandled_promise_rejections", "desc": "

Type: Runtime

\n

Unhandled promise rejections are deprecated. In the future, promise rejections\nthat are not handled will terminate the Node.js process with a non-zero exit\ncode.

\n

\n", "type": "module", "displayName": "DEP0018: Unhandled promise rejections" }, { "textRaw": "DEP0019: require('.') resolved outside directory", "name": "dep0019:_require('.')_resolved_outside_directory", "desc": "

Type: Runtime

\n

In certain cases, require('.') may resolve outside the package directory.\nThis behavior is deprecated and will be removed in a future major Node.js\nrelease.

\n

\n", "type": "module", "displayName": "DEP0019: require('.') resolved outside directory" }, { "textRaw": "DEP0024: REPLServer.prototype.convertToContext()", "name": "dep0024:_replserver.prototype.converttocontext()", "desc": "

Type: Runtime

\n

The REPLServer.prototype.convertToContext() API is deprecated and should\nnot be used.

\n

\n", "type": "module", "displayName": "DEP0024: REPLServer.prototype.convertToContext()" }, { "textRaw": "DEP0025: require('sys')", "name": "dep0025:_require('sys')", "desc": "

Type: Runtime

\n

The sys module is deprecated. Please use the util module instead.

\n

\n", "type": "module", "displayName": "DEP0025: require('sys')" }, { "textRaw": "DEP0030: SlowBuffer", "name": "dep0030:_slowbuffer", "desc": "

Type: Documentation-only

\n

The SlowBuffer class has been deprecated. Please use\nBuffer.allocUnsafeSlow(size) instead.

\n

\n", "type": "module", "displayName": "DEP0030: SlowBuffer" }, { "textRaw": "DEP0032: domain module", "name": "dep0032:_domain_module", "desc": "

Type: Documentation-only

\n

The domain module is deprecated and should not be used.

\n

\n", "type": "module", "displayName": "DEP0032: domain module" }, { "textRaw": "DEP0040: punycode module", "name": "dep0040:_punycode_module", "desc": "

Type: Documentation-only

\n

The punycode module has been deprecated. Please use a userland alternative\ninstead.

\n

\n", "type": "module", "displayName": "DEP0040: punycode module" }, { "textRaw": "DEP0041: NODE\\_REPL\\_HISTORY\\_FILE environment variable", "name": "dep0041:_node\\_repl\\_history\\_file_environment_variable", "desc": "

Type: Documentation-only

\n

The NODE_REPL_HISTORY_FILE environment variable has been deprecated.

\n

\n", "type": "module", "displayName": "DEP0041: NODE\\_REPL\\_HISTORY\\_FILE environment variable" }, { "textRaw": "DEP0062: node --debug", "name": "dep0062:_node_--debug", "desc": "

Type: Runtime

\n

--debug activates the legacy V8 debugger interface, which has been removed as\nof V8 5.8. It is replaced by Inspector which is activated with --inspect\ninstead.

\n

\n", "type": "module", "displayName": "DEP0062: node --debug" }, { "textRaw": "DEP0063: ServerResponse.prototype.writeHeader()", "name": "dep0063:_serverresponse.prototype.writeheader()", "desc": "

Type: Documentation-only

\n

The http module ServerResponse.prototype.writeHeader() API has been\ndeprecated. Please use ServerResponse.prototype.writeHead() instead.

\n

Note: The ServerResponse.prototype.writeHeader() method was never\ndocumented as an officially supported API.

\n

\n", "type": "module", "displayName": "DEP0063: ServerResponse.prototype.writeHeader()" }, { "textRaw": "DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic", "name": "dep0065:_repl.repl_mode_magic_and_node_repl_mode=magic", "desc": "

Type: Documentation-only

\n

The repl module's REPL_MODE_MAGIC constant, used for replMode option, has\nbeen deprecated. Its behavior has been functionally identical to that of\nREPL_MODE_SLOPPY since Node.js v6.0.0, when V8 5.0 was imported. Please use\nREPL_MODE_SLOPPY instead.

\n

The NODE_REPL_MODE environment variable is used to set the underlying\nreplMode of an interactive node session. Its default value, magic, is\nsimilarly deprecated in favor of sloppy.

\n

\n", "type": "module", "displayName": "DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic" }, { "textRaw": "DEP0066: outgoingMessage.\\_headers, outgoingMessage.\\_headerNames", "name": "dep0066:_outgoingmessage.\\_headers,_outgoingmessage.\\_headernames", "desc": "

Type: Documentation-only

\n

The http module outgoingMessage._headers and outgoingMessage._headerNames\nproperties have been deprecated. Please instead use one of the public methods\n(e.g. outgoingMessage.getHeader(), outgoingMessage.getHeaders(),\noutgoingMessage.getHeaderNames(), outgoingMessage.hasHeader(),\noutgoingMessage.removeHeader(), outgoingMessage.setHeader()) for working\nwith outgoing headers.

\n

Note: outgoingMessage._headers and outgoingMessage._headerNames were\nnever documented as officially supported properties.

\n

\n", "type": "module", "displayName": "DEP0066: outgoingMessage.\\_headers, outgoingMessage.\\_headerNames" }, { "textRaw": "DEP0067: OutgoingMessage.prototype.\\_renderHeaders", "name": "dep0067:_outgoingmessage.prototype.\\_renderheaders", "desc": "

Type: Documentation-only

\n

The http module OutgoingMessage.prototype._renderHeaders() API has been\ndeprecated.

\n

Note: OutgoingMessage.prototype._renderHeaders was never documented as\nan officially supported API.

\n

\n", "type": "module", "displayName": "DEP0067: OutgoingMessage.prototype.\\_renderHeaders" }, { "textRaw": "DEP0068: node debug", "name": "dep0068:_node_debug", "desc": "

Type: Runtime

\n

node debug corresponds to the legacy CLI debugger which has been replaced with\na V8-inspector based CLI debugger available through node inspect.

\n

\n", "type": "module", "displayName": "DEP0068: node debug" }, { "textRaw": "DEP0072: async_hooks.AsyncResource.triggerId()", "name": "dep0072:_async_hooks.asyncresource.triggerid()", "desc": "

Type: Runtime

\n

async_hooks.AsyncResource.triggerId() was renamed to\nasync_hooks.AsyncResource.triggerAsyncId() for clarity.

\n

Note: change was made while async_hooks was an experimental API.

\n

\n", "type": "module", "displayName": "DEP0072: async_hooks.AsyncResource.triggerId()" }, { "textRaw": "DEP0085: AsyncHooks Sensitive API", "name": "dep0085:_asynchooks_sensitive_api", "desc": "

Type: Runtime

\n

The AsyncHooks Sensitive API was never documented and had various of minor\nissues, see https://github.com/nodejs/node/issues/15572. Use the AsyncResource\nAPI instead.

\n

\n", "type": "module", "displayName": "DEP0085: AsyncHooks Sensitive API" }, { "textRaw": "DEP0086: Remove runInAsyncIdScope", "name": "dep0086:_remove_runinasyncidscope", "desc": "

Type: Runtime

\n

runInAsyncIdScope doesn't emit the before or after event and can thus\ncause a lot of issues. See https://github.com/nodejs/node/issues/14328 for more\ndetails.

\n

\n", "type": "module", "displayName": "DEP0086: Remove runInAsyncIdScope" }, { "textRaw": "DEP0089: require('assert')", "name": "dep0089:_require('assert')", "desc": "

Type: Documentation-only

\n

Importing assert directly is not recommended as the exposed functions will use\nloose equality checks. Use require('assert').strict instead. The API is the\nsame as the legacy assert but it will always use strict equality checks.

\n

\n", "type": "module", "displayName": "DEP0089: require('assert')" }, { "textRaw": "DEP0098: AsyncHooks Embedder AsyncResource.emit{Before,After} APIs", "name": "dep0098:_asynchooks_embedder_asyncresource.emit{before,after}_apis", "desc": "

Type: Runtime

\n

The embedded API provided by AsyncHooks exposes emit{Before,After} methods\nwhich are very easy to use incorrectly which can lead to unrecoverable errors.

\n

Use asyncResource.runInAsyncScope() API instead which provides a much\nsafer, and more convenient, alternative. See\nhttps://github.com/nodejs/node/pull/18513 for more details.

\n", "type": "module", "displayName": "DEP0098: AsyncHooks Embedder AsyncResource.emit{Before,After} APIs" } ], "properties": [ { "textRaw": "DEP0003: \\_writableState.buffer", "name": "buffer", "desc": "

Type: Runtime

\n

The _writableState.buffer property is deprecated. Use the\n_writableState.getBuffer() method instead.

\n

\n" }, { "textRaw": "DEP0006: child\\_process options.customFds", "name": "customFds", "desc": "

Type: Runtime

\n

Within the child_process module's spawn(), fork(), and exec()\nmethods, the options.customFds option is deprecated. The options.stdio\noption should be used instead.

\n

\n" }, { "textRaw": "DEP0007: cluster worker.suicide", "name": "suicide", "desc": "

Type: Runtime

\n

Within the cluster module, the worker.suicide property has been\ndeprecated. Please use worker.exitedAfterDisconnect instead.

\n

\n" }, { "textRaw": "DEP0010: crypto.createCredentials", "name": "createCredentials", "desc": "

Type: Runtime

\n

The crypto.createCredentials() API is deprecated. Please use\ntls.createSecureContext() instead.

\n

\n" }, { "textRaw": "DEP0011: crypto.Credentials", "name": "Credentials", "desc": "

Type: Runtime

\n

The crypto.Credentials class is deprecated. Please use tls.SecureContext\ninstead.

\n

\n" }, { "textRaw": "DEP0012: Domain.dispose", "name": "dispose", "desc": "

Type: Runtime

\n

Domain.dispose() is deprecated. Recover from failed I/O actions\nexplicitly via error event handlers set on the domain instead.

\n

\n" }, { "textRaw": "DEP0017: Intl.v8BreakIterator", "name": "v8BreakIterator", "desc": "

Type: Runtime

\n

The Intl.v8BreakIterator is deprecated and will be removed or replaced soon.

\n

\n" }, { "textRaw": "DEP0020: Server.connections", "name": "connections", "desc": "

Type: Runtime

\n

The Server.connections property is deprecated. Please use the\nServer.getConnections() method instead.

\n

\n" }, { "textRaw": "DEP0021: Server.listenFD", "name": "listenFD", "desc": "

Type: Runtime

\n

The Server.listenFD() method is deprecated. Please use\nServer.listen({fd: <number>}) instead.

\n

\n" }, { "textRaw": "DEP0039: require.extensions", "name": "extensions", "desc": "

Type: Documentation-only

\n

The require.extensions property has been deprecated.

\n

\n" }, { "textRaw": "DEP0042: tls.CryptoStream", "name": "CryptoStream", "desc": "

Type: Documentation-only

\n

The tls.CryptoStream class has been deprecated. Please use\ntls.TLSSocket instead.

\n

\n" }, { "textRaw": "DEP0043: tls.SecurePair", "name": "SecurePair", "desc": "

Type: Documentation-only

\n

The tls.SecurePair class has been deprecated. Please use\ntls.TLSSocket instead.

\n

\n" }, { "textRaw": "DEP0061: fs.SyncWriteStream", "name": "SyncWriteStream", "desc": "

Type: Runtime

\n

The fs.SyncWriteStream class was never intended to be a publicly accessible\nAPI. No alternative API is available. Please use a userland alternative.

\n

\n" } ], "methods": [ { "textRaw": "DEP0022: os.tmpDir()", "type": "method", "name": "tmpDir", "desc": "

Type: Runtime

\n

The os.tmpDir() API is deprecated. Please use os.tmpdir() instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0023: os.getNetworkInterfaces()", "type": "method", "name": "getNetworkInterfaces", "desc": "

Type: Runtime

\n

The os.getNetworkInterfaces() method is deprecated. Please use the\nos.networkInterfaces property instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0026: util.print()", "type": "method", "name": "print", "desc": "

Type: Runtime

\n

The util.print() API is deprecated. Please use console.log()\ninstead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0027: util.puts()", "type": "method", "name": "puts", "desc": "

Type: Runtime

\n

The util.puts() API is deprecated. Please use console.log() instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0028: util.debug()", "type": "method", "name": "debug", "desc": "

Type: Runtime

\n

The util.debug() API is deprecated. Please use console.error()\ninstead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0029: util.error()", "type": "method", "name": "error", "desc": "

Type: Runtime

\n

The util.error() API is deprecated. Please use console.error()\ninstead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0031: ecdh.setPublicKey()", "type": "method", "name": "setPublicKey", "desc": "

Type: Documentation-only

\n

The ecdh.setPublicKey() method is now deprecated as its inclusion in the\nAPI is not useful.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0033: EventEmitter.listenerCount()", "type": "method", "name": "listenerCount", "desc": "

Type: Documentation-only

\n

The EventEmitter.listenerCount(emitter, eventName) API has been\ndeprecated. Please use emitter.listenerCount(eventName) instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0034: fs.exists(path, callback)", "type": "method", "name": "exists", "desc": "

Type: Documentation-only

\n

The fs.exists(path, callback) API has been deprecated. Please use\nfs.stat() or fs.access() instead.

\n

\n", "signatures": [ { "params": [ { "name": "path" }, { "name": "callback" } ] } ] }, { "textRaw": "DEP0035: fs.lchmod(path, mode, callback)", "type": "method", "name": "lchmod", "desc": "

Type: Documentation-only

\n

The fs.lchmod(path, mode, callback) API has been deprecated.

\n

\n", "signatures": [ { "params": [ { "name": "path" }, { "name": "mode" }, { "name": "callback" } ] } ] }, { "textRaw": "DEP0036: fs.lchmodSync(path, mode)", "type": "method", "name": "lchmodSync", "desc": "

Type: Documentation-only

\n

The fs.lchmodSync(path, mode) API has been deprecated.

\n

\n", "signatures": [ { "params": [ { "name": "path" }, { "name": "mode" } ] } ] }, { "textRaw": "DEP0037: fs.lchown(path, uid, gid, callback)", "type": "method", "name": "lchown", "desc": "

Type: Documentation-only

\n

The fs.lchown(path, uid, gid, callback) API has been deprecated.

\n

\n", "signatures": [ { "params": [ { "name": "path" }, { "name": "uid" }, { "name": "gid" }, { "name": "callback" } ] } ] }, { "textRaw": "DEP0038: fs.lchownSync(path, uid, gid)", "type": "method", "name": "lchownSync", "desc": "

Type: Documentation-only

\n

The fs.lchownSync(path, uid, gid) API has been deprecated.

\n

\n", "signatures": [ { "params": [ { "name": "path" }, { "name": "uid" }, { "name": "gid" } ] } ] }, { "textRaw": "DEP0044: util.isArray()", "type": "method", "name": "isArray", "desc": "

Type: Documentation-only

\n

The util.isArray() API has been deprecated. Please use Array.isArray()\ninstead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0045: util.isBoolean()", "type": "method", "name": "isBoolean", "desc": "

Type: Documentation-only

\n

The util.isBoolean() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0046: util.isBuffer()", "type": "method", "name": "isBuffer", "desc": "

Type: Documentation-only

\n

The util.isBuffer() API has been deprecated. Please use\nBuffer.isBuffer() instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0047: util.isDate()", "type": "method", "name": "isDate", "desc": "

Type: Documentation-only

\n

The util.isDate() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0048: util.isError()", "type": "method", "name": "isError", "desc": "

Type: Documentation-only

\n

The util.isError() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0049: util.isFunction()", "type": "method", "name": "isFunction", "desc": "

Type: Documentation-only

\n

The util.isFunction() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0050: util.isNull()", "type": "method", "name": "isNull", "desc": "

Type: Documentation-only

\n

The util.isNull() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0051: util.isNullOrUndefined()", "type": "method", "name": "isNullOrUndefined", "desc": "

Type: Documentation-only

\n

The util.isNullOrUndefined() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0052: util.isNumber()", "type": "method", "name": "isNumber", "desc": "

Type: Documentation-only

\n

The util.isNumber() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0053 util.isObject()", "type": "method", "name": "isObject", "desc": "

Type: Documentation-only

\n

The util.isObject() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0054: util.isPrimitive()", "type": "method", "name": "isPrimitive", "desc": "

Type: Documentation-only

\n

The util.isPrimitive() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0055: util.isRegExp()", "type": "method", "name": "isRegExp", "desc": "

Type: Documentation-only

\n

The util.isRegExp() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0056: util.isString()", "type": "method", "name": "isString", "desc": "

Type: Documentation-only

\n

The util.isString() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0057: util.isSymbol()", "type": "method", "name": "isSymbol", "desc": "

Type: Documentation-only

\n

The util.isSymbol() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0058: util.isUndefined()", "type": "method", "name": "isUndefined", "desc": "

Type: Documentation-only

\n

The util.isUndefined() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0059: util.log()", "type": "method", "name": "log", "desc": "

Type: Documentation-only

\n

The util.log() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0060: util.\\_extend()", "type": "method", "name": "\\_extend", "desc": "

Type: Documentation-only

\n

The util._extend() API has been deprecated.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0064: tls.createSecurePair()", "type": "method", "name": "createSecurePair", "desc": "

Type: Runtime

\n

The tls.createSecurePair() API was deprecated in documentation in Node.js\n0.11.3. Users should use tls.Socket instead.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0069: vm.runInDebugContext(string)", "type": "method", "name": "runInDebugContext", "desc": "

Type: Documentation-only

\n

The DebugContext will be removed in V8 soon and will not be available in Node\n10+.

\n

Note: DebugContext was an experimental API.

\n

\n", "signatures": [ { "params": [ { "name": "string" } ] } ] }, { "textRaw": "DEP0070: async_hooks.currentId()", "type": "method", "name": "currentId", "desc": "

Type: Runtime

\n

async_hooks.currentId() was renamed to async_hooks.executionAsyncId() for\nclarity.

\n

Note: change was made while async_hooks was an experimental API.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0071: async_hooks.triggerId()", "type": "method", "name": "triggerId", "desc": "

Type: Runtime

\n

async_hooks.triggerId() was renamed to async_hooks.triggerAsyncId() for\nclarity.

\n

Note: change was made while async_hooks was an experimental API.

\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0076: tls.parseCertString()", "type": "method", "name": "parseCertString", "desc": "

Type: Documentation-only

\n

tls.parseCertString() is a trivial parsing helper that was made public by\nmistake. This function can usually be replaced with:

\n
const querystring = require('querystring');\nquerystring.parse(str, '\\n', '=');\n
\n

Note: This function is not completely equivalent to querystring.parse(). One\ndifference is that querystring.parse() does url decoding:

\n
> querystring.parse('%E5%A5%BD=1', '\\n', '=');\n{ '好': '1' }\n> tls.parseCertString('%E5%A5%BD=1');\n{ '%E5%A5%BD': '1' }\n
\n

\n", "signatures": [ { "params": [] } ] }, { "textRaw": "DEP0079: Custom inspection function on Objects via .inspect()", "type": "method", "name": "inspect", "desc": "

Type: Documentation-only

\n

Using a property named inspect on an object to specify a custom inspection\nfunction for util.inspect() is deprecated. Use util.inspect.custom\ninstead. For backwards compatibility with Node.js prior to version 6.4.0, both\nmay be specified.

\n

\n", "signatures": [ { "params": [] } ] } ], "type": "module", "displayName": "List of Deprecated APIs" } ], "type": "module", "displayName": "Deprecated APIs" } ] }