%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
{ "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": "<p>Node.js APIs might be deprecated for any of the following reasons:</p>\n<ul>\n<li>Use of the API is unsafe.</li>\n<li>An improved alternative API is available.</li>\n<li>Breaking changes to the API are expected in a future major release.</li>\n</ul>\n<p>Node.js uses three kinds of Deprecations:</p>\n<ul>\n<li>Documentation-only</li>\n<li>Runtime</li>\n<li>End-of-Life</li>\n</ul>\n<p>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 <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a> flag (or its alternative,\n<code>NODE_PENDING_DEPRECATION=1</code> environment variable), similarly to Runtime\ndeprecations below. Documentation-only deprecations that support that flag\nare explicitly labeled as such in the\n<a href=\"#list-of-deprecated-apis\">list of Deprecated APIs</a>.</p>\n<p>A Runtime deprecation will, by default, generate a process warning that will\nbe printed to <code>stderr</code> the first time the deprecated API is used. When the\n<a href=\"cli.html#--throw-deprecation\"><code>--throw-deprecation</code></a> command-line flag is used, a Runtime deprecation will\ncause an error to be thrown.</p>\n<p>An End-of-Life deprecation is used when functionality is or will soon be removed\nfrom Node.js.</p>", "miscs": [ { "textRaw": "Revoking deprecations", "name": "revoking_deprecations", "desc": "<p>Occasionally, the deprecation of an API might be reversed. In such situations,\nthis document will be updated with information relevant to the decision.\nHowever, the deprecation identifier will not be modified.</p>", "type": "misc", "displayName": "Revoking deprecations" }, { "textRaw": "List of deprecated APIs", "name": "list_of_deprecated_apis", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>OutgoingMessage.prototype.flush()</code> has been removed. Use\n<code>OutgoingMessage.prototype.flushHeaders()</code> instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>_linklist</code> module is deprecated. Please use a userland alternative.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>_writableState.buffer</code> has been removed. Use <code>_writableState.getBuffer()</code>\ninstead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": "v0.4.0", "commit": "9c7f89bf56abd37a796fea621ad2e47dd33d2b82", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The <code>CryptoStream.prototype.readyState</code> property was removed.</p>", "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": "<p>Type: Runtime (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The <code>Buffer()</code> function and <code>new Buffer()</code> constructor are deprecated due to\nAPI usability issues that can lead to accidental security issues.</p>\n<p>As an alternative, use one of the following methods of constructing <code>Buffer</code>\nobjects:</p>\n<ul>\n<li><a href=\"buffer.html#static-method-bufferallocsize-fill-encoding\"><code>Buffer.alloc(size[, fill[, encoding]])</code></a>: Create a <code>Buffer</code> with\n<em>initialized</em> memory.</li>\n<li><a href=\"buffer.html#static-method-bufferallocunsafesize\"><code>Buffer.allocUnsafe(size)</code></a>: Create a <code>Buffer</code> with\n<em>uninitialized</em> memory.</li>\n<li><a href=\"buffer.html#static-method-bufferallocunsafeslowsize\"><code>Buffer.allocUnsafeSlow(size)</code></a>: Create a <code>Buffer</code> with <em>uninitialized</em>\nmemory.</li>\n<li><a href=\"buffer.html#static-method-bufferfromarray\"><code>Buffer.from(array)</code></a>: Create a <code>Buffer</code> with a copy of <code>array</code></li>\n<li><a href=\"buffer.html#static-method-bufferfromarraybuffer-byteoffset-length\"><code>Buffer.from(arrayBuffer[, byteOffset[, length]])</code></a> -\nCreate a <code>Buffer</code> that wraps the given <code>arrayBuffer</code>.</li>\n<li><a href=\"buffer.html#static-method-bufferfrombuffer\"><code>Buffer.from(buffer)</code></a>: Create a <code>Buffer</code> that copies <code>buffer</code>.</li>\n<li><a href=\"buffer.html#static-method-bufferfromstring-encoding\"><code>Buffer.from(string[, encoding])</code></a>: Create a <code>Buffer</code>\nthat copies <code>string</code>.</li>\n</ul>\n<p>Without <code>--pending-deprecation</code>, runtime warnings occur only for code not in\n<code>node_modules</code>. This means there will not be deprecation warnings for\n<code>Buffer()</code> usage in dependencies. With <code>--pending-deprecation</code>, a runtime\nwarning results no matter where the <code>Buffer()</code> usage occurs.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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.10", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>Within the <a href=\"child_process.html\"><code>child_process</code></a> module's <code>spawn()</code>, <code>fork()</code>, and <code>exec()</code>\nmethods, the <code>options.customFds</code> option is deprecated. The <code>options.stdio</code>\noption should be used instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>In an earlier version of the Node.js <code>cluster</code>, a boolean property with the name\n<code>suicide</code> was added to the <code>Worker</code> object. The intent of this property was to\nprovide an indication of how and why the <code>Worker</code> instance exited. In Node.js\n6.0.0, the old property was deprecated and replaced with a new\n<a href=\"cluster.html#workerexitedafterdisconnect\"><code>worker.exitedAfterDisconnect</code></a> property. The old property name did not\nprecisely describe the actual semantics and was unnecessarily emotion-laden.</p>", "type": "module", "displayName": "DEP0007: Replace `cluster` `worker.suicide` with `worker.exitedAfterDisconnect`" }, { "textRaw": "DEP0008: `require('node:constants')`", "name": "dep0008:_`require('node: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": "<p>Type: Documentation-only</p>\n<p>The <code>node:constants</code> module is deprecated. When requiring access to constants\nrelevant to specific Node.js builtin modules, developers should instead refer\nto the <code>constants</code> property exposed by the relevant module. For instance,\n<code>require('node:fs').constants</code> and <code>require('node:os').constants</code>.</p>", "type": "module", "displayName": "DEP0008: `require('node: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": "<p>Type: End-of-Life</p>\n<p>Use of the <a href=\"crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback\"><code>crypto.pbkdf2()</code></a> API without specifying a digest was deprecated\nin Node.js 6.0 because the method defaulted to using the non-recommended\n<code>'SHA1'</code> digest. Previously, a deprecation warning was printed. Starting in\nNode.js 8.0.0, calling <code>crypto.pbkdf2()</code> or <code>crypto.pbkdf2Sync()</code> with\n<code>digest</code> set to <code>undefined</code> will throw a <code>TypeError</code>.</p>\n<p>Beginning in Node.js v11.0.0, calling these functions with <code>digest</code> set to\n<code>null</code> would print a deprecation warning to align with the behavior when <code>digest</code>\nis <code>undefined</code>.</p>\n<p>Now, however, passing either <code>undefined</code> or <code>null</code> will throw a <code>TypeError</code>.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>crypto.createCredentials()</code> API was removed. Please use\n<a href=\"tls.html#tlscreatesecurecontextoptions\"><code>tls.createSecureContext()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>crypto.Credentials</code> class was removed. Please use <a href=\"tls.html#tlscreatesecurecontextoptions\"><code>tls.SecureContext</code></a>\ninstead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>Domain.dispose()</code> has been removed. Recover from failed I/O actions\nexplicitly via error event handlers set on the domain instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Calling an asynchronous function without a callback throws a <code>TypeError</code>\nin Node.js 10.0.0 onwards. See <a href=\"https://github.com/nodejs/node/pull/12562\">https://github.com/nodejs/node/pull/12562</a>.</p>", "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.12.0", "v4.8.6" ], "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/4525", "description": "Runtime deprecation." }, { "version": "v0.1.96", "commit": "c93e0aaf062081db3ec40ac45b3e2c979d5759d6", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The <a href=\"fs.html#fsreadfd-buffer-offset-length-position-callback\"><code>fs.read()</code></a> legacy <code>String</code> interface is deprecated. Use the <code>Buffer</code>\nAPI as mentioned in the documentation instead.</p>", "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.12.0", "v4.8.6" ], "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/4525", "description": "Runtime deprecation." }, { "version": "v0.1.96", "commit": "c93e0aaf062081db3ec40ac45b3e2c979d5759d6", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The <a href=\"fs.html#fsreadsyncfd-buffer-offset-length-position\"><code>fs.readSync()</code></a> legacy <code>String</code> interface is deprecated. Use the\n<code>Buffer</code> API as mentioned in the documentation instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>GLOBAL</code> and <code>root</code> aliases for the <code>global</code> property were deprecated\nin Node.js 6.0.0 and have since been removed.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>Intl.v8BreakIterator</code> was a non-standard extension and has been removed.\nSee <a href=\"https://github.com/tc39/proposal-intl-segmenter\"><code>Intl.Segmenter</code></a>.</p>", "type": "module", "displayName": "DEP0017: `Intl.v8BreakIterator`" }, { "textRaw": "DEP0018: Unhandled promise rejections", "name": "dep0018:_unhandled_promise_rejections", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/35316", "description": "End-of-Life." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/8217", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>Unhandled promise rejections are deprecated. By default, promise rejections\nthat are not handled terminate the Node.js process with a non-zero exit\ncode. To change the way Node.js treats unhandled rejections, use the\n<a href=\"cli.html#--unhandled-rejectionsmode\"><code>--unhandled-rejections</code></a> command-line option.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>In certain cases, <code>require('.')</code> could resolve outside the package directory.\nThis behavior has been removed.</p>", "type": "module", "displayName": "DEP0019: `require('.')` resolved outside directory" }, { "textRaw": "DEP0020: `Server.connections`", "name": "dep0020:_`server.connections`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33647", "description": "Server.connections has been removed." }, { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>Server.connections</code> property was deprecated in Node.js v0.9.7 and has\nbeen removed. Please use the <a href=\"net.html#servergetconnectionscallback\"><code>Server.getConnections()</code></a> method instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>Server.listenFD()</code> method was deprecated and removed. Please use\n<a href=\"net.html#serverlistenhandle-backlog-callback\"><code>Server.listen({fd: <number>})</code></a> instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>os.tmpDir()</code> API was deprecated in Node.js 7.0.0 and has since been\nremoved. Please use <a href=\"os.html#ostmpdir\"><code>os.tmpdir()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>os.getNetworkInterfaces()</code> method is deprecated. Please use the\n<a href=\"os.html#osnetworkinterfaces\"><code>os.networkInterfaces()</code></a> method instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>REPLServer.prototype.convertToContext()</code> API has been removed.</p>", "type": "module", "displayName": "DEP0024: `REPLServer.prototype.convertToContext()`" }, { "textRaw": "DEP0025: `require('node:sys')`", "name": "dep0025:_`require('node:sys')`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Runtime</p>\n<p>The <code>node:sys</code> module is deprecated. Please use the <a href=\"util.html\"><code>util</code></a> module instead.</p>", "type": "module", "displayName": "DEP0025: `require('node: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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>util.print()</code> has been removed. Please use <a href=\"console.html#consolelogdata-args\"><code>console.log()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>util.puts()</code> has been removed. Please use <a href=\"console.html#consolelogdata-args\"><code>console.log()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>util.debug()</code> has been removed. Please use <a href=\"console.html#consoleerrordata-args\"><code>console.error()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p><code>util.error()</code> has been removed. Please use <a href=\"console.html#consoleerrordata-args\"><code>console.error()</code></a> instead.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"buffer.html#class-slowbuffer\"><code>SlowBuffer</code></a> class is deprecated. Please use\n<a href=\"buffer.html#static-method-bufferallocunsafeslowsize\"><code>Buffer.allocUnsafeSlow(size)</code></a> instead.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"crypto.html#ecdhsetpublickeypublickey-encoding\"><code>ecdh.setPublicKey()</code></a> method is now deprecated as its inclusion in the\nAPI is not useful.</p>", "type": "module", "displayName": "DEP0031: `ecdh.setPublicKey()`" }, { "textRaw": "DEP0032: `node:domain` module", "name": "dep0032:_`node:domain`_module", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"domain.html\"><code>domain</code></a> module is deprecated and should not be used.</p>", "type": "module", "displayName": "DEP0032: `node:domain` module" }, { "textRaw": "DEP0033: `EventEmitter.listenerCount()`", "name": "dep0033:_`eventemitter.listenercount()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"events.html#eventslistenercountemitter-eventname\"><code>events.listenerCount(emitter, eventName)</code></a> API is\ndeprecated. Please use <a href=\"events.html#emitterlistenercounteventname\"><code>emitter.listenerCount(eventName)</code></a> instead.</p>", "type": "module", "displayName": "DEP0033: `EventEmitter.listenerCount()`" }, { "textRaw": "DEP0034: `fs.exists(path, callback)`", "name": "dep0034:_`fs.exists(path,_callback)`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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/166", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"fs.html#fsexistspath-callback\"><code>fs.exists(path, callback)</code></a> API is deprecated. Please use\n<a href=\"fs.html#fsstatpath-options-callback\"><code>fs.stat()</code></a> or <a href=\"fs.html#fsaccesspath-mode-callback\"><code>fs.access()</code></a> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"fs.html#fslchmodpath-mode-callback\"><code>fs.lchmod(path, mode, callback)</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0035: `fs.lchmod(path, mode, callback)`" }, { "textRaw": "DEP0036: `fs.lchmodSync(path, mode)`", "name": "dep0036:_`fs.lchmodsync(path,_mode)`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"fs.html#fslchmodsyncpath-mode\"><code>fs.lchmodSync(path, mode)</code></a> API is deprecated.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Deprecation revoked</p>\n<p>The <a href=\"fs.html#fslchownpath-uid-gid-callback\"><code>fs.lchown(path, uid, gid, callback)</code></a> API was deprecated. The\ndeprecation was revoked because the requisite supporting APIs were added in\nlibuv.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Deprecation revoked</p>\n<p>The <a href=\"fs.html#fslchownsyncpath-uid-gid\"><code>fs.lchownSync(path, uid, gid)</code></a> API was deprecated. The deprecation was\nrevoked because the requisite supporting APIs were added in libuv.</p>", "type": "module", "displayName": "DEP0038: `fs.lchownSync(path, uid, gid)`" }, { "textRaw": "DEP0039: `require.extensions`", "name": "dep0039:_`require.extensions`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"modules.html#requireextensions\"><code>require.extensions</code></a> property is deprecated.</p>", "type": "module", "displayName": "DEP0039: `require.extensions`" }, { "textRaw": "DEP0040: `node:punycode` module", "name": "dep0040:_`node:punycode`_module", "meta": { "changes": [ { "version": "v16.6.0", "pr-url": "https://github.com/nodejs/node/pull/38444", "description": "Added support for `--pending-deprecation`." }, { "version": "v7.0.0", "pr-url": "https://github.com/nodejs/node/pull/7941", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The <a href=\"punycode.html\"><code>punycode</code></a> module is deprecated. Please use a userland alternative\ninstead.</p>", "type": "module", "displayName": "DEP0040: `node: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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <code>NODE_REPL_HISTORY_FILE</code> environment variable was removed. Please use\n<code>NODE_REPL_HISTORY</code> instead.</p>", "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": [ "v6.12.0", "v4.8.6" ], "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": "<p>Type: End-of-Life</p>\n<p>The <a href=\"tls.html#class-tlscryptostream\"><code>tls.CryptoStream</code></a> class was removed. Please use\n<a href=\"tls.html#class-tlstlssocket\"><code>tls.TLSSocket</code></a> instead.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"tls.html#class-tlssecurepair\"><code>tls.SecurePair</code></a> class is deprecated. Please use\n<a href=\"tls.html#class-tlstlssocket\"><code>tls.TLSSocket</code></a> instead.</p>", "type": "module", "displayName": "DEP0043: `tls.SecurePair`" }, { "textRaw": "DEP0044: `util.isArray()`", "name": "dep0044:_`util.isarray()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisarrayobject\"><code>util.isArray()</code></a> API is deprecated. Please use <code>Array.isArray()</code>\ninstead.</p>", "type": "module", "displayName": "DEP0044: `util.isArray()`" }, { "textRaw": "DEP0045: `util.isBoolean()`", "name": "dep0045:_`util.isboolean()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisbooleanobject\"><code>util.isBoolean()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0045: `util.isBoolean()`" }, { "textRaw": "DEP0046: `util.isBuffer()`", "name": "dep0046:_`util.isbuffer()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisbufferobject\"><code>util.isBuffer()</code></a> API is deprecated. Please use\n<a href=\"buffer.html#static-method-bufferisbufferobj\"><code>Buffer.isBuffer()</code></a> instead.</p>", "type": "module", "displayName": "DEP0046: `util.isBuffer()`" }, { "textRaw": "DEP0047: `util.isDate()`", "name": "dep0047:_`util.isdate()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisdateobject\"><code>util.isDate()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0047: `util.isDate()`" }, { "textRaw": "DEP0048: `util.isError()`", "name": "dep0048:_`util.iserror()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utiliserrorobject\"><code>util.isError()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0048: `util.isError()`" }, { "textRaw": "DEP0049: `util.isFunction()`", "name": "dep0049:_`util.isfunction()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisfunctionobject\"><code>util.isFunction()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0049: `util.isFunction()`" }, { "textRaw": "DEP0050: `util.isNull()`", "name": "dep0050:_`util.isnull()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisnullobject\"><code>util.isNull()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0050: `util.isNull()`" }, { "textRaw": "DEP0051: `util.isNullOrUndefined()`", "name": "dep0051:_`util.isnullorundefined()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisnullorundefinedobject\"><code>util.isNullOrUndefined()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0051: `util.isNullOrUndefined()`" }, { "textRaw": "DEP0052: `util.isNumber()`", "name": "dep0052:_`util.isnumber()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisnumberobject\"><code>util.isNumber()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0052: `util.isNumber()`" }, { "textRaw": "DEP0053: `util.isObject()`", "name": "dep0053:_`util.isobject()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisobjectobject\"><code>util.isObject()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0053: `util.isObject()`" }, { "textRaw": "DEP0054: `util.isPrimitive()`", "name": "dep0054:_`util.isprimitive()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisprimitiveobject\"><code>util.isPrimitive()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0054: `util.isPrimitive()`" }, { "textRaw": "DEP0055: `util.isRegExp()`", "name": "dep0055:_`util.isregexp()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisregexpobject\"><code>util.isRegExp()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0055: `util.isRegExp()`" }, { "textRaw": "DEP0056: `util.isString()`", "name": "dep0056:_`util.isstring()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisstringobject\"><code>util.isString()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0056: `util.isString()`" }, { "textRaw": "DEP0057: `util.isSymbol()`", "name": "dep0057:_`util.issymbol()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilissymbolobject\"><code>util.isSymbol()</code></a> API is deprecated.</p>", "type": "module", "displayName": "DEP0057: `util.isSymbol()`" }, { "textRaw": "DEP0058: `util.isUndefined()`", "name": "dep0058:_`util.isundefined()`", "meta": { "changes": [ { "version": [ "v6.12.0", "v4.8.6" ], "pr-url": "https://github.com/nodejs/node/pull/10116", "description": "A deprecation code has been assigned." }, { "version": [ "v4.0.0", "v3.3.1" ], "pr-url": "https://github.com/nodejs/node/pull/2447", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utilisundefinedobject\"><code>util.isUndefined()</code></a> API is deprecated.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#utillogstring\"><code>util.log()</code></a> API is deprecated.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"util.html#util_extendtarget-source\"><code>util._extend()</code></a> API is deprecated.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>fs.SyncWriteStream</code> class was never intended to be a publicly accessible\nAPI and has been removed. No alternative API is available. Please use a userland\nalternative.</p>", "type": "module", "displayName": "DEP0061: `fs.SyncWriteStream`" }, { "textRaw": "DEP0062: `node --debug`", "name": "dep0062:_`node_--debug`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/25828", "description": "End-of-Life." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/10970", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>--debug</code> activates the legacy V8 debugger interface, which was removed as\nof V8 5.8. It is replaced by Inspector which is activated with <code>--inspect</code>\ninstead.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <code>node:http</code> module <code>ServerResponse.prototype.writeHeader()</code> API is\ndeprecated. Please use <code>ServerResponse.prototype.writeHead()</code> instead.</p>\n<p>The <code>ServerResponse.prototype.writeHeader()</code> method was never documented as an\nofficially supported API.</p>", "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": "<p>Type: Runtime</p>\n<p>The <code>tls.createSecurePair()</code> API was deprecated in documentation in Node.js\n0.11.3. Users should use <code>tls.Socket</code> instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>node:repl</code> module's <code>REPL_MODE_MAGIC</code> constant, used for <code>replMode</code> option,\nhas been removed. Its behavior has been functionally identical to that of\n<code>REPL_MODE_SLOPPY</code> since Node.js 6.0.0, when V8 5.0 was imported. Please use\n<code>REPL_MODE_SLOPPY</code> instead.</p>\n<p>The <code>NODE_REPL_MODE</code> environment variable is used to set the underlying\n<code>replMode</code> of an interactive <code>node</code> session. Its value, <code>magic</code>, is also\nremoved. Please use <code>sloppy</code> instead.</p>", "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": "<p>Type: Runtime</p>\n<p>The <code>node:http</code> module <code>OutgoingMessage.prototype._headers</code> and\n<code>OutgoingMessage.prototype._headerNames</code> properties are deprecated. Use one of\nthe public methods (e.g. <code>OutgoingMessage.prototype.getHeader()</code>,\n<code>OutgoingMessage.prototype.getHeaders()</code>,\n<code>OutgoingMessage.prototype.getHeaderNames()</code>,\n<code>OutgoingMessage.prototype.getRawHeaderNames()</code>,\n<code>OutgoingMessage.prototype.hasHeader()</code>,\n<code>OutgoingMessage.prototype.removeHeader()</code>,\n<code>OutgoingMessage.prototype.setHeader()</code>) for working with outgoing headers.</p>\n<p>The <code>OutgoingMessage.prototype._headers</code> and\n<code>OutgoingMessage.prototype._headerNames</code> properties were never documented as\nofficially supported properties.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <code>node:http</code> module <code>OutgoingMessage.prototype._renderHeaders()</code> API is\ndeprecated.</p>\n<p>The <code>OutgoingMessage.prototype._renderHeaders</code> property was never documented as\nan officially supported API.</p>", "type": "module", "displayName": "DEP0067: `OutgoingMessage.prototype._renderHeaders`" }, { "textRaw": "DEP0068: `node debug`", "name": "dep0068:_`node_debug`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33648", "description": "The legacy `node debug` command was removed." }, { "version": "v8.0.0", "pr-url": "https://github.com/nodejs/node/pull/11441", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>node debug</code> corresponds to the legacy CLI debugger which has been replaced with\na V8-inspector based CLI debugger available through <code>node inspect</code>.</p>", "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": "<p>Type: End-of-Life</p>\n<p>DebugContext has been removed in V8 and is not available in Node.js 10+.</p>\n<p>DebugContext was an experimental API.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>async_hooks.currentId()</code> was renamed to <code>async_hooks.executionAsyncId()</code> for\nclarity.</p>\n<p>This change was made while <code>async_hooks</code> was an experimental API.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>async_hooks.triggerId()</code> was renamed to <code>async_hooks.triggerAsyncId()</code> for\nclarity.</p>\n<p>This change was made while <code>async_hooks</code> was an experimental API.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>async_hooks.AsyncResource.triggerId()</code> was renamed to\n<code>async_hooks.AsyncResource.triggerAsyncId()</code> for clarity.</p>\n<p>This change was made while <code>async_hooks</code> was an experimental API.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Accessing several internal, undocumented properties of <code>net.Server</code> instances\nwith inappropriate names is deprecated.</p>\n<p>As the original API was undocumented and not generally useful for non-internal\ncode, no replacement API is provided.</p>", "type": "module", "displayName": "DEP0073: Several internal properties of `net.Server`" }, { "textRaw": "DEP0074: `REPLServer.bufferedCommand`", "name": "dep0074:_`replserver.bufferedcommand`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33286", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/13687", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The <code>REPLServer.bufferedCommand</code> property was deprecated in favor of\n<a href=\"repl.html#replserverclearbufferedcommand\"><code>REPLServer.clearBufferedCommand()</code></a>.</p>", "type": "module", "displayName": "DEP0074: `REPLServer.bufferedCommand`" }, { "textRaw": "DEP0075: `REPLServer.parseREPLKeyword()`", "name": "dep0075:_`replserver.parsereplkeyword()`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33286", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/14223", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>REPLServer.parseREPLKeyword()</code> was removed from userland visibility.</p>", "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": "<p>Type: Runtime</p>\n<p><code>tls.parseCertString()</code> is a trivial parsing helper that was made public by\nmistake. This function can usually be replaced with:</p>\n<pre><code class=\"language-js\">const querystring = require('querystring');\nquerystring.parse(str, '\\n', '=');\n</code></pre>\n<p>This function is not completely equivalent to <code>querystring.parse()</code>. One\ndifference is that <code>querystring.parse()</code> does url decoding:</p>\n<pre><code class=\"language-console\">> querystring.parse('%E5%A5%BD=1', '\\n', '=');\n{ '好': '1' }\n> tls.parseCertString('%E5%A5%BD=1');\n{ '%E5%A5%BD': '1' }\n</code></pre>", "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": "<p>Type: Runtime</p>\n<p><code>Module._debug()</code> is deprecated.</p>\n<p>The <code>Module._debug()</code> function was never documented as an officially\nsupported API.</p>", "type": "module", "displayName": "DEP0077: `Module._debug()`" }, { "textRaw": "DEP0078: `REPLServer.turnOffEditorMode()`", "name": "dep0078:_`replserver.turnoffeditormode()`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33286", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/15136", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>REPLServer.turnOffEditorMode()</code> was removed from userland visibility.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Using a property named <code>inspect</code> on an object to specify a custom inspection\nfunction for <a href=\"util.html#utilinspectobject-options\"><code>util.inspect()</code></a> is deprecated. Use <a href=\"util.html#utilinspectcustom\"><code>util.inspect.custom</code></a>\ninstead. For backward compatibility with Node.js prior to version 6.4.0, both\ncan be specified.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The internal <code>path._makeLong()</code> was not intended for public use. However,\nuserland modules have found it useful. The internal API is deprecated\nand replaced with an identical, public <code>path.toNamespacedPath()</code> method.</p>", "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": "<p>Type: Runtime</p>\n<p><code>fs.truncate()</code> <code>fs.truncateSync()</code> usage with a file descriptor is\ndeprecated. Please use <code>fs.ftruncate()</code> or <code>fs.ftruncateSync()</code> to work with\nfile descriptors.</p>", "type": "module", "displayName": "DEP0081: `fs.truncate()` using a file descriptor" }, { "textRaw": "DEP0082: `REPLServer.prototype.memory()`", "name": "dep0082:_`replserver.prototype.memory()`", "meta": { "changes": [ { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33286", "description": "End-of-Life." }, { "version": "v9.0.0", "pr-url": "https://github.com/nodejs/node/pull/16242", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>REPLServer.prototype.memory()</code> is only necessary for the internal mechanics of\nthe <code>REPLServer</code> itself. Do not use this function.</p>", "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": "<p>Type: End-of-Life.</p>\n<p>The <code>ecdhCurve</code> option to <code>tls.createSecureContext()</code> and <code>tls.TLSSocket</code> could\nbe set to <code>false</code> 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 <code>ciphers</code> parameter instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>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 <code>require()</code>. These\nmodules were:</p>\n<ul>\n<li><code>v8/tools/codemap</code></li>\n<li><code>v8/tools/consarray</code></li>\n<li><code>v8/tools/csvparser</code></li>\n<li><code>v8/tools/logreader</code></li>\n<li><code>v8/tools/profile_view</code></li>\n<li><code>v8/tools/profile</code></li>\n<li><code>v8/tools/SourceMap</code></li>\n<li><code>v8/tools/splaytree</code></li>\n<li><code>v8/tools/tickprocessor-driver</code></li>\n<li><code>v8/tools/tickprocessor</code></li>\n<li><code>node-inspect/lib/_inspect</code> (from 7.6.0)</li>\n<li><code>node-inspect/lib/internal/inspect_client</code> (from 7.6.0)</li>\n<li><code>node-inspect/lib/internal/inspect_repl</code> (from 7.6.0)</li>\n</ul>\n<p>The <code>v8/*</code> 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 <code>require()</code>.</p>\n<p>On the other hand, <code>node-inspect</code> can 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.</p>", "type": "module", "displayName": "DEP0084: requiring bundled internal dependencies" }, { "textRaw": "DEP0085: AsyncHooks sensitive API", "name": "dep0085:_asynchooks_sensitive_api", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17147", "description": "End-of-Life." }, { "version": [ "v9.4.0", "v8.10.0" ], "pr-url": "https://github.com/nodejs/node/pull/16972", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The AsyncHooks sensitive API was never documented and had various minor issues.\nUse the <code>AsyncResource</code> API instead. See\n<a href=\"https://github.com/nodejs/node/issues/15572\">https://github.com/nodejs/node/issues/15572</a>.</p>", "type": "module", "displayName": "DEP0085: AsyncHooks sensitive API" }, { "textRaw": "DEP0086: Remove `runInAsyncIdScope`", "name": "dep0086:_remove_`runinasyncidscope`", "meta": { "changes": [ { "version": "v10.0.0", "pr-url": "https://github.com/nodejs/node/pull/17147", "description": "End-of-Life." }, { "version": [ "v9.4.0", "v8.10.0" ], "pr-url": "https://github.com/nodejs/node/pull/16972", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p><code>runInAsyncIdScope</code> doesn't emit the <code>'before'</code> or <code>'after'</code> event and can thus\ncause a lot of issues. See <a href=\"https://github.com/nodejs/node/issues/14328\">https://github.com/nodejs/node/issues/14328</a>.</p>\n<!-- md-lint skip-deprecation DEP0087 -->\n<!-- md-lint skip-deprecation DEP0088 -->", "type": "module", "displayName": "DEP0086: Remove `runInAsyncIdScope`" }, { "textRaw": "DEP0089: `require('node:assert')`", "name": "dep0089:_`require('node:assert')`", "meta": { "changes": [ { "version": "v12.8.0", "pr-url": "https://github.com/nodejs/node/pull/28892", "description": "Deprecation revoked." }, { "version": [ "v9.9.0", "v8.13.0" ], "pr-url": "https://github.com/nodejs/node/pull/17002", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Deprecation revoked</p>\n<p>Importing assert directly was not recommended as the exposed functions use\nloose equality checks. The deprecation was revoked because use of the\n<code>node:assert</code> module is not discouraged, and the deprecation caused developer\nconfusion.</p>", "type": "module", "displayName": "DEP0089: `require('node: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": "<p>Type: End-of-Life</p>\n<p>Node.js used to support all GCM authentication tag lengths which are accepted by\nOpenSSL when calling <a href=\"crypto.html#deciphersetauthtagbuffer-encoding\"><code>decipher.setAuthTag()</code></a>. 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\n<a href=\"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf\">NIST SP 800-38D</a>.</p>", "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": "<p>Type: Runtime</p>\n<p>The <a href=\"crypto.html#cryptodefault_encoding\"><code>crypto.DEFAULT_ENCODING</code></a> property is deprecated.</p>", "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": "<p>Type: Documentation-only</p>\n<p>Assigning properties to the top-level <code>this</code> as an alternative\nto <code>module.exports</code> is deprecated. Developers should use <code>exports</code>\nor <code>module.exports</code> instead.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <a href=\"crypto.html#cryptofips\"><code>crypto.fips</code></a> property is deprecated. Please use <code>crypto.setFips()</code>\nand <code>crypto.getFips()</code> instead.</p>", "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": "<p>Type: Runtime</p>\n<p>Using <code>assert.fail()</code> with more than one argument is deprecated. Use\n<code>assert.fail()</code> with only one argument or use a different <code>node:assert</code> module\nmethod.</p>", "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": "<p>Type: Runtime</p>\n<p><code>timers.enroll()</code> is deprecated. Please use the publicly documented\n<a href=\"timers.html#settimeoutcallback-delay-args\"><code>setTimeout()</code></a> or <a href=\"timers.html#setintervalcallback-delay-args\"><code>setInterval()</code></a> instead.</p>", "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": "<p>Type: Runtime</p>\n<p><code>timers.unenroll()</code> is deprecated. Please use the publicly documented\n<a href=\"timers.html#cleartimeouttimeout\"><code>clearTimeout()</code></a> or <a href=\"timers.html#clearintervaltimeout\"><code>clearInterval()</code></a> instead.</p>", "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": "<p>Type: Runtime</p>\n<p>Users of <code>MakeCallback</code> that add the <code>domain</code> property to carry context,\nshould start using the <code>async_context</code> variant of <code>MakeCallback</code> or\n<code>CallbackScope</code>, or the high-level <code>AsyncResource</code> class.</p>", "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": [ "v10.0.0", "v9.6.0", "v8.12.0" ], "pr-url": "https://github.com/nodejs/node/pull/18632", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>The embedded API provided by AsyncHooks exposes <code>.emitBefore()</code> and\n<code>.emitAfter()</code> methods which are very easy to use incorrectly which can lead\nto unrecoverable errors.</p>\n<p>Use <a href=\"async_context.html#asyncresourceruninasyncscopefn-thisarg-args\"><code>asyncResource.runInAsyncScope()</code></a> API instead which provides a much\nsafer, and more convenient, alternative. See\n<a href=\"https://github.com/nodejs/node/pull/18513\">https://github.com/nodejs/node/pull/18513</a>.</p>", "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": "<p>Type: Compile-time</p>\n<p>Certain versions of <code>node::MakeCallback</code> APIs available to native modules are\ndeprecated. Please use the versions of the API that accept an <code>async_context</code>\nparameter.</p>", "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": "<p>Type: Runtime</p>\n<p><code>process.assert()</code> is deprecated. Please use the <a href=\"assert.html\"><code>assert</code></a> module instead.</p>\n<p>This was never a documented feature.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>--with-lttng</code> compile-time option has been removed.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Using the <code>noAssert</code> argument has no functionality anymore. All input is\nverified regardless of the value of <code>noAssert</code>. Skipping the verification\ncould lead to hard-to-find errors and crashes.</p>", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>Using <code>process.binding()</code> in general should be avoided. The type checking\nmethods in particular can be replaced by using <a href=\"util.html#utiltypes\"><code>util.types</code></a>.</p>\n<p>This deprecation has been superseded by the deprecation of the\n<code>process.binding()</code> API (<a href=\"#DEP0111\">DEP0111</a>).</p>", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>When assigning a non-string property to <a href=\"process.html#processenv\"><code>process.env</code></a>, 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 might\nresult in a thrown error. Please convert the property to a string before\nassigning it to <code>process.env</code>.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>decipher.finaltol()</code> has never been documented and was an alias for\n<a href=\"crypto.html#decipherfinaloutputencoding\"><code>decipher.final()</code></a>. This API has been removed, and it is recommended to use\n<a href=\"crypto.html#decipherfinaloutputencoding\"><code>decipher.final()</code></a> instead.</p>", "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": "<p>Type: Runtime</p>\n<p>Using <a href=\"crypto.html#cryptocreatecipheralgorithm-password-options\"><code>crypto.createCipher()</code></a> and <a href=\"crypto.html#cryptocreatedecipheralgorithm-password-options\"><code>crypto.createDecipher()</code></a> must 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\n<a href=\"crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback\"><code>crypto.pbkdf2()</code></a> or <a href=\"crypto.html#cryptoscryptpassword-salt-keylen-options-callback\"><code>crypto.scrypt()</code></a> with random salts and to use\n<a href=\"crypto.html#cryptocreatecipherivalgorithm-key-iv-options\"><code>crypto.createCipheriv()</code></a> and <a href=\"crypto.html#cryptocreatedecipherivalgorithm-key-iv-options\"><code>crypto.createDecipheriv()</code></a> to obtain the\n<a href=\"crypto.html#class-cipher\"><code>Cipher</code></a> and <a href=\"crypto.html#class-decipher\"><code>Decipher</code></a> objects respectively.</p>", "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": "<p>Type: End-of-Life</p>\n<p>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.</p>", "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": "<p>Type: Runtime</p>\n<p>Deprecated alias for <a href=\"zlib.html#zlibbyteswritten\"><code>zlib.bytesWritten</code></a>. 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.</p>", "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": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/36853", "description": "End-of-Life." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/20270", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>Some previously supported (but strictly invalid) URLs were accepted through the\n<a href=\"http.html#httprequestoptions-callback\"><code>http.request()</code></a>, <a href=\"http.html#httpgetoptions-callback\"><code>http.get()</code></a>, <a href=\"https.html#httpsrequestoptions-callback\"><code>https.request()</code></a>,\n<a href=\"https.html#httpsgetoptions-callback\"><code>https.get()</code></a>, and <a href=\"tls.html#tlscheckserveridentityhostname-cert\"><code>tls.checkServerIdentity()</code></a> APIs because those were\naccepted by the legacy <code>url.parse()</code> 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.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <code>produceCachedData</code> option is deprecated. Use\n<a href=\"vm.html#scriptcreatecacheddata\"><code>script.createCachedData()</code></a> instead.</p>", "type": "module", "displayName": "DEP0110: `vm.Script` cached data" }, { "textRaw": "DEP0111: `process.binding()`", "name": "dep0111:_`process.binding()`", "meta": { "changes": [ { "version": "v11.12.0", "pr-url": "https://github.com/nodejs/node/pull/26500", "description": "Added support for `--pending-deprecation`." }, { "version": "v10.9.0", "pr-url": "https://github.com/nodejs/node/pull/22004", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p><code>process.binding()</code> is for use by Node.js internal code only.</p>", "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": "<p>Type: Runtime</p>\n<p>The <code>node:dgram</code> module previously contained several APIs that were never meant\nto accessed outside of Node.js core: <code>Socket.prototype._handle</code>,\n<code>Socket.prototype._receiving</code>, <code>Socket.prototype._bindState</code>,\n<code>Socket.prototype._queue</code>, <code>Socket.prototype._reuseAddr</code>,\n<code>Socket.prototype._healthCheck()</code>, <code>Socket.prototype._stopReceiving()</code>, and\n<code>dgram._createSocketHandle()</code>.</p>", "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": "<p>Type: End-of-Life</p>\n<p><code>Cipher.setAuthTag()</code> and <code>Decipher.getAuthTag()</code> are no longer available. They\nwere never documented and would throw when called.</p>", "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": "<p>Type: End-of-Life</p>\n<p>The <code>crypto._toBuf()</code> function was not designed to be used by modules outside\nof Node.js core and was removed.</p>\n<!--lint disable nodejs-yaml-comments -->", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<!--lint enable nodejs-yaml-comments -->\n<p>In recent versions of Node.js, there is no difference between\n<a href=\"crypto.html#cryptorandombytessize-callback\"><code>crypto.randomBytes()</code></a> and <code>crypto.pseudoRandomBytes()</code>. The latter is\ndeprecated along with the undocumented aliases <code>crypto.prng()</code> and\n<code>crypto.rng()</code> in favor of <a href=\"crypto.html#cryptorandombytessize-callback\"><code>crypto.randomBytes()</code></a> and might be removed in a\nfuture release.</p>", "type": "module", "displayName": "DEP0115: `crypto.prng()`, `crypto.pseudoRandomBytes()`, `crypto.rng()`" }, { "textRaw": "DEP0116: Legacy URL API", "name": "dep0116:_legacy_url_api", "meta": { "changes": [ { "version": "v15.13.0", "pr-url": "https://github.com/nodejs/node/pull/37784", "description": "Deprecation revoked. Status changed to \"Legacy\"." }, { "version": "v11.0.0", "pr-url": "https://github.com/nodejs/node/pull/22715", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Deprecation revoked</p>\n<p>The <a href=\"url.html#legacy-url-api\">Legacy URL API</a> is deprecated. This includes <a href=\"url.html#urlformaturlobject\"><code>url.format()</code></a>,\n<a href=\"url.html#urlparseurlstring-parsequerystring-slashesdenotehost\"><code>url.parse()</code></a>, <a href=\"url.html#urlresolvefrom-to\"><code>url.resolve()</code></a>, and the <a href=\"url.html#legacy-urlobject\">legacy <code>urlObject</code></a>. Please\nuse the <a href=\"url.html#the-whatwg-url-api\">WHATWG URL API</a> instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Previous versions of Node.js exposed handles to internal native objects through\nthe <code>_handle</code> property of the <code>Cipher</code>, <code>Decipher</code>, <code>DiffieHellman</code>,\n<code>DiffieHellmanGroup</code>, <code>ECDH</code>, <code>Hash</code>, <code>Hmac</code>, <code>Sign</code>, and <code>Verify</code> classes.\nThe <code>_handle</code> property has been removed because improper use of the native\nobject can lead to crashing the application.</p>", "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": "<p>Type: Runtime</p>\n<p>Previous versions of Node.js supported <code>dns.lookup()</code> with a falsy host name\nlike <code>dns.lookup(false)</code> 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.</p>", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p><code>process.binding('uv').errname()</code> is deprecated. Please use\n<a href=\"util.html#utilgetsystemerrornameerr\"><code>util.getSystemErrorName()</code></a> instead.</p>", "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": "<p>Type: End-of-Life</p>\n<p>Windows Performance Counter support has been removed from Node.js. The\nundocumented <code>COUNTER_NET_SERVER_CONNECTION()</code>,\n<code>COUNTER_NET_SERVER_CONNECTION_CLOSE()</code>, <code>COUNTER_HTTP_SERVER_REQUEST()</code>,\n<code>COUNTER_HTTP_SERVER_RESPONSE()</code>, <code>COUNTER_HTTP_CLIENT_REQUEST()</code>, and\n<code>COUNTER_HTTP_CLIENT_RESPONSE()</code> functions have been deprecated.</p>", "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": "<p>Type: Runtime</p>\n<p>The undocumented <code>net._setSimultaneousAccepts()</code> function was originally\nintended for debugging and performance tuning when using the\n<code>node:child_process</code> and <code>node:cluster</code> modules on Windows. The function is not\ngenerally useful and is being removed. See discussion here:\n<a href=\"https://github.com/nodejs/node/issues/18391\">https://github.com/nodejs/node/issues/18391</a></p>", "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": "<p>Type: Runtime</p>\n<p>Please use <code>Server.prototype.setSecureContext()</code> instead.</p>", "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": "<p>Type: Runtime</p>\n<p>Setting the TLS ServerName to an IP address is not permitted by\n<a href=\"https://tools.ietf.org/html/rfc6066#section-3\">RFC 6066</a>. This will be ignored in a future version.</p>", "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": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/33286", "description": "End-of-Life." }, { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26260", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>This property is a reference to the instance itself.</p>", "type": "module", "displayName": "DEP0124: using `REPLServer.rli`" }, { "textRaw": "DEP0125: `require('node:_stream_wrap')`", "name": "dep0125:_`require('node:_stream_wrap')`", "meta": { "changes": [ { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26245", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p>The <code>node:_stream_wrap</code> module is deprecated.</p>", "type": "module", "displayName": "DEP0125: `require('node:_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": "<p>Type: Runtime</p>\n<p>The previously undocumented <code>timers.active()</code> is deprecated.\nPlease use the publicly documented <a href=\"timers.html#timeoutrefresh\"><code>timeout.refresh()</code></a> instead.\nIf re-referencing the timeout is necessary, <a href=\"timers.html#timeoutref\"><code>timeout.ref()</code></a> can be used\nwith no performance impact since Node.js 10.</p>", "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": "<p>Type: Runtime</p>\n<p>The previously undocumented and \"private\" <code>timers._unrefActive()</code> is deprecated.\nPlease use the publicly documented <a href=\"timers.html#timeoutrefresh\"><code>timeout.refresh()</code></a> instead.\nIf unreferencing the timeout is necessary, <a href=\"timers.html#timeoutunref\"><code>timeout.unref()</code></a> can be used\nwith no performance impact since Node.js 10.</p>", "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": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37204", "description": "Runtime deprecation." }, { "version": "v12.0.0", "pr-url": "https://github.com/nodejs/node/pull/26823", "description": "Documentation-only." } ] }, "desc": "<p>Type: Runtime</p>\n<p>Modules that have an invalid <code>main</code> entry (e.g., <code>./does-not-exist.js</code>) and\nalso have an <code>index.js</code> file in the top level directory will resolve the\n<code>index.js</code> file. That is deprecated and is going to throw an error in future\nNode.js versions.</p>", "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": "<p>Type: Runtime</p>\n<p>The <code>_channel</code> property of child process objects returned by <code>spawn()</code> and\nsimilar functions is not intended for public use. Use <code>ChildProcess.channel</code>\ninstead.</p>", "type": "module", "displayName": "DEP0129: `ChildProcess._channel`" }, { "textRaw": "DEP0130: `Module.createRequireFromPath()`", "name": "dep0130:_`module.createrequirefrompath()`", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37201", "description": "End-of-life." }, { "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": "<p>Type: End-of-Life</p>\n<p>Use <a href=\"module.html#modulecreaterequirefilename\"><code>module.createRequire()</code></a> instead.</p>", "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.22.0", "pr-url": "https://github.com/nodejs/node/pull/37603", "description": "Runtime deprecation." }, { "version": "v12.3.0", "pr-url": "https://github.com/nodejs/node/pull/27498", "description": "Documentation-only." } ] }, "desc": "<p>Type: End-of-Life</p>\n<p>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<code>--http-parser=legacy</code> command-line flag could be used to revert to using the\nlegacy parser.</p>", "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": "<p>Type: Runtime</p>\n<p>Passing a callback to <a href=\"worker_threads.html#workerterminate\"><code>worker.terminate()</code></a> is deprecated. Use the returned\n<code>Promise</code> instead, or a listener to the worker's <code>'exit'</code> event.</p>", "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": "<p>Type: Documentation-only</p>\n<p>Prefer <a href=\"http.html#responsesocket\"><code>response.socket</code></a> over <a href=\"http.html#responseconnection\"><code>response.connection</code></a> and\n<a href=\"http.html#requestsocket\"><code>request.socket</code></a> over <a href=\"http.html#requestconnection\"><code>request.connection</code></a>.</p>", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The <code>process._tickCallback</code> property was never documented as\nan officially supported API.</p>", "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", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p><a href=\"fs.html#class-fswritestream\"><code>WriteStream.open()</code></a> and <a href=\"fs.html#class-fsreadstream\"><code>ReadStream.open()</code></a> are undocumented internal\nAPIs that do not make sense to use in userland. File streams should always be\nopened through their corresponding factory methods <a href=\"fs.html#fscreatewritestreampath-options\"><code>fs.createWriteStream()</code></a>\nand <a href=\"fs.html#fscreatereadstreampath-options\"><code>fs.createReadStream()</code></a>) or by passing a file descriptor in options.</p>", "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": "<p>Type: Documentation-only</p>\n<p><a href=\"http.html#responsefinished\"><code>response.finished</code></a> indicates whether <a href=\"http.html#responseenddata-encoding-callback\"><code>response.end()</code></a> has been\ncalled, not whether <code>'finish'</code> has been emitted and the underlying data\nis flushed.</p>\n<p>Use <a href=\"http.html#responsewritablefinished\"><code>response.writableFinished</code></a> or <a href=\"http.html#responsewritableended\"><code>response.writableEnded</code></a>\naccordingly instead to avoid the ambiguity.</p>\n<p>To maintain existing behavior <code>response.finished</code> should be replaced with\n<code>response.writableEnded</code>.</p>", "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": "<p>Type: Runtime</p>\n<p>Allowing a <a href=\"fs.html#class-filehandle\"><code>fs.FileHandle</code></a> object to be closed on garbage collection is\ndeprecated. In the future, doing so might result in a thrown error that will\nterminate the process.</p>\n<p>Please ensure that all <code>fs.FileHandle</code> objects are explicitly closed using\n<code>FileHandle.prototype.close()</code> when the <code>fs.FileHandle</code> is no longer needed:</p>\n<pre><code class=\"language-js\">const fsPromises = require('node: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</code></pre>", "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": "<p>Type: Documentation-only</p>\n<p><a href=\"process.html#processmainmodule\"><code>process.mainModule</code></a> is a CommonJS-only feature while <code>process</code> global\nobject is shared with non-CommonJS environment. Its use within ECMAScript\nmodules is unsupported.</p>\n<p>It is deprecated in favor of <a href=\"modules.html#accessing-the-main-module\"><code>require.main</code></a>, because it serves the same\npurpose and is only available on CommonJS environment.</p>", "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", "v12.19.0" ], "pr-url": "https://github.com/nodejs/node/pull/32499", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Calling <code>process.umask()</code> 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.</p>", "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", "v13.14.0" ], "pr-url": "https://github.com/nodejs/node/pull/32807", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Use <a href=\"http.html#requestdestroyerror\"><code>request.destroy()</code></a> instead of <a href=\"http.html#requestabort\"><code>request.abort()</code></a>.</p>", "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": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The <code>node:repl</code> module exported the input and output stream twice. Use <code>.input</code>\ninstead of <code>.inputStream</code> and <code>.output</code> instead of <code>.outputStream</code>.</p>", "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": "<p>Type: Documentation-only</p>\n<p>The <code>node:repl</code> module exports a <code>_builtinLibs</code> property that contains an array\nwith native modules. It was incomplete so far and instead it's better to rely\nupon <code>require('node:module').builtinModules</code>.</p>", "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": "<p>Type: Runtime\n<code>Transform._transformState</code> will be removed in future versions where it is\nno longer required due to simplification of the implementation.</p>", "type": "module", "displayName": "DEP0143: `Transform._transformState`" }, { "textRaw": "DEP0144: `module.parent`", "name": "dep0144:_`module.parent`", "meta": { "changes": [ { "version": [ "v14.6.0", "v12.19.0" ], "pr-url": "https://github.com/nodejs/node/pull/32217", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>A CommonJS module can access the first module that required it using\n<code>module.parent</code>. 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.</p>\n<p>Some modules use it to check if they are the entry point of the current process.\nInstead, it is recommended to compare <code>require.main</code> and <code>module</code>:</p>\n<pre><code class=\"language-js\">if (require.main === module) {\n // Code section that will run only if current file is the entry point.\n}\n</code></pre>\n<p>When looking for the CommonJS modules that have required the current one,\n<code>require.cache</code> and <code>module.children</code> can be used:</p>\n<pre><code class=\"language-js\">const moduleParents = Object.values(require.cache)\n .filter((m) => m.children.includes(module));\n</code></pre>", "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": "<p>Type: Documentation-only</p>\n<p><a href=\"net.html#socketbuffersize\"><code>socket.bufferSize</code></a> is just an alias for <a href=\"stream.html#writablewritablelength\"><code>writable.writableLength</code></a>.</p>", "type": "module", "displayName": "DEP0145: `socket.bufferSize`" }, { "textRaw": "DEP0146: `new crypto.Certificate()`", "name": "dep0146:_`new_crypto.certificate()`", "meta": { "changes": [ { "version": "v14.9.0", "pr-url": "https://github.com/nodejs/node/pull/34697", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"crypto.html#legacy-api\"><code>crypto.Certificate()</code> constructor</a> is deprecated. Use\n<a href=\"crypto.html#class-certificate\">static methods of <code>crypto.Certificate()</code></a> instead.</p>", "type": "module", "displayName": "DEP0146: `new crypto.Certificate()`" }, { "textRaw": "DEP0147: `fs.rmdir(path, { recursive: true })`", "name": "dep0147:_`fs.rmdir(path,_{_recursive:_true_})`", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37302", "description": "Runtime deprecation." }, { "version": "v15.0.0", "pr-url": "https://github.com/nodejs/node/pull/35562", "description": "Runtime deprecation for permissive behavior." }, { "version": "v14.14.0", "pr-url": "https://github.com/nodejs/node/pull/35579", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p>In future versions of Node.js, <code>recursive</code> option will be ignored for\n<code>fs.rmdir</code>, <code>fs.rmdirSync</code>, and <code>fs.promises.rmdir</code>.</p>\n<p>Use <code>fs.rm(path, { recursive: true, force: true })</code>,\n<code>fs.rmSync(path, { recursive: true, force: true })</code> or\n<code>fs.promises.rm(path, { recursive: true, force: true })</code> instead.</p>", "type": "module", "displayName": "DEP0147: `fs.rmdir(path, { recursive: true })`" }, { "textRaw": "DEP0148: Folder mappings in `\"exports\"` (trailing `\"/\"`)", "name": "dep0148:_folder_mappings_in_`\"exports\"`_(trailing_`\"/\"`)", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37215", "description": "Runtime deprecation." }, { "version": "v15.1.0", "pr-url": "https://github.com/nodejs/node/pull/35747", "description": "Runtime deprecation for self-referencing imports." }, { "version": "v14.13.0", "pr-url": "https://github.com/nodejs/node/pull/34718", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p>Using a trailing <code>\"/\"</code> to define\n<a href=\"packages.html#subpath-folder-mappings\">subpath folder mappings</a> in the <a href=\"packages.html#subpath-exports\">subpath exports</a> or\n<a href=\"packages.html#subpath-imports\">subpath imports</a> fields is deprecated. Use <a href=\"packages.html#subpath-patterns\">subpath patterns</a> instead.</p>", "type": "module", "displayName": "DEP0148: Folder mappings in `\"exports\"` (trailing `\"/\"`)" }, { "textRaw": "DEP0149: `http.IncomingMessage#connection`", "name": "dep0149:_`http.incomingmessage#connection`", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/33768", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only.</p>\n<p>Prefer <a href=\"http.html#messagesocket\"><code>message.socket</code></a> over <a href=\"http.html#messageconnection\"><code>message.connection</code></a>.</p>", "type": "module", "displayName": "DEP0149: `http.IncomingMessage#connection`" }, { "textRaw": "DEP0150: Changing the value of `process.config`", "name": "dep0150:_changing_the_value_of_`process.config`", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/36902", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p>The <code>process.config</code> property provides access to Node.js compile-time settings.\nHowever, the property is mutable and therefore subject to tampering. The ability\nto change the value will be removed in a future version of Node.js.</p>", "type": "module", "displayName": "DEP0150: Changing the value of `process.config`" }, { "textRaw": "DEP0151: Main index lookup and extension searching", "name": "dep0151:_main_index_lookup_and_extension_searching", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37206", "description": "Runtime deprecation." }, { "version": "v15.8.0", "pr-url": "https://github.com/nodejs/node/pull/36918", "description": "Documentation-only deprecation with `--pending-deprecation` support." } ] }, "desc": "<p>Type: Runtime</p>\n<p>Previously, <code>index.js</code> and extension searching lookups would apply to\n<code>import 'pkg'</code> main entry point resolution, even when resolving ES modules.</p>\n<p>With this deprecation, all ES module main entry point resolutions require\nan explicit <a href=\"packages.html#main-entry-point-export\"><code>\"exports\"</code> or <code>\"main\"</code> entry</a> with the exact file extension.</p>", "type": "module", "displayName": "DEP0151: Main index lookup and extension searching" }, { "textRaw": "DEP0152: Extension PerformanceEntry properties", "name": "dep0152:_extension_performanceentry_properties", "meta": { "changes": [ { "version": "v16.0.0", "pr-url": "https://github.com/nodejs/node/pull/37136", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: Runtime</p>\n<p>The <code>'gc'</code>, <code>'http2'</code>, and <code>'http'</code> <a href=\"perf_hooks.html#class-performanceentry\" class=\"type\"><PerformanceEntry></a> object types have\nadditional properties assigned to them that provide additional information.\nThese properties are now available within the standard <code>detail</code> property\nof the <code>PerformanceEntry</code> object. The existing accessors have been\ndeprecated and should no longer be used.</p>", "type": "module", "displayName": "DEP0152: Extension PerformanceEntry properties" }, { "textRaw": "DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion", "name": "dep0153:_`dns.lookup`_and_`dnspromises.lookup`_options_type_coercion", "meta": { "changes": [ { "version": "v16.8.0", "pr-url": "https://github.com/nodejs/node/pull/38906", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Using a non-nullish non-integer value for <code>family</code> option, a non-nullish\nnon-number value for <code>hints</code> option, a non-nullish non-boolean value for <code>all</code>\noption, or a non-nullish non-boolean value for <code>verbatim</code> option in\n<a href=\"dns.html#dnslookuphostname-options-callback\"><code>dns.lookup()</code></a> and <a href=\"dns.html#dnspromiseslookuphostname-options\"><code>dnsPromises.lookup()</code></a> is deprecated.</p>", "type": "module", "displayName": "DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion" }, { "textRaw": "DEP0154: RSA-PSS generate key pair options", "name": "dep0154:_rsa-pss_generate_key_pair_options", "meta": { "changes": [ { "version": "v16.10.0", "pr-url": "https://github.com/nodejs/node/pull/39927", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The <code>'hash'</code> and <code>'mgf1Hash'</code> options are replaced with <code>'hashAlgorithm'</code>\nand <code>'mgf1HashAlgorithm'</code>.</p>", "type": "module", "displayName": "DEP0154: RSA-PSS generate key pair options" }, { "textRaw": "DEP0155: Trailing slashes in pattern specifier resolutions", "name": "dep0155:_trailing_slashes_in_pattern_specifier_resolutions", "meta": { "changes": [ { "version": "v16.10.0", "pr-url": "https://github.com/nodejs/node/pull/40039", "description": "Documentation-only deprecation with `--pending-deprecation` support." } ] }, "desc": "<p>Type: Documentation-only (supports <a href=\"cli.html#--pending-deprecation\"><code>--pending-deprecation</code></a>)</p>\n<p>The remapping of specifiers ending in <code>\"/\"</code> like <code>import 'pkg/x/'</code> is deprecated\nfor package <code>\"exports\"</code> and <code>\"imports\"</code> pattern resolutions.</p>", "type": "module", "displayName": "DEP0155: Trailing slashes in pattern specifier resolutions" }, { "textRaw": "DEP0156: `.aborted` property and `'abort'`, `'aborted'` event in `http`", "name": "dep0156:_`.aborted`_property_and_`'abort'`,_`'aborted'`_event_in_`http`", "meta": { "changes": [ { "version": "v16.12.0", "pr-url": "https://github.com/nodejs/node/pull/36670", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Move to <a href=\"stream.html#stream\" class=\"type\"><Stream></a> API instead, as the <a href=\"http.html#class-httpclientrequest\"><code>http.ClientRequest</code></a>,\n<a href=\"http.html#class-httpserverresponse\"><code>http.ServerResponse</code></a>, and <a href=\"http.html#class-httpincomingmessage\"><code>http.IncomingMessage</code></a> are all stream-based.\nCheck <code>stream.destroyed</code> instead of the <code>.aborted</code> property, and listen for\n<code>'close'</code> instead of <code>'abort'</code>, <code>'aborted'</code> event.</p>\n<p>The <code>.aborted</code> property and <code>'abort'</code> event are only useful for detecting\n<code>.abort()</code> calls. For closing a request early, use the Stream\n<code>.destroy([error])</code> then check the <code>.destroyed</code> property and <code>'close'</code> event\nshould have the same effect. The receiving end should also check the\n<a href=\"stream.html#readablereadableended\"><code>readable.readableEnded</code></a> value on <a href=\"http.html#class-httpincomingmessage\"><code>http.IncomingMessage</code></a> to get whether\nit was an aborted or graceful destroy.</p>", "type": "module", "displayName": "DEP0156: `.aborted` property and `'abort'`, `'aborted'` event in `http`" }, { "textRaw": "DEP0157: Thenable support in streams", "name": "dep0157:_thenable_support_in_streams", "meta": { "changes": [ { "version": "v16.14.0", "pr-url": "https://github.com/nodejs/node/pull/40860", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>An undocumented feature of Node.js streams was to support thenables in\nimplementation methods. This is now deprecated, use callbacks instead and avoid\nuse of async function for streams implementation methods.</p>\n<p>This feature caused users to encounter unexpected problems where the user\nimplements the function in callback style but uses e.g. an async method which\nwould cause an error since mixing promise and callback semantics is not valid.</p>\n<pre><code class=\"language-js\">const w = new Writable({\n async final(callback) {\n await someOp();\n callback();\n }\n});\n</code></pre>", "type": "module", "displayName": "DEP0157: Thenable support in streams" }, { "textRaw": "DEP0158: `buffer.slice(start, end)`", "name": "dep0158:_`buffer.slice(start,_end)`", "meta": { "changes": [ { "version": "v16.15.0", "pr-url": "https://github.com/nodejs/node/pull/41596", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>This method was deprecated because it is not compatible with\n<code>Uint8Array.prototype.slice()</code>, which is a superclass of <code>Buffer</code>.</p>\n<p>Use <a href=\"buffer.html#bufsubarraystart-end\"><code>buffer.subarray</code></a> which does the same thing instead.</p>\n<!-- md-lint skip-deprecation DEP0159 -->", "type": "module", "displayName": "DEP0158: `buffer.slice(start, end)`" }, { "textRaw": "DEP0160: `process.on('multipleResolves', handler)`", "name": "dep0160:_`process.on('multipleresolves',_handler)`", "meta": { "changes": [ { "version": "v16.15.0", "pr-url": "https://github.com/nodejs/node/pull/41872", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>This event was deprecated because it did not work with V8 promise combinators\nwhich diminished its usefulness.</p>", "type": "module", "displayName": "DEP0160: `process.on('multipleResolves', handler)`" }, { "textRaw": "DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`", "name": "dep0161:_`process._getactiverequests()`_and_`process._getactivehandles()`", "meta": { "changes": [ { "version": "v16.15.0", "pr-url": "https://github.com/nodejs/node/pull/41587", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <code>process._getActiveHandles()</code> and <code>process._getActiveRequests()</code>\nfunctions are not intended for public use and can be removed in future\nreleases.</p>\n<p>Use <a href=\"process.html#processgetactiveresourcesinfo\"><code>process.getActiveResourcesInfo()</code></a> to get a list of types of active\nresources and not the actual references.</p>", "type": "module", "displayName": "DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`" }, { "textRaw": "DEP0162: `fs.write()`, `fs.writeFileSync()` coercion to string", "name": "dep0162:_`fs.write()`,_`fs.writefilesync()`_coercion_to_string", "meta": { "changes": [ { "version": "v16.15.0", "pr-url": "https://github.com/nodejs/node/pull/42149", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Implicit coercion of objects with own <code>toString</code> property, passed as second\nparameter in <a href=\"fs.html#fswritefd-buffer-offset-length-position-callback\"><code>fs.write()</code></a>, <a href=\"fs.html#fswritefilefile-data-options-callback\"><code>fs.writeFile()</code></a>, <a href=\"fs.html#fsappendfilepath-data-options-callback\"><code>fs.appendFile()</code></a>,\n<a href=\"fs.html#fswritefilesyncfile-data-options\"><code>fs.writeFileSync()</code></a>, and <a href=\"fs.html#fsappendfilesyncpath-data-options\"><code>fs.appendFileSync()</code></a> is deprecated.\nConvert them to primitive strings.</p>", "type": "module", "displayName": "DEP0162: `fs.write()`, `fs.writeFileSync()` coercion to string" }, { "textRaw": "DEP0163: `channel.subscribe(onMessage)`, `channel.unsubscribe(onMessage)`", "name": "dep0163:_`channel.subscribe(onmessage)`,_`channel.unsubscribe(onmessage)`", "meta": { "changes": [ { "version": "v16.17.0", "pr-url": "https://github.com/nodejs/node/pull/42714", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>These methods were deprecated because they can be used in a way which does not\nhold the channel reference alive long enough to receive the events.</p>\n<p>Use <a href=\"diagnostics_channel.html#diagnostics_channelsubscribename-onmessage\"><code>diagnostics_channel.subscribe(name, onMessage)</code></a> or\n<a href=\"diagnostics_channel.html#diagnostics_channelunsubscribename-onmessage\"><code>diagnostics_channel.unsubscribe(name, onMessage)</code></a> which does the same\nthing instead.</p>", "type": "module", "displayName": "DEP0163: `channel.subscribe(onMessage)`, `channel.unsubscribe(onMessage)`" }, { "textRaw": "DEP0164: `process.exit(code)`, `process.exitCode` coercion to integer", "name": "dep0164:_`process.exit(code)`,_`process.exitcode`_coercion_to_integer", "meta": { "changes": [ { "version": "v16.18.0", "pr-url": "https://github.com/nodejs/node/pull/44714", "description": "Documentation-only deprecation of `process.exitCode` integer coercion." }, { "version": "v16.17.0", "pr-url": "https://github.com/nodejs/node/pull/43738", "description": "Documentation-only deprecation of `process.exit(code)` integer coercion." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>Values other than <code>undefined</code>, <code>null</code>, integer numbers, and integer strings\n(e.g., <code>'1'</code>) are deprecated as value for the <code>code</code> parameter in\n<a href=\"process.html#processexitcode\"><code>process.exit()</code></a> and as value to assign to <a href=\"process.html#processexitcode_1\"><code>process.exitCode</code></a>.</p>", "type": "module", "displayName": "DEP0164: `process.exit(code)`, `process.exitCode` coercion to integer" }, { "textRaw": "DEP0165: `--trace-atomics-wait`", "name": "dep0165:_`--trace-atomics-wait`", "meta": { "changes": [ { "version": "v16.18.0", "pr-url": "https://github.com/nodejs/node/pull/44093", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The <a href=\"cli.html#--trace-atomics-wait\"><code>--trace-atomics-wait</code></a> flag is deprecated.</p>\n<!-- md-lint skip-deprecation DEP0166 -->", "type": "module", "displayName": "DEP0165: `--trace-atomics-wait`" }, { "textRaw": "DEP0167: Weak `DiffieHellmanGroup` instances (`modp1`, `modp2`, `modp5`)", "name": "dep0167:_weak_`diffiehellmangroup`_instances_(`modp1`,_`modp2`,_`modp5`)", "meta": { "changes": [ { "version": "v16.18.0", "pr-url": "https://github.com/nodejs/node/pull/44588", "description": "Documentation-only deprecation." } ] }, "desc": "<p>Type: Documentation-only</p>\n<p>The well-known MODP groups <code>modp1</code>, <code>modp2</code>, and <code>modp5</code> are deprecated because\nthey are not secure against practical attacks. See <a href=\"https://www.rfc-editor.org/rfc/rfc8247#section-2.4\">RFC 8247 Section 2.4</a> for\ndetails.</p>\n<p>These groups might be removed in future versions of Node.js. Applications that\nrely on these groups should evaluate using stronger MODP groups instead.</p>", "type": "module", "displayName": "DEP0167: Weak `DiffieHellmanGroup` instances (`modp1`, `modp2`, `modp5`)" }, { "textRaw": "DEP0168: Unhandled exception in Node-API callbacks", "name": "dep0168:_unhandled_exception_in_node-api_callbacks", "meta": { "changes": [ { "version": [ "v18.3.0", "v16.17.0" ], "pr-url": "https://github.com/nodejs/node/pull/36510", "description": "Runtime deprecation." } ] }, "desc": "<p>Type: Runtime.</p>\n<p>The implicit suppression of uncaught exceptions in Node-API callbacks is now\ndeprecated.</p>\n<p>Set the flag <a href=\"cli.html#--force-node-api-uncaught-exceptions-policy\"><code>--force-node-api-uncaught-exceptions-policy</code></a> to force Node.js\nto emit an <a href=\"process.html#event-uncaughtexception\"><code>'uncaughtException'</code></a> event if the exception is not handled in\nNode-API callbacks.</p>", "type": "module", "displayName": "DEP0168: Unhandled exception in Node-API callbacks" } ], "type": "misc", "displayName": "List of deprecated APIs" } ] } ] }