{ "type": "module", "source": "doc/api/deprecations.md", "introduced_in": "v7.7.0", "miscs": [ { "textRaw": "Deprecated APIs", "name": "Deprecated APIs", "introduced_in": "v7.7.0", "type": "misc", "desc": "

Node.js may deprecate APIs for any of the following reasons:

\n\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.\nSome Documentation-only deprecations trigger a runtime warning when launched\nwith --pending-deprecation flag (or its alternative,\nNODE_PENDING_DEPRECATION=1 environment variable), similarly to Runtime\ndeprecations below. Documentation-only deprecations that support that flag\nare explicitly labeled as such in the\nlist of Deprecated APIs.

\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 when functionality is or will soon be removed\nfrom Node.js.

", "miscs": [ { "textRaw": "Revoking deprecations", "name": "revoking_deprecations", "desc": "

Occasionally, the deprecation of an API may be reversed. In such situations,\nthis document will be updated with information relevant to the decision.\nHowever, the deprecation identifier will not be modified.

", "type": "misc", "displayName": "Revoking deprecations" }, { "textRaw": "List of deprecated APIs", "name": "list_of_deprecated_apis", "desc": "

", "modules": [ { "textRaw": "DEP0001: `http.OutgoingMessage.prototype.flush`", "name": "dep0001:_`http.outgoingmessage.prototype.flush`", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/31164", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v1.6.0", "pr-url": "https://github.com/nodejs/node/pull/1156", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

OutgoingMessage.prototype.flush() has been removed. Use\nOutgoingMessage.prototype.flushHeaders() instead.

\n

", "type": "module", "displayName": "DEP0001: `http.OutgoingMessage.prototype.flush`" }, { "textRaw": "DEP0002: `require('_linklist')`", "name": "dep0002:_`require('_linklist')`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/12113", "description": "End-of-Life." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v5.0.0", "pr-url": "https://github.com/nodejs/node/pull/3078", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0002: `require('_linklist')`" }, { "textRaw": "DEP0003: `_writableState.buffer`", "name": "dep0003:_`_writablestate.buffer`", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/31165", "description": "End-of-Life" }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.15", "pr-url": "https://github.com/nodejs/node-v0.x-archive/pull/8826", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The _writableState.buffer has been removed. Use _writableState.getBuffer()\ninstead.

\n

", "type": "module", "displayName": "DEP0003: `_writableState.buffer`" }, { "textRaw": "DEP0004: `CryptoStream.prototype.readyState`", "name": "dep0004:_`cryptostream.prototype.readystate`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17882", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "0.4.0", "commit": "9c7f89bf56abd37a796fea621ad2e47dd33d2b82", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The CryptoStream.prototype.readyState property was removed.

\n

", "type": "module", "displayName": "DEP0004: `CryptoStream.prototype.readyState`" }, { "textRaw": "DEP0005: `Buffer()` constructor", "name": "dep0005:_`buffer()`_constructor", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19524", "description": "Runtime deprecation." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/4682", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime (supports --pending-deprecation)

\n

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

\n

As an alternative, use one of the following methods of constructing Buffer\nobjects:

\n\n

Without --pending-deprecation, runtime warnings occur only for code not in\nnode_modules. This means there will not be deprecation warnings for\nBuffer() usage in dependencies. With --pending-deprecation, a runtime\nwarning results no matter where the Buffer() usage occurs.

\n

", "type": "module", "displayName": "DEP0005: `Buffer()` constructor" }, { "textRaw": "DEP0006: `child_process` `options.customFds`", "name": "dep0006:_`child_process`_`options.customfds`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25279", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.14", "description": "Runtime deprecation." }, { "version": "v0.5.11", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\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

", "type": "module", "displayName": "DEP0006: `child_process` `options.customFds`" }, { "textRaw": "DEP0007: Replace `cluster` `worker.suicide` with `worker.exitedAfterDisconnect`", "name": "dep0007:_replace_`cluster`_`worker.suicide`_with_`worker.exitedafterdisconnect`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/13702", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/3747", "description": "Runtime deprecation." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/3743", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

In an earlier version of the Node.js cluster, a boolean property with the name\nsuicide was added to the Worker object. The intent of this property was to\nprovide an indication of how and why the Worker instance exited. In Node.js\n6.0.0, the old property was deprecated and replaced with a new\nworker.exitedAfterDisconnect property. The old property name did not\nprecisely describe the actual semantics and was unnecessarily emotion-laden.

\n

", "type": "module", "displayName": "DEP0007: Replace `cluster` `worker.suicide` with `worker.exitedAfterDisconnect`" }, { "textRaw": "DEP0008: `require('constants')`", "name": "dep0008:_`require('constants')`", "meta": { "changes": [ { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.3.0", "pr-url": "https://github.com/nodejs/node/pull/6534", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The constants module is 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

", "type": "module", "displayName": "DEP0008: `require('constants')`" }, { "textRaw": "DEP0009: `crypto.pbkdf2` without digest", "name": "dep0009:_`crypto.pbkdf2`_without_digest", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/31166", "description": "End-of-Life (for `digest === null`)" }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22861", "description": "Runtime deprecation (for `digest === null`)." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11305", "description": "End-of-Life (for `digest === undefined`)." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/4047", "description": "Runtime deprecation (for `digest === undefined`)." } ] }, "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\ndigest set to undefined will throw a TypeError.

\n

Beginning in Node.js v11.0.0, calling these functions with digest set to\nnull would print a deprecation warning to align with the behavior when digest\nis undefined.

\n

Now, however, passing either undefined or null will throw a TypeError.

\n

", "type": "module", "displayName": "DEP0009: `crypto.pbkdf2` without digest" }, { "textRaw": "DEP0010: `crypto.createCredentials`", "name": "dep0010:_`crypto.createcredentials`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/21153", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.13", "pr-url": "https://github.com/nodejs/node-v0.x-archive/pull/7265", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The crypto.createCredentials() API was removed. Please use\ntls.createSecureContext() instead.

\n

", "type": "module", "displayName": "DEP0010: `crypto.createCredentials`" }, { "textRaw": "DEP0011: `crypto.Credentials`", "name": "dep0011:_`crypto.credentials`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/21153", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.13", "pr-url": "https://github.com/nodejs/node-v0.x-archive/pull/7265", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The crypto.Credentials class was removed. Please use tls.SecureContext\ninstead.

\n

", "type": "module", "displayName": "DEP0011: `crypto.Credentials`" }, { "textRaw": "DEP0012: `Domain.dispose`", "name": "dep0012:_`domain.dispose`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/15412", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.7", "pr-url": "https://github.com/nodejs/node-v0.x-archive/pull/5021", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0012: `Domain.dispose`" }, { "textRaw": "DEP0013: `fs` asynchronous function without callback", "name": "dep0013:_`fs`_asynchronous_function_without_callback", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18668", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/7897", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Calling an asynchronous function without a callback throws a TypeError\nin Node.js 10.0.0 onwards. See https://github.com/nodejs/node/pull/12562.

\n

", "type": "module", "displayName": "DEP0013: `fs` asynchronous function without callback" }, { "textRaw": "DEP0014: `fs.read` legacy String interface", "name": "dep0014:_`fs.read`_legacy_string_interface", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/9683", "description": "End-of-Life." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/4525", "description": "Runtime deprecation." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.1.96", "commit": "c93e0aaf062081db3ec40ac45b3e2c979d5759d6", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0014: `fs.read` legacy String interface" }, { "textRaw": "DEP0015: `fs.readSync` legacy String interface", "name": "dep0015:_`fs.readsync`_legacy_string_interface", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/9683", "description": "End-of-Life." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/4525", "description": "Runtime deprecation." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.1.96", "commit": "c93e0aaf062081db3ec40ac45b3e2c979d5759d6", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0015: `fs.readSync` legacy String interface" }, { "textRaw": "DEP0016: `GLOBAL`/`root`", "name": "dep0016:_`global`/`root`", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/31167", "description": "End-of-Life" }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/1838", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The GLOBAL and root aliases for the global property were deprecated\nin Node.js 6.0.0 and have since been removed.

