• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<html lang="en">
3<head>
4  <meta charset="utf-8">
5  <meta name="viewport" content="width=device-width">
6  <meta name="nodejs.org:node-version" content="v14.19.1">
7  <title>Deprecated APIs | Node.js v14.19.1 Documentation</title>
8  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback">
9  <link rel="stylesheet" href="assets/style.css">
10  <link rel="stylesheet" href="assets/hljs.css">
11  <link rel="canonical" href="https://nodejs.org/api/deprecations.html">
12</head>
13<body class="alt apidoc" id="api-section-deprecations">
14  <div id="content" class="clearfix">
15    <div id="column2" class="interior">
16      <div id="intro" class="interior">
17        <a href="/" title="Go back to the home page">
18          Node.js
19        </a>
20      </div>
21      <ul>
22<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li>
23<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
24</ul>
25<hr class="line">
26<ul>
27<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
28<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
29<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
30<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
31<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
32<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li>
33<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
34<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
35<li><a href="cli.html" class="nav-cli">Command-line options</a></li>
36<li><a href="console.html" class="nav-console">Console</a></li>
37<li><a href="corepack.html" class="nav-corepack">Corepack</a></li>
38<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
39<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
40<li><a href="deprecations.html" class="nav-deprecations active">Deprecated APIs</a></li>
41<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li>
42<li><a href="dns.html" class="nav-dns">DNS</a></li>
43<li><a href="domain.html" class="nav-domain">Domain</a></li>
44<li><a href="errors.html" class="nav-errors">Errors</a></li>
45<li><a href="events.html" class="nav-events">Events</a></li>
46<li><a href="fs.html" class="nav-fs">File system</a></li>
47<li><a href="globals.html" class="nav-globals">Globals</a></li>
48<li><a href="http.html" class="nav-http">HTTP</a></li>
49<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
50<li><a href="https.html" class="nav-https">HTTPS</a></li>
51<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
52<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
53<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li>
54<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li>
55<li><a href="module.html" class="nav-module">Modules: <code>module</code> API</a></li>
56<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li>
57<li><a href="net.html" class="nav-net">Net</a></li>
58<li><a href="os.html" class="nav-os">OS</a></li>
59<li><a href="path.html" class="nav-path">Path</a></li>
60<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
61<li><a href="policy.html" class="nav-policy">Policies</a></li>
62<li><a href="process.html" class="nav-process">Process</a></li>
63<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
64<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
65<li><a href="readline.html" class="nav-readline">Readline</a></li>
66<li><a href="repl.html" class="nav-repl">REPL</a></li>
67<li><a href="report.html" class="nav-report">Report</a></li>
68<li><a href="stream.html" class="nav-stream">Stream</a></li>
69<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
70<li><a href="timers.html" class="nav-timers">Timers</a></li>
71<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
72<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
73<li><a href="tty.html" class="nav-tty">TTY</a></li>
74<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
75<li><a href="url.html" class="nav-url">URL</a></li>
76<li><a href="util.html" class="nav-util">Utilities</a></li>
77<li><a href="v8.html" class="nav-v8">V8</a></li>
78<li><a href="vm.html" class="nav-vm">VM</a></li>
79<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
80<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
81<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
82</ul>
83<hr class="line">
84<ul>
85<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
86</ul>
87    </div>
88
89    <div id="column1" data-id="deprecations" class="interior">
90      <header>
91        <div class="header-container">
92          <h1>Node.js v14.19.1 documentation</h1>
93          <button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden>
94            <svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24">
95              <path fill="none" d="M0 0h24v24H0z" />
96              <path d="M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"/>
97              <path d="M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"/>
98            </svg>
99            <svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24">
100              <path d="M0 0h24v24H0z" fill="none" />
101              <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"/>
102            </svg>
103          </button>
104        </div>
105        <div id="gtoc">
106          <ul>
107            <li>
108              <a href="index.html">Index</a>
109            </li>
110            <li>
111              <a href="all.html">View on single page</a>
112            </li>
113            <li>
114              <a href="deprecations.json">View as JSON</a>
115            </li>
116
117    <li class="version-picker">
118      <a href="#">View another version <span>&#x25bc;</span></a>
119      <ol class="version-picker"><li><a href="https://nodejs.org/docs/latest-v17.x/api/deprecations.html">17.x</a></li>
120<li><a href="https://nodejs.org/docs/latest-v16.x/api/deprecations.html">16.x <b>LTS</b></a></li>
121<li><a href="https://nodejs.org/docs/latest-v15.x/api/deprecations.html">15.x</a></li>
122<li><a href="https://nodejs.org/docs/latest-v14.x/api/deprecations.html">14.x <b>LTS</b></a></li>
123<li><a href="https://nodejs.org/docs/latest-v13.x/api/deprecations.html">13.x</a></li>
124<li><a href="https://nodejs.org/docs/latest-v12.x/api/deprecations.html">12.x <b>LTS</b></a></li>
125<li><a href="https://nodejs.org/docs/latest-v11.x/api/deprecations.html">11.x</a></li>
126<li><a href="https://nodejs.org/docs/latest-v10.x/api/deprecations.html">10.x</a></li>
127<li><a href="https://nodejs.org/docs/latest-v9.x/api/deprecations.html">9.x</a></li>
128<li><a href="https://nodejs.org/docs/latest-v8.x/api/deprecations.html">8.x</a></li>
129<li><a href="https://nodejs.org/docs/latest-v7.x/api/deprecations.html">7.x</a></li></ol>
130    </li>
131
132            <li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/master/doc/api/deprecations.md">Edit on GitHub</a></li>
133          </ul>
134        </div>
135        <hr>
136      </header>
137
138      <details id="toc" open><summary>Table of contents</summary><ul>
139<li><a href="#deprecations_deprecated_apis">Deprecated APIs</a>
140<ul>
141<li><a href="#deprecations_revoking_deprecations">Revoking deprecations</a></li>
142<li><a href="#deprecations_list_of_deprecated_apis">List of deprecated APIs</a>
143<ul>
144<li><a href="#DEP0001">DEP0001: <code>http.OutgoingMessage.prototype.flush</code></a></li>
145<li><a href="#DEP0002">DEP0002: <code>require('_linklist')</code></a></li>
146<li><a href="#DEP0003">DEP0003: <code>_writableState.buffer</code></a></li>
147<li><a href="#DEP0004">DEP0004: <code>CryptoStream.prototype.readyState</code></a></li>
148<li><a href="#DEP0005">DEP0005: <code>Buffer()</code> constructor</a></li>
149<li><a href="#DEP0006">DEP0006: <code>child_process</code> <code>options.customFds</code></a></li>
150<li><a href="#DEP0007">DEP0007: Replace <code>cluster</code> <code>worker.suicide</code> with <code>worker.exitedAfterDisconnect</code></a></li>
151<li><a href="#DEP0008">DEP0008: <code>require('constants')</code></a></li>
152<li><a href="#DEP0009">DEP0009: <code>crypto.pbkdf2</code> without digest</a></li>
153<li><a href="#DEP0010">DEP0010: <code>crypto.createCredentials</code></a></li>
154<li><a href="#DEP0011">DEP0011: <code>crypto.Credentials</code></a></li>
155<li><a href="#DEP0012">DEP0012: <code>Domain.dispose</code></a></li>
156<li><a href="#DEP0013">DEP0013: <code>fs</code> asynchronous function without callback</a></li>
157<li><a href="#DEP0014">DEP0014: <code>fs.read</code> legacy String interface</a></li>
158<li><a href="#DEP0015">DEP0015: <code>fs.readSync</code> legacy String interface</a></li>
159<li><a href="#DEP0016">DEP0016: <code>GLOBAL</code>/<code>root</code></a></li>
160<li><a href="#DEP0017">DEP0017: <code>Intl.v8BreakIterator</code></a></li>
161<li><a href="#DEP0018">DEP0018: Unhandled promise rejections</a></li>
162<li><a href="#DEP0019">DEP0019: <code>require('.')</code> resolved outside directory</a></li>
163<li><a href="#DEP0020">DEP0020: <code>Server.connections</code></a></li>
164<li><a href="#DEP0021">DEP0021: <code>Server.listenFD</code></a></li>
165<li><a href="#DEP0022">DEP0022: <code>os.tmpDir()</code></a></li>
166<li><a href="#DEP0023">DEP0023: <code>os.getNetworkInterfaces()</code></a></li>
167<li><a href="#DEP0024">DEP0024: <code>REPLServer.prototype.convertToContext()</code></a></li>
168<li><a href="#DEP0025">DEP0025: <code>require('sys')</code></a></li>
169<li><a href="#DEP0026">DEP0026: <code>util.print()</code></a></li>
170<li><a href="#DEP0027">DEP0027: <code>util.puts()</code></a></li>
171<li><a href="#DEP0028">DEP0028: <code>util.debug()</code></a></li>
172<li><a href="#DEP0029">DEP0029: <code>util.error()</code></a></li>
173<li><a href="#DEP0030">DEP0030: <code>SlowBuffer</code></a></li>
174<li><a href="#DEP0031">DEP0031: <code>ecdh.setPublicKey()</code></a></li>
175<li><a href="#DEP0032">DEP0032: <code>domain</code> module</a></li>
176<li><a href="#DEP0033">DEP0033: <code>EventEmitter.listenerCount()</code></a></li>
177<li><a href="#DEP0034">DEP0034: <code>fs.exists(path, callback)</code></a></li>
178<li><a href="#DEP0035">DEP0035: <code>fs.lchmod(path, mode, callback)</code></a></li>
179<li><a href="#DEP0036">DEP0036: <code>fs.lchmodSync(path, mode)</code></a></li>
180<li><a href="#DEP0037">DEP0037: <code>fs.lchown(path, uid, gid, callback)</code></a></li>
181<li><a href="#DEP0038">DEP0038: <code>fs.lchownSync(path, uid, gid)</code></a></li>
182<li><a href="#DEP0039">DEP0039: <code>require.extensions</code></a></li>
183<li><a href="#DEP0040">DEP0040: <code>punycode</code> module</a></li>
184<li><a href="#DEP0041">DEP0041: <code>NODE_REPL_HISTORY_FILE</code> environment variable</a></li>
185<li><a href="#DEP0042">DEP0042: <code>tls.CryptoStream</code></a></li>
186<li><a href="#DEP0043">DEP0043: <code>tls.SecurePair</code></a></li>
187<li><a href="#DEP0044">DEP0044: <code>util.isArray()</code></a></li>
188<li><a href="#DEP0045">DEP0045: <code>util.isBoolean()</code></a></li>
189<li><a href="#DEP0046">DEP0046: <code>util.isBuffer()</code></a></li>
190<li><a href="#DEP0047">DEP0047: <code>util.isDate()</code></a></li>
191<li><a href="#DEP0048">DEP0048: <code>util.isError()</code></a></li>
192<li><a href="#DEP0049">DEP0049: <code>util.isFunction()</code></a></li>
193<li><a href="#DEP0050">DEP0050: <code>util.isNull()</code></a></li>
194<li><a href="#DEP0051">DEP0051: <code>util.isNullOrUndefined()</code></a></li>
195<li><a href="#DEP0052">DEP0052: <code>util.isNumber()</code></a></li>
196<li><a href="#DEP0053">DEP0053: <code>util.isObject()</code></a></li>
197<li><a href="#DEP0054">DEP0054: <code>util.isPrimitive()</code></a></li>
198<li><a href="#DEP0055">DEP0055: <code>util.isRegExp()</code></a></li>
199<li><a href="#DEP0056">DEP0056: <code>util.isString()</code></a></li>
200<li><a href="#DEP0057">DEP0057: <code>util.isSymbol()</code></a></li>
201<li><a href="#DEP0058">DEP0058: <code>util.isUndefined()</code></a></li>
202<li><a href="#DEP0059">DEP0059: <code>util.log()</code></a></li>
203<li><a href="#DEP0060">DEP0060: <code>util._extend()</code></a></li>
204<li><a href="#DEP0061">DEP0061: <code>fs.SyncWriteStream</code></a></li>
205<li><a href="#DEP0062">DEP0062: <code>node --debug</code></a></li>
206<li><a href="#DEP0063">DEP0063: <code>ServerResponse.prototype.writeHeader()</code></a></li>
207<li><a href="#DEP0064">DEP0064: <code>tls.createSecurePair()</code></a></li>
208<li><a href="#DEP0065">DEP0065: <code>repl.REPL_MODE_MAGIC</code> and <code>NODE_REPL_MODE=magic</code></a></li>
209<li><a href="#DEP0066">DEP0066: <code>OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames</code></a></li>
210<li><a href="#DEP0067">DEP0067: <code>OutgoingMessage.prototype._renderHeaders</code></a></li>
211<li><a href="#DEP0068">DEP0068: <code>node debug</code></a></li>
212<li><a href="#DEP0069">DEP0069: <code>vm.runInDebugContext(string)</code></a></li>
213<li><a href="#DEP0070">DEP0070: <code>async_hooks.currentId()</code></a></li>
214<li><a href="#DEP0071">DEP0071: <code>async_hooks.triggerId()</code></a></li>
215<li><a href="#DEP0072">DEP0072: <code>async_hooks.AsyncResource.triggerId()</code></a></li>
216<li><a href="#DEP0073">DEP0073: Several internal properties of <code>net.Server</code></a></li>
217<li><a href="#DEP0074">DEP0074: <code>REPLServer.bufferedCommand</code></a></li>
218<li><a href="#DEP0075">DEP0075: <code>REPLServer.parseREPLKeyword()</code></a></li>
219<li><a href="#DEP0076">DEP0076: <code>tls.parseCertString()</code></a></li>
220<li><a href="#DEP0077">DEP0077: <code>Module._debug()</code></a></li>
221<li><a href="#DEP0078">DEP0078: <code>REPLServer.turnOffEditorMode()</code></a></li>
222<li><a href="#DEP0079">DEP0079: Custom inspection function on objects via <code>.inspect()</code></a></li>
223<li><a href="#DEP0080">DEP0080: <code>path._makeLong()</code></a></li>
224<li><a href="#DEP0081">DEP0081: <code>fs.truncate()</code> using a file descriptor</a></li>
225<li><a href="#DEP0082">DEP0082: <code>REPLServer.prototype.memory()</code></a></li>
226<li><a href="#DEP0083">DEP0083: Disabling ECDH by setting <code>ecdhCurve</code> to <code>false</code></a></li>
227<li><a href="#DEP0084">DEP0084: requiring bundled internal dependencies</a></li>
228<li><a href="#DEP0085">DEP0085: AsyncHooks sensitive API</a></li>
229<li><a href="#DEP0086">DEP0086: Remove <code>runInAsyncIdScope</code></a></li>
230<li><a href="#DEP0089">DEP0089: <code>require('assert')</code></a></li>
231<li><a href="#DEP0090">DEP0090: Invalid GCM authentication tag lengths</a></li>
232<li><a href="#DEP0091">DEP0091: <code>crypto.DEFAULT_ENCODING</code></a></li>
233<li><a href="#DEP0092">DEP0092: Top-level <code>this</code> bound to <code>module.exports</code></a></li>
234<li><a href="#DEP0093">DEP0093: <code>crypto.fips</code> is deprecated and replaced</a></li>
235<li><a href="#DEP0094">DEP0094: Using <code>assert.fail()</code> with more than one argument</a></li>
236<li><a href="#DEP0095">DEP0095: <code>timers.enroll()</code></a></li>
237<li><a href="#DEP0096">DEP0096: <code>timers.unenroll()</code></a></li>
238<li><a href="#DEP0097">DEP0097: <code>MakeCallback</code> with <code>domain</code> property</a></li>
239<li><a href="#DEP0098">DEP0098: AsyncHooks embedder <code>AsyncResource.emitBefore</code> and <code>AsyncResource.emitAfter</code> APIs</a></li>
240<li><a href="#DEP0099">DEP0099: Async context-unaware <code>node::MakeCallback</code> C++ APIs</a></li>
241<li><a href="#DEP0100">DEP0100: <code>process.assert()</code></a></li>
242<li><a href="#DEP0101">DEP0101: <code>--with-lttng</code></a></li>
243<li><a href="#DEP0102">DEP0102: Using <code>noAssert</code> in <code>Buffer#(read|write)</code> operations</a></li>
244<li><a href="#DEP0103">DEP0103: <code>process.binding('util').is[...]</code> typechecks</a></li>
245<li><a href="#DEP0104">DEP0104: <code>process.env</code> string coercion</a></li>
246<li><a href="#DEP0105">DEP0105: <code>decipher.finaltol</code></a></li>
247<li><a href="#DEP0106">DEP0106: <code>crypto.createCipher</code> and <code>crypto.createDecipher</code></a></li>
248<li><a href="#DEP0107">DEP0107: <code>tls.convertNPNProtocols()</code></a></li>
249<li><a href="#DEP0108">DEP0108: <code>zlib.bytesRead</code></a></li>
250<li><a href="#DEP0109">DEP0109: <code>http</code>, <code>https</code>, and <code>tls</code> support for invalid URLs</a></li>
251<li><a href="#DEP0110">DEP0110: <code>vm.Script</code> cached data</a></li>
252<li><a href="#DEP0111">DEP0111: <code>process.binding()</code></a></li>
253<li><a href="#DEP0112">DEP0112: <code>dgram</code> private APIs</a></li>
254<li><a href="#DEP0113">DEP0113: <code>Cipher.setAuthTag()</code>, <code>Decipher.getAuthTag()</code></a></li>
255<li><a href="#DEP0114">DEP0114: <code>crypto._toBuf()</code></a></li>
256<li><a href="#DEP0115">DEP0115: <code>crypto.prng()</code>, <code>crypto.pseudoRandomBytes()</code>, <code>crypto.rng()</code></a></li>
257<li><a href="#DEP0116">DEP0116: Legacy URL API</a></li>
258<li><a href="#DEP0117">DEP0117: Native crypto handles</a></li>
259<li><a href="#DEP0118">DEP0118: <code>dns.lookup()</code> support for a falsy host name</a></li>
260<li><a href="#DEP0119">DEP0119: <code>process.binding('uv').errname()</code> private API</a></li>
261<li><a href="#DEP0120">DEP0120: Windows Performance Counter support</a></li>
262<li><a href="#DEP0121">DEP0121: <code>net._setSimultaneousAccepts()</code></a></li>
263<li><a href="#DEP0122">DEP0122: <code>tls</code> <code>Server.prototype.setOptions()</code></a></li>
264<li><a href="#DEP0123">DEP0123: setting the TLS ServerName to an IP address</a></li>
265<li><a href="#DEP0124">DEP0124: using <code>REPLServer.rli</code></a></li>
266<li><a href="#DEP0125">DEP0125: <code>require('_stream_wrap')</code></a></li>
267<li><a href="#DEP0126">DEP0126: <code>timers.active()</code></a></li>
268<li><a href="#DEP0127">DEP0127: <code>timers._unrefActive()</code></a></li>
269<li><a href="#DEP0128">DEP0128: modules with an invalid <code>main</code> entry and an <code>index.js</code> file</a></li>
270<li><a href="#DEP0129">DEP0129: <code>ChildProcess._channel</code></a></li>
271<li><a href="#DEP0130">DEP0130: <code>Module.createRequireFromPath()</code></a></li>
272<li><a href="#DEP0131">DEP0131: Legacy HTTP parser</a></li>
273<li><a href="#DEP0132">DEP0132: <code>worker.terminate()</code> with callback</a></li>
274<li><a href="#DEP0133">DEP0133: <code>http</code> <code>connection</code></a></li>
275<li><a href="#DEP0134">DEP0134: <code>process._tickCallback</code></a></li>
276<li><a href="#DEP0135">DEP0135: <code>WriteStream.open()</code> and <code>ReadStream.open()</code> are internal</a></li>
277<li><a href="#DEP0136">DEP0136: <code>http</code> <code>finished</code></a></li>
278<li><a href="#DEP0137">DEP0137: Closing fs.FileHandle on garbage collection</a></li>
279<li><a href="#DEP0138">DEP0138: <code>process.mainModule</code></a></li>
280<li><a href="#DEP0139">DEP0139: <code>process.umask()</code> with no arguments</a></li>
281<li><a href="#DEP0140">DEP0140: Use <code>request.destroy()</code> instead of <code>request.abort()</code></a></li>
282<li><a href="#DEP0141">DEP0141: <code>repl.inputStream</code> and <code>repl.outputStream</code></a></li>
283<li><a href="#DEP0142">DEP0142: <code>repl._builtinLibs</code></a></li>
284<li><a href="#DEP0143">DEP0143: <code>Transform._transformState</code></a></li>
285<li><a href="#DEP0144">DEP0144: <code>module.parent</code></a></li>
286<li><a href="#DEP0145">DEP0145: <code>socket.bufferSize</code></a></li>
287<li><a href="#DEP0146">DEP0146: <code>new crypto.Certificate()</code></a></li>
288<li><a href="#DEP0147">DEP0147: <code>fs.rmdir(path, { recursive: true })</code></a></li>
289<li><a href="#DEP0151">DEP0151: Main index lookup and extension searching</a></li>
290</ul>
291</li>
292</ul>
293</li>
294</ul></details>
295
296      <div id="apicontent">
297        <h2>Deprecated APIs<span><a class="mark" href="#deprecations_deprecated_apis" id="deprecations_deprecated_apis">#</a></span></h2>
298
299
300<p>Node.js APIs might be deprecated for any of the following reasons:</p>
301<ul>
302<li>Use of the API is unsafe.</li>
303<li>An improved alternative API is available.</li>
304<li>Breaking changes to the API are expected in a future major release.</li>
305</ul>
306<p>Node.js uses three kinds of Deprecations:</p>
307<ul>
308<li>Documentation-only</li>
309<li>Runtime</li>
310<li>End-of-Life</li>
311</ul>
312<p>A Documentation-only deprecation is one that is expressed only within the
313Node.js API docs. These generate no side-effects while running Node.js.
314Some Documentation-only deprecations trigger a runtime warning when launched
315with <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a> flag (or its alternative,
316<code>NODE_PENDING_DEPRECATION=1</code> environment variable), similarly to Runtime
317deprecations below. Documentation-only deprecations that support that flag
318are explicitly labeled as such in the
319<a href="#deprecations_list_of_deprecated_apis">list of Deprecated APIs</a>.</p>
320<p>A Runtime deprecation will, by default, generate a process warning that will
321be printed to <code>stderr</code> the first time the deprecated API is used. When the
322<a href="cli.html#cli_throw_deprecation"><code>--throw-deprecation</code></a> command-line flag is used, a Runtime deprecation will
323cause an error to be thrown.</p>
324<p>An End-of-Life deprecation is used when functionality is or will soon be removed
325from Node.js.</p>
326<section><h3>Revoking deprecations<span><a class="mark" href="#deprecations_revoking_deprecations" id="deprecations_revoking_deprecations">#</a></span></h3>
327<p>Occasionally, the deprecation of an API might be reversed. In such situations,
328this document will be updated with information relevant to the decision.
329However, the deprecation identifier will not be modified.</p>
330</section><section><h3>List of deprecated APIs<span><a class="mark" href="#deprecations_list_of_deprecated_apis" id="deprecations_list_of_deprecated_apis">#</a></span></h3>
331<h4 id="DEP0001">DEP0001: <code>http.OutgoingMessage.prototype.flush</code><span><a class="mark" href="#deprecations_dep0001_http_outgoingmessage_prototype_flush" id="deprecations_dep0001_http_outgoingmessage_prototype_flush">#</a></span></h4>
332<div class="api_metadata">
333<details class="changelog"><summary>History</summary>
334<table>
335<tbody><tr><th>Version</th><th>Changes</th></tr>
336<tr><td>v14.0.0</td>
337<td><p>End-of-Life.</p></td></tr>
338<tr><td>v6.12.0, v4.8.6</td>
339<td><p>A deprecation code has been assigned.</p></td></tr>
340<tr><td>v1.6.0</td>
341<td><p>Runtime deprecation.</p></td></tr>
342</tbody></table>
343</details>
344</div>
345<p>Type: End-of-Life</p>
346<p><code>OutgoingMessage.prototype.flush()</code> has been removed. Use
347<code>OutgoingMessage.prototype.flushHeaders()</code> instead.</p>
348<h4 id="DEP0002">DEP0002: <code>require('_linklist')</code><span><a class="mark" href="#deprecations_dep0002_require_linklist" id="deprecations_dep0002_require_linklist">#</a></span></h4>
349<div class="api_metadata">
350<details class="changelog"><summary>History</summary>
351<table>
352<tbody><tr><th>Version</th><th>Changes</th></tr>
353<tr><td>v8.0.0</td>
354<td><p>End-of-Life.</p></td></tr>
355<tr><td>v6.12.0</td>
356<td><p>A deprecation code has been assigned.</p></td></tr>
357<tr><td>v5.0.0</td>
358<td><p>Runtime deprecation.</p></td></tr>
359</tbody></table>
360</details>
361</div>
362<p>Type: End-of-Life</p>
363<p>The <code>_linklist</code> module is deprecated. Please use a userland alternative.</p>
364<h4 id="DEP0003">DEP0003: <code>_writableState.buffer</code><span><a class="mark" href="#deprecations_dep0003_writablestate_buffer" id="deprecations_dep0003_writablestate_buffer">#</a></span></h4>
365<div class="api_metadata">
366<details class="changelog"><summary>History</summary>
367<table>
368<tbody><tr><th>Version</th><th>Changes</th></tr>
369<tr><td>v14.0.0</td>
370<td><p>End-of-Life.</p></td></tr>
371<tr><td>v6.12.0, v4.8.6</td>
372<td><p>A deprecation code has been assigned.</p></td></tr>
373<tr><td>v0.11.15</td>
374<td><p>Runtime deprecation.</p></td></tr>
375</tbody></table>
376</details>
377</div>
378<p>Type: End-of-Life</p>
379<p>The <code>_writableState.buffer</code> has been removed. Use <code>_writableState.getBuffer()</code>
380instead.</p>
381<h4 id="DEP0004">DEP0004: <code>CryptoStream.prototype.readyState</code><span><a class="mark" href="#deprecations_dep0004_cryptostream_prototype_readystate" id="deprecations_dep0004_cryptostream_prototype_readystate">#</a></span></h4>
382<div class="api_metadata">
383<details class="changelog"><summary>History</summary>
384<table>
385<tbody><tr><th>Version</th><th>Changes</th></tr>
386<tr><td>v10.0.0</td>
387<td><p>End-of-Life.</p></td></tr>
388<tr><td>v6.12.0, v4.8.6</td>
389<td><p>A deprecation code has been assigned.</p></td></tr>
390<tr><td>v0.4.0</td>
391<td><p>Documentation-only deprecation.</p></td></tr>
392</tbody></table>
393</details>
394</div>
395<p>Type: End-of-Life</p>
396<p>The <code>CryptoStream.prototype.readyState</code> property was removed.</p>
397<h4 id="DEP0005">DEP0005: <code>Buffer()</code> constructor<span><a class="mark" href="#deprecations_dep0005_buffer_constructor" id="deprecations_dep0005_buffer_constructor">#</a></span></h4>
398<div class="api_metadata">
399<details class="changelog"><summary>History</summary>
400<table>
401<tbody><tr><th>Version</th><th>Changes</th></tr>
402<tr><td>v10.0.0</td>
403<td><p>Runtime deprecation.</p></td></tr>
404<tr><td>v6.12.0</td>
405<td><p>A deprecation code has been assigned.</p></td></tr>
406<tr><td>v6.0.0</td>
407<td><p>Documentation-only deprecation.</p></td></tr>
408</tbody></table>
409</details>
410</div>
411<p>Type: Runtime (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
412<p>The <code>Buffer()</code> function and <code>new Buffer()</code> constructor are deprecated due to
413API usability issues that can lead to accidental security issues.</p>
414<p>As an alternative, use one of the following methods of constructing <code>Buffer</code>
415objects:</p>
416<ul>
417<li><a href="buffer.html#buffer_static_method_buffer_alloc_size_fill_encoding"><code>Buffer.alloc(size[, fill[, encoding]])</code></a>: Create a <code>Buffer</code> with
418<em>initialized</em> memory.</li>
419<li><a href="buffer.html#buffer_static_method_buffer_allocunsafe_size"><code>Buffer.allocUnsafe(size)</code></a>: Create a <code>Buffer</code> with
420<em>uninitialized</em> memory.</li>
421<li><a href="buffer.html#buffer_static_method_buffer_allocunsafeslow_size"><code>Buffer.allocUnsafeSlow(size)</code></a>: Create a <code>Buffer</code> with <em>uninitialized</em>
422memory.</li>
423<li><a href="buffer.html#buffer_static_method_buffer_from_array"><code>Buffer.from(array)</code></a>: Create a <code>Buffer</code> with a copy of <code>array</code></li>
424<li><a href="buffer.html#buffer_static_method_buffer_from_arraybuffer_byteoffset_length"><code>Buffer.from(arrayBuffer[, byteOffset[, length]])</code></a> -
425Create a <code>Buffer</code> that wraps the given <code>arrayBuffer</code>.</li>
426<li><a href="buffer.html#buffer_static_method_buffer_from_buffer"><code>Buffer.from(buffer)</code></a>: Create a <code>Buffer</code> that copies <code>buffer</code>.</li>
427<li><a href="buffer.html#buffer_static_method_buffer_from_string_encoding"><code>Buffer.from(string[, encoding])</code></a>: Create a <code>Buffer</code>
428that copies <code>string</code>.</li>
429</ul>
430<p>Without <code>--pending-deprecation</code>, runtime warnings occur only for code not in
431<code>node_modules</code>. This means there will not be deprecation warnings for
432<code>Buffer()</code> usage in dependencies. With <code>--pending-deprecation</code>, a runtime
433warning results no matter where the <code>Buffer()</code> usage occurs.</p>
434<h4 id="DEP0006">DEP0006: <code>child_process</code> <code>options.customFds</code><span><a class="mark" href="#deprecations_dep0006_child_process_options_customfds" id="deprecations_dep0006_child_process_options_customfds">#</a></span></h4>
435<div class="api_metadata">
436<details class="changelog"><summary>History</summary>
437<table>
438<tbody><tr><th>Version</th><th>Changes</th></tr>
439<tr><td>v12.0.0</td>
440<td><p>End-of-Life.</p></td></tr>
441<tr><td>v6.12.0, v4.8.6</td>
442<td><p>A deprecation code has been assigned.</p></td></tr>
443<tr><td>v0.11.14</td>
444<td><p>Runtime deprecation.</p></td></tr>
445<tr><td>v0.5.10</td>
446<td><p>Documentation-only deprecation.</p></td></tr>
447</tbody></table>
448</details>
449</div>
450<p>Type: End-of-Life</p>
451<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>
452methods, the <code>options.customFds</code> option is deprecated. The <code>options.stdio</code>
453option should be used instead.</p>
454<h4 id="DEP0007">DEP0007: Replace <code>cluster</code> <code>worker.suicide</code> with <code>worker.exitedAfterDisconnect</code><span><a class="mark" href="#deprecations_dep0007_replace_cluster_worker_suicide_with_worker_exitedafterdisconnect" id="deprecations_dep0007_replace_cluster_worker_suicide_with_worker_exitedafterdisconnect">#</a></span></h4>
455<div class="api_metadata">
456<details class="changelog"><summary>History</summary>
457<table>
458<tbody><tr><th>Version</th><th>Changes</th></tr>
459<tr><td>v9.0.0</td>
460<td><p>End-of-Life.</p></td></tr>
461<tr><td>v7.0.0</td>
462<td><p>Runtime deprecation.</p></td></tr>
463<tr><td>v6.12.0</td>
464<td><p>A deprecation code has been assigned.</p></td></tr>
465<tr><td>v6.0.0</td>
466<td><p>Documentation-only deprecation.</p></td></tr>
467</tbody></table>
468</details>
469</div>
470<p>Type: End-of-Life</p>
471<p>In an earlier version of the Node.js <code>cluster</code>, a boolean property with the name
472<code>suicide</code> was added to the <code>Worker</code> object. The intent of this property was to
473provide an indication of how and why the <code>Worker</code> instance exited. In Node.js
4746.0.0, the old property was deprecated and replaced with a new
475<a href="cluster.html#cluster_worker_exitedafterdisconnect"><code>worker.exitedAfterDisconnect</code></a> property. The old property name did not
476precisely describe the actual semantics and was unnecessarily emotion-laden.</p>
477<h4 id="DEP0008">DEP0008: <code>require('constants')</code><span><a class="mark" href="#deprecations_dep0008_require_constants" id="deprecations_dep0008_require_constants">#</a></span></h4>
478<div class="api_metadata">
479<details class="changelog"><summary>History</summary>
480<table>
481<tbody><tr><th>Version</th><th>Changes</th></tr>
482<tr><td>v6.12.0</td>
483<td><p>A deprecation code has been assigned.</p></td></tr>
484<tr><td>v6.3.0</td>
485<td><p>Documentation-only deprecation.</p></td></tr>
486</tbody></table>
487</details>
488</div>
489<p>Type: Documentation-only</p>
490<p>The <code>constants</code> module is deprecated. When requiring access to constants
491relevant to specific Node.js builtin modules, developers should instead refer
492to the <code>constants</code> property exposed by the relevant module. For instance,
493<code>require('fs').constants</code> and <code>require('os').constants</code>.</p>
494<h4 id="DEP0009">DEP0009: <code>crypto.pbkdf2</code> without digest<span><a class="mark" href="#deprecations_dep0009_crypto_pbkdf2_without_digest" id="deprecations_dep0009_crypto_pbkdf2_without_digest">#</a></span></h4>
495<div class="api_metadata">
496<details class="changelog"><summary>History</summary>
497<table>
498<tbody><tr><th>Version</th><th>Changes</th></tr>
499<tr><td>v14.0.0</td>
500<td><p>End-of-Life (for <code>digest === null</code>).</p></td></tr>
501<tr><td>v11.0.0</td>
502<td><p>Runtime deprecation (for <code>digest === null</code>).</p></td></tr>
503<tr><td>v8.0.0</td>
504<td><p>End-of-Life (for <code>digest === undefined</code>).</p></td></tr>
505<tr><td>v6.12.0</td>
506<td><p>A deprecation code has been assigned.</p></td></tr>
507<tr><td>v6.0.0</td>
508<td><p>Runtime deprecation (for <code>digest === undefined</code>).</p></td></tr>
509</tbody></table>
510</details>
511</div>
512<p>Type: End-of-Life</p>
513<p>Use of the <a href="crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback"><code>crypto.pbkdf2()</code></a> API without specifying a digest was deprecated
514in Node.js 6.0 because the method defaulted to using the non-recommended
515<code>'SHA1'</code> digest. Previously, a deprecation warning was printed. Starting in
516Node.js 8.0.0, calling <code>crypto.pbkdf2()</code> or <code>crypto.pbkdf2Sync()</code> with
517<code>digest</code> set to <code>undefined</code> will throw a <code>TypeError</code>.</p>
518<p>Beginning in Node.js v11.0.0, calling these functions with <code>digest</code> set to
519<code>null</code> would print a deprecation warning to align with the behavior when <code>digest</code>
520is <code>undefined</code>.</p>
521<p>Now, however, passing either <code>undefined</code> or <code>null</code> will throw a <code>TypeError</code>.</p>
522<h4 id="DEP0010">DEP0010: <code>crypto.createCredentials</code><span><a class="mark" href="#deprecations_dep0010_crypto_createcredentials" id="deprecations_dep0010_crypto_createcredentials">#</a></span></h4>
523<div class="api_metadata">
524<details class="changelog"><summary>History</summary>
525<table>
526<tbody><tr><th>Version</th><th>Changes</th></tr>
527<tr><td>v11.0.0</td>
528<td><p>End-of-Life.</p></td></tr>
529<tr><td>v6.12.0, v4.8.6</td>
530<td><p>A deprecation code has been assigned.</p></td></tr>
531<tr><td>v0.11.13</td>
532<td><p>Runtime deprecation.</p></td></tr>
533</tbody></table>
534</details>
535</div>
536<p>Type: End-of-Life</p>
537<p>The <code>crypto.createCredentials()</code> API was removed. Please use
538<a href="tls.html#tls_tls_createsecurecontext_options"><code>tls.createSecureContext()</code></a> instead.</p>
539<h4 id="DEP0011">DEP0011: <code>crypto.Credentials</code><span><a class="mark" href="#deprecations_dep0011_crypto_credentials" id="deprecations_dep0011_crypto_credentials">#</a></span></h4>
540<div class="api_metadata">
541<details class="changelog"><summary>History</summary>
542<table>
543<tbody><tr><th>Version</th><th>Changes</th></tr>
544<tr><td>v11.0.0</td>
545<td><p>End-of-Life.</p></td></tr>
546<tr><td>v6.12.0, v4.8.6</td>
547<td><p>A deprecation code has been assigned.</p></td></tr>
548<tr><td>v0.11.13</td>
549<td><p>Runtime deprecation.</p></td></tr>
550</tbody></table>
551</details>
552</div>
553<p>Type: End-of-Life</p>
554<p>The <code>crypto.Credentials</code> class was removed. Please use <a href="tls.html#tls_tls_createsecurecontext_options"><code>tls.SecureContext</code></a>
555instead.</p>
556<h4 id="DEP0012">DEP0012: <code>Domain.dispose</code><span><a class="mark" href="#deprecations_dep0012_domain_dispose" id="deprecations_dep0012_domain_dispose">#</a></span></h4>
557<div class="api_metadata">
558<details class="changelog"><summary>History</summary>
559<table>
560<tbody><tr><th>Version</th><th>Changes</th></tr>
561<tr><td>v9.0.0</td>
562<td><p>End-of-Life.</p></td></tr>
563<tr><td>v6.12.0, v4.8.6</td>
564<td><p>A deprecation code has been assigned.</p></td></tr>
565<tr><td>v0.11.7</td>
566<td><p>Runtime deprecation.</p></td></tr>
567</tbody></table>
568</details>
569</div>
570<p>Type: End-of-Life</p>
571<p><code>Domain.dispose()</code> has been removed. Recover from failed I/O actions
572explicitly via error event handlers set on the domain instead.</p>
573<h4 id="DEP0013">DEP0013: <code>fs</code> asynchronous function without callback<span><a class="mark" href="#deprecations_dep0013_fs_asynchronous_function_without_callback" id="deprecations_dep0013_fs_asynchronous_function_without_callback">#</a></span></h4>
574<div class="api_metadata">
575<details class="changelog"><summary>History</summary>
576<table>
577<tbody><tr><th>Version</th><th>Changes</th></tr>
578<tr><td>v10.0.0</td>
579<td><p>End-of-Life.</p></td></tr>
580<tr><td>v7.0.0</td>
581<td><p>Runtime deprecation.</p></td></tr>
582</tbody></table>
583</details>
584</div>
585<p>Type: End-of-Life</p>
586<p>Calling an asynchronous function without a callback throws a <code>TypeError</code>
587in 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>
588<h4 id="DEP0014">DEP0014: <code>fs.read</code> legacy String interface<span><a class="mark" href="#deprecations_dep0014_fs_read_legacy_string_interface" id="deprecations_dep0014_fs_read_legacy_string_interface">#</a></span></h4>
589<div class="api_metadata">
590<details class="changelog"><summary>History</summary>
591<table>
592<tbody><tr><th>Version</th><th>Changes</th></tr>
593<tr><td>v8.0.0</td>
594<td><p>End-of-Life.</p></td></tr>
595<tr><td>v6.0.0</td>
596<td><p>Runtime deprecation.</p></td></tr>
597<tr><td>v6.12.0, v4.8.6</td>
598<td><p>A deprecation code has been assigned.</p></td></tr>
599<tr><td>v0.1.96</td>
600<td><p>Documentation-only deprecation.</p></td></tr>
601</tbody></table>
602</details>
603</div>
604<p>Type: End-of-Life</p>
605<p>The <a href="fs.html#fs_fs_read_fd_buffer_offset_length_position_callback"><code>fs.read()</code></a> legacy <code>String</code> interface is deprecated. Use the <code>Buffer</code>
606API as mentioned in the documentation instead.</p>
607<h4 id="DEP0015">DEP0015: <code>fs.readSync</code> legacy String interface<span><a class="mark" href="#deprecations_dep0015_fs_readsync_legacy_string_interface" id="deprecations_dep0015_fs_readsync_legacy_string_interface">#</a></span></h4>
608<div class="api_metadata">
609<details class="changelog"><summary>History</summary>
610<table>
611<tbody><tr><th>Version</th><th>Changes</th></tr>
612<tr><td>v8.0.0</td>
613<td><p>End-of-Life.</p></td></tr>
614<tr><td>v6.0.0</td>
615<td><p>Runtime deprecation.</p></td></tr>
616<tr><td>v6.12.0, v4.8.6</td>
617<td><p>A deprecation code has been assigned.</p></td></tr>
618<tr><td>v0.1.96</td>
619<td><p>Documentation-only deprecation.</p></td></tr>
620</tbody></table>
621</details>
622</div>
623<p>Type: End-of-Life</p>
624<p>The <a href="fs.html#fs_fs_readsync_fd_buffer_offset_length_position"><code>fs.readSync()</code></a> legacy <code>String</code> interface is deprecated. Use the
625<code>Buffer</code> API as mentioned in the documentation instead.</p>
626<h4 id="DEP0016">DEP0016: <code>GLOBAL</code>/<code>root</code><span><a class="mark" href="#deprecations_dep0016_global_root" id="deprecations_dep0016_global_root">#</a></span></h4>
627<div class="api_metadata">
628<details class="changelog"><summary>History</summary>
629<table>
630<tbody><tr><th>Version</th><th>Changes</th></tr>
631<tr><td>v14.0.0</td>
632<td><p>End-of-Life.</p></td></tr>
633<tr><td>v6.12.0</td>
634<td><p>A deprecation code has been assigned.</p></td></tr>
635<tr><td>v6.0.0</td>
636<td><p>Runtime deprecation.</p></td></tr>
637</tbody></table>
638</details>
639</div>
640<p>Type: End-of-Life</p>
641<p>The <code>GLOBAL</code> and <code>root</code> aliases for the <code>global</code> property were deprecated
642in Node.js 6.0.0 and have since been removed.</p>
643<h4 id="DEP0017">DEP0017: <code>Intl.v8BreakIterator</code><span><a class="mark" href="#deprecations_dep0017_intl_v8breakiterator" id="deprecations_dep0017_intl_v8breakiterator">#</a></span></h4>
644<div class="api_metadata">
645<details class="changelog"><summary>History</summary>
646<table>
647<tbody><tr><th>Version</th><th>Changes</th></tr>
648<tr><td>v9.0.0</td>
649<td><p>End-of-Life.</p></td></tr>
650<tr><td>v7.0.0</td>
651<td><p>Runtime deprecation.</p></td></tr>
652</tbody></table>
653</details>
654</div>
655<p>Type: End-of-Life</p>
656<p><code>Intl.v8BreakIterator</code> was a non-standard extension and has been removed.
657See <a href="https://github.com/tc39/proposal-intl-segmenter"><code>Intl.Segmenter</code></a>.</p>
658<h4 id="DEP0018">DEP0018: Unhandled promise rejections<span><a class="mark" href="#deprecations_dep0018_unhandled_promise_rejections" id="deprecations_dep0018_unhandled_promise_rejections">#</a></span></h4>
659<div class="api_metadata">
660<details class="changelog"><summary>History</summary>
661<table>
662<tbody><tr><th>Version</th><th>Changes</th></tr>
663<tr><td>v7.0.0</td>
664<td><p>Runtime deprecation.</p></td></tr>
665</tbody></table>
666</details>
667</div>
668<p>Type: Runtime</p>
669<p>Unhandled promise rejections are deprecated. In the future, promise rejections
670that are not handled will terminate the Node.js process with a non-zero exit
671code.</p>
672<h4 id="DEP0019">DEP0019: <code>require('.')</code> resolved outside directory<span><a class="mark" href="#deprecations_dep0019_require_resolved_outside_directory" id="deprecations_dep0019_require_resolved_outside_directory">#</a></span></h4>
673<div class="api_metadata">
674<details class="changelog"><summary>History</summary>
675<table>
676<tbody><tr><th>Version</th><th>Changes</th></tr>
677<tr><td>v12.0.0</td>
678<td><p>Removed functionality.</p></td></tr>
679<tr><td>v6.12.0, v4.8.6</td>
680<td><p>A deprecation code has been assigned.</p></td></tr>
681<tr><td>v1.8.1</td>
682<td><p>Runtime deprecation.</p></td></tr>
683</tbody></table>
684</details>
685</div>
686<p>Type: End-of-Life</p>
687<p>In certain cases, <code>require('.')</code> could resolve outside the package directory.
688This behavior has been removed.</p>
689<h4 id="DEP0020">DEP0020: <code>Server.connections</code><span><a class="mark" href="#deprecations_dep0020_server_connections" id="deprecations_dep0020_server_connections">#</a></span></h4>
690<div class="api_metadata">
691<details class="changelog"><summary>History</summary>
692<table>
693<tbody><tr><th>Version</th><th>Changes</th></tr>
694<tr><td>v6.12.0, v4.8.6</td>
695<td><p>A deprecation code has been assigned.</p></td></tr>
696<tr><td>v0.9.7</td>
697<td><p>Runtime deprecation.</p></td></tr>
698</tbody></table>
699</details>
700</div>
701<p>Type: Runtime</p>
702<p>The <a href="net.html#net_server_connections"><code>Server.connections</code></a> property is deprecated. Please use the
703<a href="net.html#net_server_getconnections_callback"><code>Server.getConnections()</code></a> method instead.</p>
704<h4 id="DEP0021">DEP0021: <code>Server.listenFD</code><span><a class="mark" href="#deprecations_dep0021_server_listenfd" id="deprecations_dep0021_server_listenfd">#</a></span></h4>
705<div class="api_metadata">
706<details class="changelog"><summary>History</summary>
707<table>
708<tbody><tr><th>Version</th><th>Changes</th></tr>
709<tr><td>v12.0.0</td>
710<td><p>End-of-Life.</p></td></tr>
711<tr><td>v6.12.0, v4.8.6</td>
712<td><p>A deprecation code has been assigned.</p></td></tr>
713<tr><td>v0.7.12</td>
714<td><p>Runtime deprecation.</p></td></tr>
715</tbody></table>
716</details>
717</div>
718<p>Type: End-of-Life</p>
719<p>The <code>Server.listenFD()</code> method was deprecated and removed. Please use
720<a href="net.html#net_server_listen_handle_backlog_callback"><code>Server.listen({fd: &#x3C;number>})</code></a> instead.</p>
721<h4 id="DEP0022">DEP0022: <code>os.tmpDir()</code><span><a class="mark" href="#deprecations_dep0022_os_tmpdir" id="deprecations_dep0022_os_tmpdir">#</a></span></h4>
722<div class="api_metadata">
723<details class="changelog"><summary>History</summary>
724<table>
725<tbody><tr><th>Version</th><th>Changes</th></tr>
726<tr><td>v14.0.0</td>
727<td><p>End-of-Life.</p></td></tr>
728<tr><td>v7.0.0</td>
729<td><p>Runtime deprecation.</p></td></tr>
730</tbody></table>
731</details>
732</div>
733<p>Type: End-of-Life</p>
734<p>The <code>os.tmpDir()</code> API was deprecated in Node.js 7.0.0 and has since been
735removed. Please use <a href="os.html#os_os_tmpdir"><code>os.tmpdir()</code></a> instead.</p>
736<h4 id="DEP0023">DEP0023: <code>os.getNetworkInterfaces()</code><span><a class="mark" href="#deprecations_dep0023_os_getnetworkinterfaces" id="deprecations_dep0023_os_getnetworkinterfaces">#</a></span></h4>
737<div class="api_metadata">
738<details class="changelog"><summary>History</summary>
739<table>
740<tbody><tr><th>Version</th><th>Changes</th></tr>
741<tr><td>v12.0.0</td>
742<td><p>End-of-Life.</p></td></tr>
743<tr><td>v6.12.0, v4.8.6</td>
744<td><p>A deprecation code has been assigned.</p></td></tr>
745<tr><td>v0.6.0</td>
746<td><p>Runtime deprecation.</p></td></tr>
747</tbody></table>
748</details>
749</div>
750<p>Type: End-of-Life</p>
751<p>The <code>os.getNetworkInterfaces()</code> method is deprecated. Please use the
752<a href="os.html#os_os_networkinterfaces"><code>os.networkInterfaces()</code></a> method instead.</p>
753<h4 id="DEP0024">DEP0024: <code>REPLServer.prototype.convertToContext()</code><span><a class="mark" href="#deprecations_dep0024_replserver_prototype_converttocontext" id="deprecations_dep0024_replserver_prototype_converttocontext">#</a></span></h4>
754<div class="api_metadata">
755<details class="changelog"><summary>History</summary>
756<table>
757<tbody><tr><th>Version</th><th>Changes</th></tr>
758<tr><td>v9.0.0</td>
759<td><p>End-of-Life.</p></td></tr>
760<tr><td>v7.0.0</td>
761<td><p>Runtime deprecation.</p></td></tr>
762</tbody></table>
763</details>
764</div>
765<p>Type: End-of-Life</p>
766<p>The <code>REPLServer.prototype.convertToContext()</code> API has been removed.</p>
767<h4 id="DEP0025">DEP0025: <code>require('sys')</code><span><a class="mark" href="#deprecations_dep0025_require_sys" id="deprecations_dep0025_require_sys">#</a></span></h4>
768<div class="api_metadata">
769<details class="changelog"><summary>History</summary>
770<table>
771<tbody><tr><th>Version</th><th>Changes</th></tr>
772<tr><td>v6.12.0, v4.8.6</td>
773<td><p>A deprecation code has been assigned.</p></td></tr>
774<tr><td>v1.0.0</td>
775<td><p>Runtime deprecation.</p></td></tr>
776</tbody></table>
777</details>
778</div>
779<p>Type: Runtime</p>
780<p>The <code>sys</code> module is deprecated. Please use the <a href="util.html"><code>util</code></a> module instead.</p>
781<h4 id="DEP0026">DEP0026: <code>util.print()</code><span><a class="mark" href="#deprecations_dep0026_util_print" id="deprecations_dep0026_util_print">#</a></span></h4>
782<div class="api_metadata">
783<details class="changelog"><summary>History</summary>
784<table>
785<tbody><tr><th>Version</th><th>Changes</th></tr>
786<tr><td>v12.0.0</td>
787<td><p>End-of-Life.</p></td></tr>
788<tr><td>v6.12.0, v4.8.6</td>
789<td><p>A deprecation code has been assigned.</p></td></tr>
790<tr><td>v0.11.3</td>
791<td><p>Runtime deprecation.</p></td></tr>
792</tbody></table>
793</details>
794</div>
795<p>Type: End-of-Life</p>
796<p><code>util.print()</code> has been removed. Please use <a href="console.html#console_console_log_data_args"><code>console.log()</code></a> instead.</p>
797<h4 id="DEP0027">DEP0027: <code>util.puts()</code><span><a class="mark" href="#deprecations_dep0027_util_puts" id="deprecations_dep0027_util_puts">#</a></span></h4>
798<div class="api_metadata">
799<details class="changelog"><summary>History</summary>
800<table>
801<tbody><tr><th>Version</th><th>Changes</th></tr>
802<tr><td>v12.0.0</td>
803<td><p>End-of-Life.</p></td></tr>
804<tr><td>v6.12.0, v4.8.6</td>
805<td><p>A deprecation code has been assigned.</p></td></tr>
806<tr><td>v0.11.3</td>
807<td><p>Runtime deprecation.</p></td></tr>
808</tbody></table>
809</details>
810</div>
811<p>Type: End-of-Life</p>
812<p><code>util.puts()</code> has been removed. Please use <a href="console.html#console_console_log_data_args"><code>console.log()</code></a> instead.</p>
813<h4 id="DEP0028">DEP0028: <code>util.debug()</code><span><a class="mark" href="#deprecations_dep0028_util_debug" id="deprecations_dep0028_util_debug">#</a></span></h4>
814<div class="api_metadata">
815<details class="changelog"><summary>History</summary>
816<table>
817<tbody><tr><th>Version</th><th>Changes</th></tr>
818<tr><td>v12.0.0</td>
819<td><p>End-of-Life.</p></td></tr>
820<tr><td>v6.12.0, v4.8.6</td>
821<td><p>A deprecation code has been assigned.</p></td></tr>
822<tr><td>v0.11.3</td>
823<td><p>Runtime deprecation.</p></td></tr>
824</tbody></table>
825</details>
826</div>
827<p>Type: End-of-Life</p>
828<p><code>util.debug()</code> has been removed. Please use <a href="console.html#console_console_error_data_args"><code>console.error()</code></a> instead.</p>
829<h4 id="DEP0029">DEP0029: <code>util.error()</code><span><a class="mark" href="#deprecations_dep0029_util_error" id="deprecations_dep0029_util_error">#</a></span></h4>
830<div class="api_metadata">
831<details class="changelog"><summary>History</summary>
832<table>
833<tbody><tr><th>Version</th><th>Changes</th></tr>
834<tr><td>v12.0.0</td>
835<td><p>End-of-Life.</p></td></tr>
836<tr><td>v6.12.0, v4.8.6</td>
837<td><p>A deprecation code has been assigned.</p></td></tr>
838<tr><td>v0.11.3</td>
839<td><p>Runtime deprecation.</p></td></tr>
840</tbody></table>
841</details>
842</div>
843<p>Type: End-of-Life</p>
844<p><code>util.error()</code> has been removed. Please use <a href="console.html#console_console_error_data_args"><code>console.error()</code></a> instead.</p>
845<h4 id="DEP0030">DEP0030: <code>SlowBuffer</code><span><a class="mark" href="#deprecations_dep0030_slowbuffer" id="deprecations_dep0030_slowbuffer">#</a></span></h4>
846<div class="api_metadata">
847<details class="changelog"><summary>History</summary>
848<table>
849<tbody><tr><th>Version</th><th>Changes</th></tr>
850<tr><td>v6.12.0</td>
851<td><p>A deprecation code has been assigned.</p></td></tr>
852<tr><td>v6.0.0</td>
853<td><p>Documentation-only deprecation.</p></td></tr>
854</tbody></table>
855</details>
856</div>
857<p>Type: Documentation-only</p>
858<p>The <a href="buffer.html#buffer_class_slowbuffer"><code>SlowBuffer</code></a> class is deprecated. Please use
859<a href="buffer.html#buffer_static_method_buffer_allocunsafeslow_size"><code>Buffer.allocUnsafeSlow(size)</code></a> instead.</p>
860<h4 id="DEP0031">DEP0031: <code>ecdh.setPublicKey()</code><span><a class="mark" href="#deprecations_dep0031_ecdh_setpublickey" id="deprecations_dep0031_ecdh_setpublickey">#</a></span></h4>
861<div class="api_metadata">
862<details class="changelog"><summary>History</summary>
863<table>
864<tbody><tr><th>Version</th><th>Changes</th></tr>
865<tr><td>v6.12.0</td>
866<td><p>A deprecation code has been assigned.</p></td></tr>
867<tr><td>v5.2.0</td>
868<td><p>Documentation-only deprecation.</p></td></tr>
869</tbody></table>
870</details>
871</div>
872<p>Type: Documentation-only</p>
873<p>The <a href="crypto.html#crypto_ecdh_setpublickey_publickey_encoding"><code>ecdh.setPublicKey()</code></a> method is now deprecated as its inclusion in the
874API is not useful.</p>
875<h4 id="DEP0032">DEP0032: <code>domain</code> module<span><a class="mark" href="#deprecations_dep0032_domain_module" id="deprecations_dep0032_domain_module">#</a></span></h4>
876<div class="api_metadata">
877<details class="changelog"><summary>History</summary>
878<table>
879<tbody><tr><th>Version</th><th>Changes</th></tr>
880<tr><td>v6.12.0, v4.8.6</td>
881<td><p>A deprecation code has been assigned.</p></td></tr>
882<tr><td>v1.4.2</td>
883<td><p>Documentation-only deprecation.</p></td></tr>
884</tbody></table>
885</details>
886</div>
887<p>Type: Documentation-only</p>
888<p>The <a href="domain.html"><code>domain</code></a> module is deprecated and should not be used.</p>
889<h4 id="DEP0033">DEP0033: <code>EventEmitter.listenerCount()</code><span><a class="mark" href="#deprecations_dep0033_eventemitter_listenercount" id="deprecations_dep0033_eventemitter_listenercount">#</a></span></h4>
890<div class="api_metadata">
891<details class="changelog"><summary>History</summary>
892<table>
893<tbody><tr><th>Version</th><th>Changes</th></tr>
894<tr><td>v6.12.0, v4.8.6</td>
895<td><p>A deprecation code has been assigned.</p></td></tr>
896<tr><td>v3.2.0</td>
897<td><p>Documentation-only deprecation.</p></td></tr>
898</tbody></table>
899</details>
900</div>
901<p>Type: Documentation-only</p>
902<p>The <a href="events.html#events_events_listenercount_emitter_eventname"><code>events.listenerCount(emitter, eventName)</code></a> API is
903deprecated. Please use <a href="events.html#events_emitter_listenercount_eventname"><code>emitter.listenerCount(eventName)</code></a> instead.</p>
904<h4 id="DEP0034">DEP0034: <code>fs.exists(path, callback)</code><span><a class="mark" href="#deprecations_dep0034_fs_exists_path_callback" id="deprecations_dep0034_fs_exists_path_callback">#</a></span></h4>
905<div class="api_metadata">
906<details class="changelog"><summary>History</summary>
907<table>
908<tbody><tr><th>Version</th><th>Changes</th></tr>
909<tr><td>v6.12.0, v4.8.6</td>
910<td><p>A deprecation code has been assigned.</p></td></tr>
911<tr><td>v1.0.0</td>
912<td><p>Documentation-only deprecation.</p></td></tr>
913</tbody></table>
914</details>
915</div>
916<p>Type: Documentation-only</p>
917<p>The <a href="fs.html#fs_fs_exists_path_callback"><code>fs.exists(path, callback)</code></a> API is deprecated. Please use
918<a href="fs.html#fs_fs_stat_path_options_callback"><code>fs.stat()</code></a> or <a href="fs.html#fs_fs_access_path_mode_callback"><code>fs.access()</code></a> instead.</p>
919<h4 id="DEP0035">DEP0035: <code>fs.lchmod(path, mode, callback)</code><span><a class="mark" href="#deprecations_dep0035_fs_lchmod_path_mode_callback" id="deprecations_dep0035_fs_lchmod_path_mode_callback">#</a></span></h4>
920<div class="api_metadata">
921<details class="changelog"><summary>History</summary>
922<table>
923<tbody><tr><th>Version</th><th>Changes</th></tr>
924<tr><td>v6.12.0, v4.8.6</td>
925<td><p>A deprecation code has been assigned.</p></td></tr>
926<tr><td>v0.4.7</td>
927<td><p>Documentation-only deprecation.</p></td></tr>
928</tbody></table>
929</details>
930</div>
931<p>Type: Documentation-only</p>
932<p>The <a href="fs.html#fs_fs_lchmod_path_mode_callback"><code>fs.lchmod(path, mode, callback)</code></a> API is deprecated.</p>
933<h4 id="DEP0036">DEP0036: <code>fs.lchmodSync(path, mode)</code><span><a class="mark" href="#deprecations_dep0036_fs_lchmodsync_path_mode" id="deprecations_dep0036_fs_lchmodsync_path_mode">#</a></span></h4>
934<div class="api_metadata">
935<details class="changelog"><summary>History</summary>
936<table>
937<tbody><tr><th>Version</th><th>Changes</th></tr>
938<tr><td>v6.12.0, v4.8.6</td>
939<td><p>A deprecation code has been assigned.</p></td></tr>
940<tr><td>v0.4.7</td>
941<td><p>Documentation-only deprecation.</p></td></tr>
942</tbody></table>
943</details>
944</div>
945<p>Type: Documentation-only</p>
946<p>The <a href="fs.html#fs_fs_lchmodsync_path_mode"><code>fs.lchmodSync(path, mode)</code></a> API is deprecated.</p>
947<h4 id="DEP0037">DEP0037: <code>fs.lchown(path, uid, gid, callback)</code><span><a class="mark" href="#deprecations_dep0037_fs_lchown_path_uid_gid_callback" id="deprecations_dep0037_fs_lchown_path_uid_gid_callback">#</a></span></h4>
948<div class="api_metadata">
949<details class="changelog"><summary>History</summary>
950<table>
951<tbody><tr><th>Version</th><th>Changes</th></tr>
952<tr><td>v10.6.0</td>
953<td><p>Deprecation revoked.</p></td></tr>
954<tr><td>v6.12.0, v4.8.6</td>
955<td><p>A deprecation code has been assigned.</p></td></tr>
956<tr><td>v0.4.7</td>
957<td><p>Documentation-only deprecation.</p></td></tr>
958</tbody></table>
959</details>
960</div>
961<p>Type: Deprecation revoked</p>
962<p>The <a href="fs.html#fs_fs_lchown_path_uid_gid_callback"><code>fs.lchown(path, uid, gid, callback)</code></a> API was deprecated. The
963deprecation was revoked because the requisite supporting APIs were added in
964libuv.</p>
965<h4 id="DEP0038">DEP0038: <code>fs.lchownSync(path, uid, gid)</code><span><a class="mark" href="#deprecations_dep0038_fs_lchownsync_path_uid_gid" id="deprecations_dep0038_fs_lchownsync_path_uid_gid">#</a></span></h4>
966<div class="api_metadata">
967<details class="changelog"><summary>History</summary>
968<table>
969<tbody><tr><th>Version</th><th>Changes</th></tr>
970<tr><td>v10.6.0</td>
971<td><p>Deprecation revoked.</p></td></tr>
972<tr><td>v6.12.0, v4.8.6</td>
973<td><p>A deprecation code has been assigned.</p></td></tr>
974<tr><td>v0.4.7</td>
975<td><p>Documentation-only deprecation.</p></td></tr>
976</tbody></table>
977</details>
978</div>
979<p>Type: Deprecation revoked</p>
980<p>The <a href="fs.html#fs_fs_lchownsync_path_uid_gid"><code>fs.lchownSync(path, uid, gid)</code></a> API was deprecated. The deprecation was
981revoked because the requisite supporting APIs were added in libuv.</p>
982<h4 id="DEP0039">DEP0039: <code>require.extensions</code><span><a class="mark" href="#deprecations_dep0039_require_extensions" id="deprecations_dep0039_require_extensions">#</a></span></h4>
983<div class="api_metadata">
984<details class="changelog"><summary>History</summary>
985<table>
986<tbody><tr><th>Version</th><th>Changes</th></tr>
987<tr><td>v6.12.0, v4.8.6</td>
988<td><p>A deprecation code has been assigned.</p></td></tr>
989<tr><td>v0.10.6</td>
990<td><p>Documentation-only deprecation.</p></td></tr>
991</tbody></table>
992</details>
993</div>
994<p>Type: Documentation-only</p>
995<p>The <a href="modules.html#modules_require_extensions"><code>require.extensions</code></a> property is deprecated.</p>
996<h4 id="DEP0040">DEP0040: <code>punycode</code> module<span><a class="mark" href="#deprecations_dep0040_punycode_module" id="deprecations_dep0040_punycode_module">#</a></span></h4>
997<div class="api_metadata">
998<details class="changelog"><summary>History</summary>
999<table>
1000<tbody><tr><th>Version</th><th>Changes</th></tr>
1001<tr><td>v7.0.0</td>
1002<td><p>Documentation-only deprecation.</p></td></tr>
1003</tbody></table>
1004</details>
1005</div>
1006<p>Type: Documentation-only</p>
1007<p>The <a href="punycode.html"><code>punycode</code></a> module is deprecated. Please use a userland alternative
1008instead.</p>
1009<h4 id="DEP0041">DEP0041: <code>NODE_REPL_HISTORY_FILE</code> environment variable<span><a class="mark" href="#deprecations_dep0041_node_repl_history_file_environment_variable" id="deprecations_dep0041_node_repl_history_file_environment_variable">#</a></span></h4>
1010<div class="api_metadata">
1011<details class="changelog"><summary>History</summary>
1012<table>
1013<tbody><tr><th>Version</th><th>Changes</th></tr>
1014<tr><td>v10.0.0</td>
1015<td><p>End-of-Life.</p></td></tr>
1016<tr><td>v6.12.0, v4.8.6</td>
1017<td><p>A deprecation code has been assigned.</p></td></tr>
1018<tr><td>v3.0.0</td>
1019<td><p>Documentation-only deprecation.</p></td></tr>
1020</tbody></table>
1021</details>
1022</div>
1023<p>Type: End-of-Life</p>
1024<p>The <code>NODE_REPL_HISTORY_FILE</code> environment variable was removed. Please use
1025<code>NODE_REPL_HISTORY</code> instead.</p>
1026<h4 id="DEP0042">DEP0042: <code>tls.CryptoStream</code><span><a class="mark" href="#deprecations_dep0042_tls_cryptostream" id="deprecations_dep0042_tls_cryptostream">#</a></span></h4>
1027<div class="api_metadata">
1028<details class="changelog"><summary>History</summary>
1029<table>
1030<tbody><tr><th>Version</th><th>Changes</th></tr>
1031<tr><td>v10.0.0</td>
1032<td><p>End-of-Life.</p></td></tr>
1033<tr><td>v6.12.0, v4.8.6</td>
1034<td><p>A deprecation code has been assigned.</p></td></tr>
1035<tr><td>v0.11.3</td>
1036<td><p>Documentation-only deprecation.</p></td></tr>
1037</tbody></table>
1038</details>
1039</div>
1040<p>Type: End-of-Life</p>
1041<p>The <a href="tls.html#tls_class_tls_cryptostream"><code>tls.CryptoStream</code></a> class was removed. Please use
1042<a href="tls.html#tls_class_tls_tlssocket"><code>tls.TLSSocket</code></a> instead.</p>
1043<h4 id="DEP0043">DEP0043: <code>tls.SecurePair</code><span><a class="mark" href="#deprecations_dep0043_tls_securepair" id="deprecations_dep0043_tls_securepair">#</a></span></h4>
1044<div class="api_metadata">
1045<details class="changelog"><summary>History</summary>
1046<table>
1047<tbody><tr><th>Version</th><th>Changes</th></tr>
1048<tr><td>v8.0.0</td>
1049<td><p>Runtime deprecation.</p></td></tr>
1050<tr><td>v6.12.0</td>
1051<td><p>A deprecation code has been assigned.</p></td></tr>
1052<tr><td>v6.0.0</td>
1053<td><p>Documentation-only deprecation.</p></td></tr>
1054<tr><td>v0.11.15</td>
1055<td><p>Deprecation revoked.</p></td></tr>
1056<tr><td>v0.11.3</td>
1057<td><p>Runtime deprecation.</p></td></tr>
1058</tbody></table>
1059</details>
1060</div>
1061<p>Type: Documentation-only</p>
1062<p>The <a href="tls.html#tls_class_tls_securepair"><code>tls.SecurePair</code></a> class is deprecated. Please use
1063<a href="tls.html#tls_class_tls_tlssocket"><code>tls.TLSSocket</code></a> instead.</p>
1064<h4 id="DEP0044">DEP0044: <code>util.isArray()</code><span><a class="mark" href="#deprecations_dep0044_util_isarray" id="deprecations_dep0044_util_isarray">#</a></span></h4>
1065<div class="api_metadata">
1066<details class="changelog"><summary>History</summary>
1067<table>
1068<tbody><tr><th>Version</th><th>Changes</th></tr>
1069<tr><td>v6.12.0, v4.8.6</td>
1070<td><p>A deprecation code has been assigned.</p></td></tr>
1071<tr><td>v4.0.0, v3.3.1</td>
1072<td><p>Documentation-only deprecation.</p></td></tr>
1073</tbody></table>
1074</details>
1075</div>
1076<p>Type: Documentation-only</p>
1077<p>The <a href="util.html#util_util_isarray_object"><code>util.isArray()</code></a> API is deprecated. Please use <code>Array.isArray()</code>
1078instead.</p>
1079<h4 id="DEP0045">DEP0045: <code>util.isBoolean()</code><span><a class="mark" href="#deprecations_dep0045_util_isboolean" id="deprecations_dep0045_util_isboolean">#</a></span></h4>
1080<div class="api_metadata">
1081<details class="changelog"><summary>History</summary>
1082<table>
1083<tbody><tr><th>Version</th><th>Changes</th></tr>
1084<tr><td>v6.12.0, v4.8.6</td>
1085<td><p>A deprecation code has been assigned.</p></td></tr>
1086<tr><td>v4.0.0, v3.3.1</td>
1087<td><p>Documentation-only deprecation.</p></td></tr>
1088</tbody></table>
1089</details>
1090</div>
1091<p>Type: Documentation-only</p>
1092<p>The <a href="util.html#util_util_isboolean_object"><code>util.isBoolean()</code></a> API is deprecated.</p>
1093<h4 id="DEP0046">DEP0046: <code>util.isBuffer()</code><span><a class="mark" href="#deprecations_dep0046_util_isbuffer" id="deprecations_dep0046_util_isbuffer">#</a></span></h4>
1094<div class="api_metadata">
1095<details class="changelog"><summary>History</summary>
1096<table>
1097<tbody><tr><th>Version</th><th>Changes</th></tr>
1098<tr><td>v6.12.0, v4.8.6</td>
1099<td><p>A deprecation code has been assigned.</p></td></tr>
1100<tr><td>v4.0.0, v3.3.1</td>
1101<td><p>Documentation-only deprecation.</p></td></tr>
1102</tbody></table>
1103</details>
1104</div>
1105<p>Type: Documentation-only</p>
1106<p>The <a href="util.html#util_util_isbuffer_object"><code>util.isBuffer()</code></a> API is deprecated. Please use
1107<a href="buffer.html#buffer_static_method_buffer_isbuffer_obj"><code>Buffer.isBuffer()</code></a> instead.</p>
1108<h4 id="DEP0047">DEP0047: <code>util.isDate()</code><span><a class="mark" href="#deprecations_dep0047_util_isdate" id="deprecations_dep0047_util_isdate">#</a></span></h4>
1109<div class="api_metadata">
1110<details class="changelog"><summary>History</summary>
1111<table>
1112<tbody><tr><th>Version</th><th>Changes</th></tr>
1113<tr><td>v6.12.0, v4.8.6</td>
1114<td><p>A deprecation code has been assigned.</p></td></tr>
1115<tr><td>v4.0.0, v3.3.1</td>
1116<td><p>Documentation-only deprecation.</p></td></tr>
1117</tbody></table>
1118</details>
1119</div>
1120<p>Type: Documentation-only</p>
1121<p>The <a href="util.html#util_util_isdate_object"><code>util.isDate()</code></a> API is deprecated.</p>
1122<h4 id="DEP0048">DEP0048: <code>util.isError()</code><span><a class="mark" href="#deprecations_dep0048_util_iserror" id="deprecations_dep0048_util_iserror">#</a></span></h4>
1123<div class="api_metadata">
1124<details class="changelog"><summary>History</summary>
1125<table>
1126<tbody><tr><th>Version</th><th>Changes</th></tr>
1127<tr><td>v6.12.0, v4.8.6</td>
1128<td><p>A deprecation code has been assigned.</p></td></tr>
1129<tr><td>v4.0.0, v3.3.1</td>
1130<td><p>Documentation-only deprecation.</p></td></tr>
1131</tbody></table>
1132</details>
1133</div>
1134<p>Type: Documentation-only</p>
1135<p>The <a href="util.html#util_util_iserror_object"><code>util.isError()</code></a> API is deprecated.</p>
1136<h4 id="DEP0049">DEP0049: <code>util.isFunction()</code><span><a class="mark" href="#deprecations_dep0049_util_isfunction" id="deprecations_dep0049_util_isfunction">#</a></span></h4>
1137<div class="api_metadata">
1138<details class="changelog"><summary>History</summary>
1139<table>
1140<tbody><tr><th>Version</th><th>Changes</th></tr>
1141<tr><td>v6.12.0, v4.8.6</td>
1142<td><p>A deprecation code has been assigned.</p></td></tr>
1143<tr><td>v4.0.0, v3.3.1</td>
1144<td><p>Documentation-only deprecation.</p></td></tr>
1145</tbody></table>
1146</details>
1147</div>
1148<p>Type: Documentation-only</p>
1149<p>The <a href="util.html#util_util_isfunction_object"><code>util.isFunction()</code></a> API is deprecated.</p>
1150<h4 id="DEP0050">DEP0050: <code>util.isNull()</code><span><a class="mark" href="#deprecations_dep0050_util_isnull" id="deprecations_dep0050_util_isnull">#</a></span></h4>
1151<div class="api_metadata">
1152<details class="changelog"><summary>History</summary>
1153<table>
1154<tbody><tr><th>Version</th><th>Changes</th></tr>
1155<tr><td>v6.12.0, v4.8.6</td>
1156<td><p>A deprecation code has been assigned.</p></td></tr>
1157<tr><td>v4.0.0, v3.3.1</td>
1158<td><p>Documentation-only deprecation.</p></td></tr>
1159</tbody></table>
1160</details>
1161</div>
1162<p>Type: Documentation-only</p>
1163<p>The <a href="util.html#util_util_isnull_object"><code>util.isNull()</code></a> API is deprecated.</p>
1164<h4 id="DEP0051">DEP0051: <code>util.isNullOrUndefined()</code><span><a class="mark" href="#deprecations_dep0051_util_isnullorundefined" id="deprecations_dep0051_util_isnullorundefined">#</a></span></h4>
1165<div class="api_metadata">
1166<details class="changelog"><summary>History</summary>
1167<table>
1168<tbody><tr><th>Version</th><th>Changes</th></tr>
1169<tr><td>v6.12.0, v4.8.6</td>
1170<td><p>A deprecation code has been assigned.</p></td></tr>
1171<tr><td>v4.0.0, v3.3.1</td>
1172<td><p>Documentation-only deprecation.</p></td></tr>
1173</tbody></table>
1174</details>
1175</div>
1176<p>Type: Documentation-only</p>
1177<p>The <a href="util.html#util_util_isnullorundefined_object"><code>util.isNullOrUndefined()</code></a> API is deprecated.</p>
1178<h4 id="DEP0052">DEP0052: <code>util.isNumber()</code><span><a class="mark" href="#deprecations_dep0052_util_isnumber" id="deprecations_dep0052_util_isnumber">#</a></span></h4>
1179<div class="api_metadata">
1180<details class="changelog"><summary>History</summary>
1181<table>
1182<tbody><tr><th>Version</th><th>Changes</th></tr>
1183<tr><td>v6.12.0, v4.8.6</td>
1184<td><p>A deprecation code has been assigned.</p></td></tr>
1185<tr><td>v4.0.0, v3.3.1</td>
1186<td><p>Documentation-only deprecation.</p></td></tr>
1187</tbody></table>
1188</details>
1189</div>
1190<p>Type: Documentation-only</p>
1191<p>The <a href="util.html#util_util_isnumber_object"><code>util.isNumber()</code></a> API is deprecated.</p>
1192<h4 id="DEP0053">DEP0053: <code>util.isObject()</code><span><a class="mark" href="#deprecations_dep0053_util_isobject" id="deprecations_dep0053_util_isobject">#</a></span></h4>
1193<div class="api_metadata">
1194<details class="changelog"><summary>History</summary>
1195<table>
1196<tbody><tr><th>Version</th><th>Changes</th></tr>
1197<tr><td>v6.12.0, v4.8.6</td>
1198<td><p>A deprecation code has been assigned.</p></td></tr>
1199<tr><td>v4.0.0, v3.3.1</td>
1200<td><p>Documentation-only deprecation.</p></td></tr>
1201</tbody></table>
1202</details>
1203</div>
1204<p>Type: Documentation-only</p>
1205<p>The <a href="util.html#util_util_isobject_object"><code>util.isObject()</code></a> API is deprecated.</p>
1206<h4 id="DEP0054">DEP0054: <code>util.isPrimitive()</code><span><a class="mark" href="#deprecations_dep0054_util_isprimitive" id="deprecations_dep0054_util_isprimitive">#</a></span></h4>
1207<div class="api_metadata">
1208<details class="changelog"><summary>History</summary>
1209<table>
1210<tbody><tr><th>Version</th><th>Changes</th></tr>
1211<tr><td>v6.12.0, v4.8.6</td>
1212<td><p>A deprecation code has been assigned.</p></td></tr>
1213<tr><td>v4.0.0, v3.3.1</td>
1214<td><p>Documentation-only deprecation.</p></td></tr>
1215</tbody></table>
1216</details>
1217</div>
1218<p>Type: Documentation-only</p>
1219<p>The <a href="util.html#util_util_isprimitive_object"><code>util.isPrimitive()</code></a> API is deprecated.</p>
1220<h4 id="DEP0055">DEP0055: <code>util.isRegExp()</code><span><a class="mark" href="#deprecations_dep0055_util_isregexp" id="deprecations_dep0055_util_isregexp">#</a></span></h4>
1221<div class="api_metadata">
1222<details class="changelog"><summary>History</summary>
1223<table>
1224<tbody><tr><th>Version</th><th>Changes</th></tr>
1225<tr><td>v6.12.0, v4.8.6</td>
1226<td><p>A deprecation code has been assigned.</p></td></tr>
1227<tr><td>v4.0.0, v3.3.1</td>
1228<td><p>Documentation-only deprecation.</p></td></tr>
1229</tbody></table>
1230</details>
1231</div>
1232<p>Type: Documentation-only</p>
1233<p>The <a href="util.html#util_util_isregexp_object"><code>util.isRegExp()</code></a> API is deprecated.</p>
1234<h4 id="DEP0056">DEP0056: <code>util.isString()</code><span><a class="mark" href="#deprecations_dep0056_util_isstring" id="deprecations_dep0056_util_isstring">#</a></span></h4>
1235<div class="api_metadata">
1236<details class="changelog"><summary>History</summary>
1237<table>
1238<tbody><tr><th>Version</th><th>Changes</th></tr>
1239<tr><td>v6.12.0, v4.8.6</td>
1240<td><p>A deprecation code has been assigned.</p></td></tr>
1241<tr><td>v4.0.0, v3.3.1</td>
1242<td><p>Documentation-only deprecation.</p></td></tr>
1243</tbody></table>
1244</details>
1245</div>
1246<p>Type: Documentation-only</p>
1247<p>The <a href="util.html#util_util_isstring_object"><code>util.isString()</code></a> API is deprecated.</p>
1248<h4 id="DEP0057">DEP0057: <code>util.isSymbol()</code><span><a class="mark" href="#deprecations_dep0057_util_issymbol" id="deprecations_dep0057_util_issymbol">#</a></span></h4>
1249<div class="api_metadata">
1250<details class="changelog"><summary>History</summary>
1251<table>
1252<tbody><tr><th>Version</th><th>Changes</th></tr>
1253<tr><td>v6.12.0, v4.8.6</td>
1254<td><p>A deprecation code has been assigned.</p></td></tr>
1255<tr><td>v4.0.0, v3.3.1</td>
1256<td><p>Documentation-only deprecation.</p></td></tr>
1257</tbody></table>
1258</details>
1259</div>
1260<p>Type: Documentation-only</p>
1261<p>The <a href="util.html#util_util_issymbol_object"><code>util.isSymbol()</code></a> API is deprecated.</p>
1262<h4 id="DEP0058">DEP0058: <code>util.isUndefined()</code><span><a class="mark" href="#deprecations_dep0058_util_isundefined" id="deprecations_dep0058_util_isundefined">#</a></span></h4>
1263<div class="api_metadata">
1264<details class="changelog"><summary>History</summary>
1265<table>
1266<tbody><tr><th>Version</th><th>Changes</th></tr>
1267<tr><td>v6.12.0, v4.8.6</td>
1268<td><p>A deprecation code has been assigned.</p></td></tr>
1269<tr><td>v4.0.0, v3.3.1</td>
1270<td><p>Documentation-only deprecation.</p></td></tr>
1271</tbody></table>
1272</details>
1273</div>
1274<p>Type: Documentation-only</p>
1275<p>The <a href="util.html#util_util_isundefined_object"><code>util.isUndefined()</code></a> API is deprecated.</p>
1276<h4 id="DEP0059">DEP0059: <code>util.log()</code><span><a class="mark" href="#deprecations_dep0059_util_log" id="deprecations_dep0059_util_log">#</a></span></h4>
1277<div class="api_metadata">
1278<details class="changelog"><summary>History</summary>
1279<table>
1280<tbody><tr><th>Version</th><th>Changes</th></tr>
1281<tr><td>v6.12.0</td>
1282<td><p>A deprecation code has been assigned.</p></td></tr>
1283<tr><td>v6.0.0</td>
1284<td><p>Documentation-only deprecation.</p></td></tr>
1285</tbody></table>
1286</details>
1287</div>
1288<p>Type: Documentation-only</p>
1289<p>The <a href="util.html#util_util_log_string"><code>util.log()</code></a> API is deprecated.</p>
1290<h4 id="DEP0060">DEP0060: <code>util._extend()</code><span><a class="mark" href="#deprecations_dep0060_util_extend" id="deprecations_dep0060_util_extend">#</a></span></h4>
1291<div class="api_metadata">
1292<details class="changelog"><summary>History</summary>
1293<table>
1294<tbody><tr><th>Version</th><th>Changes</th></tr>
1295<tr><td>v6.12.0</td>
1296<td><p>A deprecation code has been assigned.</p></td></tr>
1297<tr><td>v6.0.0</td>
1298<td><p>Documentation-only deprecation.</p></td></tr>
1299</tbody></table>
1300</details>
1301</div>
1302<p>Type: Documentation-only</p>
1303<p>The <a href="util.html#util_util_extend_target_source"><code>util._extend()</code></a> API is deprecated.</p>
1304<h4 id="DEP0061">DEP0061: <code>fs.SyncWriteStream</code><span><a class="mark" href="#deprecations_dep0061_fs_syncwritestream" id="deprecations_dep0061_fs_syncwritestream">#</a></span></h4>
1305<div class="api_metadata">
1306<details class="changelog"><summary>History</summary>
1307<table>
1308<tbody><tr><th>Version</th><th>Changes</th></tr>
1309<tr><td>v11.0.0</td>
1310<td><p>End-of-Life.</p></td></tr>
1311<tr><td>v8.0.0</td>
1312<td><p>Runtime deprecation.</p></td></tr>
1313<tr><td>v7.0.0</td>
1314<td><p>Documentation-only deprecation.</p></td></tr>
1315</tbody></table>
1316</details>
1317</div>
1318<p>Type: End-of-Life</p>
1319<p>The <code>fs.SyncWriteStream</code> class was never intended to be a publicly accessible
1320API and has been removed. No alternative API is available. Please use a userland
1321alternative.</p>
1322<h4 id="DEP0062">DEP0062: <code>node --debug</code><span><a class="mark" href="#deprecations_dep0062_node_debug" id="deprecations_dep0062_node_debug">#</a></span></h4>
1323<div class="api_metadata">
1324<details class="changelog"><summary>History</summary>
1325<table>
1326<tbody><tr><th>Version</th><th>Changes</th></tr>
1327<tr><td>v12.0.0</td>
1328<td><p>End-of-Life.</p></td></tr>
1329<tr><td>v8.0.0</td>
1330<td><p>Runtime deprecation.</p></td></tr>
1331</tbody></table>
1332</details>
1333</div>
1334<p>Type: End-of-Life</p>
1335<p><code>--debug</code> activates the legacy V8 debugger interface, which was removed as
1336of V8 5.8. It is replaced by Inspector which is activated with <code>--inspect</code>
1337instead.</p>
1338<h4 id="DEP0063">DEP0063: <code>ServerResponse.prototype.writeHeader()</code><span><a class="mark" href="#deprecations_dep0063_serverresponse_prototype_writeheader" id="deprecations_dep0063_serverresponse_prototype_writeheader">#</a></span></h4>
1339<div class="api_metadata">
1340<details class="changelog"><summary>History</summary>
1341<table>
1342<tbody><tr><th>Version</th><th>Changes</th></tr>
1343<tr><td>v8.0.0</td>
1344<td><p>Documentation-only deprecation.</p></td></tr>
1345</tbody></table>
1346</details>
1347</div>
1348<p>Type: Documentation-only</p>
1349<p>The <code>http</code> module <code>ServerResponse.prototype.writeHeader()</code> API is
1350deprecated. Please use <code>ServerResponse.prototype.writeHead()</code> instead.</p>
1351<p>The <code>ServerResponse.prototype.writeHeader()</code> method was never documented as an
1352officially supported API.</p>
1353<h4 id="DEP0064">DEP0064: <code>tls.createSecurePair()</code><span><a class="mark" href="#deprecations_dep0064_tls_createsecurepair" id="deprecations_dep0064_tls_createsecurepair">#</a></span></h4>
1354<div class="api_metadata">
1355<details class="changelog"><summary>History</summary>
1356<table>
1357<tbody><tr><th>Version</th><th>Changes</th></tr>
1358<tr><td>v8.0.0</td>
1359<td><p>Runtime deprecation.</p></td></tr>
1360<tr><td>v6.12.0</td>
1361<td><p>A deprecation code has been assigned.</p></td></tr>
1362<tr><td>v6.0.0</td>
1363<td><p>Documentation-only deprecation.</p></td></tr>
1364<tr><td>v0.11.15</td>
1365<td><p>Deprecation revoked.</p></td></tr>
1366<tr><td>v0.11.3</td>
1367<td><p>Runtime deprecation.</p></td></tr>
1368</tbody></table>
1369</details>
1370</div>
1371<p>Type: Runtime</p>
1372<p>The <code>tls.createSecurePair()</code> API was deprecated in documentation in Node.js
13730.11.3. Users should use <code>tls.Socket</code> instead.</p>
1374<h4 id="DEP0065">DEP0065: <code>repl.REPL_MODE_MAGIC</code> and <code>NODE_REPL_MODE=magic</code><span><a class="mark" href="#deprecations_dep0065_repl_repl_mode_magic_and_node_repl_mode_magic" id="deprecations_dep0065_repl_repl_mode_magic_and_node_repl_mode_magic">#</a></span></h4>
1375<div class="api_metadata">
1376<details class="changelog"><summary>History</summary>
1377<table>
1378<tbody><tr><th>Version</th><th>Changes</th></tr>
1379<tr><td>v10.0.0</td>
1380<td><p>End-of-Life.</p></td></tr>
1381<tr><td>v8.0.0</td>
1382<td><p>Documentation-only deprecation.</p></td></tr>
1383</tbody></table>
1384</details>
1385</div>
1386<p>Type: End-of-Life</p>
1387<p>The <code>repl</code> module's <code>REPL_MODE_MAGIC</code> constant, used for <code>replMode</code> option, has
1388been removed. Its behavior has been functionally identical to that of
1389<code>REPL_MODE_SLOPPY</code> since Node.js 6.0.0, when V8 5.0 was imported. Please use
1390<code>REPL_MODE_SLOPPY</code> instead.</p>
1391<p>The <code>NODE_REPL_MODE</code> environment variable is used to set the underlying
1392<code>replMode</code> of an interactive <code>node</code> session. Its value, <code>magic</code>, is also
1393removed. Please use <code>sloppy</code> instead.</p>
1394<h4 id="DEP0066">DEP0066: <code>OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames</code><span><a class="mark" href="#deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames" id="deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames">#</a></span></h4>
1395<div class="api_metadata">
1396<details class="changelog"><summary>History</summary>
1397<table>
1398<tbody><tr><th>Version</th><th>Changes</th></tr>
1399<tr><td>v12.0.0</td>
1400<td><p>Runtime deprecation.</p></td></tr>
1401<tr><td>v8.0.0</td>
1402<td><p>Documentation-only deprecation.</p></td></tr>
1403</tbody></table>
1404</details>
1405</div>
1406<p>Type: Runtime</p>
1407<p>The <code>http</code> module <code>OutgoingMessage.prototype._headers</code> and
1408<code>OutgoingMessage.prototype._headerNames</code> properties are deprecated. Use one of
1409the public methods (e.g. <code>OutgoingMessage.prototype.getHeader()</code>,
1410<code>OutgoingMessage.prototype.getHeaders()</code>,
1411<code>OutgoingMessage.prototype.getHeaderNames()</code>,
1412<code>OutgoingMessage.prototype.getRawHeaderNames()</code>,
1413<code>OutgoingMessage.prototype.hasHeader()</code>,
1414<code>OutgoingMessage.prototype.removeHeader()</code>,
1415<code>OutgoingMessage.prototype.setHeader()</code>) for working with outgoing headers.</p>
1416<p>The <code>OutgoingMessage.prototype._headers</code> and
1417<code>OutgoingMessage.prototype._headerNames</code> properties were never documented as
1418officially supported properties.</p>
1419<h4 id="DEP0067">DEP0067: <code>OutgoingMessage.prototype._renderHeaders</code><span><a class="mark" href="#deprecations_dep0067_outgoingmessage_prototype_renderheaders" id="deprecations_dep0067_outgoingmessage_prototype_renderheaders">#</a></span></h4>
1420<div class="api_metadata">
1421<details class="changelog"><summary>History</summary>
1422<table>
1423<tbody><tr><th>Version</th><th>Changes</th></tr>
1424<tr><td>v8.0.0</td>
1425<td><p>Documentation-only deprecation.</p></td></tr>
1426</tbody></table>
1427</details>
1428</div>
1429<p>Type: Documentation-only</p>
1430<p>The <code>http</code> module <code>OutgoingMessage.prototype._renderHeaders()</code> API is
1431deprecated.</p>
1432<p>The <code>OutgoingMessage.prototype._renderHeaders</code> property was never documented as
1433an officially supported API.</p>
1434<h4 id="DEP0068">DEP0068: <code>node debug</code><span><a class="mark" href="#deprecations_dep0068_node_debug" id="deprecations_dep0068_node_debug">#</a></span></h4>
1435<div class="api_metadata">
1436<details class="changelog"><summary>History</summary>
1437<table>
1438<tbody><tr><th>Version</th><th>Changes</th></tr>
1439<tr><td>v8.0.0</td>
1440<td><p>Runtime deprecation.</p></td></tr>
1441</tbody></table>
1442</details>
1443</div>
1444<p>Type: Runtime</p>
1445<p><code>node debug</code> corresponds to the legacy CLI debugger which has been replaced with
1446a V8-inspector based CLI debugger available through <code>node inspect</code>.</p>
1447<h4 id="DEP0069">DEP0069: <code>vm.runInDebugContext(string)</code><span><a class="mark" href="#deprecations_dep0069_vm_runindebugcontext_string" id="deprecations_dep0069_vm_runindebugcontext_string">#</a></span></h4>
1448<div class="api_metadata">
1449<details class="changelog"><summary>History</summary>
1450<table>
1451<tbody><tr><th>Version</th><th>Changes</th></tr>
1452<tr><td>v10.0.0</td>
1453<td><p>End-of-Life.</p></td></tr>
1454<tr><td>v9.0.0</td>
1455<td><p>Runtime deprecation.</p></td></tr>
1456<tr><td>v8.0.0</td>
1457<td><p>Documentation-only deprecation.</p></td></tr>
1458</tbody></table>
1459</details>
1460</div>
1461<p>Type: End-of-Life</p>
1462<p>DebugContext has been removed in V8 and is not available in Node.js 10+.</p>
1463<p>DebugContext was an experimental API.</p>
1464<h4 id="DEP0070">DEP0070: <code>async_hooks.currentId()</code><span><a class="mark" href="#deprecations_dep0070_async_hooks_currentid" id="deprecations_dep0070_async_hooks_currentid">#</a></span></h4>
1465<div class="api_metadata">
1466<details class="changelog"><summary>History</summary>
1467<table>
1468<tbody><tr><th>Version</th><th>Changes</th></tr>
1469<tr><td>v9.0.0</td>
1470<td><p>End-of-Life.</p></td></tr>
1471<tr><td>v8.2.0</td>
1472<td><p>Runtime deprecation.</p></td></tr>
1473</tbody></table>
1474</details>
1475</div>
1476<p>Type: End-of-Life</p>
1477<p><code>async_hooks.currentId()</code> was renamed to <code>async_hooks.executionAsyncId()</code> for
1478clarity.</p>
1479<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1480<h4 id="DEP0071">DEP0071: <code>async_hooks.triggerId()</code><span><a class="mark" href="#deprecations_dep0071_async_hooks_triggerid" id="deprecations_dep0071_async_hooks_triggerid">#</a></span></h4>
1481<div class="api_metadata">
1482<details class="changelog"><summary>History</summary>
1483<table>
1484<tbody><tr><th>Version</th><th>Changes</th></tr>
1485<tr><td>v9.0.0</td>
1486<td><p>End-of-Life.</p></td></tr>
1487<tr><td>v8.2.0</td>
1488<td><p>Runtime deprecation.</p></td></tr>
1489</tbody></table>
1490</details>
1491</div>
1492<p>Type: End-of-Life</p>
1493<p><code>async_hooks.triggerId()</code> was renamed to <code>async_hooks.triggerAsyncId()</code> for
1494clarity.</p>
1495<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1496<h4 id="DEP0072">DEP0072: <code>async_hooks.AsyncResource.triggerId()</code><span><a class="mark" href="#deprecations_dep0072_async_hooks_asyncresource_triggerid" id="deprecations_dep0072_async_hooks_asyncresource_triggerid">#</a></span></h4>
1497<div class="api_metadata">
1498<details class="changelog"><summary>History</summary>
1499<table>
1500<tbody><tr><th>Version</th><th>Changes</th></tr>
1501<tr><td>v9.0.0</td>
1502<td><p>End-of-Life.</p></td></tr>
1503<tr><td>v8.2.0</td>
1504<td><p>Runtime deprecation.</p></td></tr>
1505</tbody></table>
1506</details>
1507</div>
1508<p>Type: End-of-Life</p>
1509<p><code>async_hooks.AsyncResource.triggerId()</code> was renamed to
1510<code>async_hooks.AsyncResource.triggerAsyncId()</code> for clarity.</p>
1511<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1512<h4 id="DEP0073">DEP0073: Several internal properties of <code>net.Server</code><span><a class="mark" href="#deprecations_dep0073_several_internal_properties_of_net_server" id="deprecations_dep0073_several_internal_properties_of_net_server">#</a></span></h4>
1513<div class="api_metadata">
1514<details class="changelog"><summary>History</summary>
1515<table>
1516<tbody><tr><th>Version</th><th>Changes</th></tr>
1517<tr><td>v10.0.0</td>
1518<td><p>End-of-Life.</p></td></tr>
1519<tr><td>v9.0.0</td>
1520<td><p>Runtime deprecation.</p></td></tr>
1521</tbody></table>
1522</details>
1523</div>
1524<p>Type: End-of-Life</p>
1525<p>Accessing several internal, undocumented properties of <code>net.Server</code> instances
1526with inappropriate names is deprecated.</p>
1527<p>As the original API was undocumented and not generally useful for non-internal
1528code, no replacement API is provided.</p>
1529<h4 id="DEP0074">DEP0074: <code>REPLServer.bufferedCommand</code><span><a class="mark" href="#deprecations_dep0074_replserver_bufferedcommand" id="deprecations_dep0074_replserver_bufferedcommand">#</a></span></h4>
1530<div class="api_metadata">
1531<details class="changelog"><summary>History</summary>
1532<table>
1533<tbody><tr><th>Version</th><th>Changes</th></tr>
1534<tr><td>v9.0.0</td>
1535<td><p>Runtime deprecation.</p></td></tr>
1536</tbody></table>
1537</details>
1538</div>
1539<p>Type: Runtime</p>
1540<p>The <code>REPLServer.bufferedCommand</code> property was deprecated in favor of
1541<a href="repl.html#repl_replserver_clearbufferedcommand"><code>REPLServer.clearBufferedCommand()</code></a>.</p>
1542<h4 id="DEP0075">DEP0075: <code>REPLServer.parseREPLKeyword()</code><span><a class="mark" href="#deprecations_dep0075_replserver_parsereplkeyword" id="deprecations_dep0075_replserver_parsereplkeyword">#</a></span></h4>
1543<div class="api_metadata">
1544<details class="changelog"><summary>History</summary>
1545<table>
1546<tbody><tr><th>Version</th><th>Changes</th></tr>
1547<tr><td>v9.0.0</td>
1548<td><p>Runtime deprecation.</p></td></tr>
1549</tbody></table>
1550</details>
1551</div>
1552<p>Type: Runtime</p>
1553<p><code>REPLServer.parseREPLKeyword()</code> was removed from userland visibility.</p>
1554<h4 id="DEP0076">DEP0076: <code>tls.parseCertString()</code><span><a class="mark" href="#deprecations_dep0076_tls_parsecertstring" id="deprecations_dep0076_tls_parsecertstring">#</a></span></h4>
1555<div class="api_metadata">
1556<details class="changelog"><summary>History</summary>
1557<table>
1558<tbody><tr><th>Version</th><th>Changes</th></tr>
1559<tr><td>v9.0.0</td>
1560<td><p>Runtime deprecation.</p></td></tr>
1561<tr><td>v8.6.0</td>
1562<td><p>Documentation-only deprecation.</p></td></tr>
1563</tbody></table>
1564</details>
1565</div>
1566<p>Type: Runtime</p>
1567<p><code>tls.parseCertString()</code> is a trivial parsing helper that was made public by
1568mistake. This function can usually be replaced with:</p>
1569<pre><code class="language-js"><span class="hljs-keyword">const</span> querystring = <span class="hljs-built_in">require</span>(<span class="hljs-string">'querystring'</span>);
1570querystring.<span class="hljs-title function_">parse</span>(str, <span class="hljs-string">'\n'</span>, <span class="hljs-string">'='</span>);</code></pre>
1571<p>This function is not completely equivalent to <code>querystring.parse()</code>. One
1572difference is that <code>querystring.parse()</code> does url decoding:</p>
1573<pre><code class="language-console"><span class="hljs-meta">> </span><span class="language-bash">querystring.parse(<span class="hljs-string">'%E5%A5%BD=1'</span>, <span class="hljs-string">'\n'</span>, <span class="hljs-string">'='</span>);</span>
1574{ '好': '1' }
1575<span class="hljs-meta">> </span><span class="language-bash">tls.parseCertString(<span class="hljs-string">'%E5%A5%BD=1'</span>);</span>
1576{ '%E5%A5%BD': '1' }</code></pre>
1577<h4 id="DEP0077">DEP0077: <code>Module._debug()</code><span><a class="mark" href="#deprecations_dep0077_module_debug" id="deprecations_dep0077_module_debug">#</a></span></h4>
1578<div class="api_metadata">
1579<details class="changelog"><summary>History</summary>
1580<table>
1581<tbody><tr><th>Version</th><th>Changes</th></tr>
1582<tr><td>v9.0.0</td>
1583<td><p>Runtime deprecation.</p></td></tr>
1584</tbody></table>
1585</details>
1586</div>
1587<p>Type: Runtime</p>
1588<p><code>Module._debug()</code> is deprecated.</p>
1589<p>The <code>Module._debug()</code> function was never documented as an officially
1590supported API.</p>
1591<h4 id="DEP0078">DEP0078: <code>REPLServer.turnOffEditorMode()</code><span><a class="mark" href="#deprecations_dep0078_replserver_turnoffeditormode" id="deprecations_dep0078_replserver_turnoffeditormode">#</a></span></h4>
1592<div class="api_metadata">
1593<details class="changelog"><summary>History</summary>
1594<table>
1595<tbody><tr><th>Version</th><th>Changes</th></tr>
1596<tr><td>v9.0.0</td>
1597<td><p>Runtime deprecation.</p></td></tr>
1598</tbody></table>
1599</details>
1600</div>
1601<p>Type: Runtime</p>
1602<p><code>REPLServer.turnOffEditorMode()</code> was removed from userland visibility.</p>
1603<h4 id="DEP0079">DEP0079: Custom inspection function on objects via <code>.inspect()</code><span><a class="mark" href="#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect" id="deprecations_dep0079_custom_inspection_function_on_objects_via_inspect">#</a></span></h4>
1604<div class="api_metadata">
1605<details class="changelog"><summary>History</summary>
1606<table>
1607<tbody><tr><th>Version</th><th>Changes</th></tr>
1608<tr><td>v11.0.0</td>
1609<td><p>End-of-Life.</p></td></tr>
1610<tr><td>v10.0.0</td>
1611<td><p>Runtime deprecation.</p></td></tr>
1612<tr><td>v8.7.0</td>
1613<td><p>Documentation-only deprecation.</p></td></tr>
1614</tbody></table>
1615</details>
1616</div>
1617<p>Type: End-of-Life</p>
1618<p>Using a property named <code>inspect</code> on an object to specify a custom inspection
1619function for <a href="util.html#util_util_inspect_object_options"><code>util.inspect()</code></a> is deprecated. Use <a href="util.html#util_util_inspect_custom"><code>util.inspect.custom</code></a>
1620instead. For backward compatibility with Node.js prior to version 6.4.0, both
1621can be specified.</p>
1622<h4 id="DEP0080">DEP0080: <code>path._makeLong()</code><span><a class="mark" href="#deprecations_dep0080_path_makelong" id="deprecations_dep0080_path_makelong">#</a></span></h4>
1623<div class="api_metadata">
1624<details class="changelog"><summary>History</summary>
1625<table>
1626<tbody><tr><th>Version</th><th>Changes</th></tr>
1627<tr><td>v9.0.0</td>
1628<td><p>Documentation-only deprecation.</p></td></tr>
1629</tbody></table>
1630</details>
1631</div>
1632<p>Type: Documentation-only</p>
1633<p>The internal <code>path._makeLong()</code> was not intended for public use. However,
1634userland modules have found it useful. The internal API is deprecated
1635and replaced with an identical, public <code>path.toNamespacedPath()</code> method.</p>
1636<h4 id="DEP0081">DEP0081: <code>fs.truncate()</code> using a file descriptor<span><a class="mark" href="#deprecations_dep0081_fs_truncate_using_a_file_descriptor" id="deprecations_dep0081_fs_truncate_using_a_file_descriptor">#</a></span></h4>
1637<div class="api_metadata">
1638<details class="changelog"><summary>History</summary>
1639<table>
1640<tbody><tr><th>Version</th><th>Changes</th></tr>
1641<tr><td>v9.0.0</td>
1642<td><p>Runtime deprecation.</p></td></tr>
1643</tbody></table>
1644</details>
1645</div>
1646<p>Type: Runtime</p>
1647<p><code>fs.truncate()</code> <code>fs.truncateSync()</code> usage with a file descriptor is
1648deprecated. Please use <code>fs.ftruncate()</code> or <code>fs.ftruncateSync()</code> to work with
1649file descriptors.</p>
1650<h4 id="DEP0082">DEP0082: <code>REPLServer.prototype.memory()</code><span><a class="mark" href="#deprecations_dep0082_replserver_prototype_memory" id="deprecations_dep0082_replserver_prototype_memory">#</a></span></h4>
1651<div class="api_metadata">
1652<details class="changelog"><summary>History</summary>
1653<table>
1654<tbody><tr><th>Version</th><th>Changes</th></tr>
1655<tr><td>v9.0.0</td>
1656<td><p>Runtime deprecation.</p></td></tr>
1657</tbody></table>
1658</details>
1659</div>
1660<p>Type: Runtime</p>
1661<p><code>REPLServer.prototype.memory()</code> is only necessary for the internal mechanics of
1662the <code>REPLServer</code> itself. Do not use this function.</p>
1663<h4 id="DEP0083">DEP0083: Disabling ECDH by setting <code>ecdhCurve</code> to <code>false</code><span><a class="mark" href="#deprecations_dep0083_disabling_ecdh_by_setting_ecdhcurve_to_false" id="deprecations_dep0083_disabling_ecdh_by_setting_ecdhcurve_to_false">#</a></span></h4>
1664<div class="api_metadata">
1665<details class="changelog"><summary>History</summary>
1666<table>
1667<tbody><tr><th>Version</th><th>Changes</th></tr>
1668<tr><td>v10.0.0</td>
1669<td><p>End-of-Life.</p></td></tr>
1670<tr><td>v9.2.0</td>
1671<td><p>Runtime deprecation.</p></td></tr>
1672</tbody></table>
1673</details>
1674</div>
1675<p>Type: End-of-Life.</p>
1676<p>The <code>ecdhCurve</code> option to <code>tls.createSecureContext()</code> and <code>tls.TLSSocket</code> could
1677be set to <code>false</code> to disable ECDH entirely on the server only. This mode was
1678deprecated in preparation for migrating to OpenSSL 1.1.0 and consistency with
1679the client and is now unsupported. Use the <code>ciphers</code> parameter instead.</p>
1680<h4 id="DEP0084">DEP0084: requiring bundled internal dependencies<span><a class="mark" href="#deprecations_dep0084_requiring_bundled_internal_dependencies" id="deprecations_dep0084_requiring_bundled_internal_dependencies">#</a></span></h4>
1681<div class="api_metadata">
1682<details class="changelog"><summary>History</summary>
1683<table>
1684<tbody><tr><th>Version</th><th>Changes</th></tr>
1685<tr><td>v12.0.0</td>
1686<td><p>This functionality has been removed.</p></td></tr>
1687<tr><td>v10.0.0</td>
1688<td><p>Runtime deprecation.</p></td></tr>
1689</tbody></table>
1690</details>
1691</div>
1692<p>Type: End-of-Life</p>
1693<p>Since Node.js versions 4.4.0 and 5.2.0, several modules only intended for
1694internal usage were mistakenly exposed to user code through <code>require()</code>. These
1695modules were:</p>
1696<ul>
1697<li><code>v8/tools/codemap</code></li>
1698<li><code>v8/tools/consarray</code></li>
1699<li><code>v8/tools/csvparser</code></li>
1700<li><code>v8/tools/logreader</code></li>
1701<li><code>v8/tools/profile_view</code></li>
1702<li><code>v8/tools/profile</code></li>
1703<li><code>v8/tools/SourceMap</code></li>
1704<li><code>v8/tools/splaytree</code></li>
1705<li><code>v8/tools/tickprocessor-driver</code></li>
1706<li><code>v8/tools/tickprocessor</code></li>
1707<li><code>node-inspect/lib/_inspect</code> (from 7.6.0)</li>
1708<li><code>node-inspect/lib/internal/inspect_client</code> (from 7.6.0)</li>
1709<li><code>node-inspect/lib/internal/inspect_repl</code> (from 7.6.0)</li>
1710</ul>
1711<p>The <code>v8/*</code> modules do not have any exports, and if not imported in a specific
1712order would in fact throw errors. As such there are virtually no legitimate use
1713cases for importing them through <code>require()</code>.</p>
1714<p>On the other hand, <code>node-inspect</code> can be installed locally through a package
1715manager, as it is published on the npm registry under the same name. No source
1716code modification is necessary if that is done.</p>
1717<h4 id="DEP0085">DEP0085: AsyncHooks sensitive API<span><a class="mark" href="#deprecations_dep0085_asynchooks_sensitive_api" id="deprecations_dep0085_asynchooks_sensitive_api">#</a></span></h4>
1718<div class="api_metadata">
1719<details class="changelog"><summary>History</summary>
1720<table>
1721<tbody><tr><th>Version</th><th>Changes</th></tr>
1722<tr><td>v10.0.0</td>
1723<td><p>End-of-Life.</p></td></tr>
1724<tr><td>v9.4.0, v8.10.0</td>
1725<td><p>Runtime deprecation.</p></td></tr>
1726</tbody></table>
1727</details>
1728</div>
1729<p>Type: End-of-Life</p>
1730<p>The AsyncHooks sensitive API was never documented and had various minor issues.
1731Use the <code>AsyncResource</code> API instead. See
1732<a href="https://github.com/nodejs/node/issues/15572">https://github.com/nodejs/node/issues/15572</a>.</p>
1733<h4 id="DEP0086">DEP0086: Remove <code>runInAsyncIdScope</code><span><a class="mark" href="#deprecations_dep0086_remove_runinasyncidscope" id="deprecations_dep0086_remove_runinasyncidscope">#</a></span></h4>
1734<div class="api_metadata">
1735<details class="changelog"><summary>History</summary>
1736<table>
1737<tbody><tr><th>Version</th><th>Changes</th></tr>
1738<tr><td>v10.0.0</td>
1739<td><p>End-of-Life.</p></td></tr>
1740<tr><td>v9.4.0, v8.10.0</td>
1741<td><p>Runtime deprecation.</p></td></tr>
1742</tbody></table>
1743</details>
1744</div>
1745<p>Type: End-of-Life</p>
1746<p><code>runInAsyncIdScope</code> doesn't emit the <code>'before'</code> or <code>'after'</code> event and can thus
1747cause a lot of issues. See <a href="https://github.com/nodejs/node/issues/14328">https://github.com/nodejs/node/issues/14328</a>.</p>
1748<h4 id="DEP0089">DEP0089: <code>require('assert')</code><span><a class="mark" href="#deprecations_dep0089_require_assert" id="deprecations_dep0089_require_assert">#</a></span></h4>
1749<div class="api_metadata">
1750<details class="changelog"><summary>History</summary>
1751<table>
1752<tbody><tr><th>Version</th><th>Changes</th></tr>
1753<tr><td>v12.8.0</td>
1754<td><p>Deprecation revoked.</p></td></tr>
1755<tr><td>v9.9.0, v8.13.0</td>
1756<td><p>Documentation-only deprecation.</p></td></tr>
1757</tbody></table>
1758</details>
1759</div>
1760<p>Type: Deprecation revoked</p>
1761<p>Importing assert directly was not recommended as the exposed functions use
1762loose equality checks. The deprecation was revoked because use of the <code>assert</code>
1763module is not discouraged, and the deprecation caused developer confusion.</p>
1764<h4 id="DEP0090">DEP0090: Invalid GCM authentication tag lengths<span><a class="mark" href="#deprecations_dep0090_invalid_gcm_authentication_tag_lengths" id="deprecations_dep0090_invalid_gcm_authentication_tag_lengths">#</a></span></h4>
1765<div class="api_metadata">
1766<details class="changelog"><summary>History</summary>
1767<table>
1768<tbody><tr><th>Version</th><th>Changes</th></tr>
1769<tr><td>v11.0.0</td>
1770<td><p>End-of-Life.</p></td></tr>
1771<tr><td>v10.0.0</td>
1772<td><p>Runtime deprecation.</p></td></tr>
1773</tbody></table>
1774</details>
1775</div>
1776<p>Type: End-of-Life</p>
1777<p>Node.js used to support all GCM authentication tag lengths which are accepted by
1778OpenSSL when calling <a href="crypto.html#crypto_decipher_setauthtag_buffer"><code>decipher.setAuthTag()</code></a>. Beginning with Node.js
1779v11.0.0, only authentication tag lengths of 128, 120, 112, 104, 96, 64, and 32
1780bits are allowed. Authentication tags of other lengths are invalid per
1781<a href="https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf">NIST SP 800-38D</a>.</p>
1782<h4 id="DEP0091">DEP0091: <code>crypto.DEFAULT_ENCODING</code><span><a class="mark" href="#deprecations_dep0091_crypto_default_encoding" id="deprecations_dep0091_crypto_default_encoding">#</a></span></h4>
1783<div class="api_metadata">
1784<details class="changelog"><summary>History</summary>
1785<table>
1786<tbody><tr><th>Version</th><th>Changes</th></tr>
1787<tr><td>v10.0.0</td>
1788<td><p>Runtime deprecation.</p></td></tr>
1789</tbody></table>
1790</details>
1791</div>
1792<p>Type: Runtime</p>
1793<p>The <a href="crypto.html#crypto_crypto_default_encoding"><code>crypto.DEFAULT_ENCODING</code></a> property is deprecated.</p>
1794<h4 id="DEP0092">DEP0092: Top-level <code>this</code> bound to <code>module.exports</code><span><a class="mark" href="#deprecations_dep0092_top_level_this_bound_to_module_exports" id="deprecations_dep0092_top_level_this_bound_to_module_exports">#</a></span></h4>
1795<div class="api_metadata">
1796<details class="changelog"><summary>History</summary>
1797<table>
1798<tbody><tr><th>Version</th><th>Changes</th></tr>
1799<tr><td>v10.0.0</td>
1800<td><p>Documentation-only deprecation.</p></td></tr>
1801</tbody></table>
1802</details>
1803</div>
1804<p>Type: Documentation-only</p>
1805<p>Assigning properties to the top-level <code>this</code> as an alternative
1806to <code>module.exports</code> is deprecated. Developers should use <code>exports</code>
1807or <code>module.exports</code> instead.</p>
1808<h4 id="DEP0093">DEP0093: <code>crypto.fips</code> is deprecated and replaced<span><a class="mark" href="#deprecations_dep0093_crypto_fips_is_deprecated_and_replaced" id="deprecations_dep0093_crypto_fips_is_deprecated_and_replaced">#</a></span></h4>
1809<div class="api_metadata">
1810<details class="changelog"><summary>History</summary>
1811<table>
1812<tbody><tr><th>Version</th><th>Changes</th></tr>
1813<tr><td>v10.0.0</td>
1814<td><p>Documentation-only deprecation.</p></td></tr>
1815</tbody></table>
1816</details>
1817</div>
1818<p>Type: Documentation-only</p>
1819<p>The <a href="crypto.html#crypto_crypto_fips"><code>crypto.fips</code></a> property is deprecated. Please use <code>crypto.setFips()</code>
1820and <code>crypto.getFips()</code> instead.</p>
1821<h4 id="DEP0094">DEP0094: Using <code>assert.fail()</code> with more than one argument<span><a class="mark" href="#deprecations_dep0094_using_assert_fail_with_more_than_one_argument" id="deprecations_dep0094_using_assert_fail_with_more_than_one_argument">#</a></span></h4>
1822<div class="api_metadata">
1823<details class="changelog"><summary>History</summary>
1824<table>
1825<tbody><tr><th>Version</th><th>Changes</th></tr>
1826<tr><td>v10.0.0</td>
1827<td><p>Runtime deprecation.</p></td></tr>
1828</tbody></table>
1829</details>
1830</div>
1831<p>Type: Runtime</p>
1832<p>Using <code>assert.fail()</code> with more than one argument is deprecated. Use
1833<code>assert.fail()</code> with only one argument or use a different <code>assert</code> module
1834method.</p>
1835<h4 id="DEP0095">DEP0095: <code>timers.enroll()</code><span><a class="mark" href="#deprecations_dep0095_timers_enroll" id="deprecations_dep0095_timers_enroll">#</a></span></h4>
1836<div class="api_metadata">
1837<details class="changelog"><summary>History</summary>
1838<table>
1839<tbody><tr><th>Version</th><th>Changes</th></tr>
1840<tr><td>v10.0.0</td>
1841<td><p>Runtime deprecation.</p></td></tr>
1842</tbody></table>
1843</details>
1844</div>
1845<p>Type: Runtime</p>
1846<p><code>timers.enroll()</code> is deprecated. Please use the publicly documented
1847<a href="timers.html#timers_settimeout_callback_delay_args"><code>setTimeout()</code></a> or <a href="timers.html#timers_setinterval_callback_delay_args"><code>setInterval()</code></a> instead.</p>
1848<h4 id="DEP0096">DEP0096: <code>timers.unenroll()</code><span><a class="mark" href="#deprecations_dep0096_timers_unenroll" id="deprecations_dep0096_timers_unenroll">#</a></span></h4>
1849<div class="api_metadata">
1850<details class="changelog"><summary>History</summary>
1851<table>
1852<tbody><tr><th>Version</th><th>Changes</th></tr>
1853<tr><td>v10.0.0</td>
1854<td><p>Runtime deprecation.</p></td></tr>
1855</tbody></table>
1856</details>
1857</div>
1858<p>Type: Runtime</p>
1859<p><code>timers.unenroll()</code> is deprecated. Please use the publicly documented
1860<a href="timers.html#timers_cleartimeout_timeout"><code>clearTimeout()</code></a> or <a href="timers.html#timers_clearinterval_timeout"><code>clearInterval()</code></a> instead.</p>
1861<h4 id="DEP0097">DEP0097: <code>MakeCallback</code> with <code>domain</code> property<span><a class="mark" href="#deprecations_dep0097_makecallback_with_domain_property" id="deprecations_dep0097_makecallback_with_domain_property">#</a></span></h4>
1862<div class="api_metadata">
1863<details class="changelog"><summary>History</summary>
1864<table>
1865<tbody><tr><th>Version</th><th>Changes</th></tr>
1866<tr><td>v10.0.0</td>
1867<td><p>Runtime deprecation.</p></td></tr>
1868</tbody></table>
1869</details>
1870</div>
1871<p>Type: Runtime</p>
1872<p>Users of <code>MakeCallback</code> that add the <code>domain</code> property to carry context,
1873should start using the <code>async_context</code> variant of <code>MakeCallback</code> or
1874<code>CallbackScope</code>, or the high-level <code>AsyncResource</code> class.</p>
1875<h4 id="DEP0098">DEP0098: AsyncHooks embedder <code>AsyncResource.emitBefore</code> and <code>AsyncResource.emitAfter</code> APIs<span><a class="mark" href="#deprecations_dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis" id="deprecations_dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis">#</a></span></h4>
1876<div class="api_metadata">
1877<details class="changelog"><summary>History</summary>
1878<table>
1879<tbody><tr><th>Version</th><th>Changes</th></tr>
1880<tr><td>v12.0.0</td>
1881<td><p>End-of-Life.</p></td></tr>
1882<tr><td>v10.0.0, v9.6.0, v8.12.0</td>
1883<td><p>Runtime deprecation.</p></td></tr>
1884</tbody></table>
1885</details>
1886</div>
1887<p>Type: End-of-Life</p>
1888<p>The embedded API provided by AsyncHooks exposes <code>.emitBefore()</code> and
1889<code>.emitAfter()</code> methods which are very easy to use incorrectly which can lead
1890to unrecoverable errors.</p>
1891<p>Use <a href="async_hooks.html#async_hooks_asyncresource_runinasyncscope_fn_thisarg_args"><code>asyncResource.runInAsyncScope()</code></a> API instead which provides a much
1892safer, and more convenient, alternative. See
1893<a href="https://github.com/nodejs/node/pull/18513">https://github.com/nodejs/node/pull/18513</a>.</p>
1894<h4 id="DEP0099">DEP0099: Async context-unaware <code>node::MakeCallback</code> C++ APIs<span><a class="mark" href="#deprecations_dep0099_async_context_unaware_node_makecallback_c_apis" id="deprecations_dep0099_async_context_unaware_node_makecallback_c_apis">#</a></span></h4>
1895<div class="api_metadata">
1896<details class="changelog"><summary>History</summary>
1897<table>
1898<tbody><tr><th>Version</th><th>Changes</th></tr>
1899<tr><td>v10.0.0</td>
1900<td><p>Compile-time deprecation.</p></td></tr>
1901</tbody></table>
1902</details>
1903</div>
1904<p>Type: Compile-time</p>
1905<p>Certain versions of <code>node::MakeCallback</code> APIs available to native modules are
1906deprecated. Please use the versions of the API that accept an <code>async_context</code>
1907parameter.</p>
1908<h4 id="DEP0100">DEP0100: <code>process.assert()</code><span><a class="mark" href="#deprecations_dep0100_process_assert" id="deprecations_dep0100_process_assert">#</a></span></h4>
1909<div class="api_metadata">
1910<details class="changelog"><summary>History</summary>
1911<table>
1912<tbody><tr><th>Version</th><th>Changes</th></tr>
1913<tr><td>v10.0.0</td>
1914<td><p>Runtime deprecation.</p></td></tr>
1915<tr><td>v0.3.7</td>
1916<td><p>Documentation-only deprecation.</p></td></tr>
1917</tbody></table>
1918</details>
1919</div>
1920<p>Type: Runtime</p>
1921<p><code>process.assert()</code> is deprecated. Please use the <a href="assert.html"><code>assert</code></a> module instead.</p>
1922<p>This was never a documented feature.</p>
1923<h4 id="DEP0101">DEP0101: <code>--with-lttng</code><span><a class="mark" href="#deprecations_dep0101_with_lttng" id="deprecations_dep0101_with_lttng">#</a></span></h4>
1924<div class="api_metadata">
1925<details class="changelog"><summary>History</summary>
1926<table>
1927<tbody><tr><th>Version</th><th>Changes</th></tr>
1928<tr><td>v10.0.0</td>
1929<td><p>End-of-Life.</p></td></tr>
1930</tbody></table>
1931</details>
1932</div>
1933<p>Type: End-of-Life</p>
1934<p>The <code>--with-lttng</code> compile-time option has been removed.</p>
1935<h4 id="DEP0102">DEP0102: Using <code>noAssert</code> in <code>Buffer#(read|write)</code> operations<span><a class="mark" href="#deprecations_dep0102_using_noassert_in_buffer_read_write_operations" id="deprecations_dep0102_using_noassert_in_buffer_read_write_operations">#</a></span></h4>
1936<div class="api_metadata">
1937<details class="changelog"><summary>History</summary>
1938<table>
1939<tbody><tr><th>Version</th><th>Changes</th></tr>
1940<tr><td>v10.0.0</td>
1941<td><p>End-of-Life.</p></td></tr>
1942</tbody></table>
1943</details>
1944</div>
1945<p>Type: End-of-Life</p>
1946<p>Using the <code>noAssert</code> argument has no functionality anymore. All input is going
1947to be verified, no matter if it is set to true or not. Skipping the verification
1948could lead to hard to find errors and crashes.</p>
1949<h4 id="DEP0103">DEP0103: <code>process.binding('util').is[...]</code> typechecks<span><a class="mark" href="#deprecations_dep0103_process_binding_util_is_typechecks" id="deprecations_dep0103_process_binding_util_is_typechecks">#</a></span></h4>
1950<div class="api_metadata">
1951<details class="changelog"><summary>History</summary>
1952<table>
1953<tbody><tr><th>Version</th><th>Changes</th></tr>
1954<tr><td>v10.9.0</td>
1955<td><p>Superseded by <a href="#DEP0111">DEP0111</a>.</p></td></tr>
1956<tr><td>v10.0.0</td>
1957<td><p>Documentation-only deprecation.</p></td></tr>
1958</tbody></table>
1959</details>
1960</div>
1961<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
1962<p>Using <code>process.binding()</code> in general should be avoided. The type checking
1963methods in particular can be replaced by using <a href="util.html#util_util_types"><code>util.types</code></a>.</p>
1964<p>This deprecation has been superseded by the deprecation of the
1965<code>process.binding()</code> API (<a href="#DEP0111">DEP0111</a>).</p>
1966<h4 id="DEP0104">DEP0104: <code>process.env</code> string coercion<span><a class="mark" href="#deprecations_dep0104_process_env_string_coercion" id="deprecations_dep0104_process_env_string_coercion">#</a></span></h4>
1967<div class="api_metadata">
1968<details class="changelog"><summary>History</summary>
1969<table>
1970<tbody><tr><th>Version</th><th>Changes</th></tr>
1971<tr><td>v10.0.0</td>
1972<td><p>Documentation-only deprecation.</p></td></tr>
1973</tbody></table>
1974</details>
1975</div>
1976<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
1977<p>When assigning a non-string property to <a href="process.html#process_process_env"><code>process.env</code></a>, the assigned value is
1978implicitly converted to a string. This behavior is deprecated if the assigned
1979value is not a string, boolean, or number. In the future, such assignment might
1980result in a thrown error. Please convert the property to a string before
1981assigning it to <code>process.env</code>.</p>
1982<h4 id="DEP0105">DEP0105: <code>decipher.finaltol</code><span><a class="mark" href="#deprecations_dep0105_decipher_finaltol" id="deprecations_dep0105_decipher_finaltol">#</a></span></h4>
1983<div class="api_metadata">
1984<details class="changelog"><summary>History</summary>
1985<table>
1986<tbody><tr><th>Version</th><th>Changes</th></tr>
1987<tr><td>v11.0.0</td>
1988<td><p>End-of-Life.</p></td></tr>
1989<tr><td>v10.0.0</td>
1990<td><p>Runtime deprecation.</p></td></tr>
1991</tbody></table>
1992</details>
1993</div>
1994<p>Type: End-of-Life</p>
1995<p><code>decipher.finaltol()</code> has never been documented and was an alias for
1996<a href="crypto.html#crypto_decipher_final_outputencoding"><code>decipher.final()</code></a>. This API has been removed, and it is recommended to use
1997<a href="crypto.html#crypto_decipher_final_outputencoding"><code>decipher.final()</code></a> instead.</p>
1998<h4 id="DEP0106">DEP0106: <code>crypto.createCipher</code> and <code>crypto.createDecipher</code><span><a class="mark" href="#deprecations_dep0106_crypto_createcipher_and_crypto_createdecipher" id="deprecations_dep0106_crypto_createcipher_and_crypto_createdecipher">#</a></span></h4>
1999<div class="api_metadata">
2000<details class="changelog"><summary>History</summary>
2001<table>
2002<tbody><tr><th>Version</th><th>Changes</th></tr>
2003<tr><td>v11.0.0</td>
2004<td><p>Runtime deprecation.</p></td></tr>
2005<tr><td>v10.0.0</td>
2006<td><p>Documentation-only deprecation.</p></td></tr>
2007</tbody></table>
2008</details>
2009</div>
2010<p>Type: Runtime</p>
2011<p>Using <a href="crypto.html#crypto_crypto_createcipher_algorithm_password_options"><code>crypto.createCipher()</code></a> and <a href="crypto.html#crypto_crypto_createdecipher_algorithm_password_options"><code>crypto.createDecipher()</code></a> should be
2012avoided as they use a weak key derivation function (MD5 with no salt) and static
2013initialization vectors. It is recommended to derive a key using
2014<a href="crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback"><code>crypto.pbkdf2()</code></a> or <a href="crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback"><code>crypto.scrypt()</code></a> and to use
2015<a href="crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options"><code>crypto.createCipheriv()</code></a> and <a href="crypto.html#crypto_crypto_createdecipheriv_algorithm_key_iv_options"><code>crypto.createDecipheriv()</code></a> to obtain the
2016<a href="crypto.html#crypto_class_cipher"><code>Cipher</code></a> and <a href="crypto.html#crypto_class_decipher"><code>Decipher</code></a> objects respectively.</p>
2017<h4 id="DEP0107">DEP0107: <code>tls.convertNPNProtocols()</code><span><a class="mark" href="#deprecations_dep0107_tls_convertnpnprotocols" id="deprecations_dep0107_tls_convertnpnprotocols">#</a></span></h4>
2018<div class="api_metadata">
2019<details class="changelog"><summary>History</summary>
2020<table>
2021<tbody><tr><th>Version</th><th>Changes</th></tr>
2022<tr><td>v11.0.0</td>
2023<td><p>End-of-Life.</p></td></tr>
2024<tr><td>v10.0.0</td>
2025<td><p>Runtime deprecation.</p></td></tr>
2026</tbody></table>
2027</details>
2028</div>
2029<p>Type: End-of-Life</p>
2030<p>This was an undocumented helper function not intended for use outside Node.js
2031core and obsoleted by the removal of NPN (Next Protocol Negotiation) support.</p>
2032<h4 id="DEP0108">DEP0108: <code>zlib.bytesRead</code><span><a class="mark" href="#deprecations_dep0108_zlib_bytesread" id="deprecations_dep0108_zlib_bytesread">#</a></span></h4>
2033<div class="api_metadata">
2034<details class="changelog"><summary>History</summary>
2035<table>
2036<tbody><tr><th>Version</th><th>Changes</th></tr>
2037<tr><td>v11.0.0</td>
2038<td><p>Runtime deprecation.</p></td></tr>
2039<tr><td>v10.0.0</td>
2040<td><p>Documentation-only deprecation.</p></td></tr>
2041</tbody></table>
2042</details>
2043</div>
2044<p>Type: Runtime</p>
2045<p>Deprecated alias for <a href="zlib.html#zlib_zlib_byteswritten"><code>zlib.bytesWritten</code></a>. This original name was chosen
2046because it also made sense to interpret the value as the number of bytes
2047read by the engine, but is inconsistent with other streams in Node.js that
2048expose values under these names.</p>
2049<h4 id="DEP0109">DEP0109: <code>http</code>, <code>https</code>, and <code>tls</code> support for invalid URLs<span><a class="mark" href="#deprecations_dep0109_http_https_and_tls_support_for_invalid_urls" id="deprecations_dep0109_http_https_and_tls_support_for_invalid_urls">#</a></span></h4>
2050<div class="api_metadata">
2051<details class="changelog"><summary>History</summary>
2052<table>
2053<tbody><tr><th>Version</th><th>Changes</th></tr>
2054<tr><td>v11.0.0</td>
2055<td><p>Runtime deprecation.</p></td></tr>
2056</tbody></table>
2057</details>
2058</div>
2059<p>Type: Runtime</p>
2060<p>Some previously supported (but strictly invalid) URLs were accepted through the
2061<a href="http.html#http_http_request_options_callback"><code>http.request()</code></a>, <a href="http.html#http_http_get_options_callback"><code>http.get()</code></a>, <a href="https.html#https_https_request_options_callback"><code>https.request()</code></a>,
2062<a href="https.html#https_https_get_options_callback"><code>https.get()</code></a>, and <a href="tls.html#tls_tls_checkserveridentity_hostname_cert"><code>tls.checkServerIdentity()</code></a> APIs because those were
2063accepted by the legacy <code>url.parse()</code> API. The mentioned APIs now use the WHATWG
2064URL parser that requires strictly valid URLs. Passing an invalid URL is
2065deprecated and support will be removed in the future.</p>
2066<h4 id="DEP0110">DEP0110: <code>vm.Script</code> cached data<span><a class="mark" href="#deprecations_dep0110_vm_script_cached_data" id="deprecations_dep0110_vm_script_cached_data">#</a></span></h4>
2067<div class="api_metadata">
2068<details class="changelog"><summary>History</summary>
2069<table>
2070<tbody><tr><th>Version</th><th>Changes</th></tr>
2071<tr><td>v10.6.0</td>
2072<td><p>Documentation-only deprecation.</p></td></tr>
2073</tbody></table>
2074</details>
2075</div>
2076<p>Type: Documentation-only</p>
2077<p>The <code>produceCachedData</code> option is deprecated. Use
2078<a href="vm.html#vm_script_createcacheddata"><code>script.createCachedData()</code></a> instead.</p>
2079<h4 id="DEP0111">DEP0111: <code>process.binding()</code><span><a class="mark" href="#deprecations_dep0111_process_binding" id="deprecations_dep0111_process_binding">#</a></span></h4>
2080<div class="api_metadata">
2081<details class="changelog"><summary>History</summary>
2082<table>
2083<tbody><tr><th>Version</th><th>Changes</th></tr>
2084<tr><td>v11.12.0</td>
2085<td><p>Added support for <code>--pending-deprecation</code>.</p></td></tr>
2086<tr><td>v10.9.0</td>
2087<td><p>Documentation-only deprecation.</p></td></tr>
2088</tbody></table>
2089</details>
2090</div>
2091<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2092<p><code>process.binding()</code> is for use by Node.js internal code only.</p>
2093<h4 id="DEP0112">DEP0112: <code>dgram</code> private APIs<span><a class="mark" href="#deprecations_dep0112_dgram_private_apis" id="deprecations_dep0112_dgram_private_apis">#</a></span></h4>
2094<div class="api_metadata">
2095<details class="changelog"><summary>History</summary>
2096<table>
2097<tbody><tr><th>Version</th><th>Changes</th></tr>
2098<tr><td>v11.0.0</td>
2099<td><p>Runtime deprecation.</p></td></tr>
2100</tbody></table>
2101</details>
2102</div>
2103<p>Type: Runtime</p>
2104<p>The <code>dgram</code> module previously contained several APIs that were never meant to
2105accessed outside of Node.js core: <code>Socket.prototype._handle</code>,
2106<code>Socket.prototype._receiving</code>, <code>Socket.prototype._bindState</code>,
2107<code>Socket.prototype._queue</code>, <code>Socket.prototype._reuseAddr</code>,
2108<code>Socket.prototype._healthCheck()</code>, <code>Socket.prototype._stopReceiving()</code>, and
2109<code>dgram._createSocketHandle()</code>.</p>
2110<h4 id="DEP0113">DEP0113: <code>Cipher.setAuthTag()</code>, <code>Decipher.getAuthTag()</code><span><a class="mark" href="#deprecations_dep0113_cipher_setauthtag_decipher_getauthtag" id="deprecations_dep0113_cipher_setauthtag_decipher_getauthtag">#</a></span></h4>
2111<div class="api_metadata">
2112<details class="changelog"><summary>History</summary>
2113<table>
2114<tbody><tr><th>Version</th><th>Changes</th></tr>
2115<tr><td>v12.0.0</td>
2116<td><p>End-of-Life.</p></td></tr>
2117<tr><td>v11.0.0</td>
2118<td><p>Runtime deprecation.</p></td></tr>
2119</tbody></table>
2120</details>
2121</div>
2122<p>Type: End-of-Life</p>
2123<p><code>Cipher.setAuthTag()</code> and <code>Decipher.getAuthTag()</code> are no longer available. They
2124were never documented and would throw when called.</p>
2125<h4 id="DEP0114">DEP0114: <code>crypto._toBuf()</code><span><a class="mark" href="#deprecations_dep0114_crypto_tobuf" id="deprecations_dep0114_crypto_tobuf">#</a></span></h4>
2126<div class="api_metadata">
2127<details class="changelog"><summary>History</summary>
2128<table>
2129<tbody><tr><th>Version</th><th>Changes</th></tr>
2130<tr><td>v12.0.0</td>
2131<td><p>End-of-Life.</p></td></tr>
2132<tr><td>v11.0.0</td>
2133<td><p>Runtime deprecation.</p></td></tr>
2134</tbody></table>
2135</details>
2136</div>
2137<p>Type: End-of-Life</p>
2138<p>The <code>crypto._toBuf()</code> function was not designed to be used by modules outside
2139of Node.js core and was removed.</p>
2140<h4 id="DEP0115">DEP0115: <code>crypto.prng()</code>, <code>crypto.pseudoRandomBytes()</code>, <code>crypto.rng()</code><span><a class="mark" href="#deprecations_dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng" id="deprecations_dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng">#</a></span></h4>
2141<!--lint disable nodejs-yaml-comments -->
2142<div class="api_metadata">
2143<details class="changelog"><summary>History</summary>
2144<table>
2145<tbody><tr><th>Version</th><th>Changes</th></tr>
2146<tr><td>v11.0.0</td>
2147<td><p>Added documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
2148</tbody></table>
2149</details>
2150</div>
2151<!--lint enable nodejs-yaml-comments -->
2152<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2153<p>In recent versions of Node.js, there is no difference between
2154<a href="crypto.html#crypto_crypto_randombytes_size_callback"><code>crypto.randomBytes()</code></a> and <code>crypto.pseudoRandomBytes()</code>. The latter is
2155deprecated along with the undocumented aliases <code>crypto.prng()</code> and
2156<code>crypto.rng()</code> in favor of <a href="crypto.html#crypto_crypto_randombytes_size_callback"><code>crypto.randomBytes()</code></a> and might be removed in a
2157future release.</p>
2158<h4 id="DEP0116">DEP0116: Legacy URL API<span><a class="mark" href="#deprecations_dep0116_legacy_url_api" id="deprecations_dep0116_legacy_url_api">#</a></span></h4>
2159<div class="api_metadata">
2160<details class="changelog"><summary>History</summary>
2161<table>
2162<tbody><tr><th>Version</th><th>Changes</th></tr>
2163<tr><td>v14.17.0</td>
2164<td><p>Deprecation revoked. Status changed to "Legacy".</p></td></tr>
2165<tr><td>v11.0.0</td>
2166<td><p>Documentation-only deprecation.</p></td></tr>
2167</tbody></table>
2168</details>
2169</div>
2170<p>Type: Deprecation revoked</p>
2171<p>The <a href="url.html#url_legacy_url_api">Legacy URL API</a> is deprecated. This includes <a href="url.html#url_url_format_urlobject"><code>url.format()</code></a>,
2172<a href="url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost"><code>url.parse()</code></a>, <a href="url.html#url_url_resolve_from_to"><code>url.resolve()</code></a>, and the <a href="url.html#url_legacy_urlobject">legacy <code>urlObject</code></a>. Please
2173use the <a href="url.html#url_the_whatwg_url_api">WHATWG URL API</a> instead.</p>
2174<h4 id="DEP0117">DEP0117: Native crypto handles<span><a class="mark" href="#deprecations_dep0117_native_crypto_handles" id="deprecations_dep0117_native_crypto_handles">#</a></span></h4>
2175<div class="api_metadata">
2176<details class="changelog"><summary>History</summary>
2177<table>
2178<tbody><tr><th>Version</th><th>Changes</th></tr>
2179<tr><td>v12.0.0</td>
2180<td><p>End-of-Life.</p></td></tr>
2181<tr><td>v11.0.0</td>
2182<td><p>Runtime deprecation.</p></td></tr>
2183</tbody></table>
2184</details>
2185</div>
2186<p>Type: End-of-Life</p>
2187<p>Previous versions of Node.js exposed handles to internal native objects through
2188the <code>_handle</code> property of the <code>Cipher</code>, <code>Decipher</code>, <code>DiffieHellman</code>,
2189<code>DiffieHellmanGroup</code>, <code>ECDH</code>, <code>Hash</code>, <code>Hmac</code>, <code>Sign</code>, and <code>Verify</code> classes.
2190The <code>_handle</code> property has been removed because improper use of the native
2191object can lead to crashing the application.</p>
2192<h4 id="DEP0118">DEP0118: <code>dns.lookup()</code> support for a falsy host name<span><a class="mark" href="#deprecations_dep0118_dns_lookup_support_for_a_falsy_host_name" id="deprecations_dep0118_dns_lookup_support_for_a_falsy_host_name">#</a></span></h4>
2193<div class="api_metadata">
2194<details class="changelog"><summary>History</summary>
2195<table>
2196<tbody><tr><th>Version</th><th>Changes</th></tr>
2197<tr><td>v11.0.0</td>
2198<td><p>Runtime deprecation.</p></td></tr>
2199</tbody></table>
2200</details>
2201</div>
2202<p>Type: Runtime</p>
2203<p>Previous versions of Node.js supported <code>dns.lookup()</code> with a falsy host name
2204like <code>dns.lookup(false)</code> due to backward compatibility.
2205This behavior is undocumented and is thought to be unused in real world apps.
2206It will become an error in future versions of Node.js.</p>
2207<h4 id="DEP0119">DEP0119: <code>process.binding('uv').errname()</code> private API<span><a class="mark" href="#deprecations_dep0119_process_binding_uv_errname_private_api" id="deprecations_dep0119_process_binding_uv_errname_private_api">#</a></span></h4>
2208<div class="api_metadata">
2209<details class="changelog"><summary>History</summary>
2210<table>
2211<tbody><tr><th>Version</th><th>Changes</th></tr>
2212<tr><td>v11.0.0</td>
2213<td><p>Documentation-only deprecation.</p></td></tr>
2214</tbody></table>
2215</details>
2216</div>
2217<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2218<p><code>process.binding('uv').errname()</code> is deprecated. Please use
2219<a href="util.html#util_util_getsystemerrorname_err"><code>util.getSystemErrorName()</code></a> instead.</p>
2220<h4 id="DEP0120">DEP0120: Windows Performance Counter support<span><a class="mark" href="#deprecations_dep0120_windows_performance_counter_support" id="deprecations_dep0120_windows_performance_counter_support">#</a></span></h4>
2221<div class="api_metadata">
2222<details class="changelog"><summary>History</summary>
2223<table>
2224<tbody><tr><th>Version</th><th>Changes</th></tr>
2225<tr><td>v12.0.0</td>
2226<td><p>End-of-Life.</p></td></tr>
2227<tr><td>v11.0.0</td>
2228<td><p>Runtime deprecation.</p></td></tr>
2229</tbody></table>
2230</details>
2231</div>
2232<p>Type: End-of-Life</p>
2233<p>Windows Performance Counter support has been removed from Node.js. The
2234undocumented <code>COUNTER_NET_SERVER_CONNECTION()</code>,
2235<code>COUNTER_NET_SERVER_CONNECTION_CLOSE()</code>, <code>COUNTER_HTTP_SERVER_REQUEST()</code>,
2236<code>COUNTER_HTTP_SERVER_RESPONSE()</code>, <code>COUNTER_HTTP_CLIENT_REQUEST()</code>, and
2237<code>COUNTER_HTTP_CLIENT_RESPONSE()</code> functions have been deprecated.</p>
2238<h4 id="DEP0121">DEP0121: <code>net._setSimultaneousAccepts()</code><span><a class="mark" href="#deprecations_dep0121_net_setsimultaneousaccepts" id="deprecations_dep0121_net_setsimultaneousaccepts">#</a></span></h4>
2239<div class="api_metadata">
2240<details class="changelog"><summary>History</summary>
2241<table>
2242<tbody><tr><th>Version</th><th>Changes</th></tr>
2243<tr><td>v12.0.0</td>
2244<td><p>Runtime deprecation.</p></td></tr>
2245</tbody></table>
2246</details>
2247</div>
2248<p>Type: Runtime</p>
2249<p>The undocumented <code>net._setSimultaneousAccepts()</code> function was originally
2250intended for debugging and performance tuning when using the <code>child_process</code>
2251and <code>cluster</code> modules on Windows. The function is not generally useful and
2252is being removed. See discussion here:
2253<a href="https://github.com/nodejs/node/issues/18391">https://github.com/nodejs/node/issues/18391</a></p>
2254<h4 id="DEP0122">DEP0122: <code>tls</code> <code>Server.prototype.setOptions()</code><span><a class="mark" href="#deprecations_dep0122_tls_server_prototype_setoptions" id="deprecations_dep0122_tls_server_prototype_setoptions">#</a></span></h4>
2255<div class="api_metadata">
2256<details class="changelog"><summary>History</summary>
2257<table>
2258<tbody><tr><th>Version</th><th>Changes</th></tr>
2259<tr><td>v12.0.0</td>
2260<td><p>Runtime deprecation.</p></td></tr>
2261</tbody></table>
2262</details>
2263</div>
2264<p>Type: Runtime</p>
2265<p>Please use <code>Server.prototype.setSecureContext()</code> instead.</p>
2266<h4 id="DEP0123">DEP0123: setting the TLS ServerName to an IP address<span><a class="mark" href="#deprecations_dep0123_setting_the_tls_servername_to_an_ip_address" id="deprecations_dep0123_setting_the_tls_servername_to_an_ip_address">#</a></span></h4>
2267<div class="api_metadata">
2268<details class="changelog"><summary>History</summary>
2269<table>
2270<tbody><tr><th>Version</th><th>Changes</th></tr>
2271<tr><td>v12.0.0</td>
2272<td><p>Runtime deprecation.</p></td></tr>
2273</tbody></table>
2274</details>
2275</div>
2276<p>Type: Runtime</p>
2277<p>Setting the TLS ServerName to an IP address is not permitted by
2278<a href="https://tools.ietf.org/html/rfc6066#section-3">RFC 6066</a>. This will be ignored in a future version.</p>
2279<h4 id="DEP0124">DEP0124: using <code>REPLServer.rli</code><span><a class="mark" href="#deprecations_dep0124_using_replserver_rli" id="deprecations_dep0124_using_replserver_rli">#</a></span></h4>
2280<div class="api_metadata">
2281<details class="changelog"><summary>History</summary>
2282<table>
2283<tbody><tr><th>Version</th><th>Changes</th></tr>
2284<tr><td>v12.0.0</td>
2285<td><p>Runtime deprecation.</p></td></tr>
2286</tbody></table>
2287</details>
2288</div>
2289<p>Type: Runtime</p>
2290<p>This property is a reference to the instance itself.</p>
2291<h4 id="DEP0125">DEP0125: <code>require('_stream_wrap')</code><span><a class="mark" href="#deprecations_dep0125_require_stream_wrap" id="deprecations_dep0125_require_stream_wrap">#</a></span></h4>
2292<div class="api_metadata">
2293<details class="changelog"><summary>History</summary>
2294<table>
2295<tbody><tr><th>Version</th><th>Changes</th></tr>
2296<tr><td>v12.0.0</td>
2297<td><p>Runtime deprecation.</p></td></tr>
2298</tbody></table>
2299</details>
2300</div>
2301<p>Type: Runtime</p>
2302<p>The <code>_stream_wrap</code> module is deprecated.</p>
2303<h4 id="DEP0126">DEP0126: <code>timers.active()</code><span><a class="mark" href="#deprecations_dep0126_timers_active" id="deprecations_dep0126_timers_active">#</a></span></h4>
2304<div class="api_metadata">
2305<details class="changelog"><summary>History</summary>
2306<table>
2307<tbody><tr><th>Version</th><th>Changes</th></tr>
2308<tr><td>v11.14.0</td>
2309<td><p>Runtime deprecation.</p></td></tr>
2310</tbody></table>
2311</details>
2312</div>
2313<p>Type: Runtime</p>
2314<p>The previously undocumented <code>timers.active()</code> is deprecated.
2315Please use the publicly documented <a href="timers.html#timers_timeout_refresh"><code>timeout.refresh()</code></a> instead.
2316If re-referencing the timeout is necessary, <a href="timers.html#timers_timeout_ref"><code>timeout.ref()</code></a> can be used
2317with no performance impact since Node.js 10.</p>
2318<h4 id="DEP0127">DEP0127: <code>timers._unrefActive()</code><span><a class="mark" href="#deprecations_dep0127_timers_unrefactive" id="deprecations_dep0127_timers_unrefactive">#</a></span></h4>
2319<div class="api_metadata">
2320<details class="changelog"><summary>History</summary>
2321<table>
2322<tbody><tr><th>Version</th><th>Changes</th></tr>
2323<tr><td>v11.14.0</td>
2324<td><p>Runtime deprecation.</p></td></tr>
2325</tbody></table>
2326</details>
2327</div>
2328<p>Type: Runtime</p>
2329<p>The previously undocumented and "private" <code>timers._unrefActive()</code> is deprecated.
2330Please use the publicly documented <a href="timers.html#timers_timeout_refresh"><code>timeout.refresh()</code></a> instead.
2331If unreferencing the timeout is necessary, <a href="timers.html#timers_timeout_unref"><code>timeout.unref()</code></a> can be used
2332with no performance impact since Node.js 10.</p>
2333<h4 id="DEP0128">DEP0128: modules with an invalid <code>main</code> entry and an <code>index.js</code> file<span><a class="mark" href="#deprecations_dep0128_modules_with_an_invalid_main_entry_and_an_index_js_file" id="deprecations_dep0128_modules_with_an_invalid_main_entry_and_an_index_js_file">#</a></span></h4>
2334<div class="api_metadata">
2335<details class="changelog"><summary>History</summary>
2336<table>
2337<tbody><tr><th>Version</th><th>Changes</th></tr>
2338<tr><td>v12.0.0</td>
2339<td><p>Documentation-only.</p></td></tr>
2340</tbody></table>
2341</details>
2342</div>
2343<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2344<p>Modules that have an invalid <code>main</code> entry (e.g., <code>./does-not-exist.js</code>) and
2345also have an <code>index.js</code> file in the top level directory will resolve the
2346<code>index.js</code> file. That is deprecated and is going to throw an error in future
2347Node.js versions.</p>
2348<h4 id="DEP0129">DEP0129: <code>ChildProcess._channel</code><span><a class="mark" href="#deprecations_dep0129_childprocess_channel" id="deprecations_dep0129_childprocess_channel">#</a></span></h4>
2349<div class="api_metadata">
2350<details class="changelog"><summary>History</summary>
2351<table>
2352<tbody><tr><th>Version</th><th>Changes</th></tr>
2353<tr><td>v13.0.0</td>
2354<td><p>Runtime deprecation.</p></td></tr>
2355<tr><td>v11.14.0</td>
2356<td><p>Documentation-only.</p></td></tr>
2357</tbody></table>
2358</details>
2359</div>
2360<p>Type: Runtime</p>
2361<p>The <code>_channel</code> property of child process objects returned by <code>spawn()</code> and
2362similar functions is not intended for public use. Use <code>ChildProcess.channel</code>
2363instead.</p>
2364<h4 id="DEP0130">DEP0130: <code>Module.createRequireFromPath()</code><span><a class="mark" href="#deprecations_dep0130_module_createrequirefrompath" id="deprecations_dep0130_module_createrequirefrompath">#</a></span></h4>
2365<div class="api_metadata">
2366<details class="changelog"><summary>History</summary>
2367<table>
2368<tbody><tr><th>Version</th><th>Changes</th></tr>
2369<tr><td>v13.0.0</td>
2370<td><p>Runtime deprecation.</p></td></tr>
2371<tr><td>v12.2.0</td>
2372<td><p>Documentation-only.</p></td></tr>
2373</tbody></table>
2374</details>
2375</div>
2376<p>Type: Runtime</p>
2377<p>Module.createRequireFromPath() is deprecated. Please use
2378<a href="module.html#module_module_createrequire_filename"><code>module.createRequire()</code></a> instead.</p>
2379<h4 id="DEP0131">DEP0131: Legacy HTTP parser<span><a class="mark" href="#deprecations_dep0131_legacy_http_parser" id="deprecations_dep0131_legacy_http_parser">#</a></span></h4>
2380<div class="api_metadata">
2381<details class="changelog"><summary>History</summary>
2382<table>
2383<tbody><tr><th>Version</th><th>Changes</th></tr>
2384<tr><td>v13.0.0</td>
2385<td><p>This feature has been removed.</p></td></tr>
2386<tr><td>v12.3.0</td>
2387<td><p>Documentation-only.</p></td></tr>
2388</tbody></table>
2389</details>
2390</div>
2391<p>Type: End-of-Life</p>
2392<p>The legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0,
2393is deprecated and has been removed in v13.0.0. Prior to v13.0.0, the
2394<code>--http-parser=legacy</code> command-line flag could be used to revert to using the
2395legacy parser.</p>
2396<h4 id="DEP0132">DEP0132: <code>worker.terminate()</code> with callback<span><a class="mark" href="#deprecations_dep0132_worker_terminate_with_callback" id="deprecations_dep0132_worker_terminate_with_callback">#</a></span></h4>
2397<div class="api_metadata">
2398<details class="changelog"><summary>History</summary>
2399<table>
2400<tbody><tr><th>Version</th><th>Changes</th></tr>
2401<tr><td>v12.5.0</td>
2402<td><p>Runtime deprecation.</p></td></tr>
2403</tbody></table>
2404</details>
2405</div>
2406<p>Type: Runtime</p>
2407<p>Passing a callback to <a href="worker_threads.html#worker_threads_worker_terminate"><code>worker.terminate()</code></a> is deprecated. Use the returned
2408<code>Promise</code> instead, or a listener to the worker’s <code>'exit'</code> event.</p>
2409<h4 id="DEP0133">DEP0133: <code>http</code> <code>connection</code><span><a class="mark" href="#deprecations_dep0133_http_connection" id="deprecations_dep0133_http_connection">#</a></span></h4>
2410<div class="api_metadata">
2411<details class="changelog"><summary>History</summary>
2412<table>
2413<tbody><tr><th>Version</th><th>Changes</th></tr>
2414<tr><td>v12.12.0</td>
2415<td><p>Documentation-only deprecation.</p></td></tr>
2416</tbody></table>
2417</details>
2418</div>
2419<p>Type: Documentation-only</p>
2420<p>Prefer <a href="http.html#http_response_socket"><code>response.socket</code></a> over <a href="http.html#http_response_connection"><code>response.connection</code></a> and
2421<a href="http.html#http_request_socket"><code>request.socket</code></a> over <a href="http.html#http_request_connection"><code>request.connection</code></a>.</p>
2422<h4 id="DEP0134">DEP0134: <code>process._tickCallback</code><span><a class="mark" href="#deprecations_dep0134_process_tickcallback" id="deprecations_dep0134_process_tickcallback">#</a></span></h4>
2423<div class="api_metadata">
2424<details class="changelog"><summary>History</summary>
2425<table>
2426<tbody><tr><th>Version</th><th>Changes</th></tr>
2427<tr><td>v12.12.0</td>
2428<td><p>Documentation-only deprecation.</p></td></tr>
2429</tbody></table>
2430</details>
2431</div>
2432<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2433<p>The <code>process._tickCallback</code> property was never documented as
2434an officially supported API.</p>
2435<h4 id="DEP0135">DEP0135: <code>WriteStream.open()</code> and <code>ReadStream.open()</code> are internal<span><a class="mark" href="#deprecations_dep0135_writestream_open_and_readstream_open_are_internal" id="deprecations_dep0135_writestream_open_and_readstream_open_are_internal">#</a></span></h4>
2436<div class="api_metadata">
2437<details class="changelog"><summary>History</summary>
2438<table>
2439<tbody><tr><th>Version</th><th>Changes</th></tr>
2440<tr><td>v13.0.0</td>
2441<td><p>Runtime deprecation.</p></td></tr>
2442</tbody></table>
2443</details>
2444</div>
2445<p>Type: Runtime</p>
2446<p><a href="fs.html#fs_class_fs_writestream"><code>WriteStream.open()</code></a> and <a href="fs.html#fs_class_fs_readstream"><code>ReadStream.open()</code></a> are undocumented internal
2447APIs that do not make sense to use in userland. File streams should always be
2448opened through their corresponding factory methods <a href="fs.html#fs_fs_createwritestream_path_options"><code>fs.createWriteStream()</code></a>
2449and <a href="fs.html#fs_fs_createreadstream_path_options"><code>fs.createReadStream()</code></a>) or by passing a file descriptor in options.</p>
2450<h4 id="DEP0136">DEP0136: <code>http</code> <code>finished</code><span><a class="mark" href="#deprecations_dep0136_http_finished" id="deprecations_dep0136_http_finished">#</a></span></h4>
2451<div class="api_metadata">
2452<details class="changelog"><summary>History</summary>
2453<table>
2454<tbody><tr><th>Version</th><th>Changes</th></tr>
2455<tr><td>v13.4.0, v12.16.0</td>
2456<td><p>Documentation-only deprecation.</p></td></tr>
2457</tbody></table>
2458</details>
2459</div>
2460<p>Type: Documentation-only</p>
2461<p><a href="http.html#http_response_finished"><code>response.finished</code></a> indicates whether <a href="http.html#http_response_end_data_encoding_callback"><code>response.end()</code></a> has been
2462called, not whether <code>'finish'</code> has been emitted and the underlying data
2463is flushed.</p>
2464<p>Use <a href="http.html#http_response_writablefinished"><code>response.writableFinished</code></a> or <a href="http.html#http_response_writableended"><code>response.writableEnded</code></a>
2465accordingly instead to avoid the ambiguity.</p>
2466<p>To maintain existing behaviour <code>response.finished</code> should be replaced with
2467<code>response.writableEnded</code>.</p>
2468<h4 id="DEP0137">DEP0137: Closing fs.FileHandle on garbage collection<span><a class="mark" href="#deprecations_dep0137_closing_fs_filehandle_on_garbage_collection" id="deprecations_dep0137_closing_fs_filehandle_on_garbage_collection">#</a></span></h4>
2469<div class="api_metadata">
2470<details class="changelog"><summary>History</summary>
2471<table>
2472<tbody><tr><th>Version</th><th>Changes</th></tr>
2473<tr><td>v14.0.0</td>
2474<td><p>Runtime deprecation.</p></td></tr>
2475</tbody></table>
2476</details>
2477</div>
2478<p>Type: Runtime</p>
2479<p>Allowing a <a href="fs.html#fs_class_filehandle"><code>fs.FileHandle</code></a> object to be closed on garbage collection is
2480deprecated. In the future, doing so might result in a thrown error that will
2481terminate the process.</p>
2482<p>Please ensure that all <code>fs.FileHandle</code> objects are explicitly closed using
2483<code>FileHandle.prototype.close()</code> when the <code>fs.FileHandle</code> is no longer needed:</p>
2484<pre><code class="language-js"><span class="hljs-keyword">const</span> fsPromises = <span class="hljs-built_in">require</span>(<span class="hljs-string">'fs'</span>).<span class="hljs-property">promises</span>;
2485<span class="hljs-keyword">async</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">openAndClose</span>(<span class="hljs-params"></span>) {
2486  <span class="hljs-keyword">let</span> filehandle;
2487  <span class="hljs-keyword">try</span> {
2488    filehandle = <span class="hljs-keyword">await</span> fsPromises.<span class="hljs-title function_">open</span>(<span class="hljs-string">'thefile.txt'</span>, <span class="hljs-string">'r'</span>);
2489  } <span class="hljs-keyword">finally</span> {
2490    <span class="hljs-keyword">if</span> (filehandle !== <span class="hljs-literal">undefined</span>)
2491      <span class="hljs-keyword">await</span> filehandle.<span class="hljs-title function_">close</span>();
2492  }
2493}</code></pre>
2494<h4 id="DEP0138">DEP0138: <code>process.mainModule</code><span><a class="mark" href="#deprecations_dep0138_process_mainmodule" id="deprecations_dep0138_process_mainmodule">#</a></span></h4>
2495<div class="api_metadata">
2496<details class="changelog"><summary>History</summary>
2497<table>
2498<tbody><tr><th>Version</th><th>Changes</th></tr>
2499<tr><td>v14.0.0</td>
2500<td><p>Documentation-only deprecation.</p></td></tr>
2501</tbody></table>
2502</details>
2503</div>
2504<p>Type: Documentation-only</p>
2505<p><a href="process.html#process_process_mainmodule"><code>process.mainModule</code></a> is a CommonJS-only feature while <code>process</code> global
2506object is shared with non-CommonJS environment. Its use within ECMAScript
2507modules is unsupported.</p>
2508<p>It is deprecated in favor of <a href="modules.html#modules_accessing_the_main_module"><code>require.main</code></a>, because it serves the same
2509purpose and is only available on CommonJS environment.</p>
2510<h4 id="DEP0139">DEP0139: <code>process.umask()</code> with no arguments<span><a class="mark" href="#deprecations_dep0139_process_umask_with_no_arguments" id="deprecations_dep0139_process_umask_with_no_arguments">#</a></span></h4>
2511<div class="api_metadata">
2512<details class="changelog"><summary>History</summary>
2513<table>
2514<tbody><tr><th>Version</th><th>Changes</th></tr>
2515<tr><td>v14.0.0, v12.19.0</td>
2516<td><p>Documentation-only deprecation.</p></td></tr>
2517</tbody></table>
2518</details>
2519</div>
2520<p>Type: Documentation-only</p>
2521<p>Calling <code>process.umask()</code> with no argument causes the process-wide umask to be
2522written twice. This introduces a race condition between threads, and is a
2523potential security vulnerability. There is no safe, cross-platform alternative
2524API.</p>
2525<h4 id="DEP0140">DEP0140: Use <code>request.destroy()</code> instead of <code>request.abort()</code><span><a class="mark" href="#deprecations_dep0140_use_request_destroy_instead_of_request_abort" id="deprecations_dep0140_use_request_destroy_instead_of_request_abort">#</a></span></h4>
2526<div class="api_metadata">
2527<details class="changelog"><summary>History</summary>
2528<table>
2529<tbody><tr><th>Version</th><th>Changes</th></tr>
2530<tr><td>v14.1.0, v13.14.0</td>
2531<td><p>Documentation-only deprecation.</p></td></tr>
2532</tbody></table>
2533</details>
2534</div>
2535<p>Type: Documentation-only</p>
2536<p>Use <a href="http.html#http_request_destroy_error"><code>request.destroy()</code></a> instead of <a href="http.html#http_request_abort"><code>request.abort()</code></a>.</p>
2537<h4 id="DEP0141">DEP0141: <code>repl.inputStream</code> and <code>repl.outputStream</code><span><a class="mark" href="#deprecations_dep0141_repl_inputstream_and_repl_outputstream" id="deprecations_dep0141_repl_inputstream_and_repl_outputstream">#</a></span></h4>
2538<div class="api_metadata">
2539<details class="changelog"><summary>History</summary>
2540<table>
2541<tbody><tr><th>Version</th><th>Changes</th></tr>
2542<tr><td>v14.3.0</td>
2543<td><p>Documentation-only (supports [<code>--pending-deprecation</code>][]).</p></td></tr>
2544</tbody></table>
2545</details>
2546</div>
2547<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2548<p>The <code>repl</code> module exported the input and output stream twice. Use <code>.input</code>
2549instead of <code>.inputStream</code> and <code>.output</code> instead of <code>.outputStream</code>.</p>
2550<h4 id="DEP0142">DEP0142: <code>repl._builtinLibs</code><span><a class="mark" href="#deprecations_dep0142_repl_builtinlibs" id="deprecations_dep0142_repl_builtinlibs">#</a></span></h4>
2551<div class="api_metadata">
2552<details class="changelog"><summary>History</summary>
2553<table>
2554<tbody><tr><th>Version</th><th>Changes</th></tr>
2555<tr><td>v14.3.0</td>
2556<td><p>Documentation-only (supports [<code>--pending-deprecation</code>][]).</p></td></tr>
2557</tbody></table>
2558</details>
2559</div>
2560<p>Type: Documentation-only</p>
2561<p>The <code>repl</code> module exports a <code>_builtinLibs</code> property that contains an array with
2562native modules. It was incomplete so far and instead it's better to rely upon
2563<code>require('module').builtinModules</code>.</p>
2564<h4 id="DEP0143">DEP0143: <code>Transform._transformState</code><span><a class="mark" href="#deprecations_dep0143_transform_transformstate" id="deprecations_dep0143_transform_transformstate">#</a></span></h4>
2565<div class="api_metadata">
2566<details class="changelog"><summary>History</summary>
2567<table>
2568<tbody><tr><th>Version</th><th>Changes</th></tr>
2569<tr><td>v14.5.0</td>
2570<td><p>Runtime deprecation.</p></td></tr>
2571</tbody></table>
2572</details>
2573</div>
2574<p>Type: Runtime
2575<code>Transform._transformState</code> will be removed in future versions where it is
2576no longer required due to simplification of the implementation.</p>
2577<h4 id="DEP0144">DEP0144: <code>module.parent</code><span><a class="mark" href="#deprecations_dep0144_module_parent" id="deprecations_dep0144_module_parent">#</a></span></h4>
2578<div class="api_metadata">
2579<details class="changelog"><summary>History</summary>
2580<table>
2581<tbody><tr><th>Version</th><th>Changes</th></tr>
2582<tr><td>v14.6.0, v12.19.0</td>
2583<td><p>Documentation-only deprecation.</p></td></tr>
2584</tbody></table>
2585</details>
2586</div>
2587<p>Type: Documentation-only</p>
2588<p>A CommonJS module can access the first module that required it using
2589<code>module.parent</code>. This feature is deprecated because it does not work
2590consistently in the presence of ECMAScript modules and because it gives an
2591inaccurate representation of the CommonJS module graph.</p>
2592<p>Some modules use it to check if they are the entry point of the current process.
2593Instead, it is recommended to compare <code>require.main</code> and <code>module</code>:</p>
2594<pre><code class="language-js"><span class="hljs-keyword">if</span> (<span class="hljs-built_in">require</span>.<span class="hljs-property">main</span> === <span class="hljs-variable language_">module</span>) {
2595  <span class="hljs-comment">// Code section that will run only if current file is the entry point.</span>
2596}</code></pre>
2597<p>When looking for the CommonJS modules that have required the current one,
2598<code>require.cache</code> and <code>module.children</code> can be used:</p>
2599<pre><code class="language-js"><span class="hljs-keyword">const</span> moduleParents = <span class="hljs-title class_">Object</span>.<span class="hljs-title function_">values</span>(<span class="hljs-built_in">require</span>.<span class="hljs-property">cache</span>)
2600  .<span class="hljs-title function_">filter</span>(<span class="hljs-function">(<span class="hljs-params">m</span>) =></span> m.<span class="hljs-property">children</span>.<span class="hljs-title function_">includes</span>(<span class="hljs-variable language_">module</span>));</code></pre>
2601<h4 id="DEP0145">DEP0145: <code>socket.bufferSize</code><span><a class="mark" href="#deprecations_dep0145_socket_buffersize" id="deprecations_dep0145_socket_buffersize">#</a></span></h4>
2602<div class="api_metadata">
2603<details class="changelog"><summary>History</summary>
2604<table>
2605<tbody><tr><th>Version</th><th>Changes</th></tr>
2606<tr><td>v14.6.0</td>
2607<td><p>Documentation-only deprecation.</p></td></tr>
2608</tbody></table>
2609</details>
2610</div>
2611<p>Type: Documentation-only</p>
2612<p><a href="net.html#net_socket_buffersize"><code>socket.bufferSize</code></a> is just an alias for <a href="stream.html#stream_writable_writablelength"><code>writable.writableLength</code></a>.</p>
2613<h4 id="DEP0146">DEP0146: <code>new crypto.Certificate()</code><span><a class="mark" href="#deprecations_dep0146_new_crypto_certificate" id="deprecations_dep0146_new_crypto_certificate">#</a></span></h4>
2614<div class="api_metadata">
2615<details class="changelog"><summary>History</summary>
2616<table>
2617<tbody><tr><th>Version</th><th>Changes</th></tr>
2618<tr><td>v14.9.0</td>
2619<td><p>Documentation-only deprecation.</p></td></tr>
2620</tbody></table>
2621</details>
2622</div>
2623<p>Type: Documentation-only</p>
2624<p>The <a href="crypto.html#crypto_legacy_api"><code>crypto.Certificate()</code> constructor</a> is deprecated. Use
2625<a href="crypto.html#crypto_class_certificate">static methods of <code>crypto.Certificate()</code></a> instead.</p>
2626<h4 id="DEP0147">DEP0147: <code>fs.rmdir(path, { recursive: true })</code><span><a class="mark" href="#deprecations_dep0147_fs_rmdir_path_recursive_true" id="deprecations_dep0147_fs_rmdir_path_recursive_true">#</a></span></h4>
2627<div class="api_metadata">
2628<details class="changelog"><summary>History</summary>
2629<table>
2630<tbody><tr><th>Version</th><th>Changes</th></tr>
2631<tr><td>v14.14.0</td>
2632<td><p>Documentation-only deprecation.</p></td></tr>
2633</tbody></table>
2634</details>
2635</div>
2636<p>Type: Documentation-only</p>
2637<p>In future versions of Node.js, <code>fs.rmdir(path, { recursive: true })</code> will throw
2638on nonexistent paths, or when given a file as a target.
2639Use <code>fs.rm(path, { recursive: true, force: true })</code> instead.</p>
2640<h4 id="DEP0151">DEP0151: Main index lookup and extension searching<span><a class="mark" href="#deprecations_dep0151_main_index_lookup_and_extension_searching" id="deprecations_dep0151_main_index_lookup_and_extension_searching">#</a></span></h4>
2641<div class="api_metadata">
2642<details class="changelog"><summary>History</summary>
2643<table>
2644<tbody><tr><th>Version</th><th>Changes</th></tr>
2645<tr><td>v14.18.0</td>
2646<td><p>Documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
2647</tbody></table>
2648</details>
2649</div>
2650<p>Type: Documentation-only (supports <a href="cli.html#cli_pending_deprecation"><code>--pending-deprecation</code></a>)</p>
2651<p>Previously, <code>index.js</code> and extension searching lookups would apply to
2652<code>import 'pkg'</code> main entry point resolution, even when resolving ES modules.</p>
2653<p>With this deprecation, all ES module main entry point resolutions require
2654an explicit <a href="packages.html#packages_main_entry_point_export"><code>"exports"</code> or <code>"main"</code> entry</a> with the exact file extension.</p></section>
2655        <!-- API END -->
2656      </div>
2657    </div>
2658  </div>
2659  <script>
2660    'use strict';
2661    {
2662      const kCustomPreference = 'customDarkTheme';
2663      const userSettings = sessionStorage.getItem(kCustomPreference);
2664      const themeToggleButton = document.getElementById('theme-toggle-btn');
2665      if (userSettings === null && window.matchMedia) {
2666        const mq = window.matchMedia('(prefers-color-scheme: dark)');
2667        if ('onchange' in mq) {
2668          function mqChangeListener(e) {
2669            document.body.classList.toggle('dark-mode', e.matches);
2670          }
2671          mq.addEventListener('change', mqChangeListener);
2672          if (themeToggleButton) {
2673            themeToggleButton.addEventListener('click', function() {
2674              mq.removeEventListener('change', mqChangeListener);
2675            }, { once: true });
2676          }
2677        }
2678        if (mq.matches) {
2679          document.body.classList.add('dark-mode');
2680        }
2681      } else if (userSettings === 'true') {
2682        document.body.classList.add('dark-mode');
2683      }
2684      if (themeToggleButton) {
2685        themeToggleButton.hidden = false;
2686        themeToggleButton.addEventListener('click', function() {
2687          sessionStorage.setItem(
2688            kCustomPreference,
2689            document.body.classList.toggle('dark-mode')
2690          );
2691        });
2692      }
2693    }
2694  </script>
2695</body>
2696</html>
2697