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