\n

", "type": "module", "displayName": "DEP0016: `GLOBAL`/`root`" }, { "textRaw": "DEP0017: `Intl.v8BreakIterator`", "name": "dep0017:_`intl.v8breakiterator`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/15238", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/8908", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Intl.v8BreakIterator was a non-standard extension and has been removed.\nSee Intl.Segmenter.

\n

", "type": "module", "displayName": "DEP0017: `Intl.v8BreakIterator`" }, { "textRaw": "DEP0018: Unhandled promise rejections", "name": "dep0018:_unhandled_promise_rejections", "meta": { "changes": [ { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/8217", "description": "Runtime deprecation." } ] }, "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

", "type": "module", "displayName": "DEP0018: Unhandled promise rejections" }, { "textRaw": "DEP0019: `require('.')` resolved outside directory", "name": "dep0019:_`require('.')`_resolved_outside_directory", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26973", "description": "Removed functionality." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v1.8.1", "pr-url": "https://github.com/nodejs/node/pull/1363", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

In certain cases, require('.') could resolve outside the package directory.\nThis behavior has been removed.

\n

", "type": "module", "displayName": "DEP0019: `require('.')` resolved outside directory" }, { "textRaw": "DEP0020: `Server.connections`", "name": "dep0020:_`server.connections`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.9.7", "pr-url": "https://github.com/nodejs/node-v0.x-archive/pull/4595", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

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

\n

", "type": "module", "displayName": "DEP0020: `Server.connections`" }, { "textRaw": "DEP0021: `Server.listenFD`", "name": "dep0021:_`server.listenfd`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/27127", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.7.12", "commit": "41421ff9da1288aa241a5e9dcf915b685ade1c23", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0021: `Server.listenFD`" }, { "textRaw": "DEP0022: `os.tmpDir()`", "name": "dep0022:_`os.tmpdir()`", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/31169", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/6739", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The os.tmpDir() API was deprecated in Node.js 7.0.0 and has since been\nremoved. Please use os.tmpdir() instead.

\n

", "type": "module", "displayName": "DEP0022: `os.tmpDir()`" }, { "textRaw": "DEP0023: `os.getNetworkInterfaces()`", "name": "dep0023:_`os.getnetworkinterfaces()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25280", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.6.0", "commit": "37bb37d151fb6ee4696730e63ff28bb7a4924f97", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0023: `os.getNetworkInterfaces()`" }, { "textRaw": "DEP0024: `REPLServer.prototype.convertToContext()`", "name": "dep0024:_`replserver.prototype.converttocontext()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/13434", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/7829", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The REPLServer.prototype.convertToContext() API has been removed.

\n

", "type": "module", "displayName": "DEP0024: `REPLServer.prototype.convertToContext()`" }, { "textRaw": "DEP0025: `require('sys')`", "name": "dep0025:_`require('sys')`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v1.0.0", "pr-url": "https://github.com/nodejs/node/pull/317", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

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

\n

", "type": "module", "displayName": "DEP0025: `require('sys')`" }, { "textRaw": "DEP0026: `util.print()`", "name": "dep0026:_`util.print()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25377", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.3", "commit": "896b2aa7074fc886efd7dd0a397d694763cac7ce", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

util.print() has been removed. Please use console.log() instead.

\n

", "type": "module", "displayName": "DEP0026: `util.print()`" }, { "textRaw": "DEP0027: `util.puts()`", "name": "dep0027:_`util.puts()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25377", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.3", "commit": "896b2aa7074fc886efd7dd0a397d694763cac7ce", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

util.puts() has been removed. Please use console.log() instead.

\n

", "type": "module", "displayName": "DEP0027: `util.puts()`" }, { "textRaw": "DEP0028: `util.debug()`", "name": "dep0028:_`util.debug()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25377", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.3", "commit": "896b2aa7074fc886efd7dd0a397d694763cac7ce", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

util.debug() has been removed. Please use console.error() instead.

\n

", "type": "module", "displayName": "DEP0028: `util.debug()`" }, { "textRaw": "DEP0029: `util.error()`", "name": "dep0029:_`util.error()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25377", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.3", "commit": "896b2aa7074fc886efd7dd0a397d694763cac7ce", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

util.error() has been removed. Please use console.error() instead.

\n

", "type": "module", "displayName": "DEP0029: `util.error()`" }, { "textRaw": "DEP0030: `SlowBuffer`", "name": "dep0030:_`slowbuffer`", "meta": { "changes": [ { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/5833", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0030: `SlowBuffer`" }, { "textRaw": "DEP0031: `ecdh.setPublicKey()`", "name": "dep0031:_`ecdh.setpublickey()`", "meta": { "changes": [ { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v5.2.0", "pr-url": "https://github.com/nodejs/node/pull/3511", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0031: `ecdh.setPublicKey()`" }, { "textRaw": "DEP0032: `domain` module", "name": "dep0032:_`domain`_module", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v1.4.2", "pr-url": "https://github.com/nodejs/node/pull/943", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The domain module is deprecated and should not be used.

\n

", "type": "module", "displayName": "DEP0032: `domain` module" }, { "textRaw": "DEP0033: `EventEmitter.listenerCount()`", "name": "dep0033:_`eventemitter.listenercount()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v3.2.0", "pr-url": "https://github.com/nodejs/node/pull/2349", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0033: `EventEmitter.listenerCount()`" }, { "textRaw": "DEP0034: `fs.exists(path, callback)`", "name": "dep0034:_`fs.exists(path,_callback)`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v1.0.0", "pr-url": "https://github.com/iojs/io.js/pull/166", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0034: `fs.exists(path, callback)`" }, { "textRaw": "DEP0035: `fs.lchmod(path, mode, callback)`", "name": "dep0035:_`fs.lchmod(path,_mode,_callback)`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.4.7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0035: `fs.lchmod(path, mode, callback)`" }, { "textRaw": "DEP0036: `fs.lchmodSync(path, mode)`", "name": "dep0036:_`fs.lchmodsync(path,_mode)`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.4.7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The fs.lchmodSync(path, mode) API is deprecated.

\n

", "type": "module", "displayName": "DEP0036: `fs.lchmodSync(path, mode)`" }, { "textRaw": "DEP0037: `fs.lchown(path, uid, gid, callback)`", "name": "dep0037:_`fs.lchown(path,_uid,_gid,_callback)`", "meta": { "changes": [ { "version": "v10.6.0", "pr-url": "https://github.com/nodejs/node/pull/21498", "description": "Deprecation revoked." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.4.7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Deprecation revoked

\n

The fs.lchown(path, uid, gid, callback) API was deprecated. The\ndeprecation was revoked because the requisite supporting APIs were added in\nlibuv.

\n

", "type": "module", "displayName": "DEP0037: `fs.lchown(path, uid, gid, callback)`" }, { "textRaw": "DEP0038: `fs.lchownSync(path, uid, gid)`", "name": "dep0038:_`fs.lchownsync(path,_uid,_gid)`", "meta": { "changes": [ { "version": "v10.6.0", "pr-url": "https://github.com/nodejs/node/pull/21498", "description": "Deprecation revoked." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.4.7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Deprecation revoked

\n

The fs.lchownSync(path, uid, gid) API was deprecated. The deprecation was\nrevoked because the requisite supporting APIs were added in libuv.

\n

", "type": "module", "displayName": "DEP0038: `fs.lchownSync(path, uid, gid)`" }, { "textRaw": "DEP0039: `require.extensions`", "name": "dep0039:_`require.extensions`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.10.6", "commit": "7bd8a5a2a60b75266f89f9a32877d55294a3881c", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The require.extensions property is deprecated.

\n

", "type": "module", "displayName": "DEP0039: `require.extensions`" }, { "textRaw": "DEP0040: `punycode` module", "name": "dep0040:_`punycode`_module", "meta": { "changes": [ { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/7941", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0040: `punycode` module" }, { "textRaw": "DEP0041: `NODE_REPL_HISTORY_FILE` environment variable", "name": "dep0041:_`node_repl_history_file`_environment_variable", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/13876", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v3.0.0", "pr-url": "https://github.com/nodejs/node/pull/2224", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The NODE_REPL_HISTORY_FILE environment variable was removed. Please use\nNODE_REPL_HISTORY instead.

\n

", "type": "module", "displayName": "DEP0041: `NODE_REPL_HISTORY_FILE` environment variable" }, { "textRaw": "DEP0042: `tls.CryptoStream`", "name": "dep0042:_`tls.cryptostream`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17882", "description": "End-of-Life." }, { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.11.3", "commit": "af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The tls.CryptoStream class was removed. Please use\ntls.TLSSocket instead.

\n

", "type": "module", "displayName": "DEP0042: `tls.CryptoStream`" }, { "textRaw": "DEP0043: `tls.SecurePair`", "name": "dep0043:_`tls.securepair`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11349", "description": "Runtime deprecation." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/6063", "description": "Documentation-only deprecation." }, { "version": "v0.11.15", "pr-url": [ "https://github.com/nodejs/node-v0.x-archive/pull/8695", "https://github.com/nodejs/node-v0.x-archive/pull/8700" ], "description": "Deprecation revoked." }, { "version": "v0.11.3", "commit": "af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7", "description": "Runtime deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0043: `tls.SecurePair`" }, { "textRaw": "DEP0044: `util.isArray()`", "name": "dep0044:_`util.isarray()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0044: `util.isArray()`" }, { "textRaw": "DEP0045: `util.isBoolean()`", "name": "dep0045:_`util.isboolean()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isBoolean() API is deprecated.

\n

", "type": "module", "displayName": "DEP0045: `util.isBoolean()`" }, { "textRaw": "DEP0046: `util.isBuffer()`", "name": "dep0046:_`util.isbuffer()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

", "type": "module", "displayName": "DEP0046: `util.isBuffer()`" }, { "textRaw": "DEP0047: `util.isDate()`", "name": "dep0047:_`util.isdate()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isDate() API is deprecated.

\n

", "type": "module", "displayName": "DEP0047: `util.isDate()`" }, { "textRaw": "DEP0048: `util.isError()`", "name": "dep0048:_`util.iserror()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isError() API is deprecated.

\n

", "type": "module", "displayName": "DEP0048: `util.isError()`" }, { "textRaw": "DEP0049: `util.isFunction()`", "name": "dep0049:_`util.isfunction()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isFunction() API is deprecated.

\n

", "type": "module", "displayName": "DEP0049: `util.isFunction()`" }, { "textRaw": "DEP0050: `util.isNull()`", "name": "dep0050:_`util.isnull()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isNull() API is deprecated.

\n

", "type": "module", "displayName": "DEP0050: `util.isNull()`" }, { "textRaw": "DEP0051: `util.isNullOrUndefined()`", "name": "dep0051:_`util.isnullorundefined()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isNullOrUndefined() API is deprecated.

\n

", "type": "module", "displayName": "DEP0051: `util.isNullOrUndefined()`" }, { "textRaw": "DEP0052: `util.isNumber()`", "name": "dep0052:_`util.isnumber()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isNumber() API is deprecated.

\n

", "type": "module", "displayName": "DEP0052: `util.isNumber()`" }, { "textRaw": "DEP0053 `util.isObject()`", "name": "dep0053_`util.isobject()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isObject() API is deprecated.

\n

", "type": "module", "displayName": "DEP0053 `util.isObject()`" }, { "textRaw": "DEP0054: `util.isPrimitive()`", "name": "dep0054:_`util.isprimitive()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isPrimitive() API is deprecated.

\n

", "type": "module", "displayName": "DEP0054: `util.isPrimitive()`" }, { "textRaw": "DEP0055: `util.isRegExp()`", "name": "dep0055:_`util.isregexp()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isRegExp() API is deprecated.

\n

", "type": "module", "displayName": "DEP0055: `util.isRegExp()`" }, { "textRaw": "DEP0056: `util.isString()`", "name": "dep0056:_`util.isstring()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isString() API is deprecated.

\n

", "type": "module", "displayName": "DEP0056: `util.isString()`" }, { "textRaw": "DEP0057: `util.isSymbol()`", "name": "dep0057:_`util.issymbol()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isSymbol() API is deprecated.

\n

", "type": "module", "displayName": "DEP0057: `util.isSymbol()`" }, { "textRaw": "DEP0058: `util.isUndefined()`", "name": "dep0058:_`util.isundefined()`", "meta": { "changes": [ { "version": [ "v4.8.6", "v6.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v3.3.1", "v4.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.isUndefined() API is deprecated.

\n

", "type": "module", "displayName": "DEP0058: `util.isUndefined()`" }, { "textRaw": "DEP0059: `util.log()`", "name": "dep0059:_`util.log()`", "meta": { "changes": [ { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/6161", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util.log() API is deprecated.

\n

", "type": "module", "displayName": "DEP0059: `util.log()`" }, { "textRaw": "DEP0060: `util._extend()`", "name": "dep0060:_`util._extend()`", "meta": { "changes": [ { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/4903", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The util._extend() API is deprecated.

\n

", "type": "module", "displayName": "DEP0060: `util._extend()`" }, { "textRaw": "DEP0061: `fs.SyncWriteStream`", "name": "dep0061:_`fs.syncwritestream`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/20735", "description": "End-of-Life." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/10467", "description": "Runtime deprecation." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/6749", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0061: `fs.SyncWriteStream`" }, { "textRaw": "DEP0062: `node --debug`", "name": "dep0062:_`node_--debug`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/10970", "description": "Runtime deprecation." }, { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25828", "description": "End-of-Life." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

", "type": "module", "displayName": "DEP0062: `node --debug`" }, { "textRaw": "DEP0063: `ServerResponse.prototype.writeHeader()`", "name": "dep0063:_`serverresponse.prototype.writeheader()`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11355", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

The ServerResponse.prototype.writeHeader() method was never documented as an\nofficially supported API.

\n

", "type": "module", "displayName": "DEP0063: `ServerResponse.prototype.writeHeader()`" }, { "textRaw": "DEP0064: `tls.createSecurePair()`", "name": "dep0064:_`tls.createsecurepair()`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11349", "description": "Runtime deprecation." }, { "version": "v6.12.0", "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v6.0.0", "pr-url": "https://github.com/nodejs/node/pull/6063", "description": "Documentation-only deprecation." }, { "version": "v0.11.15", "pr-url": [ "https://github.com/nodejs/node-v0.x-archive/pull/8695", "https://github.com/nodejs/node-v0.x-archive/pull/8700" ], "description": "Deprecation revoked." }, { "version": "v0.11.3", "commit": "af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7", "description": "Runtime deprecation." } ] }, "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

", "type": "module", "displayName": "DEP0064: `tls.createSecurePair()`" }, { "textRaw": "DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`", "name": "dep0065:_`repl.repl_mode_magic`_and_`node_repl_mode=magic`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19187", "description": "End-of-Life." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11599", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The repl module's REPL_MODE_MAGIC constant, used for replMode option, has\nbeen removed. Its behavior has been functionally identical to that of\nREPL_MODE_SLOPPY since Node.js 6.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 value, magic, is also\nremoved. Please use sloppy instead.

\n

", "type": "module", "displayName": "DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`" }, { "textRaw": "DEP0066: `OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames`", "name": "dep0066:_`outgoingmessage.prototype._headers,_outgoingmessage.prototype._headernames`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/24167", "description": "Runtime deprecation." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/10941", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime

\n

The http module OutgoingMessage.prototype._headers and\nOutgoingMessage.prototype._headerNames properties are deprecated. Use one of\nthe public methods (e.g. OutgoingMessage.prototype.getHeader(),\nOutgoingMessage.prototype.getHeaders(),\nOutgoingMessage.prototype.getHeaderNames(),\nOutgoingMessage.prototype.hasHeader(),\nOutgoingMessage.prototype.removeHeader(),\nOutgoingMessage.prototype.setHeader()) for working with outgoing headers.

\n

The OutgoingMessage.prototype._headers and\nOutgoingMessage.prototype._headerNames properties were never documented as\nofficially supported properties.

\n

", "type": "module", "displayName": "DEP0066: `OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames`" }, { "textRaw": "DEP0067: `OutgoingMessage.prototype._renderHeaders`", "name": "dep0067:_`outgoingmessage.prototype._renderheaders`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/10941", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

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

\n

The OutgoingMessage.prototype._renderHeaders property was never documented as\nan officially supported API.

\n

", "type": "module", "displayName": "DEP0067: `OutgoingMessage.prototype._renderHeaders`" }, { "textRaw": "DEP0068: `node debug`", "name": "dep0068:_`node_debug`", "meta": { "changes": [ { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11441", "description": "Runtime deprecation." } ] }, "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

", "type": "module", "displayName": "DEP0068: `node debug`" }, { "textRaw": "DEP0069: `vm.runInDebugContext(string)`", "name": "dep0069:_`vm.runindebugcontext(string)`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/13295", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/12815", "description": "Runtime deprecation." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/12243", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\n

DebugContext has been removed in V8 and is not available in Node.js 10+.

\n

DebugContext was an experimental API.

\n

", "type": "module", "displayName": "DEP0069: `vm.runInDebugContext(string)`" }, { "textRaw": "DEP0070: `async_hooks.currentId()`", "name": "dep0070:_`async_hooks.currentid()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14414", "description": "End-of-Life." }, { "version": "v8.2.0", "pr-url": "https://github.com/nodejs/node/pull/13490", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

This change was made while async_hooks was an experimental API.

\n

", "type": "module", "displayName": "DEP0070: `async_hooks.currentId()`" }, { "textRaw": "DEP0071: `async_hooks.triggerId()`", "name": "dep0071:_`async_hooks.triggerid()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14414", "description": "End-of-Life." }, { "version": "v8.2.0", "pr-url": "https://github.com/nodejs/node/pull/13490", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

This change was made while async_hooks was an experimental API.

\n

", "type": "module", "displayName": "DEP0071: `async_hooks.triggerId()`" }, { "textRaw": "DEP0072: `async_hooks.AsyncResource.triggerId()`", "name": "dep0072:_`async_hooks.asyncresource.triggerid()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14414", "description": "End-of-Life." }, { "version": "v8.2.0", "pr-url": "https://github.com/nodejs/node/pull/13490", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

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

\n

This change was made while async_hooks was an experimental API.

\n

", "type": "module", "displayName": "DEP0072: `async_hooks.AsyncResource.triggerId()`" }, { "textRaw": "DEP0073: Several internal properties of `net.Server`", "name": "dep0073:_several_internal_properties_of_`net.server`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17141", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14449", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Accessing several internal, undocumented properties of net.Server instances\nwith inappropriate names is deprecated.

\n

As the original API was undocumented and not generally useful for non-internal\ncode, no replacement API is provided.

\n

", "type": "module", "displayName": "DEP0073: Several internal properties of `net.Server`" }, { "textRaw": "DEP0074: `REPLServer.bufferedCommand`", "name": "dep0074:_`replserver.bufferedcommand`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/13687", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The REPLServer.bufferedCommand property was deprecated in favor of\nREPLServer.clearBufferedCommand().

\n

", "type": "module", "displayName": "DEP0074: `REPLServer.bufferedCommand`" }, { "textRaw": "DEP0075: `REPLServer.parseREPLKeyword()`", "name": "dep0075:_`replserver.parsereplkeyword()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14223", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

REPLServer.parseREPLKeyword() was removed from userland visibility.

\n

", "type": "module", "displayName": "DEP0075: `REPLServer.parseREPLKeyword()`" }, { "textRaw": "DEP0076: `tls.parseCertString()`", "name": "dep0076:_`tls.parsecertstring()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14249", "description": "Runtime deprecation." }, { "version": "v8.6.0", "pr-url": "https://github.com/nodejs/node/pull/14245", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime

\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

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

", "type": "module", "displayName": "DEP0076: `tls.parseCertString()`" }, { "textRaw": "DEP0077: `Module._debug()`", "name": "dep0077:_`module._debug()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/13948", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Module._debug() is deprecated.

\n

The Module._debug() function was never documented as an officially\nsupported API.

\n

", "type": "module", "displayName": "DEP0077: `Module._debug()`" }, { "textRaw": "DEP0078: `REPLServer.turnOffEditorMode()`", "name": "dep0078:_`replserver.turnoffeditormode()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/15136", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

REPLServer.turnOffEditorMode() was removed from userland visibility.

\n

", "type": "module", "displayName": "DEP0078: `REPLServer.turnOffEditorMode()`" }, { "textRaw": "DEP0079: Custom inspection function on objects via `.inspect()`", "name": "dep0079:_custom_inspection_function_on_objects_via_`.inspect()`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/20722", "description": "End-of-Life." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/16393", "description": "Runtime deprecation." }, { "version": "v8.7.0", "pr-url": "https://github.com/nodejs/node/pull/15631", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: End-of-Life

\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 backward compatibility with Node.js prior to version 6.4.0, both\nmay be specified.

\n

", "type": "module", "displayName": "DEP0079: Custom inspection function on objects via `.inspect()`" }, { "textRaw": "DEP0080: `path._makeLong()`", "name": "dep0080:_`path._makelong()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14956", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The internal path._makeLong() was not intended for public use. However,\nuserland modules have found it useful. The internal API is deprecated\nand replaced with an identical, public path.toNamespacedPath() method.

\n

", "type": "module", "displayName": "DEP0080: `path._makeLong()`" }, { "textRaw": "DEP0081: `fs.truncate()` using a file descriptor", "name": "dep0081:_`fs.truncate()`_using_a_file_descriptor", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/15990", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

fs.truncate() fs.truncateSync() usage with a file descriptor is\ndeprecated. Please use fs.ftruncate() or fs.ftruncateSync() to work with\nfile descriptors.

\n

", "type": "module", "displayName": "DEP0081: `fs.truncate()` using a file descriptor" }, { "textRaw": "DEP0082: `REPLServer.prototype.memory()`", "name": "dep0082:_`replserver.prototype.memory()`", "meta": { "changes": [ { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/16242", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

REPLServer.prototype.memory() is only necessary for the internal mechanics of\nthe REPLServer itself. Do not use this function.

\n

", "type": "module", "displayName": "DEP0082: `REPLServer.prototype.memory()`" }, { "textRaw": "DEP0083: Disabling ECDH by setting `ecdhCurve` to `false`", "name": "dep0083:_disabling_ecdh_by_setting_`ecdhcurve`_to_`false`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19794", "description": "End-of-Life." }, { "version": "v9.2.0", "pr-url": "https://github.com/nodejs/node/pull/16130", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life.

\n

The ecdhCurve option to tls.createSecureContext() and tls.TLSSocket could\nbe set to false to disable ECDH entirely on the server only. This mode was\ndeprecated in preparation for migrating to OpenSSL 1.1.0 and consistency with\nthe client and is now unsupported. Use the ciphers parameter instead.

\n

", "type": "module", "displayName": "DEP0083: Disabling ECDH by setting `ecdhCurve` to `false`" }, { "textRaw": "DEP0084: requiring bundled internal dependencies", "name": "dep0084:_requiring_bundled_internal_dependencies", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25138", "description": "This functionality has been removed." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/16392", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Since Node.js versions 4.4.0 and 5.2.0, several modules only intended for\ninternal usage were mistakenly exposed to user code through require(). These\nmodules were:

\n\n

The v8/* modules do not have any exports, and if not imported in a specific\norder would in fact throw errors. As such there are virtually no legitimate use\ncases for importing them through require().

\n

On the other hand, node-inspect may be installed locally through a package\nmanager, as it is published on the npm registry under the same name. No source\ncode modification is necessary if that is done.

\n

", "type": "module", "displayName": "DEP0084: requiring bundled internal dependencies" }, { "textRaw": "DEP0085: AsyncHooks sensitive API", "name": "dep0085:_asynchooks_sensitive_api", "meta": { "changes": [ { "version": "10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17147", "description": "End-of-Life." }, { "version": [ "v8.10.0", "v9.4.0" ], "pr-url": "https://github.com/nodejs/node/pull/16972", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The AsyncHooks sensitive API was never documented and had various minor issues.\nUse the AsyncResource API instead. See\nhttps://github.com/nodejs/node/issues/15572.

\n

", "type": "module", "displayName": "DEP0085: AsyncHooks sensitive API" }, { "textRaw": "DEP0086: Remove `runInAsyncIdScope`", "name": "dep0086:_remove_`runinasyncidscope`", "meta": { "changes": [ { "version": "10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17147", "description": "End-of-Life." }, { "version": [ "v8.10.0", "v9.4.0" ], "pr-url": "https://github.com/nodejs/node/pull/16972", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\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.

\n

", "type": "module", "displayName": "DEP0086: Remove `runInAsyncIdScope`" }, { "textRaw": "DEP0089: `require('assert')`", "name": "dep0089:_`require('assert')`", "meta": { "changes": [ { "version": "v12.8.0", "pr-url": "https://github.com/nodejs/node/pull/28892", "description": "Deprecation revoked." }, { "version": [ "v9.9.0", "v10.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/17002", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Deprecation revoked

\n

Importing assert directly was not recommended as the exposed functions use\nloose equality checks. The deprecation was revoked because use of the assert\nmodule is not discouraged, and the deprecation caused end user confusion.

\n

", "type": "module", "displayName": "DEP0089: `require('assert')`" }, { "textRaw": "DEP0090: Invalid GCM authentication tag lengths", "name": "dep0090:_invalid_gcm_authentication_tag_lengths", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/17825", "description": "End-of-Life." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18017", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Node.js used to support all GCM authentication tag lengths which are accepted by\nOpenSSL when calling decipher.setAuthTag(). Beginning with Node.js\nv11.0.0, only authentication tag lengths of 128, 120, 112, 104, 96, 64, and 32\nbits are allowed. Authentication tags of other lengths are invalid per\nNIST SP 800-38D.

\n

", "type": "module", "displayName": "DEP0090: Invalid GCM authentication tag lengths" }, { "textRaw": "DEP0091: `crypto.DEFAULT_ENCODING`", "name": "dep0091:_`crypto.default_encoding`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18333", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The crypto.DEFAULT_ENCODING property is deprecated.

\n

", "type": "module", "displayName": "DEP0091: `crypto.DEFAULT_ENCODING`" }, { "textRaw": "DEP0092: Top-level `this` bound to `module.exports`", "name": "dep0092:_top-level_`this`_bound_to_`module.exports`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/16878", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

Assigning properties to the top-level this as an alternative\nto module.exports is deprecated. Developers should use exports\nor module.exports instead.

\n

", "type": "module", "displayName": "DEP0092: Top-level `this` bound to `module.exports`" }, { "textRaw": "DEP0093: `crypto.fips` is deprecated and replaced.", "name": "dep0093:_`crypto.fips`_is_deprecated_and_replaced.", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18335", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The crypto.fips property is deprecated. Please use crypto.setFips()\nand crypto.getFips() instead.

\n

", "type": "module", "displayName": "DEP0093: `crypto.fips` is deprecated and replaced." }, { "textRaw": "DEP0094: Using `assert.fail()` with more than one argument.", "name": "dep0094:_using_`assert.fail()`_with_more_than_one_argument.", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18418", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Using assert.fail() with more than one argument is deprecated. Use\nassert.fail() with only one argument or use a different assert module\nmethod.

\n

", "type": "module", "displayName": "DEP0094: Using `assert.fail()` with more than one argument." }, { "textRaw": "DEP0095: `timers.enroll()`", "name": "dep0095:_`timers.enroll()`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18066", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

timers.enroll() is deprecated. Please use the publicly documented\nsetTimeout() or setInterval() instead.

\n

", "type": "module", "displayName": "DEP0095: `timers.enroll()`" }, { "textRaw": "DEP0096: `timers.unenroll()`", "name": "dep0096:_`timers.unenroll()`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18066", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

timers.unenroll() is deprecated. Please use the publicly documented\nclearTimeout() or clearInterval() instead.

\n

", "type": "module", "displayName": "DEP0096: `timers.unenroll()`" }, { "textRaw": "DEP0097: `MakeCallback` with `domain` property", "name": "dep0097:_`makecallback`_with_`domain`_property", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17417", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Users of MakeCallback that add the domain property to carry context,\nshould start using the async_context variant of MakeCallback or\nCallbackScope, or the high-level AsyncResource class.

\n

", "type": "module", "displayName": "DEP0097: `MakeCallback` with `domain` property" }, { "textRaw": "DEP0098: AsyncHooks embedder `AsyncResource.emitBefore` and `AsyncResource.emitAfter` APIs", "name": "dep0098:_asynchooks_embedder_`asyncresource.emitbefore`_and_`asyncresource.emitafter`_apis", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26530", "description": "End-of-Life" }, { "version": [ "v8.12.0", "v9.6.0", "v10.0.0" ], "pr-url": "https://github.com/nodejs/node/pull/18632", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The embedded API provided by AsyncHooks exposes .emitBefore() and\n.emitAfter() methods which are very easy to use incorrectly which can lead\nto 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.

\n

", "type": "module", "displayName": "DEP0098: AsyncHooks embedder `AsyncResource.emitBefore` and `AsyncResource.emitAfter` APIs" }, { "textRaw": "DEP0099: Async context-unaware `node::MakeCallback` C++ APIs", "name": "dep0099:_async_context-unaware_`node::makecallback`_c++_apis", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18632", "description": "Compile-time deprecation." } ] }, "desc": "

Type: Compile-time

\n

Certain versions of node::MakeCallback APIs available to native modules are\ndeprecated. Please use the versions of the API that accept an async_context\nparameter.

\n

", "type": "module", "displayName": "DEP0099: Async context-unaware `node::MakeCallback` C++ APIs" }, { "textRaw": "DEP0100: `process.assert()`", "name": "dep0100:_`process.assert()`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18666", "description": "Runtime deprecation." }, { "version": "v0.3.7", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime

\n

process.assert() is deprecated. Please use the assert module instead.

\n

This was never a documented feature.

\n

", "type": "module", "displayName": "DEP0100: `process.assert()`" }, { "textRaw": "DEP0101: `--with-lttng`", "name": "dep0101:_`--with-lttng`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18982", "description": "End-of-Life." } ] }, "desc": "

Type: End-of-Life

\n

The --with-lttng compile-time option has been removed.

\n

", "type": "module", "displayName": "DEP0101: `--with-lttng`" }, { "textRaw": "DEP0102: Using `noAssert` in `Buffer#(read|write)` operations.", "name": "dep0102:_using_`noassert`_in_`buffer#(read|write)`_operations.", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18395", "description": "End-of-Life." } ] }, "desc": "

Type: End-of-Life

\n

Using the noAssert argument has no functionality anymore. All input is going\nto be verified, no matter if it is set to true or not. Skipping the verification\ncould lead to hard to find errors and crashes.

\n

", "type": "module", "displayName": "DEP0102: Using `noAssert` in `Buffer#(read|write)` operations." }, { "textRaw": "DEP0103: `process.binding('util').is[...]` typechecks", "name": "dep0103:_`process.binding('util').is[...]`_typechecks", "meta": { "changes": [ { "version": "v10.9.0", "pr-url": "https://github.com/nodejs/node/pull/22004", "description": "Superseded by [DEP0111](#DEP0111)." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18415", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

Using process.binding() in general should be avoided. The type checking\nmethods in particular can be replaced by using util.types.

\n

This deprecation has been superseded by the deprecation of the\nprocess.binding() API (DEP0111).

\n

", "type": "module", "displayName": "DEP0103: `process.binding('util').is[...]` typechecks" }, { "textRaw": "DEP0104: `process.env` string coercion", "name": "dep0104:_`process.env`_string_coercion", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/18990", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

When assigning a non-string property to process.env, the assigned value is\nimplicitly converted to a string. This behavior is deprecated if the assigned\nvalue is not a string, boolean, or number. In the future, such assignment may\nresult in a thrown error. Please convert the property to a string before\nassigning it to process.env.

\n

", "type": "module", "displayName": "DEP0104: `process.env` string coercion" }, { "textRaw": "DEP0105: `decipher.finaltol`", "name": "dep0105:_`decipher.finaltol`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/19941", "description": "End-of-Life." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19353", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

decipher.finaltol() has never been documented and was an alias for\ndecipher.final(). This API has been removed, and it is recommended to use\ndecipher.final() instead.

\n

", "type": "module", "displayName": "DEP0105: `decipher.finaltol`" }, { "textRaw": "DEP0106: `crypto.createCipher` and `crypto.createDecipher`", "name": "dep0106:_`crypto.createcipher`_and_`crypto.createdecipher`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22089", "description": "Runtime deprecation." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19343", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime

\n

Using crypto.createCipher() and crypto.createDecipher() should be\navoided as they use a weak key derivation function (MD5 with no salt) and static\ninitialization vectors. It is recommended to derive a key using\ncrypto.pbkdf2() or crypto.scrypt() and to use\ncrypto.createCipheriv() and crypto.createDecipheriv() to obtain the\nCipher and Decipher objects respectively.

\n

", "type": "module", "displayName": "DEP0106: `crypto.createCipher` and `crypto.createDecipher`" }, { "textRaw": "DEP0107: `tls.convertNPNProtocols()`", "name": "dep0107:_`tls.convertnpnprotocols()`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/20736", "description": "End-of-Life." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19403", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

This was an undocumented helper function not intended for use outside Node.js\ncore and obsoleted by the removal of NPN (Next Protocol Negotiation) support.

\n

", "type": "module", "displayName": "DEP0107: `tls.convertNPNProtocols()`" }, { "textRaw": "DEP0108: `zlib.bytesRead`", "name": "dep0108:_`zlib.bytesread`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/23308", "description": "Runtime deprecation." }, { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/19414", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Runtime

\n

Deprecated alias for zlib.bytesWritten. This original name was chosen\nbecause it also made sense to interpret the value as the number of bytes\nread by the engine, but is inconsistent with other streams in Node.js that\nexpose values under these names.

\n

", "type": "module", "displayName": "DEP0108: `zlib.bytesRead`" }, { "textRaw": "DEP0109: `http`, `https`, and `tls` support for invalid URLs", "name": "dep0109:_`http`,_`https`,_and_`tls`_support_for_invalid_urls", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/20270", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Some previously supported (but strictly invalid) URLs were accepted through the\nhttp.request(), http.get(), https.request(),\nhttps.get(), and tls.checkServerIdentity() APIs because those were\naccepted by the legacy url.parse() API. The mentioned APIs now use the WHATWG\nURL parser that requires strictly valid URLs. Passing an invalid URL is\ndeprecated and support will be removed in the future.

\n

", "type": "module", "displayName": "DEP0109: `http`, `https`, and `tls` support for invalid URLs" }, { "textRaw": "DEP0110: `vm.Script` cached data", "name": "dep0110:_`vm.script`_cached_data", "meta": { "changes": [ { "version": "v10.6.0", "pr-url": "https://github.com/nodejs/node/pull/20300", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The produceCachedData option is deprecated. Use\nscript.createCachedData() instead.

\n

", "type": "module", "displayName": "DEP0110: `vm.Script` cached data" }, { "textRaw": "DEP0111: `process.binding()`", "name": "dep0111:_`process.binding()`", "meta": { "changes": [ { "version": "v10.9.0", "pr-url": "https://github.com/nodejs/node/pull/22004", "description": "Documentation-only deprecation." }, { "version": "v11.12.0", "pr-url": "https://github.com/nodejs/node/pull/26500", "description": "Added support for `--pending-deprecation`." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

process.binding() is for use by Node.js internal code only.

\n

", "type": "module", "displayName": "DEP0111: `process.binding()`" }, { "textRaw": "DEP0112: `dgram` private APIs", "name": "dep0112:_`dgram`_private_apis", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22011", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The dgram module previously contained several APIs that were never meant to\naccessed outside of Node.js core: Socket.prototype._handle,\nSocket.prototype._receiving, Socket.prototype._bindState,\nSocket.prototype._queue, Socket.prototype._reuseAddr,\nSocket.prototype._healthCheck(), Socket.prototype._stopReceiving(), and\ndgram._createSocketHandle().

\n

", "type": "module", "displayName": "DEP0112: `dgram` private APIs" }, { "textRaw": "DEP0113: `Cipher.setAuthTag()`, `Decipher.getAuthTag()`", "name": "dep0113:_`cipher.setauthtag()`,_`decipher.getauthtag()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26249", "description": "End-of-Life." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22126", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Cipher.setAuthTag() and Decipher.getAuthTag() are no longer available. They\nwere never documented and would throw when called.

\n

", "type": "module", "displayName": "DEP0113: `Cipher.setAuthTag()`, `Decipher.getAuthTag()`" }, { "textRaw": "DEP0114: `crypto._toBuf()`", "name": "dep0114:_`crypto._tobuf()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25338", "description": "End-of-Life." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22501", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

The crypto._toBuf() function was not designed to be used by modules outside\nof Node.js core and was removed.

\n

", "type": "module", "displayName": "DEP0114: `crypto._toBuf()`" }, { "textRaw": "DEP0115: `crypto.prng()`, `crypto.pseudoRandomBytes()`, `crypto.rng()`", "name": "dep0115:_`crypto.prng()`,_`crypto.pseudorandombytes()`,_`crypto.rng()`", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": [ "https://github.com/nodejs/node/pull/22519", "https://github.com/nodejs/node/pull/23017" ], "description": "Added documentation-only deprecation with `--pending-deprecation` support." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

In recent versions of Node.js, there is no difference between\ncrypto.randomBytes() and crypto.pseudoRandomBytes(). The latter is\ndeprecated along with the undocumented aliases crypto.prng() and\ncrypto.rng() in favor of crypto.randomBytes() and may be removed in a\nfuture release.

\n

", "type": "module", "displayName": "DEP0115: `crypto.prng()`, `crypto.pseudoRandomBytes()`, `crypto.rng()`" }, { "textRaw": "DEP0116: Legacy URL API", "name": "dep0116:_legacy_url_api", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22715", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

The Legacy URL API is deprecated. This includes url.format(),\nurl.parse(), url.resolve(), and the legacy urlObject. Please\nuse the WHATWG URL API instead.

\n

", "type": "module", "displayName": "DEP0116: Legacy URL API" }, { "textRaw": "DEP0117: Native crypto handles", "name": "dep0117:_native_crypto_handles", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/27011", "description": "End-of-Life." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22747", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Previous versions of Node.js exposed handles to internal native objects through\nthe _handle property of the Cipher, Decipher, DiffieHellman,\nDiffieHellmanGroup, ECDH, Hash, Hmac, Sign, and Verify classes.\nThe _handle property has been removed because improper use of the native\nobject can lead to crashing the application.

\n

", "type": "module", "displayName": "DEP0117: Native crypto handles" }, { "textRaw": "DEP0118: `dns.lookup()` support for a falsy host name", "name": "dep0118:_`dns.lookup()`_support_for_a_falsy_host_name", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/23173", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Previous versions of Node.js supported dns.lookup() with a falsy host name\nlike dns.lookup(false) due to backward compatibility.\nThis behavior is undocumented and is thought to be unused in real world apps.\nIt will become an error in future versions of Node.js.

\n

", "type": "module", "displayName": "DEP0118: `dns.lookup()` support for a falsy host name" }, { "textRaw": "DEP0119: `process.binding('uv').errname()` private API", "name": "dep0119:_`process.binding('uv').errname()`_private_api", "meta": { "changes": [ { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/23597", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

process.binding('uv').errname() is deprecated. Please use\nutil.getSystemErrorName() instead.

\n

", "type": "module", "displayName": "DEP0119: `process.binding('uv').errname()` private API" }, { "textRaw": "DEP0120: Windows Performance Counter support", "name": "dep0120:_windows_performance_counter_support", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/24862", "description": "End-of-Life." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22485", "description": "Runtime deprecation." } ] }, "desc": "

Type: End-of-Life

\n

Windows Performance Counter support has been removed from Node.js. The\nundocumented COUNTER_NET_SERVER_CONNECTION(),\nCOUNTER_NET_SERVER_CONNECTION_CLOSE(), COUNTER_HTTP_SERVER_REQUEST(),\nCOUNTER_HTTP_SERVER_RESPONSE(), COUNTER_HTTP_CLIENT_REQUEST(), and\nCOUNTER_HTTP_CLIENT_RESPONSE() functions have been deprecated.

\n

", "type": "module", "displayName": "DEP0120: Windows Performance Counter support" }, { "textRaw": "DEP0121: `net._setSimultaneousAccepts()`", "name": "dep0121:_`net._setsimultaneousaccepts()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/23760", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The undocumented net._setSimultaneousAccepts() function was originally\nintended for debugging and performance tuning when using the child_process\nand cluster modules on Windows. The function is not generally useful and\nis being removed. See discussion here:\nhttps://github.com/nodejs/node/issues/18391

\n

", "type": "module", "displayName": "DEP0121: `net._setSimultaneousAccepts()`" }, { "textRaw": "DEP0122: `tls` `Server.prototype.setOptions()`", "name": "dep0122:_`tls`_`server.prototype.setoptions()`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/23820", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Please use Server.prototype.setSecureContext() instead.

\n

", "type": "module", "displayName": "DEP0122: `tls` `Server.prototype.setOptions()`" }, { "textRaw": "DEP0123: setting the TLS ServerName to an IP address", "name": "dep0123:_setting_the_tls_servername_to_an_ip_address", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/23329", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Setting the TLS ServerName to an IP address is not permitted by\nRFC 6066. This will be ignored in a future version.

\n

", "type": "module", "displayName": "DEP0123: setting the TLS ServerName to an IP address" }, { "textRaw": "DEP0124: using `REPLServer.rli`", "name": "dep0124:_using_`replserver.rli`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26260", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

This property is a reference to the instance itself.

\n

", "type": "module", "displayName": "DEP0124: using `REPLServer.rli`" }, { "textRaw": "DEP0125: `require('_stream_wrap')`", "name": "dep0125:_`require('_stream_wrap')`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26245", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The _stream_wrap module is deprecated.

\n

", "type": "module", "displayName": "DEP0125: `require('_stream_wrap')`" }, { "textRaw": "DEP0126: `timers.active()`", "name": "dep0126:_`timers.active()`", "meta": { "changes": [ { "version": "v11.14.0", "pr-url": "https://github.com/nodejs/node/pull/26760", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The previously undocumented timers.active() is deprecated.\nPlease use the publicly documented timeout.refresh() instead.\nIf re-referencing the timeout is necessary, timeout.ref() can be used\nwith no performance impact since Node.js 10.

\n

", "type": "module", "displayName": "DEP0126: `timers.active()`" }, { "textRaw": "DEP0127: `timers._unrefActive()`", "name": "dep0127:_`timers._unrefactive()`", "meta": { "changes": [ { "version": "v11.14.0", "pr-url": "https://github.com/nodejs/node/pull/26760", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

The previously undocumented and \"private\" timers._unrefActive() is deprecated.\nPlease use the publicly documented timeout.refresh() instead.\nIf unreferencing the timeout is necessary, timeout.unref() can be used\nwith no performance impact since Node.js 10.

\n

", "type": "module", "displayName": "DEP0127: `timers._unrefActive()`" }, { "textRaw": "DEP0128: modules with an invalid `main` entry and an `index.js` file", "name": "dep0128:_modules_with_an_invalid_`main`_entry_and_an_`index.js`_file", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26823", "description": "Documentation-only." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

Modules that have an invalid main entry (e.g., ./does-not-exist.js) and\nalso have an index.js file in the top level directory will resolve the\nindex.js file. That is deprecated and is going to throw an error in future\nNode.js versions.

\n

", "type": "module", "displayName": "DEP0128: modules with an invalid `main` entry and an `index.js` file" }, { "textRaw": "DEP0129: `ChildProcess._channel`", "name": "dep0129:_`childprocess._channel`", "meta": { "changes": [ { "version": "v13.0.0", "pr-url": "https://github.com/nodejs/node/pull/27949", "description": "Runtime deprecation." }, { "version": "v11.14.0", "pr-url": "https://github.com/nodejs/node/pull/26982", "description": "Documentation-only." } ] }, "desc": "

Type: Runtime

\n

The _channel property of child process objects returned by spawn() and\nsimilar functions is not intended for public use. Use ChildProcess.channel\ninstead.

\n

", "type": "module", "displayName": "DEP0129: `ChildProcess._channel`" }, { "textRaw": "DEP0130: `Module.createRequireFromPath()`", "name": "dep0130:_`module.createrequirefrompath()`", "meta": { "changes": [ { "version": "v13.0.0", "pr-url": "https://github.com/nodejs/node/pull/27951", "description": "Runtime deprecation." }, { "version": "v12.2.0", "pr-url": "https://github.com/nodejs/node/pull/27405", "description": "Documentation-only." } ] }, "desc": "

Type: Runtime

\n

Module.createRequireFromPath() is deprecated. Please use\nmodule.createRequire() instead.

\n

", "type": "module", "displayName": "DEP0130: `Module.createRequireFromPath()`" }, { "textRaw": "DEP0131: Legacy HTTP parser", "name": "dep0131:_legacy_http_parser", "meta": { "changes": [ { "version": "v13.0.0", "pr-url": "https://github.com/nodejs/node/pull/29589", "description": "This feature has been removed." }, { "version": "v12.3.0", "pr-url": "https://github.com/nodejs/node/pull/27498", "description": "Documentation-only." } ] }, "desc": "

Type: End-of-Life

\n

The legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0,\nis deprecated and has been removed in v13.0.0. Prior to v13.0.0, the\n--http-parser=legacy command-line flag could be used to revert to using the\nlegacy parser.

\n

", "type": "module", "displayName": "DEP0131: Legacy HTTP parser" }, { "textRaw": "DEP0132: `worker.terminate()` with callback", "name": "dep0132:_`worker.terminate()`_with_callback", "meta": { "changes": [ { "version": "v12.5.0", "pr-url": "https://github.com/nodejs/node/pull/28021", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Passing a callback to worker.terminate() is deprecated. Use the returned\nPromise instead, or a listener to the worker’s 'exit' event.

\n

", "type": "module", "displayName": "DEP0132: `worker.terminate()` with callback" }, { "textRaw": "DEP0133: `http` `connection`", "name": "dep0133:_`http`_`connection`", "meta": { "changes": [ { "version": "v12.12.0", "pr-url": "https://github.com/nodejs/node/pull/29015", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

Prefer response.socket over response.connection and\nrequest.socket over request.connection.

\n

", "type": "module", "displayName": "DEP0133: `http` `connection`" }, { "textRaw": "DEP0134: `process._tickCallback`", "name": "dep0134:_`process._tickcallback`", "meta": { "changes": [ { "version": "v12.12.0", "pr-url": "https://github.com/nodejs/node/pull/29781", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

The process._tickCallback property was never documented as\nan officially supported API.

\n

", "type": "module", "displayName": "DEP0134: `process._tickCallback`" }, { "textRaw": "DEP0135: `WriteStream.open()` and `ReadStream.open()` are internal", "name": "dep0135:_`writestream.open()`_and_`readstream.open()`_are_internal", "meta": { "changes": [ { "version": "v13.0.0", "pr-url": "https://github.com/nodejs/node/pull/29061" } ] }, "desc": "

Type: Runtime

\n

WriteStream.open() and ReadStream.open() are undocumented internal\nAPIs that do not make sense to use in userland. File streams should always be\nopened through their corresponding factory methods fs.createWriteStream()\nand fs.createReadStream()) or by passing a file descriptor in options.

\n

", "type": "module", "displayName": "DEP0135: `WriteStream.open()` and `ReadStream.open()` are internal" }, { "textRaw": "DEP0136: `http` `finished`", "name": "dep0136:_`http`_`finished`", "meta": { "changes": [ { "version": [ "v13.4.0", "v12.16.0" ], "pr-url": "https://github.com/nodejs/node/pull/28679", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

response.finished indicates whether response.end() has been\ncalled, not whether 'finish' has been emitted and the underlying data\nis flushed.

\n

Use response.writableFinished or response.writableEnded\naccordingly instead to avoid the ambigiuty.

\n

To maintain existing behaviour response.finished should be replaced with\nresponse.writableEnded.

\n

", "type": "module", "displayName": "DEP0136: `http` `finished`" }, { "textRaw": "DEP0137: Closing fs.FileHandle on garbage collection", "name": "dep0137:_closing_fs.filehandle_on_garbage_collection", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/28396", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime

\n

Allowing a fs.FileHandle object to be closed on garbage collection is\ndeprecated. In the future, doing so may result in a thrown error that will\nterminate the process.

\n

Please ensure that all fs.FileHandle objects are explicitly closed using\nFileHandle.prototype.close() when the fs.FileHandle is no longer needed:

\n
const fsPromises = require('fs').promises;\nasync function openAndClose() {\n  let filehandle;\n  try {\n    filehandle = await fsPromises.open('thefile.txt', 'r');\n  } finally {\n    if (filehandle !== undefined)\n      await filehandle.close();\n  }\n}\n
\n

", "type": "module", "displayName": "DEP0137: Closing fs.FileHandle on garbage collection" }, { "textRaw": "DEP0138: `process.mainModule`", "name": "dep0138:_`process.mainmodule`", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/32232", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

process.mainModule is a CommonJS-only feature while process global\nobject is shared with non-CommonJS environment. Its use within ECMAScript\nmodules is unsupported.

\n

It is deprecated in favor of require.main, because it serves the same\npurpose and is only available on CommonJS environment.

\n

", "type": "module", "displayName": "DEP0138: `process.mainModule`" }, { "textRaw": "DEP0139: `process.umask()` with no arguments", "name": "dep0139:_`process.umask()`_with_no_arguments", "meta": { "changes": [ { "version": "v14.0.0", "pr-url": "https://github.com/nodejs/node/pull/32499", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

Calling process.umask() with no argument causes the process-wide umask to be\nwritten twice. This introduces a race condition between threads, and is a\npotential security vulnerability. There is no safe, cross-platform alternative\nAPI.

\n

", "type": "module", "displayName": "DEP0139: `process.umask()` with no arguments" }, { "textRaw": "DEP0140: Use `request.destroy()` instead of `request.abort()`", "name": "dep0140:_use_`request.destroy()`_instead_of_`request.abort()`", "meta": { "changes": [ { "version": "v14.1.0", "pr-url": "https://github.com/nodejs/node/pull/32807", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

Use request.destroy() instead of request.abort().

\n

", "type": "module", "displayName": "DEP0140: Use `request.destroy()` instead of `request.abort()`" }, { "textRaw": "DEP0141: `repl.inputStream` and `repl.outputStream`", "name": "dep0141:_`repl.inputstream`_and_`repl.outputstream`", "meta": { "changes": [ { "version": "v14.3.0", "pr-url": "https://github.com/nodejs/node/pull/33294", "description": "Documentation-only (supports [`--pending-deprecation`][])." } ] }, "desc": "

Type: Documentation-only (supports --pending-deprecation)

\n

The repl module exported the input and output stream twice. Use .input\ninstead of .inputStream and .output instead of .outputStream.

\n

", "type": "module", "displayName": "DEP0141: `repl.inputStream` and `repl.outputStream`" }, { "textRaw": "DEP0142: `repl._builtinLibs`", "name": "dep0142:_`repl._builtinlibs`", "meta": { "changes": [ { "version": "v14.3.0", "pr-url": "https://github.com/nodejs/node/pull/33294", "description": "Documentation-only (supports [`--pending-deprecation`][])." } ] }, "desc": "

Type: Documentation-only

\n

The repl module exports a _builtinLibs property that contains an array with\nnative modules. It was incomplete so far and instead it's better to rely upon\nrequire('module').builtinModules.

\n

", "type": "module", "displayName": "DEP0142: `repl._builtinLibs`" }, { "textRaw": "DEP0143: `Transform._transformState`", "name": "dep0143:_`transform._transformstate`", "meta": { "changes": [ { "version": "v14.5.0", "pr-url": "https://github.com/nodejs/node/pull/33126", "description": "Runtime deprecation." } ] }, "desc": "

Type: Runtime\nTransform._transformState will be removed in future versions where it is\nno longer required due to simplification of the implementation.

\n

", "type": "module", "displayName": "DEP0143: `Transform._transformState`" }, { "textRaw": "DEP0144: `module.parent`", "name": "dep0144:_`module.parent`", "meta": { "changes": [ { "version": "v14.6.0", "pr-url": "https://github.com/nodejs/node/pull/32217", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

A CommonJS module can access the first module that required it using\nmodule.parent. This feature is deprecated because it does not work\nconsistently in the presence of ECMAScript modules and because it gives an\ninaccurate representation of the CommonJS module graph.

\n

Some modules use it to check if they are the entry point of the current process.\nInstead, it is recommended to compare require.main and module:

\n
if (require.main === module) {\n  // Code section that will run only if current file is the entry point.\n}\n
\n

When looking for the CommonJS modules that have required the current one,\nrequire.cache and module.children can be used:

\n
const moduleParents = Object.values(require.cache)\n  .filter((m) => m.children.includes(module));\n
\n

", "type": "module", "displayName": "DEP0144: `module.parent`" }, { "textRaw": "DEP0145: `socket.bufferSize`", "name": "dep0145:_`socket.buffersize`", "meta": { "changes": [ { "version": "v14.6.0", "pr-url": "https://github.com/nodejs/node/pull/34088", "description": "Documentation-only deprecation." } ] }, "desc": "

Type: Documentation-only

\n

socket.bufferSize is just an alias for writable.writableLength.

", "type": "module", "displayName": "DEP0145: `socket.bufferSize`" } ], "type": "misc", "displayName": "List of deprecated APIs" } ] } ] }