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="v18.20.1">
7  <title>Deprecated APIs | Node.js v18.20.1 Documentation</title>
8  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback">
9  <link rel="stylesheet" href="assets/style.css">
10  <link rel="stylesheet" href="assets/hljs.css">
11  <link rel="canonical" href="https://nodejs.org/api/deprecations.html">
12  <script async defer src="assets/api.js" type="text/javascript"></script>
13  
14</head>
15<body class="alt apidoc" id="api-section-deprecations">
16  <div id="content" class="clearfix">
17    <div id="column2" class="interior">
18      <div id="intro" class="interior">
19        <a href="/" title="Go back to the home page">
20          Node.js
21        </a>
22      </div>
23      <ul>
24<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li>
25<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
26</ul>
27<hr class="line">
28<ul>
29<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
30<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li>
31<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
32<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
33<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
34<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
35<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li>
36<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
37<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
38<li><a href="cli.html" class="nav-cli">Command-line options</a></li>
39<li><a href="console.html" class="nav-console">Console</a></li>
40<li><a href="corepack.html" class="nav-corepack">Corepack</a></li>
41<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
42<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
43<li><a href="deprecations.html" class="nav-deprecations active">Deprecated APIs</a></li>
44<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li>
45<li><a href="dns.html" class="nav-dns">DNS</a></li>
46<li><a href="domain.html" class="nav-domain">Domain</a></li>
47<li><a href="errors.html" class="nav-errors">Errors</a></li>
48<li><a href="events.html" class="nav-events">Events</a></li>
49<li><a href="fs.html" class="nav-fs">File system</a></li>
50<li><a href="globals.html" class="nav-globals">Globals</a></li>
51<li><a href="http.html" class="nav-http">HTTP</a></li>
52<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
53<li><a href="https.html" class="nav-https">HTTPS</a></li>
54<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
55<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
56<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li>
57<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li>
58<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li>
59<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li>
60<li><a href="net.html" class="nav-net">Net</a></li>
61<li><a href="os.html" class="nav-os">OS</a></li>
62<li><a href="path.html" class="nav-path">Path</a></li>
63<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
64<li><a href="permissions.html" class="nav-permissions">Permissions</a></li>
65<li><a href="process.html" class="nav-process">Process</a></li>
66<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
67<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
68<li><a href="readline.html" class="nav-readline">Readline</a></li>
69<li><a href="repl.html" class="nav-repl">REPL</a></li>
70<li><a href="report.html" class="nav-report">Report</a></li>
71<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li>
72<li><a href="stream.html" class="nav-stream">Stream</a></li>
73<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
74<li><a href="test.html" class="nav-test">Test runner</a></li>
75<li><a href="timers.html" class="nav-timers">Timers</a></li>
76<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
77<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
78<li><a href="tty.html" class="nav-tty">TTY</a></li>
79<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
80<li><a href="url.html" class="nav-url">URL</a></li>
81<li><a href="util.html" class="nav-util">Utilities</a></li>
82<li><a href="v8.html" class="nav-v8">V8</a></li>
83<li><a href="vm.html" class="nav-vm">VM</a></li>
84<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
85<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li>
86<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li>
87<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
88<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
89</ul>
90<hr class="line">
91<ul>
92<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
93</ul>
94    </div>
95
96    <div id="column1" data-id="deprecations" class="interior">
97      <header class="header">
98        <div class="header-container">
99          <h1>Node.js v18.20.1 documentation</h1>
100          <button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden>
101            <svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24">
102              <path fill="none" d="M0 0h24v24H0z" />
103              <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"/>
104              <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"/>
105            </svg>
106            <svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24">
107              <path d="M0 0h24v24H0z" fill="none" />
108              <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"/>
109            </svg>
110          </button>
111        </div>
112        <div id="gtoc">
113          <ul>
114            <li class="pinned-header">Node.js v18.20.1</li>
115            
116    <li class="picker-header">
117      <a href="#">
118        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
119        Table of contents
120      </a>
121
122      <div class="picker"><div class="toc"><ul>
123<li><a href="#deprecated-apis">Deprecated APIs</a>
124<ul>
125<li><a href="#revoking-deprecations">Revoking deprecations</a></li>
126<li><a href="#list-of-deprecated-apis">List of deprecated APIs</a>
127<ul>
128<li><a href="#DEP0001">DEP0001: <code>http.OutgoingMessage.prototype.flush</code></a></li>
129<li><a href="#DEP0002">DEP0002: <code>require('_linklist')</code></a></li>
130<li><a href="#DEP0003">DEP0003: <code>_writableState.buffer</code></a></li>
131<li><a href="#DEP0004">DEP0004: <code>CryptoStream.prototype.readyState</code></a></li>
132<li><a href="#DEP0005">DEP0005: <code>Buffer()</code> constructor</a></li>
133<li><a href="#DEP0006">DEP0006: <code>child_process</code> <code>options.customFds</code></a></li>
134<li><a href="#DEP0007">DEP0007: Replace <code>cluster</code> <code>worker.suicide</code> with <code>worker.exitedAfterDisconnect</code></a></li>
135<li><a href="#DEP0008">DEP0008: <code>require('node:constants')</code></a></li>
136<li><a href="#DEP0009">DEP0009: <code>crypto.pbkdf2</code> without digest</a></li>
137<li><a href="#DEP0010">DEP0010: <code>crypto.createCredentials</code></a></li>
138<li><a href="#DEP0011">DEP0011: <code>crypto.Credentials</code></a></li>
139<li><a href="#DEP0012">DEP0012: <code>Domain.dispose</code></a></li>
140<li><a href="#DEP0013">DEP0013: <code>fs</code> asynchronous function without callback</a></li>
141<li><a href="#DEP0014">DEP0014: <code>fs.read</code> legacy String interface</a></li>
142<li><a href="#DEP0015">DEP0015: <code>fs.readSync</code> legacy String interface</a></li>
143<li><a href="#DEP0016">DEP0016: <code>GLOBAL</code>/<code>root</code></a></li>
144<li><a href="#DEP0017">DEP0017: <code>Intl.v8BreakIterator</code></a></li>
145<li><a href="#DEP0018">DEP0018: Unhandled promise rejections</a></li>
146<li><a href="#DEP0019">DEP0019: <code>require('.')</code> resolved outside directory</a></li>
147<li><a href="#DEP0020">DEP0020: <code>Server.connections</code></a></li>
148<li><a href="#DEP0021">DEP0021: <code>Server.listenFD</code></a></li>
149<li><a href="#DEP0022">DEP0022: <code>os.tmpDir()</code></a></li>
150<li><a href="#DEP0023">DEP0023: <code>os.getNetworkInterfaces()</code></a></li>
151<li><a href="#DEP0024">DEP0024: <code>REPLServer.prototype.convertToContext()</code></a></li>
152<li><a href="#DEP0025">DEP0025: <code>require('node:sys')</code></a></li>
153<li><a href="#DEP0026">DEP0026: <code>util.print()</code></a></li>
154<li><a href="#DEP0027">DEP0027: <code>util.puts()</code></a></li>
155<li><a href="#DEP0028">DEP0028: <code>util.debug()</code></a></li>
156<li><a href="#DEP0029">DEP0029: <code>util.error()</code></a></li>
157<li><a href="#DEP0030">DEP0030: <code>SlowBuffer</code></a></li>
158<li><a href="#DEP0031">DEP0031: <code>ecdh.setPublicKey()</code></a></li>
159<li><a href="#DEP0032">DEP0032: <code>node:domain</code> module</a></li>
160<li><a href="#DEP0033">DEP0033: <code>EventEmitter.listenerCount()</code></a></li>
161<li><a href="#DEP0034">DEP0034: <code>fs.exists(path, callback)</code></a></li>
162<li><a href="#DEP0035">DEP0035: <code>fs.lchmod(path, mode, callback)</code></a></li>
163<li><a href="#DEP0036">DEP0036: <code>fs.lchmodSync(path, mode)</code></a></li>
164<li><a href="#DEP0037">DEP0037: <code>fs.lchown(path, uid, gid, callback)</code></a></li>
165<li><a href="#DEP0038">DEP0038: <code>fs.lchownSync(path, uid, gid)</code></a></li>
166<li><a href="#DEP0039">DEP0039: <code>require.extensions</code></a></li>
167<li><a href="#DEP0040">DEP0040: <code>node:punycode</code> module</a></li>
168<li><a href="#DEP0041">DEP0041: <code>NODE_REPL_HISTORY_FILE</code> environment variable</a></li>
169<li><a href="#DEP0042">DEP0042: <code>tls.CryptoStream</code></a></li>
170<li><a href="#DEP0043">DEP0043: <code>tls.SecurePair</code></a></li>
171<li><a href="#DEP0044">DEP0044: <code>util.isArray()</code></a></li>
172<li><a href="#DEP0045">DEP0045: <code>util.isBoolean()</code></a></li>
173<li><a href="#DEP0046">DEP0046: <code>util.isBuffer()</code></a></li>
174<li><a href="#DEP0047">DEP0047: <code>util.isDate()</code></a></li>
175<li><a href="#DEP0048">DEP0048: <code>util.isError()</code></a></li>
176<li><a href="#DEP0049">DEP0049: <code>util.isFunction()</code></a></li>
177<li><a href="#DEP0050">DEP0050: <code>util.isNull()</code></a></li>
178<li><a href="#DEP0051">DEP0051: <code>util.isNullOrUndefined()</code></a></li>
179<li><a href="#DEP0052">DEP0052: <code>util.isNumber()</code></a></li>
180<li><a href="#DEP0053">DEP0053: <code>util.isObject()</code></a></li>
181<li><a href="#DEP0054">DEP0054: <code>util.isPrimitive()</code></a></li>
182<li><a href="#DEP0055">DEP0055: <code>util.isRegExp()</code></a></li>
183<li><a href="#DEP0056">DEP0056: <code>util.isString()</code></a></li>
184<li><a href="#DEP0057">DEP0057: <code>util.isSymbol()</code></a></li>
185<li><a href="#DEP0058">DEP0058: <code>util.isUndefined()</code></a></li>
186<li><a href="#DEP0059">DEP0059: <code>util.log()</code></a></li>
187<li><a href="#DEP0060">DEP0060: <code>util._extend()</code></a></li>
188<li><a href="#DEP0061">DEP0061: <code>fs.SyncWriteStream</code></a></li>
189<li><a href="#DEP0062">DEP0062: <code>node --debug</code></a></li>
190<li><a href="#DEP0063">DEP0063: <code>ServerResponse.prototype.writeHeader()</code></a></li>
191<li><a href="#DEP0064">DEP0064: <code>tls.createSecurePair()</code></a></li>
192<li><a href="#DEP0065">DEP0065: <code>repl.REPL_MODE_MAGIC</code> and <code>NODE_REPL_MODE=magic</code></a></li>
193<li><a href="#DEP0066">DEP0066: <code>OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames</code></a></li>
194<li><a href="#DEP0067">DEP0067: <code>OutgoingMessage.prototype._renderHeaders</code></a></li>
195<li><a href="#DEP0068">DEP0068: <code>node debug</code></a></li>
196<li><a href="#DEP0069">DEP0069: <code>vm.runInDebugContext(string)</code></a></li>
197<li><a href="#DEP0070">DEP0070: <code>async_hooks.currentId()</code></a></li>
198<li><a href="#DEP0071">DEP0071: <code>async_hooks.triggerId()</code></a></li>
199<li><a href="#DEP0072">DEP0072: <code>async_hooks.AsyncResource.triggerId()</code></a></li>
200<li><a href="#DEP0073">DEP0073: Several internal properties of <code>net.Server</code></a></li>
201<li><a href="#DEP0074">DEP0074: <code>REPLServer.bufferedCommand</code></a></li>
202<li><a href="#DEP0075">DEP0075: <code>REPLServer.parseREPLKeyword()</code></a></li>
203<li><a href="#DEP0076">DEP0076: <code>tls.parseCertString()</code></a></li>
204<li><a href="#DEP0077">DEP0077: <code>Module._debug()</code></a></li>
205<li><a href="#DEP0078">DEP0078: <code>REPLServer.turnOffEditorMode()</code></a></li>
206<li><a href="#DEP0079">DEP0079: Custom inspection function on objects via <code>.inspect()</code></a></li>
207<li><a href="#DEP0080">DEP0080: <code>path._makeLong()</code></a></li>
208<li><a href="#DEP0081">DEP0081: <code>fs.truncate()</code> using a file descriptor</a></li>
209<li><a href="#DEP0082">DEP0082: <code>REPLServer.prototype.memory()</code></a></li>
210<li><a href="#DEP0083">DEP0083: Disabling ECDH by setting <code>ecdhCurve</code> to <code>false</code></a></li>
211<li><a href="#DEP0084">DEP0084: requiring bundled internal dependencies</a></li>
212<li><a href="#DEP0085">DEP0085: AsyncHooks sensitive API</a></li>
213<li><a href="#DEP0086">DEP0086: Remove <code>runInAsyncIdScope</code></a></li>
214<li><a href="#DEP0089">DEP0089: <code>require('node:assert')</code></a></li>
215<li><a href="#DEP0090">DEP0090: Invalid GCM authentication tag lengths</a></li>
216<li><a href="#DEP0091">DEP0091: <code>crypto.DEFAULT_ENCODING</code></a></li>
217<li><a href="#DEP0092">DEP0092: Top-level <code>this</code> bound to <code>module.exports</code></a></li>
218<li><a href="#DEP0093">DEP0093: <code>crypto.fips</code> is deprecated and replaced</a></li>
219<li><a href="#DEP0094">DEP0094: Using <code>assert.fail()</code> with more than one argument</a></li>
220<li><a href="#DEP0095">DEP0095: <code>timers.enroll()</code></a></li>
221<li><a href="#DEP0096">DEP0096: <code>timers.unenroll()</code></a></li>
222<li><a href="#DEP0097">DEP0097: <code>MakeCallback</code> with <code>domain</code> property</a></li>
223<li><a href="#DEP0098">DEP0098: AsyncHooks embedder <code>AsyncResource.emitBefore</code> and <code>AsyncResource.emitAfter</code> APIs</a></li>
224<li><a href="#DEP0099">DEP0099: Async context-unaware <code>node::MakeCallback</code> C++ APIs</a></li>
225<li><a href="#DEP0100">DEP0100: <code>process.assert()</code></a></li>
226<li><a href="#DEP0101">DEP0101: <code>--with-lttng</code></a></li>
227<li><a href="#DEP0102">DEP0102: Using <code>noAssert</code> in <code>Buffer#(read|write)</code> operations</a></li>
228<li><a href="#DEP0103">DEP0103: <code>process.binding('util').is[...]</code> typechecks</a></li>
229<li><a href="#DEP0104">DEP0104: <code>process.env</code> string coercion</a></li>
230<li><a href="#DEP0105">DEP0105: <code>decipher.finaltol</code></a></li>
231<li><a href="#DEP0106">DEP0106: <code>crypto.createCipher</code> and <code>crypto.createDecipher</code></a></li>
232<li><a href="#DEP0107">DEP0107: <code>tls.convertNPNProtocols()</code></a></li>
233<li><a href="#DEP0108">DEP0108: <code>zlib.bytesRead</code></a></li>
234<li><a href="#DEP0109">DEP0109: <code>http</code>, <code>https</code>, and <code>tls</code> support for invalid URLs</a></li>
235<li><a href="#DEP0110">DEP0110: <code>vm.Script</code> cached data</a></li>
236<li><a href="#DEP0111">DEP0111: <code>process.binding()</code></a></li>
237<li><a href="#DEP0112">DEP0112: <code>dgram</code> private APIs</a></li>
238<li><a href="#DEP0113">DEP0113: <code>Cipher.setAuthTag()</code>, <code>Decipher.getAuthTag()</code></a></li>
239<li><a href="#DEP0114">DEP0114: <code>crypto._toBuf()</code></a></li>
240<li><a href="#DEP0115">DEP0115: <code>crypto.prng()</code>, <code>crypto.pseudoRandomBytes()</code>, <code>crypto.rng()</code></a></li>
241<li><a href="#DEP0116">DEP0116: Legacy URL API</a></li>
242<li><a href="#DEP0117">DEP0117: Native crypto handles</a></li>
243<li><a href="#DEP0118">DEP0118: <code>dns.lookup()</code> support for a falsy host name</a></li>
244<li><a href="#DEP0119">DEP0119: <code>process.binding('uv').errname()</code> private API</a></li>
245<li><a href="#DEP0120">DEP0120: Windows Performance Counter support</a></li>
246<li><a href="#DEP0121">DEP0121: <code>net._setSimultaneousAccepts()</code></a></li>
247<li><a href="#DEP0122">DEP0122: <code>tls</code> <code>Server.prototype.setOptions()</code></a></li>
248<li><a href="#DEP0123">DEP0123: setting the TLS ServerName to an IP address</a></li>
249<li><a href="#DEP0124">DEP0124: using <code>REPLServer.rli</code></a></li>
250<li><a href="#DEP0125">DEP0125: <code>require('node:_stream_wrap')</code></a></li>
251<li><a href="#DEP0126">DEP0126: <code>timers.active()</code></a></li>
252<li><a href="#DEP0127">DEP0127: <code>timers._unrefActive()</code></a></li>
253<li><a href="#DEP0128">DEP0128: modules with an invalid <code>main</code> entry and an <code>index.js</code> file</a></li>
254<li><a href="#DEP0129">DEP0129: <code>ChildProcess._channel</code></a></li>
255<li><a href="#DEP0130">DEP0130: <code>Module.createRequireFromPath()</code></a></li>
256<li><a href="#DEP0131">DEP0131: Legacy HTTP parser</a></li>
257<li><a href="#DEP0132">DEP0132: <code>worker.terminate()</code> with callback</a></li>
258<li><a href="#DEP0133">DEP0133: <code>http</code> <code>connection</code></a></li>
259<li><a href="#DEP0134">DEP0134: <code>process._tickCallback</code></a></li>
260<li><a href="#DEP0135">DEP0135: <code>WriteStream.open()</code> and <code>ReadStream.open()</code> are internal</a></li>
261<li><a href="#DEP0136">DEP0136: <code>http</code> <code>finished</code></a></li>
262<li><a href="#DEP0137">DEP0137: Closing fs.FileHandle on garbage collection</a></li>
263<li><a href="#DEP0138">DEP0138: <code>process.mainModule</code></a></li>
264<li><a href="#DEP0139">DEP0139: <code>process.umask()</code> with no arguments</a></li>
265<li><a href="#DEP0140">DEP0140: Use <code>request.destroy()</code> instead of <code>request.abort()</code></a></li>
266<li><a href="#DEP0141">DEP0141: <code>repl.inputStream</code> and <code>repl.outputStream</code></a></li>
267<li><a href="#DEP0142">DEP0142: <code>repl._builtinLibs</code></a></li>
268<li><a href="#DEP0143">DEP0143: <code>Transform._transformState</code></a></li>
269<li><a href="#DEP0144">DEP0144: <code>module.parent</code></a></li>
270<li><a href="#DEP0145">DEP0145: <code>socket.bufferSize</code></a></li>
271<li><a href="#DEP0146">DEP0146: <code>new crypto.Certificate()</code></a></li>
272<li><a href="#DEP0147">DEP0147: <code>fs.rmdir(path, { recursive: true })</code></a></li>
273<li><a href="#DEP0148">DEP0148: Folder mappings in <code>"exports"</code> (trailing <code>"/"</code>)</a></li>
274<li><a href="#DEP0149">DEP0149: <code>http.IncomingMessage#connection</code></a></li>
275<li><a href="#DEP0150">DEP0150: Changing the value of <code>process.config</code></a></li>
276<li><a href="#DEP0151">DEP0151: Main index lookup and extension searching</a></li>
277<li><a href="#DEP0152">DEP0152: Extension PerformanceEntry properties</a></li>
278<li><a href="#DEP0153">DEP0153: <code>dns.lookup</code> and <code>dnsPromises.lookup</code> options type coercion</a></li>
279<li><a href="#DEP0154">DEP0154: RSA-PSS generate key pair options</a></li>
280<li><a href="#DEP0155">DEP0155: Trailing slashes in pattern specifier resolutions</a></li>
281<li><a href="#DEP0156">DEP0156: <code>.aborted</code> property and <code>'abort'</code>, <code>'aborted'</code> event in <code>http</code></a></li>
282<li><a href="#DEP0157">DEP0157: Thenable support in streams</a></li>
283<li><a href="#DEP0158">DEP0158: <code>buffer.slice(start, end)</code></a></li>
284<li><a href="#DEP0159">DEP0159: <code>ERR_INVALID_CALLBACK</code></a></li>
285<li><a href="#DEP0160">DEP0160: <code>process.on('multipleResolves', handler)</code></a></li>
286<li><a href="#DEP0161">DEP0161: <code>process._getActiveRequests()</code> and <code>process._getActiveHandles()</code></a></li>
287<li><a href="#DEP0162">DEP0162: <code>fs.write()</code>, <code>fs.writeFileSync()</code> coercion to string</a></li>
288<li><a href="#DEP0163">DEP0163: <code>channel.subscribe(onMessage)</code>, <code>channel.unsubscribe(onMessage)</code></a></li>
289<li><a href="#DEP0164">DEP0164: <code>process.exit(code)</code>, <code>process.exitCode</code> coercion to integer</a></li>
290<li><a href="#DEP0165">DEP0165: <code>--trace-atomics-wait</code></a></li>
291<li><a href="#DEP0166">DEP0166: Double slashes in imports and exports targets</a></li>
292<li><a href="#DEP0167">DEP0167: Weak <code>DiffieHellmanGroup</code> instances (<code>modp1</code>, <code>modp2</code>, <code>modp5</code>)</a></li>
293<li><a href="#DEP0168">DEP0168: Unhandled exception in Node-API callbacks</a></li>
294<li><a href="#DEP0169">DEP0169: Insecure url.parse()</a></li>
295<li><a href="#DEP0170">DEP0170: Invalid port when using <code>url.parse()</code></a></li>
296<li><a href="#DEP0171">DEP0171: Setters for <code>http.IncomingMessage</code> headers and trailers</a></li>
297<li><a href="#DEP0178">DEP0178: <code>dirent.path</code></a></li>
298</ul>
299</li>
300</ul>
301</li>
302</ul></div></div>
303    </li>
304  
305            
306    <li class="picker-header">
307      <a href="#">
308        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
309        Index
310      </a>
311
312      <div class="picker"><ul>
313<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li>
314<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
315
316      <li>
317        <a href="index.html">Index</a>
318      </li>
319    </ul>
320  
321<hr class="line">
322<ul>
323<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
324<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li>
325<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
326<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
327<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
328<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
329<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li>
330<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
331<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
332<li><a href="cli.html" class="nav-cli">Command-line options</a></li>
333<li><a href="console.html" class="nav-console">Console</a></li>
334<li><a href="corepack.html" class="nav-corepack">Corepack</a></li>
335<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
336<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
337<li><a href="deprecations.html" class="nav-deprecations active">Deprecated APIs</a></li>
338<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li>
339<li><a href="dns.html" class="nav-dns">DNS</a></li>
340<li><a href="domain.html" class="nav-domain">Domain</a></li>
341<li><a href="errors.html" class="nav-errors">Errors</a></li>
342<li><a href="events.html" class="nav-events">Events</a></li>
343<li><a href="fs.html" class="nav-fs">File system</a></li>
344<li><a href="globals.html" class="nav-globals">Globals</a></li>
345<li><a href="http.html" class="nav-http">HTTP</a></li>
346<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
347<li><a href="https.html" class="nav-https">HTTPS</a></li>
348<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
349<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
350<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li>
351<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li>
352<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li>
353<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li>
354<li><a href="net.html" class="nav-net">Net</a></li>
355<li><a href="os.html" class="nav-os">OS</a></li>
356<li><a href="path.html" class="nav-path">Path</a></li>
357<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
358<li><a href="permissions.html" class="nav-permissions">Permissions</a></li>
359<li><a href="process.html" class="nav-process">Process</a></li>
360<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
361<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
362<li><a href="readline.html" class="nav-readline">Readline</a></li>
363<li><a href="repl.html" class="nav-repl">REPL</a></li>
364<li><a href="report.html" class="nav-report">Report</a></li>
365<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li>
366<li><a href="stream.html" class="nav-stream">Stream</a></li>
367<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
368<li><a href="test.html" class="nav-test">Test runner</a></li>
369<li><a href="timers.html" class="nav-timers">Timers</a></li>
370<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
371<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
372<li><a href="tty.html" class="nav-tty">TTY</a></li>
373<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
374<li><a href="url.html" class="nav-url">URL</a></li>
375<li><a href="util.html" class="nav-util">Utilities</a></li>
376<li><a href="v8.html" class="nav-v8">V8</a></li>
377<li><a href="vm.html" class="nav-vm">VM</a></li>
378<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
379<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li>
380<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li>
381<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
382<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
383</ul>
384<hr class="line">
385<ul>
386<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
387</ul></div>
388    </li>
389  
390            
391    <li class="picker-header">
392      <a href="#">
393        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
394        Other versions
395      </a>
396      <div class="picker"><ol id="alt-docs"><li><a href="https://nodejs.org/docs/latest-v21.x/api/deprecations.html">21.x</a></li>
397<li><a href="https://nodejs.org/docs/latest-v20.x/api/deprecations.html">20.x <b>LTS</b></a></li>
398<li><a href="https://nodejs.org/docs/latest-v19.x/api/deprecations.html">19.x</a></li>
399<li><a href="https://nodejs.org/docs/latest-v18.x/api/deprecations.html">18.x <b>LTS</b></a></li>
400<li><a href="https://nodejs.org/docs/latest-v17.x/api/deprecations.html">17.x</a></li>
401<li><a href="https://nodejs.org/docs/latest-v16.x/api/deprecations.html">16.x</a></li>
402<li><a href="https://nodejs.org/docs/latest-v15.x/api/deprecations.html">15.x</a></li>
403<li><a href="https://nodejs.org/docs/latest-v14.x/api/deprecations.html">14.x</a></li>
404<li><a href="https://nodejs.org/docs/latest-v13.x/api/deprecations.html">13.x</a></li>
405<li><a href="https://nodejs.org/docs/latest-v12.x/api/deprecations.html">12.x</a></li>
406<li><a href="https://nodejs.org/docs/latest-v11.x/api/deprecations.html">11.x</a></li>
407<li><a href="https://nodejs.org/docs/latest-v10.x/api/deprecations.html">10.x</a></li>
408<li><a href="https://nodejs.org/docs/latest-v9.x/api/deprecations.html">9.x</a></li>
409<li><a href="https://nodejs.org/docs/latest-v8.x/api/deprecations.html">8.x</a></li>
410<li><a href="https://nodejs.org/docs/latest-v7.x/api/deprecations.html">7.x</a></li></ol></div>
411    </li>
412  
413            <li class="picker-header">
414              <a href="#">
415                <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
416                Options
417              </a>
418        
419              <div class="picker">
420                <ul>
421                  <li>
422                    <a href="all.html">View on single page</a>
423                  </li>
424                  <li>
425                    <a href="deprecations.json">View as JSON</a>
426                  </li>
427                  <li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/deprecations.md">Edit on GitHub</a></li>    
428                </ul>
429              </div>
430            </li>
431          </ul>
432        </div>
433        <hr>
434      </header>
435
436      <details id="toc" open><summary>Table of contents</summary><ul>
437<li><a href="#deprecated-apis">Deprecated APIs</a>
438<ul>
439<li><a href="#revoking-deprecations">Revoking deprecations</a></li>
440<li><a href="#list-of-deprecated-apis">List of deprecated APIs</a>
441<ul>
442<li><a href="#DEP0001">DEP0001: <code>http.OutgoingMessage.prototype.flush</code></a></li>
443<li><a href="#DEP0002">DEP0002: <code>require('_linklist')</code></a></li>
444<li><a href="#DEP0003">DEP0003: <code>_writableState.buffer</code></a></li>
445<li><a href="#DEP0004">DEP0004: <code>CryptoStream.prototype.readyState</code></a></li>
446<li><a href="#DEP0005">DEP0005: <code>Buffer()</code> constructor</a></li>
447<li><a href="#DEP0006">DEP0006: <code>child_process</code> <code>options.customFds</code></a></li>
448<li><a href="#DEP0007">DEP0007: Replace <code>cluster</code> <code>worker.suicide</code> with <code>worker.exitedAfterDisconnect</code></a></li>
449<li><a href="#DEP0008">DEP0008: <code>require('node:constants')</code></a></li>
450<li><a href="#DEP0009">DEP0009: <code>crypto.pbkdf2</code> without digest</a></li>
451<li><a href="#DEP0010">DEP0010: <code>crypto.createCredentials</code></a></li>
452<li><a href="#DEP0011">DEP0011: <code>crypto.Credentials</code></a></li>
453<li><a href="#DEP0012">DEP0012: <code>Domain.dispose</code></a></li>
454<li><a href="#DEP0013">DEP0013: <code>fs</code> asynchronous function without callback</a></li>
455<li><a href="#DEP0014">DEP0014: <code>fs.read</code> legacy String interface</a></li>
456<li><a href="#DEP0015">DEP0015: <code>fs.readSync</code> legacy String interface</a></li>
457<li><a href="#DEP0016">DEP0016: <code>GLOBAL</code>/<code>root</code></a></li>
458<li><a href="#DEP0017">DEP0017: <code>Intl.v8BreakIterator</code></a></li>
459<li><a href="#DEP0018">DEP0018: Unhandled promise rejections</a></li>
460<li><a href="#DEP0019">DEP0019: <code>require('.')</code> resolved outside directory</a></li>
461<li><a href="#DEP0020">DEP0020: <code>Server.connections</code></a></li>
462<li><a href="#DEP0021">DEP0021: <code>Server.listenFD</code></a></li>
463<li><a href="#DEP0022">DEP0022: <code>os.tmpDir()</code></a></li>
464<li><a href="#DEP0023">DEP0023: <code>os.getNetworkInterfaces()</code></a></li>
465<li><a href="#DEP0024">DEP0024: <code>REPLServer.prototype.convertToContext()</code></a></li>
466<li><a href="#DEP0025">DEP0025: <code>require('node:sys')</code></a></li>
467<li><a href="#DEP0026">DEP0026: <code>util.print()</code></a></li>
468<li><a href="#DEP0027">DEP0027: <code>util.puts()</code></a></li>
469<li><a href="#DEP0028">DEP0028: <code>util.debug()</code></a></li>
470<li><a href="#DEP0029">DEP0029: <code>util.error()</code></a></li>
471<li><a href="#DEP0030">DEP0030: <code>SlowBuffer</code></a></li>
472<li><a href="#DEP0031">DEP0031: <code>ecdh.setPublicKey()</code></a></li>
473<li><a href="#DEP0032">DEP0032: <code>node:domain</code> module</a></li>
474<li><a href="#DEP0033">DEP0033: <code>EventEmitter.listenerCount()</code></a></li>
475<li><a href="#DEP0034">DEP0034: <code>fs.exists(path, callback)</code></a></li>
476<li><a href="#DEP0035">DEP0035: <code>fs.lchmod(path, mode, callback)</code></a></li>
477<li><a href="#DEP0036">DEP0036: <code>fs.lchmodSync(path, mode)</code></a></li>
478<li><a href="#DEP0037">DEP0037: <code>fs.lchown(path, uid, gid, callback)</code></a></li>
479<li><a href="#DEP0038">DEP0038: <code>fs.lchownSync(path, uid, gid)</code></a></li>
480<li><a href="#DEP0039">DEP0039: <code>require.extensions</code></a></li>
481<li><a href="#DEP0040">DEP0040: <code>node:punycode</code> module</a></li>
482<li><a href="#DEP0041">DEP0041: <code>NODE_REPL_HISTORY_FILE</code> environment variable</a></li>
483<li><a href="#DEP0042">DEP0042: <code>tls.CryptoStream</code></a></li>
484<li><a href="#DEP0043">DEP0043: <code>tls.SecurePair</code></a></li>
485<li><a href="#DEP0044">DEP0044: <code>util.isArray()</code></a></li>
486<li><a href="#DEP0045">DEP0045: <code>util.isBoolean()</code></a></li>
487<li><a href="#DEP0046">DEP0046: <code>util.isBuffer()</code></a></li>
488<li><a href="#DEP0047">DEP0047: <code>util.isDate()</code></a></li>
489<li><a href="#DEP0048">DEP0048: <code>util.isError()</code></a></li>
490<li><a href="#DEP0049">DEP0049: <code>util.isFunction()</code></a></li>
491<li><a href="#DEP0050">DEP0050: <code>util.isNull()</code></a></li>
492<li><a href="#DEP0051">DEP0051: <code>util.isNullOrUndefined()</code></a></li>
493<li><a href="#DEP0052">DEP0052: <code>util.isNumber()</code></a></li>
494<li><a href="#DEP0053">DEP0053: <code>util.isObject()</code></a></li>
495<li><a href="#DEP0054">DEP0054: <code>util.isPrimitive()</code></a></li>
496<li><a href="#DEP0055">DEP0055: <code>util.isRegExp()</code></a></li>
497<li><a href="#DEP0056">DEP0056: <code>util.isString()</code></a></li>
498<li><a href="#DEP0057">DEP0057: <code>util.isSymbol()</code></a></li>
499<li><a href="#DEP0058">DEP0058: <code>util.isUndefined()</code></a></li>
500<li><a href="#DEP0059">DEP0059: <code>util.log()</code></a></li>
501<li><a href="#DEP0060">DEP0060: <code>util._extend()</code></a></li>
502<li><a href="#DEP0061">DEP0061: <code>fs.SyncWriteStream</code></a></li>
503<li><a href="#DEP0062">DEP0062: <code>node --debug</code></a></li>
504<li><a href="#DEP0063">DEP0063: <code>ServerResponse.prototype.writeHeader()</code></a></li>
505<li><a href="#DEP0064">DEP0064: <code>tls.createSecurePair()</code></a></li>
506<li><a href="#DEP0065">DEP0065: <code>repl.REPL_MODE_MAGIC</code> and <code>NODE_REPL_MODE=magic</code></a></li>
507<li><a href="#DEP0066">DEP0066: <code>OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames</code></a></li>
508<li><a href="#DEP0067">DEP0067: <code>OutgoingMessage.prototype._renderHeaders</code></a></li>
509<li><a href="#DEP0068">DEP0068: <code>node debug</code></a></li>
510<li><a href="#DEP0069">DEP0069: <code>vm.runInDebugContext(string)</code></a></li>
511<li><a href="#DEP0070">DEP0070: <code>async_hooks.currentId()</code></a></li>
512<li><a href="#DEP0071">DEP0071: <code>async_hooks.triggerId()</code></a></li>
513<li><a href="#DEP0072">DEP0072: <code>async_hooks.AsyncResource.triggerId()</code></a></li>
514<li><a href="#DEP0073">DEP0073: Several internal properties of <code>net.Server</code></a></li>
515<li><a href="#DEP0074">DEP0074: <code>REPLServer.bufferedCommand</code></a></li>
516<li><a href="#DEP0075">DEP0075: <code>REPLServer.parseREPLKeyword()</code></a></li>
517<li><a href="#DEP0076">DEP0076: <code>tls.parseCertString()</code></a></li>
518<li><a href="#DEP0077">DEP0077: <code>Module._debug()</code></a></li>
519<li><a href="#DEP0078">DEP0078: <code>REPLServer.turnOffEditorMode()</code></a></li>
520<li><a href="#DEP0079">DEP0079: Custom inspection function on objects via <code>.inspect()</code></a></li>
521<li><a href="#DEP0080">DEP0080: <code>path._makeLong()</code></a></li>
522<li><a href="#DEP0081">DEP0081: <code>fs.truncate()</code> using a file descriptor</a></li>
523<li><a href="#DEP0082">DEP0082: <code>REPLServer.prototype.memory()</code></a></li>
524<li><a href="#DEP0083">DEP0083: Disabling ECDH by setting <code>ecdhCurve</code> to <code>false</code></a></li>
525<li><a href="#DEP0084">DEP0084: requiring bundled internal dependencies</a></li>
526<li><a href="#DEP0085">DEP0085: AsyncHooks sensitive API</a></li>
527<li><a href="#DEP0086">DEP0086: Remove <code>runInAsyncIdScope</code></a></li>
528<li><a href="#DEP0089">DEP0089: <code>require('node:assert')</code></a></li>
529<li><a href="#DEP0090">DEP0090: Invalid GCM authentication tag lengths</a></li>
530<li><a href="#DEP0091">DEP0091: <code>crypto.DEFAULT_ENCODING</code></a></li>
531<li><a href="#DEP0092">DEP0092: Top-level <code>this</code> bound to <code>module.exports</code></a></li>
532<li><a href="#DEP0093">DEP0093: <code>crypto.fips</code> is deprecated and replaced</a></li>
533<li><a href="#DEP0094">DEP0094: Using <code>assert.fail()</code> with more than one argument</a></li>
534<li><a href="#DEP0095">DEP0095: <code>timers.enroll()</code></a></li>
535<li><a href="#DEP0096">DEP0096: <code>timers.unenroll()</code></a></li>
536<li><a href="#DEP0097">DEP0097: <code>MakeCallback</code> with <code>domain</code> property</a></li>
537<li><a href="#DEP0098">DEP0098: AsyncHooks embedder <code>AsyncResource.emitBefore</code> and <code>AsyncResource.emitAfter</code> APIs</a></li>
538<li><a href="#DEP0099">DEP0099: Async context-unaware <code>node::MakeCallback</code> C++ APIs</a></li>
539<li><a href="#DEP0100">DEP0100: <code>process.assert()</code></a></li>
540<li><a href="#DEP0101">DEP0101: <code>--with-lttng</code></a></li>
541<li><a href="#DEP0102">DEP0102: Using <code>noAssert</code> in <code>Buffer#(read|write)</code> operations</a></li>
542<li><a href="#DEP0103">DEP0103: <code>process.binding('util').is[...]</code> typechecks</a></li>
543<li><a href="#DEP0104">DEP0104: <code>process.env</code> string coercion</a></li>
544<li><a href="#DEP0105">DEP0105: <code>decipher.finaltol</code></a></li>
545<li><a href="#DEP0106">DEP0106: <code>crypto.createCipher</code> and <code>crypto.createDecipher</code></a></li>
546<li><a href="#DEP0107">DEP0107: <code>tls.convertNPNProtocols()</code></a></li>
547<li><a href="#DEP0108">DEP0108: <code>zlib.bytesRead</code></a></li>
548<li><a href="#DEP0109">DEP0109: <code>http</code>, <code>https</code>, and <code>tls</code> support for invalid URLs</a></li>
549<li><a href="#DEP0110">DEP0110: <code>vm.Script</code> cached data</a></li>
550<li><a href="#DEP0111">DEP0111: <code>process.binding()</code></a></li>
551<li><a href="#DEP0112">DEP0112: <code>dgram</code> private APIs</a></li>
552<li><a href="#DEP0113">DEP0113: <code>Cipher.setAuthTag()</code>, <code>Decipher.getAuthTag()</code></a></li>
553<li><a href="#DEP0114">DEP0114: <code>crypto._toBuf()</code></a></li>
554<li><a href="#DEP0115">DEP0115: <code>crypto.prng()</code>, <code>crypto.pseudoRandomBytes()</code>, <code>crypto.rng()</code></a></li>
555<li><a href="#DEP0116">DEP0116: Legacy URL API</a></li>
556<li><a href="#DEP0117">DEP0117: Native crypto handles</a></li>
557<li><a href="#DEP0118">DEP0118: <code>dns.lookup()</code> support for a falsy host name</a></li>
558<li><a href="#DEP0119">DEP0119: <code>process.binding('uv').errname()</code> private API</a></li>
559<li><a href="#DEP0120">DEP0120: Windows Performance Counter support</a></li>
560<li><a href="#DEP0121">DEP0121: <code>net._setSimultaneousAccepts()</code></a></li>
561<li><a href="#DEP0122">DEP0122: <code>tls</code> <code>Server.prototype.setOptions()</code></a></li>
562<li><a href="#DEP0123">DEP0123: setting the TLS ServerName to an IP address</a></li>
563<li><a href="#DEP0124">DEP0124: using <code>REPLServer.rli</code></a></li>
564<li><a href="#DEP0125">DEP0125: <code>require('node:_stream_wrap')</code></a></li>
565<li><a href="#DEP0126">DEP0126: <code>timers.active()</code></a></li>
566<li><a href="#DEP0127">DEP0127: <code>timers._unrefActive()</code></a></li>
567<li><a href="#DEP0128">DEP0128: modules with an invalid <code>main</code> entry and an <code>index.js</code> file</a></li>
568<li><a href="#DEP0129">DEP0129: <code>ChildProcess._channel</code></a></li>
569<li><a href="#DEP0130">DEP0130: <code>Module.createRequireFromPath()</code></a></li>
570<li><a href="#DEP0131">DEP0131: Legacy HTTP parser</a></li>
571<li><a href="#DEP0132">DEP0132: <code>worker.terminate()</code> with callback</a></li>
572<li><a href="#DEP0133">DEP0133: <code>http</code> <code>connection</code></a></li>
573<li><a href="#DEP0134">DEP0134: <code>process._tickCallback</code></a></li>
574<li><a href="#DEP0135">DEP0135: <code>WriteStream.open()</code> and <code>ReadStream.open()</code> are internal</a></li>
575<li><a href="#DEP0136">DEP0136: <code>http</code> <code>finished</code></a></li>
576<li><a href="#DEP0137">DEP0137: Closing fs.FileHandle on garbage collection</a></li>
577<li><a href="#DEP0138">DEP0138: <code>process.mainModule</code></a></li>
578<li><a href="#DEP0139">DEP0139: <code>process.umask()</code> with no arguments</a></li>
579<li><a href="#DEP0140">DEP0140: Use <code>request.destroy()</code> instead of <code>request.abort()</code></a></li>
580<li><a href="#DEP0141">DEP0141: <code>repl.inputStream</code> and <code>repl.outputStream</code></a></li>
581<li><a href="#DEP0142">DEP0142: <code>repl._builtinLibs</code></a></li>
582<li><a href="#DEP0143">DEP0143: <code>Transform._transformState</code></a></li>
583<li><a href="#DEP0144">DEP0144: <code>module.parent</code></a></li>
584<li><a href="#DEP0145">DEP0145: <code>socket.bufferSize</code></a></li>
585<li><a href="#DEP0146">DEP0146: <code>new crypto.Certificate()</code></a></li>
586<li><a href="#DEP0147">DEP0147: <code>fs.rmdir(path, { recursive: true })</code></a></li>
587<li><a href="#DEP0148">DEP0148: Folder mappings in <code>"exports"</code> (trailing <code>"/"</code>)</a></li>
588<li><a href="#DEP0149">DEP0149: <code>http.IncomingMessage#connection</code></a></li>
589<li><a href="#DEP0150">DEP0150: Changing the value of <code>process.config</code></a></li>
590<li><a href="#DEP0151">DEP0151: Main index lookup and extension searching</a></li>
591<li><a href="#DEP0152">DEP0152: Extension PerformanceEntry properties</a></li>
592<li><a href="#DEP0153">DEP0153: <code>dns.lookup</code> and <code>dnsPromises.lookup</code> options type coercion</a></li>
593<li><a href="#DEP0154">DEP0154: RSA-PSS generate key pair options</a></li>
594<li><a href="#DEP0155">DEP0155: Trailing slashes in pattern specifier resolutions</a></li>
595<li><a href="#DEP0156">DEP0156: <code>.aborted</code> property and <code>'abort'</code>, <code>'aborted'</code> event in <code>http</code></a></li>
596<li><a href="#DEP0157">DEP0157: Thenable support in streams</a></li>
597<li><a href="#DEP0158">DEP0158: <code>buffer.slice(start, end)</code></a></li>
598<li><a href="#DEP0159">DEP0159: <code>ERR_INVALID_CALLBACK</code></a></li>
599<li><a href="#DEP0160">DEP0160: <code>process.on('multipleResolves', handler)</code></a></li>
600<li><a href="#DEP0161">DEP0161: <code>process._getActiveRequests()</code> and <code>process._getActiveHandles()</code></a></li>
601<li><a href="#DEP0162">DEP0162: <code>fs.write()</code>, <code>fs.writeFileSync()</code> coercion to string</a></li>
602<li><a href="#DEP0163">DEP0163: <code>channel.subscribe(onMessage)</code>, <code>channel.unsubscribe(onMessage)</code></a></li>
603<li><a href="#DEP0164">DEP0164: <code>process.exit(code)</code>, <code>process.exitCode</code> coercion to integer</a></li>
604<li><a href="#DEP0165">DEP0165: <code>--trace-atomics-wait</code></a></li>
605<li><a href="#DEP0166">DEP0166: Double slashes in imports and exports targets</a></li>
606<li><a href="#DEP0167">DEP0167: Weak <code>DiffieHellmanGroup</code> instances (<code>modp1</code>, <code>modp2</code>, <code>modp5</code>)</a></li>
607<li><a href="#DEP0168">DEP0168: Unhandled exception in Node-API callbacks</a></li>
608<li><a href="#DEP0169">DEP0169: Insecure url.parse()</a></li>
609<li><a href="#DEP0170">DEP0170: Invalid port when using <code>url.parse()</code></a></li>
610<li><a href="#DEP0171">DEP0171: Setters for <code>http.IncomingMessage</code> headers and trailers</a></li>
611<li><a href="#DEP0178">DEP0178: <code>dirent.path</code></a></li>
612</ul>
613</li>
614</ul>
615</li>
616</ul></details>
617
618      <div id="apicontent">
619        <h2>Deprecated APIs<span><a class="mark" href="#deprecated-apis" id="deprecated-apis">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_deprecated_apis"></a></h2>
620
621
622<p>Node.js APIs might be deprecated for any of the following reasons:</p>
623<ul>
624<li>Use of the API is unsafe.</li>
625<li>An improved alternative API is available.</li>
626<li>Breaking changes to the API are expected in a future major release.</li>
627</ul>
628<p>Node.js uses three kinds of Deprecations:</p>
629<ul>
630<li>Documentation-only</li>
631<li>Runtime</li>
632<li>End-of-Life</li>
633</ul>
634<p>A Documentation-only deprecation is one that is expressed only within the
635Node.js API docs. These generate no side-effects while running Node.js.
636Some Documentation-only deprecations trigger a runtime warning when launched
637with <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a> flag (or its alternative,
638<code>NODE_PENDING_DEPRECATION=1</code> environment variable), similarly to Runtime
639deprecations below. Documentation-only deprecations that support that flag
640are explicitly labeled as such in the
641<a href="#list-of-deprecated-apis">list of Deprecated APIs</a>.</p>
642<p>A Runtime deprecation will, by default, generate a process warning that will
643be printed to <code>stderr</code> the first time the deprecated API is used. When the
644<a href="cli.html#--throw-deprecation"><code>--throw-deprecation</code></a> command-line flag is used, a Runtime deprecation will
645cause an error to be thrown.</p>
646<p>An End-of-Life deprecation is used when functionality is or will soon be removed
647from Node.js.</p>
648<section><h3>Revoking deprecations<span><a class="mark" href="#revoking-deprecations" id="revoking-deprecations">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_revoking_deprecations"></a></h3>
649<p>Occasionally, the deprecation of an API might be reversed. In such situations,
650this document will be updated with information relevant to the decision.
651However, the deprecation identifier will not be modified.</p>
652</section><section><h3>List of deprecated APIs<span><a class="mark" href="#list-of-deprecated-apis" id="list-of-deprecated-apis">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_list_of_deprecated_apis"></a></h3>
653<h4 id="DEP0001">DEP0001: <code>http.OutgoingMessage.prototype.flush</code><span><a class="mark" href="#dep0001-httpoutgoingmessageprototypeflush" id="dep0001-httpoutgoingmessageprototypeflush">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0001_http_outgoingmessage_prototype_flush"></a></h4>
654<div class="api_metadata">
655<details class="changelog"><summary>History</summary>
656<table>
657<tbody><tr><th>Version</th><th>Changes</th></tr>
658<tr><td>v14.0.0</td>
659<td><p>End-of-Life.</p></td></tr>
660<tr><td>v6.12.0, v4.8.6</td>
661<td><p>A deprecation code has been assigned.</p></td></tr>
662<tr><td>v1.6.0</td>
663<td><p>Runtime deprecation.</p></td></tr>
664</tbody></table>
665</details>
666</div>
667<p>Type: End-of-Life</p>
668<p><code>OutgoingMessage.prototype.flush()</code> has been removed. Use
669<code>OutgoingMessage.prototype.flushHeaders()</code> instead.</p>
670<h4 id="DEP0002">DEP0002: <code>require('_linklist')</code><span><a class="mark" href="#dep0002-require_linklist" id="dep0002-require_linklist">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0002_require_linklist"></a></h4>
671<div class="api_metadata">
672<details class="changelog"><summary>History</summary>
673<table>
674<tbody><tr><th>Version</th><th>Changes</th></tr>
675<tr><td>v8.0.0</td>
676<td><p>End-of-Life.</p></td></tr>
677<tr><td>v6.12.0</td>
678<td><p>A deprecation code has been assigned.</p></td></tr>
679<tr><td>v5.0.0</td>
680<td><p>Runtime deprecation.</p></td></tr>
681</tbody></table>
682</details>
683</div>
684<p>Type: End-of-Life</p>
685<p>The <code>_linklist</code> module is deprecated. Please use a userland alternative.</p>
686<h4 id="DEP0003">DEP0003: <code>_writableState.buffer</code><span><a class="mark" href="#dep0003-_writablestatebuffer" id="dep0003-_writablestatebuffer">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0003_writablestate_buffer"></a></h4>
687<div class="api_metadata">
688<details class="changelog"><summary>History</summary>
689<table>
690<tbody><tr><th>Version</th><th>Changes</th></tr>
691<tr><td>v14.0.0</td>
692<td><p>End-of-Life.</p></td></tr>
693<tr><td>v6.12.0, v4.8.6</td>
694<td><p>A deprecation code has been assigned.</p></td></tr>
695<tr><td>v0.11.15</td>
696<td><p>Runtime deprecation.</p></td></tr>
697</tbody></table>
698</details>
699</div>
700<p>Type: End-of-Life</p>
701<p>The <code>_writableState.buffer</code> has been removed. Use <code>_writableState.getBuffer()</code>
702instead.</p>
703<h4 id="DEP0004">DEP0004: <code>CryptoStream.prototype.readyState</code><span><a class="mark" href="#dep0004-cryptostreamprototypereadystate" id="dep0004-cryptostreamprototypereadystate">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0004_cryptostream_prototype_readystate"></a></h4>
704<div class="api_metadata">
705<details class="changelog"><summary>History</summary>
706<table>
707<tbody><tr><th>Version</th><th>Changes</th></tr>
708<tr><td>v10.0.0</td>
709<td><p>End-of-Life.</p></td></tr>
710<tr><td>v6.12.0, v4.8.6</td>
711<td><p>A deprecation code has been assigned.</p></td></tr>
712<tr><td>v0.4.0</td>
713<td><p>Documentation-only deprecation.</p></td></tr>
714</tbody></table>
715</details>
716</div>
717<p>Type: End-of-Life</p>
718<p>The <code>CryptoStream.prototype.readyState</code> property was removed.</p>
719<h4 id="DEP0005">DEP0005: <code>Buffer()</code> constructor<span><a class="mark" href="#dep0005-buffer-constructor" id="dep0005-buffer-constructor">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0005_buffer_constructor"></a></h4>
720<div class="api_metadata">
721<details class="changelog"><summary>History</summary>
722<table>
723<tbody><tr><th>Version</th><th>Changes</th></tr>
724<tr><td>v10.0.0</td>
725<td><p>Runtime deprecation.</p></td></tr>
726<tr><td>v6.12.0</td>
727<td><p>A deprecation code has been assigned.</p></td></tr>
728<tr><td>v6.0.0</td>
729<td><p>Documentation-only deprecation.</p></td></tr>
730</tbody></table>
731</details>
732</div>
733<p>Type: Runtime (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
734<p>The <code>Buffer()</code> function and <code>new Buffer()</code> constructor are deprecated due to
735API usability issues that can lead to accidental security issues.</p>
736<p>As an alternative, use one of the following methods of constructing <code>Buffer</code>
737objects:</p>
738<ul>
739<li><a href="buffer.html#static-method-bufferallocsize-fill-encoding"><code>Buffer.alloc(size[, fill[, encoding]])</code></a>: Create a <code>Buffer</code> with
740<em>initialized</em> memory.</li>
741<li><a href="buffer.html#static-method-bufferallocunsafesize"><code>Buffer.allocUnsafe(size)</code></a>: Create a <code>Buffer</code> with
742<em>uninitialized</em> memory.</li>
743<li><a href="buffer.html#static-method-bufferallocunsafeslowsize"><code>Buffer.allocUnsafeSlow(size)</code></a>: Create a <code>Buffer</code> with <em>uninitialized</em>
744memory.</li>
745<li><a href="buffer.html#static-method-bufferfromarray"><code>Buffer.from(array)</code></a>: Create a <code>Buffer</code> with a copy of <code>array</code></li>
746<li><a href="buffer.html#static-method-bufferfromarraybuffer-byteoffset-length"><code>Buffer.from(arrayBuffer[, byteOffset[, length]])</code></a> -
747Create a <code>Buffer</code> that wraps the given <code>arrayBuffer</code>.</li>
748<li><a href="buffer.html#static-method-bufferfrombuffer"><code>Buffer.from(buffer)</code></a>: Create a <code>Buffer</code> that copies <code>buffer</code>.</li>
749<li><a href="buffer.html#static-method-bufferfromstring-encoding"><code>Buffer.from(string[, encoding])</code></a>: Create a <code>Buffer</code>
750that copies <code>string</code>.</li>
751</ul>
752<p>Without <code>--pending-deprecation</code>, runtime warnings occur only for code not in
753<code>node_modules</code>. This means there will not be deprecation warnings for
754<code>Buffer()</code> usage in dependencies. With <code>--pending-deprecation</code>, a runtime
755warning results no matter where the <code>Buffer()</code> usage occurs.</p>
756<h4 id="DEP0006">DEP0006: <code>child_process</code> <code>options.customFds</code><span><a class="mark" href="#dep0006-child_process-optionscustomfds" id="dep0006-child_process-optionscustomfds">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0006_child_process_options_customfds"></a></h4>
757<div class="api_metadata">
758<details class="changelog"><summary>History</summary>
759<table>
760<tbody><tr><th>Version</th><th>Changes</th></tr>
761<tr><td>v12.0.0</td>
762<td><p>End-of-Life.</p></td></tr>
763<tr><td>v6.12.0, v4.8.6</td>
764<td><p>A deprecation code has been assigned.</p></td></tr>
765<tr><td>v0.11.14</td>
766<td><p>Runtime deprecation.</p></td></tr>
767<tr><td>v0.5.10</td>
768<td><p>Documentation-only deprecation.</p></td></tr>
769</tbody></table>
770</details>
771</div>
772<p>Type: End-of-Life</p>
773<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>
774methods, the <code>options.customFds</code> option is deprecated. The <code>options.stdio</code>
775option should be used instead.</p>
776<h4 id="DEP0007">DEP0007: Replace <code>cluster</code> <code>worker.suicide</code> with <code>worker.exitedAfterDisconnect</code><span><a class="mark" href="#dep0007-replace-cluster-workersuicide-with-workerexitedafterdisconnect" id="dep0007-replace-cluster-workersuicide-with-workerexitedafterdisconnect">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0007_replace_cluster_worker_suicide_with_worker_exitedafterdisconnect"></a></h4>
777<div class="api_metadata">
778<details class="changelog"><summary>History</summary>
779<table>
780<tbody><tr><th>Version</th><th>Changes</th></tr>
781<tr><td>v9.0.0</td>
782<td><p>End-of-Life.</p></td></tr>
783<tr><td>v7.0.0</td>
784<td><p>Runtime deprecation.</p></td></tr>
785<tr><td>v6.12.0</td>
786<td><p>A deprecation code has been assigned.</p></td></tr>
787<tr><td>v6.0.0</td>
788<td><p>Documentation-only deprecation.</p></td></tr>
789</tbody></table>
790</details>
791</div>
792<p>Type: End-of-Life</p>
793<p>In an earlier version of the Node.js <code>cluster</code>, a boolean property with the name
794<code>suicide</code> was added to the <code>Worker</code> object. The intent of this property was to
795provide an indication of how and why the <code>Worker</code> instance exited. In Node.js
7966.0.0, the old property was deprecated and replaced with a new
797<a href="cluster.html#workerexitedafterdisconnect"><code>worker.exitedAfterDisconnect</code></a> property. The old property name did not
798precisely describe the actual semantics and was unnecessarily emotion-laden.</p>
799<h4 id="DEP0008">DEP0008: <code>require('node:constants')</code><span><a class="mark" href="#dep0008-requirenodeconstants" id="dep0008-requirenodeconstants">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0008_require_node_constants"></a></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>v6.12.0</td>
805<td><p>A deprecation code has been assigned.</p></td></tr>
806<tr><td>v6.3.0</td>
807<td><p>Documentation-only deprecation.</p></td></tr>
808</tbody></table>
809</details>
810</div>
811<p>Type: Documentation-only</p>
812<p>The <code>node:constants</code> module is deprecated. When requiring access to constants
813relevant to specific Node.js builtin modules, developers should instead refer
814to the <code>constants</code> property exposed by the relevant module. For instance,
815<code>require('node:fs').constants</code> and <code>require('node:os').constants</code>.</p>
816<h4 id="DEP0009">DEP0009: <code>crypto.pbkdf2</code> without digest<span><a class="mark" href="#dep0009-cryptopbkdf2-without-digest" id="dep0009-cryptopbkdf2-without-digest">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0009_crypto_pbkdf2_without_digest"></a></h4>
817<div class="api_metadata">
818<details class="changelog"><summary>History</summary>
819<table>
820<tbody><tr><th>Version</th><th>Changes</th></tr>
821<tr><td>v14.0.0</td>
822<td><p>End-of-Life (for <code>digest === null</code>).</p></td></tr>
823<tr><td>v11.0.0</td>
824<td><p>Runtime deprecation (for <code>digest === null</code>).</p></td></tr>
825<tr><td>v8.0.0</td>
826<td><p>End-of-Life (for <code>digest === undefined</code>).</p></td></tr>
827<tr><td>v6.12.0</td>
828<td><p>A deprecation code has been assigned.</p></td></tr>
829<tr><td>v6.0.0</td>
830<td><p>Runtime deprecation (for <code>digest === undefined</code>).</p></td></tr>
831</tbody></table>
832</details>
833</div>
834<p>Type: End-of-Life</p>
835<p>Use of the <a href="crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback"><code>crypto.pbkdf2()</code></a> API without specifying a digest was deprecated
836in Node.js 6.0 because the method defaulted to using the non-recommended
837<code>'SHA1'</code> digest. Previously, a deprecation warning was printed. Starting in
838Node.js 8.0.0, calling <code>crypto.pbkdf2()</code> or <code>crypto.pbkdf2Sync()</code> with
839<code>digest</code> set to <code>undefined</code> will throw a <code>TypeError</code>.</p>
840<p>Beginning in Node.js v11.0.0, calling these functions with <code>digest</code> set to
841<code>null</code> would print a deprecation warning to align with the behavior when <code>digest</code>
842is <code>undefined</code>.</p>
843<p>Now, however, passing either <code>undefined</code> or <code>null</code> will throw a <code>TypeError</code>.</p>
844<h4 id="DEP0010">DEP0010: <code>crypto.createCredentials</code><span><a class="mark" href="#dep0010-cryptocreatecredentials" id="dep0010-cryptocreatecredentials">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0010_crypto_createcredentials"></a></h4>
845<div class="api_metadata">
846<details class="changelog"><summary>History</summary>
847<table>
848<tbody><tr><th>Version</th><th>Changes</th></tr>
849<tr><td>v11.0.0</td>
850<td><p>End-of-Life.</p></td></tr>
851<tr><td>v6.12.0, v4.8.6</td>
852<td><p>A deprecation code has been assigned.</p></td></tr>
853<tr><td>v0.11.13</td>
854<td><p>Runtime deprecation.</p></td></tr>
855</tbody></table>
856</details>
857</div>
858<p>Type: End-of-Life</p>
859<p>The <code>crypto.createCredentials()</code> API was removed. Please use
860<a href="tls.html#tlscreatesecurecontextoptions"><code>tls.createSecureContext()</code></a> instead.</p>
861<h4 id="DEP0011">DEP0011: <code>crypto.Credentials</code><span><a class="mark" href="#dep0011-cryptocredentials" id="dep0011-cryptocredentials">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0011_crypto_credentials"></a></h4>
862<div class="api_metadata">
863<details class="changelog"><summary>History</summary>
864<table>
865<tbody><tr><th>Version</th><th>Changes</th></tr>
866<tr><td>v11.0.0</td>
867<td><p>End-of-Life.</p></td></tr>
868<tr><td>v6.12.0, v4.8.6</td>
869<td><p>A deprecation code has been assigned.</p></td></tr>
870<tr><td>v0.11.13</td>
871<td><p>Runtime deprecation.</p></td></tr>
872</tbody></table>
873</details>
874</div>
875<p>Type: End-of-Life</p>
876<p>The <code>crypto.Credentials</code> class was removed. Please use <a href="tls.html#tlscreatesecurecontextoptions"><code>tls.SecureContext</code></a>
877instead.</p>
878<h4 id="DEP0012">DEP0012: <code>Domain.dispose</code><span><a class="mark" href="#dep0012-domaindispose" id="dep0012-domaindispose">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0012_domain_dispose"></a></h4>
879<div class="api_metadata">
880<details class="changelog"><summary>History</summary>
881<table>
882<tbody><tr><th>Version</th><th>Changes</th></tr>
883<tr><td>v9.0.0</td>
884<td><p>End-of-Life.</p></td></tr>
885<tr><td>v6.12.0, v4.8.6</td>
886<td><p>A deprecation code has been assigned.</p></td></tr>
887<tr><td>v0.11.7</td>
888<td><p>Runtime deprecation.</p></td></tr>
889</tbody></table>
890</details>
891</div>
892<p>Type: End-of-Life</p>
893<p><code>Domain.dispose()</code> has been removed. Recover from failed I/O actions
894explicitly via error event handlers set on the domain instead.</p>
895<h4 id="DEP0013">DEP0013: <code>fs</code> asynchronous function without callback<span><a class="mark" href="#dep0013-fs-asynchronous-function-without-callback" id="dep0013-fs-asynchronous-function-without-callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0013_fs_asynchronous_function_without_callback"></a></h4>
896<div class="api_metadata">
897<details class="changelog"><summary>History</summary>
898<table>
899<tbody><tr><th>Version</th><th>Changes</th></tr>
900<tr><td>v10.0.0</td>
901<td><p>End-of-Life.</p></td></tr>
902<tr><td>v7.0.0</td>
903<td><p>Runtime deprecation.</p></td></tr>
904</tbody></table>
905</details>
906</div>
907<p>Type: End-of-Life</p>
908<p>Calling an asynchronous function without a callback throws a <code>TypeError</code>
909in 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>
910<h4 id="DEP0014">DEP0014: <code>fs.read</code> legacy String interface<span><a class="mark" href="#dep0014-fsread-legacy-string-interface" id="dep0014-fsread-legacy-string-interface">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0014_fs_read_legacy_string_interface"></a></h4>
911<div class="api_metadata">
912<details class="changelog"><summary>History</summary>
913<table>
914<tbody><tr><th>Version</th><th>Changes</th></tr>
915<tr><td>v8.0.0</td>
916<td><p>End-of-Life.</p></td></tr>
917<tr><td>v6.0.0</td>
918<td><p>Runtime deprecation.</p></td></tr>
919<tr><td>v6.12.0, v4.8.6</td>
920<td><p>A deprecation code has been assigned.</p></td></tr>
921<tr><td>v0.1.96</td>
922<td><p>Documentation-only deprecation.</p></td></tr>
923</tbody></table>
924</details>
925</div>
926<p>Type: End-of-Life</p>
927<p>The <a href="fs.html#fsreadfd-buffer-offset-length-position-callback"><code>fs.read()</code></a> legacy <code>String</code> interface is deprecated. Use the <code>Buffer</code>
928API as mentioned in the documentation instead.</p>
929<h4 id="DEP0015">DEP0015: <code>fs.readSync</code> legacy String interface<span><a class="mark" href="#dep0015-fsreadsync-legacy-string-interface" id="dep0015-fsreadsync-legacy-string-interface">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0015_fs_readsync_legacy_string_interface"></a></h4>
930<div class="api_metadata">
931<details class="changelog"><summary>History</summary>
932<table>
933<tbody><tr><th>Version</th><th>Changes</th></tr>
934<tr><td>v8.0.0</td>
935<td><p>End-of-Life.</p></td></tr>
936<tr><td>v6.0.0</td>
937<td><p>Runtime deprecation.</p></td></tr>
938<tr><td>v6.12.0, v4.8.6</td>
939<td><p>A deprecation code has been assigned.</p></td></tr>
940<tr><td>v0.1.96</td>
941<td><p>Documentation-only deprecation.</p></td></tr>
942</tbody></table>
943</details>
944</div>
945<p>Type: End-of-Life</p>
946<p>The <a href="fs.html#fsreadsyncfd-buffer-offset-length-position"><code>fs.readSync()</code></a> legacy <code>String</code> interface is deprecated. Use the
947<code>Buffer</code> API as mentioned in the documentation instead.</p>
948<h4 id="DEP0016">DEP0016: <code>GLOBAL</code>/<code>root</code><span><a class="mark" href="#dep0016-globalroot" id="dep0016-globalroot">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0016_global_root"></a></h4>
949<div class="api_metadata">
950<details class="changelog"><summary>History</summary>
951<table>
952<tbody><tr><th>Version</th><th>Changes</th></tr>
953<tr><td>v14.0.0</td>
954<td><p>End-of-Life.</p></td></tr>
955<tr><td>v6.12.0</td>
956<td><p>A deprecation code has been assigned.</p></td></tr>
957<tr><td>v6.0.0</td>
958<td><p>Runtime deprecation.</p></td></tr>
959</tbody></table>
960</details>
961</div>
962<p>Type: End-of-Life</p>
963<p>The <code>GLOBAL</code> and <code>root</code> aliases for the <code>global</code> property were deprecated
964in Node.js 6.0.0 and have since been removed.</p>
965<h4 id="DEP0017">DEP0017: <code>Intl.v8BreakIterator</code><span><a class="mark" href="#dep0017-intlv8breakiterator" id="dep0017-intlv8breakiterator">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0017_intl_v8breakiterator"></a></h4>
966<div class="api_metadata">
967<details class="changelog"><summary>History</summary>
968<table>
969<tbody><tr><th>Version</th><th>Changes</th></tr>
970<tr><td>v9.0.0</td>
971<td><p>End-of-Life.</p></td></tr>
972<tr><td>v7.0.0</td>
973<td><p>Runtime deprecation.</p></td></tr>
974</tbody></table>
975</details>
976</div>
977<p>Type: End-of-Life</p>
978<p><code>Intl.v8BreakIterator</code> was a non-standard extension and has been removed.
979See <a href="https://github.com/tc39/proposal-intl-segmenter"><code>Intl.Segmenter</code></a>.</p>
980<h4 id="DEP0018">DEP0018: Unhandled promise rejections<span><a class="mark" href="#dep0018-unhandled-promise-rejections" id="dep0018-unhandled-promise-rejections">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0018_unhandled_promise_rejections"></a></h4>
981<div class="api_metadata">
982<details class="changelog"><summary>History</summary>
983<table>
984<tbody><tr><th>Version</th><th>Changes</th></tr>
985<tr><td>v15.0.0</td>
986<td><p>End-of-Life.</p></td></tr>
987<tr><td>v7.0.0</td>
988<td><p>Runtime deprecation.</p></td></tr>
989</tbody></table>
990</details>
991</div>
992<p>Type: End-of-Life</p>
993<p>Unhandled promise rejections are deprecated. By default, promise rejections
994that are not handled terminate the Node.js process with a non-zero exit
995code. To change the way Node.js treats unhandled rejections, use the
996<a href="cli.html#--unhandled-rejectionsmode"><code>--unhandled-rejections</code></a> command-line option.</p>
997<h4 id="DEP0019">DEP0019: <code>require('.')</code> resolved outside directory<span><a class="mark" href="#dep0019-require-resolved-outside-directory" id="dep0019-require-resolved-outside-directory">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0019_require_resolved_outside_directory"></a></h4>
998<div class="api_metadata">
999<details class="changelog"><summary>History</summary>
1000<table>
1001<tbody><tr><th>Version</th><th>Changes</th></tr>
1002<tr><td>v12.0.0</td>
1003<td><p>Removed functionality.</p></td></tr>
1004<tr><td>v6.12.0, v4.8.6</td>
1005<td><p>A deprecation code has been assigned.</p></td></tr>
1006<tr><td>v1.8.1</td>
1007<td><p>Runtime deprecation.</p></td></tr>
1008</tbody></table>
1009</details>
1010</div>
1011<p>Type: End-of-Life</p>
1012<p>In certain cases, <code>require('.')</code> could resolve outside the package directory.
1013This behavior has been removed.</p>
1014<h4 id="DEP0020">DEP0020: <code>Server.connections</code><span><a class="mark" href="#dep0020-serverconnections" id="dep0020-serverconnections">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0020_server_connections"></a></h4>
1015<div class="api_metadata">
1016<details class="changelog"><summary>History</summary>
1017<table>
1018<tbody><tr><th>Version</th><th>Changes</th></tr>
1019<tr><td>v15.0.0</td>
1020<td><p>Server.connections has been removed.</p></td></tr>
1021<tr><td>v6.12.0, v4.8.6</td>
1022<td><p>A deprecation code has been assigned.</p></td></tr>
1023<tr><td>v0.9.7</td>
1024<td><p>Runtime deprecation.</p></td></tr>
1025</tbody></table>
1026</details>
1027</div>
1028<p>Type: End-of-Life</p>
1029<p>The <code>Server.connections</code> property was deprecated in Node.js v0.9.7 and has
1030been removed. Please use the <a href="net.html#servergetconnectionscallback"><code>Server.getConnections()</code></a> method instead.</p>
1031<h4 id="DEP0021">DEP0021: <code>Server.listenFD</code><span><a class="mark" href="#dep0021-serverlistenfd" id="dep0021-serverlistenfd">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0021_server_listenfd"></a></h4>
1032<div class="api_metadata">
1033<details class="changelog"><summary>History</summary>
1034<table>
1035<tbody><tr><th>Version</th><th>Changes</th></tr>
1036<tr><td>v12.0.0</td>
1037<td><p>End-of-Life.</p></td></tr>
1038<tr><td>v6.12.0, v4.8.6</td>
1039<td><p>A deprecation code has been assigned.</p></td></tr>
1040<tr><td>v0.7.12</td>
1041<td><p>Runtime deprecation.</p></td></tr>
1042</tbody></table>
1043</details>
1044</div>
1045<p>Type: End-of-Life</p>
1046<p>The <code>Server.listenFD()</code> method was deprecated and removed. Please use
1047<a href="net.html#serverlistenhandle-backlog-callback"><code>Server.listen({fd: &#x3C;number>})</code></a> instead.</p>
1048<h4 id="DEP0022">DEP0022: <code>os.tmpDir()</code><span><a class="mark" href="#dep0022-ostmpdir" id="dep0022-ostmpdir">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0022_os_tmpdir"></a></h4>
1049<div class="api_metadata">
1050<details class="changelog"><summary>History</summary>
1051<table>
1052<tbody><tr><th>Version</th><th>Changes</th></tr>
1053<tr><td>v14.0.0</td>
1054<td><p>End-of-Life.</p></td></tr>
1055<tr><td>v7.0.0</td>
1056<td><p>Runtime deprecation.</p></td></tr>
1057</tbody></table>
1058</details>
1059</div>
1060<p>Type: End-of-Life</p>
1061<p>The <code>os.tmpDir()</code> API was deprecated in Node.js 7.0.0 and has since been
1062removed. Please use <a href="os.html#ostmpdir"><code>os.tmpdir()</code></a> instead.</p>
1063<h4 id="DEP0023">DEP0023: <code>os.getNetworkInterfaces()</code><span><a class="mark" href="#dep0023-osgetnetworkinterfaces" id="dep0023-osgetnetworkinterfaces">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0023_os_getnetworkinterfaces"></a></h4>
1064<div class="api_metadata">
1065<details class="changelog"><summary>History</summary>
1066<table>
1067<tbody><tr><th>Version</th><th>Changes</th></tr>
1068<tr><td>v12.0.0</td>
1069<td><p>End-of-Life.</p></td></tr>
1070<tr><td>v6.12.0, v4.8.6</td>
1071<td><p>A deprecation code has been assigned.</p></td></tr>
1072<tr><td>v0.6.0</td>
1073<td><p>Runtime deprecation.</p></td></tr>
1074</tbody></table>
1075</details>
1076</div>
1077<p>Type: End-of-Life</p>
1078<p>The <code>os.getNetworkInterfaces()</code> method is deprecated. Please use the
1079<a href="os.html#osnetworkinterfaces"><code>os.networkInterfaces()</code></a> method instead.</p>
1080<h4 id="DEP0024">DEP0024: <code>REPLServer.prototype.convertToContext()</code><span><a class="mark" href="#dep0024-replserverprototypeconverttocontext" id="dep0024-replserverprototypeconverttocontext">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0024_replserver_prototype_converttocontext"></a></h4>
1081<div class="api_metadata">
1082<details class="changelog"><summary>History</summary>
1083<table>
1084<tbody><tr><th>Version</th><th>Changes</th></tr>
1085<tr><td>v9.0.0</td>
1086<td><p>End-of-Life.</p></td></tr>
1087<tr><td>v7.0.0</td>
1088<td><p>Runtime deprecation.</p></td></tr>
1089</tbody></table>
1090</details>
1091</div>
1092<p>Type: End-of-Life</p>
1093<p>The <code>REPLServer.prototype.convertToContext()</code> API has been removed.</p>
1094<h4 id="DEP0025">DEP0025: <code>require('node:sys')</code><span><a class="mark" href="#dep0025-requirenodesys" id="dep0025-requirenodesys">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0025_require_node_sys"></a></h4>
1095<div class="api_metadata">
1096<details class="changelog"><summary>History</summary>
1097<table>
1098<tbody><tr><th>Version</th><th>Changes</th></tr>
1099<tr><td>v6.12.0, v4.8.6</td>
1100<td><p>A deprecation code has been assigned.</p></td></tr>
1101<tr><td>v1.0.0</td>
1102<td><p>Runtime deprecation.</p></td></tr>
1103</tbody></table>
1104</details>
1105</div>
1106<p>Type: Runtime</p>
1107<p>The <code>node:sys</code> module is deprecated. Please use the <a href="util.html"><code>util</code></a> module instead.</p>
1108<h4 id="DEP0026">DEP0026: <code>util.print()</code><span><a class="mark" href="#dep0026-utilprint" id="dep0026-utilprint">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0026_util_print"></a></h4>
1109<div class="api_metadata">
1110<details class="changelog"><summary>History</summary>
1111<table>
1112<tbody><tr><th>Version</th><th>Changes</th></tr>
1113<tr><td>v12.0.0</td>
1114<td><p>End-of-Life.</p></td></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>v0.11.3</td>
1118<td><p>Runtime deprecation.</p></td></tr>
1119</tbody></table>
1120</details>
1121</div>
1122<p>Type: End-of-Life</p>
1123<p><code>util.print()</code> has been removed. Please use <a href="console.html#consolelogdata-args"><code>console.log()</code></a> instead.</p>
1124<h4 id="DEP0027">DEP0027: <code>util.puts()</code><span><a class="mark" href="#dep0027-utilputs" id="dep0027-utilputs">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0027_util_puts"></a></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>v12.0.0</td>
1130<td><p>End-of-Life.</p></td></tr>
1131<tr><td>v6.12.0, v4.8.6</td>
1132<td><p>A deprecation code has been assigned.</p></td></tr>
1133<tr><td>v0.11.3</td>
1134<td><p>Runtime deprecation.</p></td></tr>
1135</tbody></table>
1136</details>
1137</div>
1138<p>Type: End-of-Life</p>
1139<p><code>util.puts()</code> has been removed. Please use <a href="console.html#consolelogdata-args"><code>console.log()</code></a> instead.</p>
1140<h4 id="DEP0028">DEP0028: <code>util.debug()</code><span><a class="mark" href="#dep0028-utildebug" id="dep0028-utildebug">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0028_util_debug"></a></h4>
1141<div class="api_metadata">
1142<details class="changelog"><summary>History</summary>
1143<table>
1144<tbody><tr><th>Version</th><th>Changes</th></tr>
1145<tr><td>v12.0.0</td>
1146<td><p>End-of-Life.</p></td></tr>
1147<tr><td>v6.12.0, v4.8.6</td>
1148<td><p>A deprecation code has been assigned.</p></td></tr>
1149<tr><td>v0.11.3</td>
1150<td><p>Runtime deprecation.</p></td></tr>
1151</tbody></table>
1152</details>
1153</div>
1154<p>Type: End-of-Life</p>
1155<p><code>util.debug()</code> has been removed. Please use <a href="console.html#consoleerrordata-args"><code>console.error()</code></a> instead.</p>
1156<h4 id="DEP0029">DEP0029: <code>util.error()</code><span><a class="mark" href="#dep0029-utilerror" id="dep0029-utilerror">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0029_util_error"></a></h4>
1157<div class="api_metadata">
1158<details class="changelog"><summary>History</summary>
1159<table>
1160<tbody><tr><th>Version</th><th>Changes</th></tr>
1161<tr><td>v12.0.0</td>
1162<td><p>End-of-Life.</p></td></tr>
1163<tr><td>v6.12.0, v4.8.6</td>
1164<td><p>A deprecation code has been assigned.</p></td></tr>
1165<tr><td>v0.11.3</td>
1166<td><p>Runtime deprecation.</p></td></tr>
1167</tbody></table>
1168</details>
1169</div>
1170<p>Type: End-of-Life</p>
1171<p><code>util.error()</code> has been removed. Please use <a href="console.html#consoleerrordata-args"><code>console.error()</code></a> instead.</p>
1172<h4 id="DEP0030">DEP0030: <code>SlowBuffer</code><span><a class="mark" href="#dep0030-slowbuffer" id="dep0030-slowbuffer">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0030_slowbuffer"></a></h4>
1173<div class="api_metadata">
1174<details class="changelog"><summary>History</summary>
1175<table>
1176<tbody><tr><th>Version</th><th>Changes</th></tr>
1177<tr><td>v6.12.0</td>
1178<td><p>A deprecation code has been assigned.</p></td></tr>
1179<tr><td>v6.0.0</td>
1180<td><p>Documentation-only deprecation.</p></td></tr>
1181</tbody></table>
1182</details>
1183</div>
1184<p>Type: Documentation-only</p>
1185<p>The <a href="buffer.html#class-slowbuffer"><code>SlowBuffer</code></a> class is deprecated. Please use
1186<a href="buffer.html#static-method-bufferallocunsafeslowsize"><code>Buffer.allocUnsafeSlow(size)</code></a> instead.</p>
1187<h4 id="DEP0031">DEP0031: <code>ecdh.setPublicKey()</code><span><a class="mark" href="#dep0031-ecdhsetpublickey" id="dep0031-ecdhsetpublickey">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0031_ecdh_setpublickey"></a></h4>
1188<div class="api_metadata">
1189<details class="changelog"><summary>History</summary>
1190<table>
1191<tbody><tr><th>Version</th><th>Changes</th></tr>
1192<tr><td>v6.12.0</td>
1193<td><p>A deprecation code has been assigned.</p></td></tr>
1194<tr><td>v5.2.0</td>
1195<td><p>Documentation-only deprecation.</p></td></tr>
1196</tbody></table>
1197</details>
1198</div>
1199<p>Type: Documentation-only</p>
1200<p>The <a href="crypto.html#ecdhsetpublickeypublickey-encoding"><code>ecdh.setPublicKey()</code></a> method is now deprecated as its inclusion in the
1201API is not useful.</p>
1202<h4 id="DEP0032">DEP0032: <code>node:domain</code> module<span><a class="mark" href="#dep0032-nodedomain-module" id="dep0032-nodedomain-module">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0032_node_domain_module"></a></h4>
1203<div class="api_metadata">
1204<details class="changelog"><summary>History</summary>
1205<table>
1206<tbody><tr><th>Version</th><th>Changes</th></tr>
1207<tr><td>v6.12.0, v4.8.6</td>
1208<td><p>A deprecation code has been assigned.</p></td></tr>
1209<tr><td>v1.4.2</td>
1210<td><p>Documentation-only deprecation.</p></td></tr>
1211</tbody></table>
1212</details>
1213</div>
1214<p>Type: Documentation-only</p>
1215<p>The <a href="domain.html"><code>domain</code></a> module is deprecated and should not be used.</p>
1216<h4 id="DEP0033">DEP0033: <code>EventEmitter.listenerCount()</code><span><a class="mark" href="#dep0033-eventemitterlistenercount" id="dep0033-eventemitterlistenercount">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0033_eventemitter_listenercount"></a></h4>
1217<div class="api_metadata">
1218<details class="changelog"><summary>History</summary>
1219<table>
1220<tbody><tr><th>Version</th><th>Changes</th></tr>
1221<tr><td>v6.12.0, v4.8.6</td>
1222<td><p>A deprecation code has been assigned.</p></td></tr>
1223<tr><td>v3.2.0</td>
1224<td><p>Documentation-only deprecation.</p></td></tr>
1225</tbody></table>
1226</details>
1227</div>
1228<p>Type: Documentation-only</p>
1229<p>The <a href="events.html#eventslistenercountemitter-eventname"><code>events.listenerCount(emitter, eventName)</code></a> API is
1230deprecated. Please use <a href="events.html#emitterlistenercounteventname-listener"><code>emitter.listenerCount(eventName)</code></a> instead.</p>
1231<h4 id="DEP0034">DEP0034: <code>fs.exists(path, callback)</code><span><a class="mark" href="#dep0034-fsexistspath-callback" id="dep0034-fsexistspath-callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0034_fs_exists_path_callback"></a></h4>
1232<div class="api_metadata">
1233<details class="changelog"><summary>History</summary>
1234<table>
1235<tbody><tr><th>Version</th><th>Changes</th></tr>
1236<tr><td>v6.12.0, v4.8.6</td>
1237<td><p>A deprecation code has been assigned.</p></td></tr>
1238<tr><td>v1.0.0</td>
1239<td><p>Documentation-only deprecation.</p></td></tr>
1240</tbody></table>
1241</details>
1242</div>
1243<p>Type: Documentation-only</p>
1244<p>The <a href="fs.html#fsexistspath-callback"><code>fs.exists(path, callback)</code></a> API is deprecated. Please use
1245<a href="fs.html#fsstatpath-options-callback"><code>fs.stat()</code></a> or <a href="fs.html#fsaccesspath-mode-callback"><code>fs.access()</code></a> instead.</p>
1246<h4 id="DEP0035">DEP0035: <code>fs.lchmod(path, mode, callback)</code><span><a class="mark" href="#dep0035-fslchmodpath-mode-callback" id="dep0035-fslchmodpath-mode-callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0035_fs_lchmod_path_mode_callback"></a></h4>
1247<div class="api_metadata">
1248<details class="changelog"><summary>History</summary>
1249<table>
1250<tbody><tr><th>Version</th><th>Changes</th></tr>
1251<tr><td>v6.12.0, v4.8.6</td>
1252<td><p>A deprecation code has been assigned.</p></td></tr>
1253<tr><td>v0.4.7</td>
1254<td><p>Documentation-only deprecation.</p></td></tr>
1255</tbody></table>
1256</details>
1257</div>
1258<p>Type: Documentation-only</p>
1259<p>The <a href="fs.html#fslchmodpath-mode-callback"><code>fs.lchmod(path, mode, callback)</code></a> API is deprecated.</p>
1260<h4 id="DEP0036">DEP0036: <code>fs.lchmodSync(path, mode)</code><span><a class="mark" href="#dep0036-fslchmodsyncpath-mode" id="dep0036-fslchmodsyncpath-mode">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0036_fs_lchmodsync_path_mode"></a></h4>
1261<div class="api_metadata">
1262<details class="changelog"><summary>History</summary>
1263<table>
1264<tbody><tr><th>Version</th><th>Changes</th></tr>
1265<tr><td>v6.12.0, v4.8.6</td>
1266<td><p>A deprecation code has been assigned.</p></td></tr>
1267<tr><td>v0.4.7</td>
1268<td><p>Documentation-only deprecation.</p></td></tr>
1269</tbody></table>
1270</details>
1271</div>
1272<p>Type: Documentation-only</p>
1273<p>The <a href="fs.html#fslchmodsyncpath-mode"><code>fs.lchmodSync(path, mode)</code></a> API is deprecated.</p>
1274<h4 id="DEP0037">DEP0037: <code>fs.lchown(path, uid, gid, callback)</code><span><a class="mark" href="#dep0037-fslchownpath-uid-gid-callback" id="dep0037-fslchownpath-uid-gid-callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0037_fs_lchown_path_uid_gid_callback"></a></h4>
1275<div class="api_metadata">
1276<details class="changelog"><summary>History</summary>
1277<table>
1278<tbody><tr><th>Version</th><th>Changes</th></tr>
1279<tr><td>v10.6.0</td>
1280<td><p>Deprecation revoked.</p></td></tr>
1281<tr><td>v6.12.0, v4.8.6</td>
1282<td><p>A deprecation code has been assigned.</p></td></tr>
1283<tr><td>v0.4.7</td>
1284<td><p>Documentation-only deprecation.</p></td></tr>
1285</tbody></table>
1286</details>
1287</div>
1288<p>Type: Deprecation revoked</p>
1289<p>The <a href="fs.html#fslchownpath-uid-gid-callback"><code>fs.lchown(path, uid, gid, callback)</code></a> API was deprecated. The
1290deprecation was revoked because the requisite supporting APIs were added in
1291libuv.</p>
1292<h4 id="DEP0038">DEP0038: <code>fs.lchownSync(path, uid, gid)</code><span><a class="mark" href="#dep0038-fslchownsyncpath-uid-gid" id="dep0038-fslchownsyncpath-uid-gid">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0038_fs_lchownsync_path_uid_gid"></a></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>v10.6.0</td>
1298<td><p>Deprecation revoked.</p></td></tr>
1299<tr><td>v6.12.0, v4.8.6</td>
1300<td><p>A deprecation code has been assigned.</p></td></tr>
1301<tr><td>v0.4.7</td>
1302<td><p>Documentation-only deprecation.</p></td></tr>
1303</tbody></table>
1304</details>
1305</div>
1306<p>Type: Deprecation revoked</p>
1307<p>The <a href="fs.html#fslchownsyncpath-uid-gid"><code>fs.lchownSync(path, uid, gid)</code></a> API was deprecated. The deprecation was
1308revoked because the requisite supporting APIs were added in libuv.</p>
1309<h4 id="DEP0039">DEP0039: <code>require.extensions</code><span><a class="mark" href="#dep0039-requireextensions" id="dep0039-requireextensions">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0039_require_extensions"></a></h4>
1310<div class="api_metadata">
1311<details class="changelog"><summary>History</summary>
1312<table>
1313<tbody><tr><th>Version</th><th>Changes</th></tr>
1314<tr><td>v6.12.0, v4.8.6</td>
1315<td><p>A deprecation code has been assigned.</p></td></tr>
1316<tr><td>v0.10.6</td>
1317<td><p>Documentation-only deprecation.</p></td></tr>
1318</tbody></table>
1319</details>
1320</div>
1321<p>Type: Documentation-only</p>
1322<p>The <a href="modules.html#requireextensions"><code>require.extensions</code></a> property is deprecated.</p>
1323<h4 id="DEP0040">DEP0040: <code>node:punycode</code> module<span><a class="mark" href="#dep0040-nodepunycode-module" id="dep0040-nodepunycode-module">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0040_node_punycode_module"></a></h4>
1324<div class="api_metadata">
1325<details class="changelog"><summary>History</summary>
1326<table>
1327<tbody><tr><th>Version</th><th>Changes</th></tr>
1328<tr><td>v16.6.0</td>
1329<td><p>Added support for <code>--pending-deprecation</code>.</p></td></tr>
1330<tr><td>v7.0.0</td>
1331<td><p>Documentation-only deprecation.</p></td></tr>
1332</tbody></table>
1333</details>
1334</div>
1335<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
1336<p>The <a href="punycode.html"><code>punycode</code></a> module is deprecated. Please use a userland alternative
1337instead.</p>
1338<h4 id="DEP0041">DEP0041: <code>NODE_REPL_HISTORY_FILE</code> environment variable<span><a class="mark" href="#dep0041-node_repl_history_file-environment-variable" id="dep0041-node_repl_history_file-environment-variable">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0041_node_repl_history_file_environment_variable"></a></h4>
1339<div class="api_metadata">
1340<details class="changelog"><summary>History</summary>
1341<table>
1342<tbody><tr><th>Version</th><th>Changes</th></tr>
1343<tr><td>v10.0.0</td>
1344<td><p>End-of-Life.</p></td></tr>
1345<tr><td>v6.12.0, v4.8.6</td>
1346<td><p>A deprecation code has been assigned.</p></td></tr>
1347<tr><td>v3.0.0</td>
1348<td><p>Documentation-only deprecation.</p></td></tr>
1349</tbody></table>
1350</details>
1351</div>
1352<p>Type: End-of-Life</p>
1353<p>The <code>NODE_REPL_HISTORY_FILE</code> environment variable was removed. Please use
1354<code>NODE_REPL_HISTORY</code> instead.</p>
1355<h4 id="DEP0042">DEP0042: <code>tls.CryptoStream</code><span><a class="mark" href="#dep0042-tlscryptostream" id="dep0042-tlscryptostream">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0042_tls_cryptostream"></a></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>v10.0.0</td>
1361<td><p>End-of-Life.</p></td></tr>
1362<tr><td>v6.12.0, v4.8.6</td>
1363<td><p>A deprecation code has been assigned.</p></td></tr>
1364<tr><td>v0.11.3</td>
1365<td><p>Documentation-only deprecation.</p></td></tr>
1366</tbody></table>
1367</details>
1368</div>
1369<p>Type: End-of-Life</p>
1370<p>The <a href="tls.html#class-tlscryptostream"><code>tls.CryptoStream</code></a> class was removed. Please use
1371<a href="tls.html#class-tlstlssocket"><code>tls.TLSSocket</code></a> instead.</p>
1372<h4 id="DEP0043">DEP0043: <code>tls.SecurePair</code><span><a class="mark" href="#dep0043-tlssecurepair" id="dep0043-tlssecurepair">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0043_tls_securepair"></a></h4>
1373<div class="api_metadata">
1374<details class="changelog"><summary>History</summary>
1375<table>
1376<tbody><tr><th>Version</th><th>Changes</th></tr>
1377<tr><td>v8.0.0</td>
1378<td><p>Runtime deprecation.</p></td></tr>
1379<tr><td>v6.12.0</td>
1380<td><p>A deprecation code has been assigned.</p></td></tr>
1381<tr><td>v6.0.0</td>
1382<td><p>Documentation-only deprecation.</p></td></tr>
1383<tr><td>v0.11.15</td>
1384<td><p>Deprecation revoked.</p></td></tr>
1385<tr><td>v0.11.3</td>
1386<td><p>Runtime deprecation.</p></td></tr>
1387</tbody></table>
1388</details>
1389</div>
1390<p>Type: Documentation-only</p>
1391<p>The <a href="tls.html#class-tlssecurepair"><code>tls.SecurePair</code></a> class is deprecated. Please use
1392<a href="tls.html#class-tlstlssocket"><code>tls.TLSSocket</code></a> instead.</p>
1393<h4 id="DEP0044">DEP0044: <code>util.isArray()</code><span><a class="mark" href="#dep0044-utilisarray" id="dep0044-utilisarray">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0044_util_isarray"></a></h4>
1394<div class="api_metadata">
1395<details class="changelog"><summary>History</summary>
1396<table>
1397<tbody><tr><th>Version</th><th>Changes</th></tr>
1398<tr><td>v6.12.0, v4.8.6</td>
1399<td><p>A deprecation code has been assigned.</p></td></tr>
1400<tr><td>v4.0.0, v3.3.1</td>
1401<td><p>Documentation-only deprecation.</p></td></tr>
1402</tbody></table>
1403</details>
1404</div>
1405<p>Type: Documentation-only</p>
1406<p>The <a href="util.html#utilisarrayobject"><code>util.isArray()</code></a> API is deprecated. Please use <code>Array.isArray()</code>
1407instead.</p>
1408<h4 id="DEP0045">DEP0045: <code>util.isBoolean()</code><span><a class="mark" href="#dep0045-utilisboolean" id="dep0045-utilisboolean">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0045_util_isboolean"></a></h4>
1409<div class="api_metadata">
1410<details class="changelog"><summary>History</summary>
1411<table>
1412<tbody><tr><th>Version</th><th>Changes</th></tr>
1413<tr><td>v6.12.0, v4.8.6</td>
1414<td><p>A deprecation code has been assigned.</p></td></tr>
1415<tr><td>v4.0.0, v3.3.1</td>
1416<td><p>Documentation-only deprecation.</p></td></tr>
1417</tbody></table>
1418</details>
1419</div>
1420<p>Type: Documentation-only</p>
1421<p>The <a href="util.html#utilisbooleanobject"><code>util.isBoolean()</code></a> API is deprecated.</p>
1422<h4 id="DEP0046">DEP0046: <code>util.isBuffer()</code><span><a class="mark" href="#dep0046-utilisbuffer" id="dep0046-utilisbuffer">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0046_util_isbuffer"></a></h4>
1423<div class="api_metadata">
1424<details class="changelog"><summary>History</summary>
1425<table>
1426<tbody><tr><th>Version</th><th>Changes</th></tr>
1427<tr><td>v6.12.0, v4.8.6</td>
1428<td><p>A deprecation code has been assigned.</p></td></tr>
1429<tr><td>v4.0.0, v3.3.1</td>
1430<td><p>Documentation-only deprecation.</p></td></tr>
1431</tbody></table>
1432</details>
1433</div>
1434<p>Type: Documentation-only</p>
1435<p>The <a href="util.html#utilisbufferobject"><code>util.isBuffer()</code></a> API is deprecated. Please use
1436<a href="buffer.html#static-method-bufferisbufferobj"><code>Buffer.isBuffer()</code></a> instead.</p>
1437<h4 id="DEP0047">DEP0047: <code>util.isDate()</code><span><a class="mark" href="#dep0047-utilisdate" id="dep0047-utilisdate">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0047_util_isdate"></a></h4>
1438<div class="api_metadata">
1439<details class="changelog"><summary>History</summary>
1440<table>
1441<tbody><tr><th>Version</th><th>Changes</th></tr>
1442<tr><td>v6.12.0, v4.8.6</td>
1443<td><p>A deprecation code has been assigned.</p></td></tr>
1444<tr><td>v4.0.0, v3.3.1</td>
1445<td><p>Documentation-only deprecation.</p></td></tr>
1446</tbody></table>
1447</details>
1448</div>
1449<p>Type: Documentation-only</p>
1450<p>The <a href="util.html#utilisdateobject"><code>util.isDate()</code></a> API is deprecated.</p>
1451<h4 id="DEP0048">DEP0048: <code>util.isError()</code><span><a class="mark" href="#dep0048-utiliserror" id="dep0048-utiliserror">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0048_util_iserror"></a></h4>
1452<div class="api_metadata">
1453<details class="changelog"><summary>History</summary>
1454<table>
1455<tbody><tr><th>Version</th><th>Changes</th></tr>
1456<tr><td>v6.12.0, v4.8.6</td>
1457<td><p>A deprecation code has been assigned.</p></td></tr>
1458<tr><td>v4.0.0, v3.3.1</td>
1459<td><p>Documentation-only deprecation.</p></td></tr>
1460</tbody></table>
1461</details>
1462</div>
1463<p>Type: Documentation-only</p>
1464<p>The <a href="util.html#utiliserrorobject"><code>util.isError()</code></a> API is deprecated.</p>
1465<h4 id="DEP0049">DEP0049: <code>util.isFunction()</code><span><a class="mark" href="#dep0049-utilisfunction" id="dep0049-utilisfunction">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0049_util_isfunction"></a></h4>
1466<div class="api_metadata">
1467<details class="changelog"><summary>History</summary>
1468<table>
1469<tbody><tr><th>Version</th><th>Changes</th></tr>
1470<tr><td>v6.12.0, v4.8.6</td>
1471<td><p>A deprecation code has been assigned.</p></td></tr>
1472<tr><td>v4.0.0, v3.3.1</td>
1473<td><p>Documentation-only deprecation.</p></td></tr>
1474</tbody></table>
1475</details>
1476</div>
1477<p>Type: Documentation-only</p>
1478<p>The <a href="util.html#utilisfunctionobject"><code>util.isFunction()</code></a> API is deprecated.</p>
1479<h4 id="DEP0050">DEP0050: <code>util.isNull()</code><span><a class="mark" href="#dep0050-utilisnull" id="dep0050-utilisnull">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0050_util_isnull"></a></h4>
1480<div class="api_metadata">
1481<details class="changelog"><summary>History</summary>
1482<table>
1483<tbody><tr><th>Version</th><th>Changes</th></tr>
1484<tr><td>v6.12.0, v4.8.6</td>
1485<td><p>A deprecation code has been assigned.</p></td></tr>
1486<tr><td>v4.0.0, v3.3.1</td>
1487<td><p>Documentation-only deprecation.</p></td></tr>
1488</tbody></table>
1489</details>
1490</div>
1491<p>Type: Documentation-only</p>
1492<p>The <a href="util.html#utilisnullobject"><code>util.isNull()</code></a> API is deprecated.</p>
1493<h4 id="DEP0051">DEP0051: <code>util.isNullOrUndefined()</code><span><a class="mark" href="#dep0051-utilisnullorundefined" id="dep0051-utilisnullorundefined">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0051_util_isnullorundefined"></a></h4>
1494<div class="api_metadata">
1495<details class="changelog"><summary>History</summary>
1496<table>
1497<tbody><tr><th>Version</th><th>Changes</th></tr>
1498<tr><td>v6.12.0, v4.8.6</td>
1499<td><p>A deprecation code has been assigned.</p></td></tr>
1500<tr><td>v4.0.0, v3.3.1</td>
1501<td><p>Documentation-only deprecation.</p></td></tr>
1502</tbody></table>
1503</details>
1504</div>
1505<p>Type: Documentation-only</p>
1506<p>The <a href="util.html#utilisnullorundefinedobject"><code>util.isNullOrUndefined()</code></a> API is deprecated.</p>
1507<h4 id="DEP0052">DEP0052: <code>util.isNumber()</code><span><a class="mark" href="#dep0052-utilisnumber" id="dep0052-utilisnumber">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0052_util_isnumber"></a></h4>
1508<div class="api_metadata">
1509<details class="changelog"><summary>History</summary>
1510<table>
1511<tbody><tr><th>Version</th><th>Changes</th></tr>
1512<tr><td>v6.12.0, v4.8.6</td>
1513<td><p>A deprecation code has been assigned.</p></td></tr>
1514<tr><td>v4.0.0, v3.3.1</td>
1515<td><p>Documentation-only deprecation.</p></td></tr>
1516</tbody></table>
1517</details>
1518</div>
1519<p>Type: Documentation-only</p>
1520<p>The <a href="util.html#utilisnumberobject"><code>util.isNumber()</code></a> API is deprecated.</p>
1521<h4 id="DEP0053">DEP0053: <code>util.isObject()</code><span><a class="mark" href="#dep0053-utilisobject" id="dep0053-utilisobject">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0053_util_isobject"></a></h4>
1522<div class="api_metadata">
1523<details class="changelog"><summary>History</summary>
1524<table>
1525<tbody><tr><th>Version</th><th>Changes</th></tr>
1526<tr><td>v6.12.0, v4.8.6</td>
1527<td><p>A deprecation code has been assigned.</p></td></tr>
1528<tr><td>v4.0.0, v3.3.1</td>
1529<td><p>Documentation-only deprecation.</p></td></tr>
1530</tbody></table>
1531</details>
1532</div>
1533<p>Type: Documentation-only</p>
1534<p>The <a href="util.html#utilisobjectobject"><code>util.isObject()</code></a> API is deprecated.</p>
1535<h4 id="DEP0054">DEP0054: <code>util.isPrimitive()</code><span><a class="mark" href="#dep0054-utilisprimitive" id="dep0054-utilisprimitive">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0054_util_isprimitive"></a></h4>
1536<div class="api_metadata">
1537<details class="changelog"><summary>History</summary>
1538<table>
1539<tbody><tr><th>Version</th><th>Changes</th></tr>
1540<tr><td>v6.12.0, v4.8.6</td>
1541<td><p>A deprecation code has been assigned.</p></td></tr>
1542<tr><td>v4.0.0, v3.3.1</td>
1543<td><p>Documentation-only deprecation.</p></td></tr>
1544</tbody></table>
1545</details>
1546</div>
1547<p>Type: Documentation-only</p>
1548<p>The <a href="util.html#utilisprimitiveobject"><code>util.isPrimitive()</code></a> API is deprecated.</p>
1549<h4 id="DEP0055">DEP0055: <code>util.isRegExp()</code><span><a class="mark" href="#dep0055-utilisregexp" id="dep0055-utilisregexp">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0055_util_isregexp"></a></h4>
1550<div class="api_metadata">
1551<details class="changelog"><summary>History</summary>
1552<table>
1553<tbody><tr><th>Version</th><th>Changes</th></tr>
1554<tr><td>v6.12.0, v4.8.6</td>
1555<td><p>A deprecation code has been assigned.</p></td></tr>
1556<tr><td>v4.0.0, v3.3.1</td>
1557<td><p>Documentation-only deprecation.</p></td></tr>
1558</tbody></table>
1559</details>
1560</div>
1561<p>Type: Documentation-only</p>
1562<p>The <a href="util.html#utilisregexpobject"><code>util.isRegExp()</code></a> API is deprecated.</p>
1563<h4 id="DEP0056">DEP0056: <code>util.isString()</code><span><a class="mark" href="#dep0056-utilisstring" id="dep0056-utilisstring">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0056_util_isstring"></a></h4>
1564<div class="api_metadata">
1565<details class="changelog"><summary>History</summary>
1566<table>
1567<tbody><tr><th>Version</th><th>Changes</th></tr>
1568<tr><td>v6.12.0, v4.8.6</td>
1569<td><p>A deprecation code has been assigned.</p></td></tr>
1570<tr><td>v4.0.0, v3.3.1</td>
1571<td><p>Documentation-only deprecation.</p></td></tr>
1572</tbody></table>
1573</details>
1574</div>
1575<p>Type: Documentation-only</p>
1576<p>The <a href="util.html#utilisstringobject"><code>util.isString()</code></a> API is deprecated.</p>
1577<h4 id="DEP0057">DEP0057: <code>util.isSymbol()</code><span><a class="mark" href="#dep0057-utilissymbol" id="dep0057-utilissymbol">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0057_util_issymbol"></a></h4>
1578<div class="api_metadata">
1579<details class="changelog"><summary>History</summary>
1580<table>
1581<tbody><tr><th>Version</th><th>Changes</th></tr>
1582<tr><td>v6.12.0, v4.8.6</td>
1583<td><p>A deprecation code has been assigned.</p></td></tr>
1584<tr><td>v4.0.0, v3.3.1</td>
1585<td><p>Documentation-only deprecation.</p></td></tr>
1586</tbody></table>
1587</details>
1588</div>
1589<p>Type: Documentation-only</p>
1590<p>The <a href="util.html#utilissymbolobject"><code>util.isSymbol()</code></a> API is deprecated.</p>
1591<h4 id="DEP0058">DEP0058: <code>util.isUndefined()</code><span><a class="mark" href="#dep0058-utilisundefined" id="dep0058-utilisundefined">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0058_util_isundefined"></a></h4>
1592<div class="api_metadata">
1593<details class="changelog"><summary>History</summary>
1594<table>
1595<tbody><tr><th>Version</th><th>Changes</th></tr>
1596<tr><td>v6.12.0, v4.8.6</td>
1597<td><p>A deprecation code has been assigned.</p></td></tr>
1598<tr><td>v4.0.0, v3.3.1</td>
1599<td><p>Documentation-only deprecation.</p></td></tr>
1600</tbody></table>
1601</details>
1602</div>
1603<p>Type: Documentation-only</p>
1604<p>The <a href="util.html#utilisundefinedobject"><code>util.isUndefined()</code></a> API is deprecated.</p>
1605<h4 id="DEP0059">DEP0059: <code>util.log()</code><span><a class="mark" href="#dep0059-utillog" id="dep0059-utillog">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0059_util_log"></a></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>v6.12.0</td>
1611<td><p>A deprecation code has been assigned.</p></td></tr>
1612<tr><td>v6.0.0</td>
1613<td><p>Documentation-only deprecation.</p></td></tr>
1614</tbody></table>
1615</details>
1616</div>
1617<p>Type: Documentation-only</p>
1618<p>The <a href="util.html#utillogstring"><code>util.log()</code></a> API is deprecated.</p>
1619<h4 id="DEP0060">DEP0060: <code>util._extend()</code><span><a class="mark" href="#dep0060-util_extend" id="dep0060-util_extend">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0060_util_extend"></a></h4>
1620<div class="api_metadata">
1621<details class="changelog"><summary>History</summary>
1622<table>
1623<tbody><tr><th>Version</th><th>Changes</th></tr>
1624<tr><td>v6.12.0</td>
1625<td><p>A deprecation code has been assigned.</p></td></tr>
1626<tr><td>v6.0.0</td>
1627<td><p>Documentation-only deprecation.</p></td></tr>
1628</tbody></table>
1629</details>
1630</div>
1631<p>Type: Documentation-only</p>
1632<p>The <a href="util.html#util_extendtarget-source"><code>util._extend()</code></a> API is deprecated.</p>
1633<h4 id="DEP0061">DEP0061: <code>fs.SyncWriteStream</code><span><a class="mark" href="#dep0061-fssyncwritestream" id="dep0061-fssyncwritestream">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0061_fs_syncwritestream"></a></h4>
1634<div class="api_metadata">
1635<details class="changelog"><summary>History</summary>
1636<table>
1637<tbody><tr><th>Version</th><th>Changes</th></tr>
1638<tr><td>v11.0.0</td>
1639<td><p>End-of-Life.</p></td></tr>
1640<tr><td>v8.0.0</td>
1641<td><p>Runtime deprecation.</p></td></tr>
1642<tr><td>v7.0.0</td>
1643<td><p>Documentation-only deprecation.</p></td></tr>
1644</tbody></table>
1645</details>
1646</div>
1647<p>Type: End-of-Life</p>
1648<p>The <code>fs.SyncWriteStream</code> class was never intended to be a publicly accessible
1649API and has been removed. No alternative API is available. Please use a userland
1650alternative.</p>
1651<h4 id="DEP0062">DEP0062: <code>node --debug</code><span><a class="mark" href="#dep0062-node---debug" id="dep0062-node---debug">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0062_node_debug"></a></h4>
1652<div class="api_metadata">
1653<details class="changelog"><summary>History</summary>
1654<table>
1655<tbody><tr><th>Version</th><th>Changes</th></tr>
1656<tr><td>v12.0.0</td>
1657<td><p>End-of-Life.</p></td></tr>
1658<tr><td>v8.0.0</td>
1659<td><p>Runtime deprecation.</p></td></tr>
1660</tbody></table>
1661</details>
1662</div>
1663<p>Type: End-of-Life</p>
1664<p><code>--debug</code> activates the legacy V8 debugger interface, which was removed as
1665of V8 5.8. It is replaced by Inspector which is activated with <code>--inspect</code>
1666instead.</p>
1667<h4 id="DEP0063">DEP0063: <code>ServerResponse.prototype.writeHeader()</code><span><a class="mark" href="#dep0063-serverresponseprototypewriteheader" id="dep0063-serverresponseprototypewriteheader">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0063_serverresponse_prototype_writeheader"></a></h4>
1668<div class="api_metadata">
1669<details class="changelog"><summary>History</summary>
1670<table>
1671<tbody><tr><th>Version</th><th>Changes</th></tr>
1672<tr><td>v8.0.0</td>
1673<td><p>Documentation-only deprecation.</p></td></tr>
1674</tbody></table>
1675</details>
1676</div>
1677<p>Type: Documentation-only</p>
1678<p>The <code>node:http</code> module <code>ServerResponse.prototype.writeHeader()</code> API is
1679deprecated. Please use <code>ServerResponse.prototype.writeHead()</code> instead.</p>
1680<p>The <code>ServerResponse.prototype.writeHeader()</code> method was never documented as an
1681officially supported API.</p>
1682<h4 id="DEP0064">DEP0064: <code>tls.createSecurePair()</code><span><a class="mark" href="#dep0064-tlscreatesecurepair" id="dep0064-tlscreatesecurepair">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0064_tls_createsecurepair"></a></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>v8.0.0</td>
1688<td><p>Runtime deprecation.</p></td></tr>
1689<tr><td>v6.12.0</td>
1690<td><p>A deprecation code has been assigned.</p></td></tr>
1691<tr><td>v6.0.0</td>
1692<td><p>Documentation-only deprecation.</p></td></tr>
1693<tr><td>v0.11.15</td>
1694<td><p>Deprecation revoked.</p></td></tr>
1695<tr><td>v0.11.3</td>
1696<td><p>Runtime deprecation.</p></td></tr>
1697</tbody></table>
1698</details>
1699</div>
1700<p>Type: Runtime</p>
1701<p>The <code>tls.createSecurePair()</code> API was deprecated in documentation in Node.js
17020.11.3. Users should use <code>tls.Socket</code> instead.</p>
1703<h4 id="DEP0065">DEP0065: <code>repl.REPL_MODE_MAGIC</code> and <code>NODE_REPL_MODE=magic</code><span><a class="mark" href="#dep0065-replrepl_mode_magic-and-node_repl_modemagic" id="dep0065-replrepl_mode_magic-and-node_repl_modemagic">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0065_repl_repl_mode_magic_and_node_repl_mode_magic"></a></h4>
1704<div class="api_metadata">
1705<details class="changelog"><summary>History</summary>
1706<table>
1707<tbody><tr><th>Version</th><th>Changes</th></tr>
1708<tr><td>v10.0.0</td>
1709<td><p>End-of-Life.</p></td></tr>
1710<tr><td>v8.0.0</td>
1711<td><p>Documentation-only deprecation.</p></td></tr>
1712</tbody></table>
1713</details>
1714</div>
1715<p>Type: End-of-Life</p>
1716<p>The <code>node:repl</code> module's <code>REPL_MODE_MAGIC</code> constant, used for <code>replMode</code> option,
1717has been removed. Its behavior has been functionally identical to that of
1718<code>REPL_MODE_SLOPPY</code> since Node.js 6.0.0, when V8 5.0 was imported. Please use
1719<code>REPL_MODE_SLOPPY</code> instead.</p>
1720<p>The <code>NODE_REPL_MODE</code> environment variable is used to set the underlying
1721<code>replMode</code> of an interactive <code>node</code> session. Its value, <code>magic</code>, is also
1722removed. Please use <code>sloppy</code> instead.</p>
1723<h4 id="DEP0066">DEP0066: <code>OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames</code><span><a class="mark" href="#dep0066-outgoingmessageprototype_headers-outgoingmessageprototype_headernames" id="dep0066-outgoingmessageprototype_headers-outgoingmessageprototype_headernames">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames"></a></h4>
1724<div class="api_metadata">
1725<details class="changelog"><summary>History</summary>
1726<table>
1727<tbody><tr><th>Version</th><th>Changes</th></tr>
1728<tr><td>v12.0.0</td>
1729<td><p>Runtime deprecation.</p></td></tr>
1730<tr><td>v8.0.0</td>
1731<td><p>Documentation-only deprecation.</p></td></tr>
1732</tbody></table>
1733</details>
1734</div>
1735<p>Type: Runtime</p>
1736<p>The <code>node:http</code> module <code>OutgoingMessage.prototype._headers</code> and
1737<code>OutgoingMessage.prototype._headerNames</code> properties are deprecated. Use one of
1738the public methods (e.g. <code>OutgoingMessage.prototype.getHeader()</code>,
1739<code>OutgoingMessage.prototype.getHeaders()</code>,
1740<code>OutgoingMessage.prototype.getHeaderNames()</code>,
1741<code>OutgoingMessage.prototype.getRawHeaderNames()</code>,
1742<code>OutgoingMessage.prototype.hasHeader()</code>,
1743<code>OutgoingMessage.prototype.removeHeader()</code>,
1744<code>OutgoingMessage.prototype.setHeader()</code>) for working with outgoing headers.</p>
1745<p>The <code>OutgoingMessage.prototype._headers</code> and
1746<code>OutgoingMessage.prototype._headerNames</code> properties were never documented as
1747officially supported properties.</p>
1748<h4 id="DEP0067">DEP0067: <code>OutgoingMessage.prototype._renderHeaders</code><span><a class="mark" href="#dep0067-outgoingmessageprototype_renderheaders" id="dep0067-outgoingmessageprototype_renderheaders">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0067_outgoingmessage_prototype_renderheaders"></a></h4>
1749<div class="api_metadata">
1750<details class="changelog"><summary>History</summary>
1751<table>
1752<tbody><tr><th>Version</th><th>Changes</th></tr>
1753<tr><td>v8.0.0</td>
1754<td><p>Documentation-only deprecation.</p></td></tr>
1755</tbody></table>
1756</details>
1757</div>
1758<p>Type: Documentation-only</p>
1759<p>The <code>node:http</code> module <code>OutgoingMessage.prototype._renderHeaders()</code> API is
1760deprecated.</p>
1761<p>The <code>OutgoingMessage.prototype._renderHeaders</code> property was never documented as
1762an officially supported API.</p>
1763<h4 id="DEP0068">DEP0068: <code>node debug</code><span><a class="mark" href="#dep0068-node-debug" id="dep0068-node-debug">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0068_node_debug"></a></h4>
1764<div class="api_metadata">
1765<details class="changelog"><summary>History</summary>
1766<table>
1767<tbody><tr><th>Version</th><th>Changes</th></tr>
1768<tr><td>v15.0.0</td>
1769<td><p>The legacy <code>node debug</code> command was removed.</p></td></tr>
1770<tr><td>v8.0.0</td>
1771<td><p>Runtime deprecation.</p></td></tr>
1772</tbody></table>
1773</details>
1774</div>
1775<p>Type: End-of-Life</p>
1776<p><code>node debug</code> corresponds to the legacy CLI debugger which has been replaced with
1777a V8-inspector based CLI debugger available through <code>node inspect</code>.</p>
1778<h4 id="DEP0069">DEP0069: <code>vm.runInDebugContext(string)</code><span><a class="mark" href="#dep0069-vmrunindebugcontextstring" id="dep0069-vmrunindebugcontextstring">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0069_vm_runindebugcontext_string"></a></h4>
1779<div class="api_metadata">
1780<details class="changelog"><summary>History</summary>
1781<table>
1782<tbody><tr><th>Version</th><th>Changes</th></tr>
1783<tr><td>v10.0.0</td>
1784<td><p>End-of-Life.</p></td></tr>
1785<tr><td>v9.0.0</td>
1786<td><p>Runtime deprecation.</p></td></tr>
1787<tr><td>v8.0.0</td>
1788<td><p>Documentation-only deprecation.</p></td></tr>
1789</tbody></table>
1790</details>
1791</div>
1792<p>Type: End-of-Life</p>
1793<p>DebugContext has been removed in V8 and is not available in Node.js 10+.</p>
1794<p>DebugContext was an experimental API.</p>
1795<h4 id="DEP0070">DEP0070: <code>async_hooks.currentId()</code><span><a class="mark" href="#dep0070-async_hookscurrentid" id="dep0070-async_hookscurrentid">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0070_async_hooks_currentid"></a></h4>
1796<div class="api_metadata">
1797<details class="changelog"><summary>History</summary>
1798<table>
1799<tbody><tr><th>Version</th><th>Changes</th></tr>
1800<tr><td>v9.0.0</td>
1801<td><p>End-of-Life.</p></td></tr>
1802<tr><td>v8.2.0</td>
1803<td><p>Runtime deprecation.</p></td></tr>
1804</tbody></table>
1805</details>
1806</div>
1807<p>Type: End-of-Life</p>
1808<p><code>async_hooks.currentId()</code> was renamed to <code>async_hooks.executionAsyncId()</code> for
1809clarity.</p>
1810<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1811<h4 id="DEP0071">DEP0071: <code>async_hooks.triggerId()</code><span><a class="mark" href="#dep0071-async_hookstriggerid" id="dep0071-async_hookstriggerid">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0071_async_hooks_triggerid"></a></h4>
1812<div class="api_metadata">
1813<details class="changelog"><summary>History</summary>
1814<table>
1815<tbody><tr><th>Version</th><th>Changes</th></tr>
1816<tr><td>v9.0.0</td>
1817<td><p>End-of-Life.</p></td></tr>
1818<tr><td>v8.2.0</td>
1819<td><p>Runtime deprecation.</p></td></tr>
1820</tbody></table>
1821</details>
1822</div>
1823<p>Type: End-of-Life</p>
1824<p><code>async_hooks.triggerId()</code> was renamed to <code>async_hooks.triggerAsyncId()</code> for
1825clarity.</p>
1826<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1827<h4 id="DEP0072">DEP0072: <code>async_hooks.AsyncResource.triggerId()</code><span><a class="mark" href="#dep0072-async_hooksasyncresourcetriggerid" id="dep0072-async_hooksasyncresourcetriggerid">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0072_async_hooks_asyncresource_triggerid"></a></h4>
1828<div class="api_metadata">
1829<details class="changelog"><summary>History</summary>
1830<table>
1831<tbody><tr><th>Version</th><th>Changes</th></tr>
1832<tr><td>v9.0.0</td>
1833<td><p>End-of-Life.</p></td></tr>
1834<tr><td>v8.2.0</td>
1835<td><p>Runtime deprecation.</p></td></tr>
1836</tbody></table>
1837</details>
1838</div>
1839<p>Type: End-of-Life</p>
1840<p><code>async_hooks.AsyncResource.triggerId()</code> was renamed to
1841<code>async_hooks.AsyncResource.triggerAsyncId()</code> for clarity.</p>
1842<p>This change was made while <code>async_hooks</code> was an experimental API.</p>
1843<h4 id="DEP0073">DEP0073: Several internal properties of <code>net.Server</code><span><a class="mark" href="#dep0073-several-internal-properties-of-netserver" id="dep0073-several-internal-properties-of-netserver">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0073_several_internal_properties_of_net_server"></a></h4>
1844<div class="api_metadata">
1845<details class="changelog"><summary>History</summary>
1846<table>
1847<tbody><tr><th>Version</th><th>Changes</th></tr>
1848<tr><td>v10.0.0</td>
1849<td><p>End-of-Life.</p></td></tr>
1850<tr><td>v9.0.0</td>
1851<td><p>Runtime deprecation.</p></td></tr>
1852</tbody></table>
1853</details>
1854</div>
1855<p>Type: End-of-Life</p>
1856<p>Accessing several internal, undocumented properties of <code>net.Server</code> instances
1857with inappropriate names is deprecated.</p>
1858<p>As the original API was undocumented and not generally useful for non-internal
1859code, no replacement API is provided.</p>
1860<h4 id="DEP0074">DEP0074: <code>REPLServer.bufferedCommand</code><span><a class="mark" href="#dep0074-replserverbufferedcommand" id="dep0074-replserverbufferedcommand">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0074_replserver_bufferedcommand"></a></h4>
1861<div class="api_metadata">
1862<details class="changelog"><summary>History</summary>
1863<table>
1864<tbody><tr><th>Version</th><th>Changes</th></tr>
1865<tr><td>v15.0.0</td>
1866<td><p>End-of-Life.</p></td></tr>
1867<tr><td>v9.0.0</td>
1868<td><p>Runtime deprecation.</p></td></tr>
1869</tbody></table>
1870</details>
1871</div>
1872<p>Type: End-of-Life</p>
1873<p>The <code>REPLServer.bufferedCommand</code> property was deprecated in favor of
1874<a href="repl.html#replserverclearbufferedcommand"><code>REPLServer.clearBufferedCommand()</code></a>.</p>
1875<h4 id="DEP0075">DEP0075: <code>REPLServer.parseREPLKeyword()</code><span><a class="mark" href="#dep0075-replserverparsereplkeyword" id="dep0075-replserverparsereplkeyword">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0075_replserver_parsereplkeyword"></a></h4>
1876<div class="api_metadata">
1877<details class="changelog"><summary>History</summary>
1878<table>
1879<tbody><tr><th>Version</th><th>Changes</th></tr>
1880<tr><td>v15.0.0</td>
1881<td><p>End-of-Life.</p></td></tr>
1882<tr><td>v9.0.0</td>
1883<td><p>Runtime deprecation.</p></td></tr>
1884</tbody></table>
1885</details>
1886</div>
1887<p>Type: End-of-Life</p>
1888<p><code>REPLServer.parseREPLKeyword()</code> was removed from userland visibility.</p>
1889<h4 id="DEP0076">DEP0076: <code>tls.parseCertString()</code><span><a class="mark" href="#dep0076-tlsparsecertstring" id="dep0076-tlsparsecertstring">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0076_tls_parsecertstring"></a></h4>
1890<div class="api_metadata">
1891<details class="changelog"><summary>History</summary>
1892<table>
1893<tbody><tr><th>Version</th><th>Changes</th></tr>
1894<tr><td>v18.0.0</td>
1895<td><p>End-of-Life.</p></td></tr>
1896<tr><td>v9.0.0</td>
1897<td><p>Runtime deprecation.</p></td></tr>
1898<tr><td>v8.6.0</td>
1899<td><p>Documentation-only deprecation.</p></td></tr>
1900</tbody></table>
1901</details>
1902</div>
1903<p>Type: End-of-Life</p>
1904<p><code>tls.parseCertString()</code> was a trivial parsing helper that was made public by
1905mistake. While it was supposed to parse certificate subject and issuer strings,
1906it never handled multi-value Relative Distinguished Names correctly.</p>
1907<p>Earlier versions of this document suggested using <code>querystring.parse()</code> as an
1908alternative to <code>tls.parseCertString()</code>. However, <code>querystring.parse()</code> also does
1909not handle all certificate subjects correctly and should not be used.</p>
1910<h4 id="DEP0077">DEP0077: <code>Module._debug()</code><span><a class="mark" href="#dep0077-module_debug" id="dep0077-module_debug">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0077_module_debug"></a></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>v9.0.0</td>
1916<td><p>Runtime deprecation.</p></td></tr>
1917</tbody></table>
1918</details>
1919</div>
1920<p>Type: Runtime</p>
1921<p><code>Module._debug()</code> is deprecated.</p>
1922<p>The <code>Module._debug()</code> function was never documented as an officially
1923supported API.</p>
1924<h4 id="DEP0078">DEP0078: <code>REPLServer.turnOffEditorMode()</code><span><a class="mark" href="#dep0078-replserverturnoffeditormode" id="dep0078-replserverturnoffeditormode">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0078_replserver_turnoffeditormode"></a></h4>
1925<div class="api_metadata">
1926<details class="changelog"><summary>History</summary>
1927<table>
1928<tbody><tr><th>Version</th><th>Changes</th></tr>
1929<tr><td>v15.0.0</td>
1930<td><p>End-of-Life.</p></td></tr>
1931<tr><td>v9.0.0</td>
1932<td><p>Runtime deprecation.</p></td></tr>
1933</tbody></table>
1934</details>
1935</div>
1936<p>Type: End-of-Life</p>
1937<p><code>REPLServer.turnOffEditorMode()</code> was removed from userland visibility.</p>
1938<h4 id="DEP0079">DEP0079: Custom inspection function on objects via <code>.inspect()</code><span><a class="mark" href="#dep0079-custom-inspection-function-on-objects-via-inspect" id="dep0079-custom-inspection-function-on-objects-via-inspect">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0079_custom_inspection_function_on_objects_via_inspect"></a></h4>
1939<div class="api_metadata">
1940<details class="changelog"><summary>History</summary>
1941<table>
1942<tbody><tr><th>Version</th><th>Changes</th></tr>
1943<tr><td>v11.0.0</td>
1944<td><p>End-of-Life.</p></td></tr>
1945<tr><td>v10.0.0</td>
1946<td><p>Runtime deprecation.</p></td></tr>
1947<tr><td>v8.7.0</td>
1948<td><p>Documentation-only deprecation.</p></td></tr>
1949</tbody></table>
1950</details>
1951</div>
1952<p>Type: End-of-Life</p>
1953<p>Using a property named <code>inspect</code> on an object to specify a custom inspection
1954function for <a href="util.html#utilinspectobject-options"><code>util.inspect()</code></a> is deprecated. Use <a href="util.html#utilinspectcustom"><code>util.inspect.custom</code></a>
1955instead. For backward compatibility with Node.js prior to version 6.4.0, both
1956can be specified.</p>
1957<h4 id="DEP0080">DEP0080: <code>path._makeLong()</code><span><a class="mark" href="#dep0080-path_makelong" id="dep0080-path_makelong">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0080_path_makelong"></a></h4>
1958<div class="api_metadata">
1959<details class="changelog"><summary>History</summary>
1960<table>
1961<tbody><tr><th>Version</th><th>Changes</th></tr>
1962<tr><td>v9.0.0</td>
1963<td><p>Documentation-only deprecation.</p></td></tr>
1964</tbody></table>
1965</details>
1966</div>
1967<p>Type: Documentation-only</p>
1968<p>The internal <code>path._makeLong()</code> was not intended for public use. However,
1969userland modules have found it useful. The internal API is deprecated
1970and replaced with an identical, public <code>path.toNamespacedPath()</code> method.</p>
1971<h4 id="DEP0081">DEP0081: <code>fs.truncate()</code> using a file descriptor<span><a class="mark" href="#dep0081-fstruncate-using-a-file-descriptor" id="dep0081-fstruncate-using-a-file-descriptor">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0081_fs_truncate_using_a_file_descriptor"></a></h4>
1972<div class="api_metadata">
1973<details class="changelog"><summary>History</summary>
1974<table>
1975<tbody><tr><th>Version</th><th>Changes</th></tr>
1976<tr><td>v9.0.0</td>
1977<td><p>Runtime deprecation.</p></td></tr>
1978</tbody></table>
1979</details>
1980</div>
1981<p>Type: Runtime</p>
1982<p><code>fs.truncate()</code> <code>fs.truncateSync()</code> usage with a file descriptor is
1983deprecated. Please use <code>fs.ftruncate()</code> or <code>fs.ftruncateSync()</code> to work with
1984file descriptors.</p>
1985<h4 id="DEP0082">DEP0082: <code>REPLServer.prototype.memory()</code><span><a class="mark" href="#dep0082-replserverprototypememory" id="dep0082-replserverprototypememory">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0082_replserver_prototype_memory"></a></h4>
1986<div class="api_metadata">
1987<details class="changelog"><summary>History</summary>
1988<table>
1989<tbody><tr><th>Version</th><th>Changes</th></tr>
1990<tr><td>v15.0.0</td>
1991<td><p>End-of-Life.</p></td></tr>
1992<tr><td>v9.0.0</td>
1993<td><p>Runtime deprecation.</p></td></tr>
1994</tbody></table>
1995</details>
1996</div>
1997<p>Type: End-of-Life</p>
1998<p><code>REPLServer.prototype.memory()</code> is only necessary for the internal mechanics of
1999the <code>REPLServer</code> itself. Do not use this function.</p>
2000<h4 id="DEP0083">DEP0083: Disabling ECDH by setting <code>ecdhCurve</code> to <code>false</code><span><a class="mark" href="#dep0083-disabling-ecdh-by-setting-ecdhcurve-to-false" id="dep0083-disabling-ecdh-by-setting-ecdhcurve-to-false">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0083_disabling_ecdh_by_setting_ecdhcurve_to_false"></a></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>v10.0.0</td>
2006<td><p>End-of-Life.</p></td></tr>
2007<tr><td>v9.2.0</td>
2008<td><p>Runtime deprecation.</p></td></tr>
2009</tbody></table>
2010</details>
2011</div>
2012<p>Type: End-of-Life.</p>
2013<p>The <code>ecdhCurve</code> option to <code>tls.createSecureContext()</code> and <code>tls.TLSSocket</code> could
2014be set to <code>false</code> to disable ECDH entirely on the server only. This mode was
2015deprecated in preparation for migrating to OpenSSL 1.1.0 and consistency with
2016the client and is now unsupported. Use the <code>ciphers</code> parameter instead.</p>
2017<h4 id="DEP0084">DEP0084: requiring bundled internal dependencies<span><a class="mark" href="#dep0084-requiring-bundled-internal-dependencies" id="dep0084-requiring-bundled-internal-dependencies">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0084_requiring_bundled_internal_dependencies"></a></h4>
2018<div class="api_metadata">
2019<details class="changelog"><summary>History</summary>
2020<table>
2021<tbody><tr><th>Version</th><th>Changes</th></tr>
2022<tr><td>v12.0.0</td>
2023<td><p>This functionality has been removed.</p></td></tr>
2024<tr><td>v10.0.0</td>
2025<td><p>Runtime deprecation.</p></td></tr>
2026</tbody></table>
2027</details>
2028</div>
2029<p>Type: End-of-Life</p>
2030<p>Since Node.js versions 4.4.0 and 5.2.0, several modules only intended for
2031internal usage were mistakenly exposed to user code through <code>require()</code>. These
2032modules were:</p>
2033<ul>
2034<li><code>v8/tools/codemap</code></li>
2035<li><code>v8/tools/consarray</code></li>
2036<li><code>v8/tools/csvparser</code></li>
2037<li><code>v8/tools/logreader</code></li>
2038<li><code>v8/tools/profile_view</code></li>
2039<li><code>v8/tools/profile</code></li>
2040<li><code>v8/tools/SourceMap</code></li>
2041<li><code>v8/tools/splaytree</code></li>
2042<li><code>v8/tools/tickprocessor-driver</code></li>
2043<li><code>v8/tools/tickprocessor</code></li>
2044<li><code>node-inspect/lib/_inspect</code> (from 7.6.0)</li>
2045<li><code>node-inspect/lib/internal/inspect_client</code> (from 7.6.0)</li>
2046<li><code>node-inspect/lib/internal/inspect_repl</code> (from 7.6.0)</li>
2047</ul>
2048<p>The <code>v8/*</code> modules do not have any exports, and if not imported in a specific
2049order would in fact throw errors. As such there are virtually no legitimate use
2050cases for importing them through <code>require()</code>.</p>
2051<p>On the other hand, <code>node-inspect</code> can be installed locally through a package
2052manager, as it is published on the npm registry under the same name. No source
2053code modification is necessary if that is done.</p>
2054<h4 id="DEP0085">DEP0085: AsyncHooks sensitive API<span><a class="mark" href="#dep0085-asynchooks-sensitive-api" id="dep0085-asynchooks-sensitive-api">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0085_asynchooks_sensitive_api"></a></h4>
2055<div class="api_metadata">
2056<details class="changelog"><summary>History</summary>
2057<table>
2058<tbody><tr><th>Version</th><th>Changes</th></tr>
2059<tr><td>v10.0.0</td>
2060<td><p>End-of-Life.</p></td></tr>
2061<tr><td>v9.4.0, v8.10.0</td>
2062<td><p>Runtime deprecation.</p></td></tr>
2063</tbody></table>
2064</details>
2065</div>
2066<p>Type: End-of-Life</p>
2067<p>The AsyncHooks sensitive API was never documented and had various minor issues.
2068Use the <code>AsyncResource</code> API instead. See
2069<a href="https://github.com/nodejs/node/issues/15572">https://github.com/nodejs/node/issues/15572</a>.</p>
2070<h4 id="DEP0086">DEP0086: Remove <code>runInAsyncIdScope</code><span><a class="mark" href="#dep0086-remove-runinasyncidscope" id="dep0086-remove-runinasyncidscope">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0086_remove_runinasyncidscope"></a></h4>
2071<div class="api_metadata">
2072<details class="changelog"><summary>History</summary>
2073<table>
2074<tbody><tr><th>Version</th><th>Changes</th></tr>
2075<tr><td>v10.0.0</td>
2076<td><p>End-of-Life.</p></td></tr>
2077<tr><td>v9.4.0, v8.10.0</td>
2078<td><p>Runtime deprecation.</p></td></tr>
2079</tbody></table>
2080</details>
2081</div>
2082<p>Type: End-of-Life</p>
2083<p><code>runInAsyncIdScope</code> doesn't emit the <code>'before'</code> or <code>'after'</code> event and can thus
2084cause a lot of issues. See <a href="https://github.com/nodejs/node/issues/14328">https://github.com/nodejs/node/issues/14328</a>.</p>
2085<!-- md-lint skip-deprecation DEP0087 -->
2086<!-- md-lint skip-deprecation DEP0088 -->
2087<h4 id="DEP0089">DEP0089: <code>require('node:assert')</code><span><a class="mark" href="#dep0089-requirenodeassert" id="dep0089-requirenodeassert">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0089_require_node_assert"></a></h4>
2088<div class="api_metadata">
2089<details class="changelog"><summary>History</summary>
2090<table>
2091<tbody><tr><th>Version</th><th>Changes</th></tr>
2092<tr><td>v12.8.0</td>
2093<td><p>Deprecation revoked.</p></td></tr>
2094<tr><td>v9.9.0, v8.13.0</td>
2095<td><p>Documentation-only deprecation.</p></td></tr>
2096</tbody></table>
2097</details>
2098</div>
2099<p>Type: Deprecation revoked</p>
2100<p>Importing assert directly was not recommended as the exposed functions use
2101loose equality checks. The deprecation was revoked because use of the
2102<code>node:assert</code> module is not discouraged, and the deprecation caused developer
2103confusion.</p>
2104<h4 id="DEP0090">DEP0090: Invalid GCM authentication tag lengths<span><a class="mark" href="#dep0090-invalid-gcm-authentication-tag-lengths" id="dep0090-invalid-gcm-authentication-tag-lengths">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0090_invalid_gcm_authentication_tag_lengths"></a></h4>
2105<div class="api_metadata">
2106<details class="changelog"><summary>History</summary>
2107<table>
2108<tbody><tr><th>Version</th><th>Changes</th></tr>
2109<tr><td>v11.0.0</td>
2110<td><p>End-of-Life.</p></td></tr>
2111<tr><td>v10.0.0</td>
2112<td><p>Runtime deprecation.</p></td></tr>
2113</tbody></table>
2114</details>
2115</div>
2116<p>Type: End-of-Life</p>
2117<p>Node.js used to support all GCM authentication tag lengths which are accepted by
2118OpenSSL when calling <a href="crypto.html#deciphersetauthtagbuffer-encoding"><code>decipher.setAuthTag()</code></a>. Beginning with Node.js
2119v11.0.0, only authentication tag lengths of 128, 120, 112, 104, 96, 64, and 32
2120bits are allowed. Authentication tags of other lengths are invalid per
2121<a href="https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf">NIST SP 800-38D</a>.</p>
2122<h4 id="DEP0091">DEP0091: <code>crypto.DEFAULT_ENCODING</code><span><a class="mark" href="#dep0091-cryptodefault_encoding" id="dep0091-cryptodefault_encoding">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0091_crypto_default_encoding"></a></h4>
2123<div class="api_metadata">
2124<details class="changelog"><summary>History</summary>
2125<table>
2126<tbody><tr><th>Version</th><th>Changes</th></tr>
2127<tr><td>v10.0.0</td>
2128<td><p>Runtime deprecation.</p></td></tr>
2129</tbody></table>
2130</details>
2131</div>
2132<p>Type: Runtime</p>
2133<p>The <a href="crypto.html#cryptodefault_encoding"><code>crypto.DEFAULT_ENCODING</code></a> property is deprecated.</p>
2134<h4 id="DEP0092">DEP0092: Top-level <code>this</code> bound to <code>module.exports</code><span><a class="mark" href="#dep0092-top-level-this-bound-to-moduleexports" id="dep0092-top-level-this-bound-to-moduleexports">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0092_top_level_this_bound_to_module_exports"></a></h4>
2135<div class="api_metadata">
2136<details class="changelog"><summary>History</summary>
2137<table>
2138<tbody><tr><th>Version</th><th>Changes</th></tr>
2139<tr><td>v10.0.0</td>
2140<td><p>Documentation-only deprecation.</p></td></tr>
2141</tbody></table>
2142</details>
2143</div>
2144<p>Type: Documentation-only</p>
2145<p>Assigning properties to the top-level <code>this</code> as an alternative
2146to <code>module.exports</code> is deprecated. Developers should use <code>exports</code>
2147or <code>module.exports</code> instead.</p>
2148<h4 id="DEP0093">DEP0093: <code>crypto.fips</code> is deprecated and replaced<span><a class="mark" href="#dep0093-cryptofips-is-deprecated-and-replaced" id="dep0093-cryptofips-is-deprecated-and-replaced">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0093_crypto_fips_is_deprecated_and_replaced"></a></h4>
2149<div class="api_metadata">
2150<details class="changelog"><summary>History</summary>
2151<table>
2152<tbody><tr><th>Version</th><th>Changes</th></tr>
2153<tr><td>v10.0.0</td>
2154<td><p>Documentation-only deprecation.</p></td></tr>
2155</tbody></table>
2156</details>
2157</div>
2158<p>Type: Documentation-only</p>
2159<p>The <a href="crypto.html#cryptofips"><code>crypto.fips</code></a> property is deprecated. Please use <code>crypto.setFips()</code>
2160and <code>crypto.getFips()</code> instead.</p>
2161<h4 id="DEP0094">DEP0094: Using <code>assert.fail()</code> with more than one argument<span><a class="mark" href="#dep0094-using-assertfail-with-more-than-one-argument" id="dep0094-using-assertfail-with-more-than-one-argument">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0094_using_assert_fail_with_more_than_one_argument"></a></h4>
2162<div class="api_metadata">
2163<details class="changelog"><summary>History</summary>
2164<table>
2165<tbody><tr><th>Version</th><th>Changes</th></tr>
2166<tr><td>v10.0.0</td>
2167<td><p>Runtime deprecation.</p></td></tr>
2168</tbody></table>
2169</details>
2170</div>
2171<p>Type: Runtime</p>
2172<p>Using <code>assert.fail()</code> with more than one argument is deprecated. Use
2173<code>assert.fail()</code> with only one argument or use a different <code>node:assert</code> module
2174method.</p>
2175<h4 id="DEP0095">DEP0095: <code>timers.enroll()</code><span><a class="mark" href="#dep0095-timersenroll" id="dep0095-timersenroll">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0095_timers_enroll"></a></h4>
2176<div class="api_metadata">
2177<details class="changelog"><summary>History</summary>
2178<table>
2179<tbody><tr><th>Version</th><th>Changes</th></tr>
2180<tr><td>v10.0.0</td>
2181<td><p>Runtime deprecation.</p></td></tr>
2182</tbody></table>
2183</details>
2184</div>
2185<p>Type: Runtime</p>
2186<p><code>timers.enroll()</code> is deprecated. Please use the publicly documented
2187<a href="timers.html#settimeoutcallback-delay-args"><code>setTimeout()</code></a> or <a href="timers.html#setintervalcallback-delay-args"><code>setInterval()</code></a> instead.</p>
2188<h4 id="DEP0096">DEP0096: <code>timers.unenroll()</code><span><a class="mark" href="#dep0096-timersunenroll" id="dep0096-timersunenroll">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0096_timers_unenroll"></a></h4>
2189<div class="api_metadata">
2190<details class="changelog"><summary>History</summary>
2191<table>
2192<tbody><tr><th>Version</th><th>Changes</th></tr>
2193<tr><td>v10.0.0</td>
2194<td><p>Runtime deprecation.</p></td></tr>
2195</tbody></table>
2196</details>
2197</div>
2198<p>Type: Runtime</p>
2199<p><code>timers.unenroll()</code> is deprecated. Please use the publicly documented
2200<a href="timers.html#cleartimeouttimeout"><code>clearTimeout()</code></a> or <a href="timers.html#clearintervaltimeout"><code>clearInterval()</code></a> instead.</p>
2201<h4 id="DEP0097">DEP0097: <code>MakeCallback</code> with <code>domain</code> property<span><a class="mark" href="#dep0097-makecallback-with-domain-property" id="dep0097-makecallback-with-domain-property">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0097_makecallback_with_domain_property"></a></h4>
2202<div class="api_metadata">
2203<details class="changelog"><summary>History</summary>
2204<table>
2205<tbody><tr><th>Version</th><th>Changes</th></tr>
2206<tr><td>v10.0.0</td>
2207<td><p>Runtime deprecation.</p></td></tr>
2208</tbody></table>
2209</details>
2210</div>
2211<p>Type: Runtime</p>
2212<p>Users of <code>MakeCallback</code> that add the <code>domain</code> property to carry context,
2213should start using the <code>async_context</code> variant of <code>MakeCallback</code> or
2214<code>CallbackScope</code>, or the high-level <code>AsyncResource</code> class.</p>
2215<h4 id="DEP0098">DEP0098: AsyncHooks embedder <code>AsyncResource.emitBefore</code> and <code>AsyncResource.emitAfter</code> APIs<span><a class="mark" href="#dep0098-asynchooks-embedder-asyncresourceemitbefore-and-asyncresourceemitafter-apis" id="dep0098-asynchooks-embedder-asyncresourceemitbefore-and-asyncresourceemitafter-apis">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis"></a></h4>
2216<div class="api_metadata">
2217<details class="changelog"><summary>History</summary>
2218<table>
2219<tbody><tr><th>Version</th><th>Changes</th></tr>
2220<tr><td>v12.0.0</td>
2221<td><p>End-of-Life.</p></td></tr>
2222<tr><td>v10.0.0, v9.6.0, v8.12.0</td>
2223<td><p>Runtime deprecation.</p></td></tr>
2224</tbody></table>
2225</details>
2226</div>
2227<p>Type: End-of-Life</p>
2228<p>The embedded API provided by AsyncHooks exposes <code>.emitBefore()</code> and
2229<code>.emitAfter()</code> methods which are very easy to use incorrectly which can lead
2230to unrecoverable errors.</p>
2231<p>Use <a href="async_context.html#asyncresourceruninasyncscopefn-thisarg-args"><code>asyncResource.runInAsyncScope()</code></a> API instead which provides a much
2232safer, and more convenient, alternative. See
2233<a href="https://github.com/nodejs/node/pull/18513">https://github.com/nodejs/node/pull/18513</a>.</p>
2234<h4 id="DEP0099">DEP0099: Async context-unaware <code>node::MakeCallback</code> C++ APIs<span><a class="mark" href="#dep0099-async-context-unaware-nodemakecallback-c-apis" id="dep0099-async-context-unaware-nodemakecallback-c-apis">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0099_async_context_unaware_node_makecallback_c_apis"></a></h4>
2235<div class="api_metadata">
2236<details class="changelog"><summary>History</summary>
2237<table>
2238<tbody><tr><th>Version</th><th>Changes</th></tr>
2239<tr><td>v10.0.0</td>
2240<td><p>Compile-time deprecation.</p></td></tr>
2241</tbody></table>
2242</details>
2243</div>
2244<p>Type: Compile-time</p>
2245<p>Certain versions of <code>node::MakeCallback</code> APIs available to native addons are
2246deprecated. Please use the versions of the API that accept an <code>async_context</code>
2247parameter.</p>
2248<h4 id="DEP0100">DEP0100: <code>process.assert()</code><span><a class="mark" href="#dep0100-processassert" id="dep0100-processassert">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0100_process_assert"></a></h4>
2249<div class="api_metadata">
2250<details class="changelog"><summary>History</summary>
2251<table>
2252<tbody><tr><th>Version</th><th>Changes</th></tr>
2253<tr><td>v10.0.0</td>
2254<td><p>Runtime deprecation.</p></td></tr>
2255<tr><td>v0.3.7</td>
2256<td><p>Documentation-only deprecation.</p></td></tr>
2257</tbody></table>
2258</details>
2259</div>
2260<p>Type: Runtime</p>
2261<p><code>process.assert()</code> is deprecated. Please use the <a href="assert.html"><code>assert</code></a> module instead.</p>
2262<p>This was never a documented feature.</p>
2263<h4 id="DEP0101">DEP0101: <code>--with-lttng</code><span><a class="mark" href="#dep0101---with-lttng" id="dep0101---with-lttng">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0101_with_lttng"></a></h4>
2264<div class="api_metadata">
2265<details class="changelog"><summary>History</summary>
2266<table>
2267<tbody><tr><th>Version</th><th>Changes</th></tr>
2268<tr><td>v10.0.0</td>
2269<td><p>End-of-Life.</p></td></tr>
2270</tbody></table>
2271</details>
2272</div>
2273<p>Type: End-of-Life</p>
2274<p>The <code>--with-lttng</code> compile-time option has been removed.</p>
2275<h4 id="DEP0102">DEP0102: Using <code>noAssert</code> in <code>Buffer#(read|write)</code> operations<span><a class="mark" href="#dep0102-using-noassert-in-bufferreadwrite-operations" id="dep0102-using-noassert-in-bufferreadwrite-operations">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0102_using_noassert_in_buffer_read_write_operations"></a></h4>
2276<div class="api_metadata">
2277<details class="changelog"><summary>History</summary>
2278<table>
2279<tbody><tr><th>Version</th><th>Changes</th></tr>
2280<tr><td>v10.0.0</td>
2281<td><p>End-of-Life.</p></td></tr>
2282</tbody></table>
2283</details>
2284</div>
2285<p>Type: End-of-Life</p>
2286<p>Using the <code>noAssert</code> argument has no functionality anymore. All input is
2287verified regardless of the value of <code>noAssert</code>. Skipping the verification
2288could lead to hard-to-find errors and crashes.</p>
2289<h4 id="DEP0103">DEP0103: <code>process.binding('util').is[...]</code> typechecks<span><a class="mark" href="#dep0103-processbindingutilis-typechecks" id="dep0103-processbindingutilis-typechecks">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0103_process_binding_util_is_typechecks"></a></h4>
2290<div class="api_metadata">
2291<details class="changelog"><summary>History</summary>
2292<table>
2293<tbody><tr><th>Version</th><th>Changes</th></tr>
2294<tr><td>v10.9.0</td>
2295<td><p>Superseded by <a href="#DEP0111">DEP0111</a>.</p></td></tr>
2296<tr><td>v10.0.0</td>
2297<td><p>Documentation-only deprecation.</p></td></tr>
2298</tbody></table>
2299</details>
2300</div>
2301<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2302<p>Using <code>process.binding()</code> in general should be avoided. The type checking
2303methods in particular can be replaced by using <a href="util.html#utiltypes"><code>util.types</code></a>.</p>
2304<p>This deprecation has been superseded by the deprecation of the
2305<code>process.binding()</code> API (<a href="#DEP0111">DEP0111</a>).</p>
2306<h4 id="DEP0104">DEP0104: <code>process.env</code> string coercion<span><a class="mark" href="#dep0104-processenv-string-coercion" id="dep0104-processenv-string-coercion">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0104_process_env_string_coercion"></a></h4>
2307<div class="api_metadata">
2308<details class="changelog"><summary>History</summary>
2309<table>
2310<tbody><tr><th>Version</th><th>Changes</th></tr>
2311<tr><td>v10.0.0</td>
2312<td><p>Documentation-only deprecation.</p></td></tr>
2313</tbody></table>
2314</details>
2315</div>
2316<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2317<p>When assigning a non-string property to <a href="process.html#processenv"><code>process.env</code></a>, the assigned value is
2318implicitly converted to a string. This behavior is deprecated if the assigned
2319value is not a string, boolean, or number. In the future, such assignment might
2320result in a thrown error. Please convert the property to a string before
2321assigning it to <code>process.env</code>.</p>
2322<h4 id="DEP0105">DEP0105: <code>decipher.finaltol</code><span><a class="mark" href="#dep0105-decipherfinaltol" id="dep0105-decipherfinaltol">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0105_decipher_finaltol"></a></h4>
2323<div class="api_metadata">
2324<details class="changelog"><summary>History</summary>
2325<table>
2326<tbody><tr><th>Version</th><th>Changes</th></tr>
2327<tr><td>v11.0.0</td>
2328<td><p>End-of-Life.</p></td></tr>
2329<tr><td>v10.0.0</td>
2330<td><p>Runtime deprecation.</p></td></tr>
2331</tbody></table>
2332</details>
2333</div>
2334<p>Type: End-of-Life</p>
2335<p><code>decipher.finaltol()</code> has never been documented and was an alias for
2336<a href="crypto.html#decipherfinaloutputencoding"><code>decipher.final()</code></a>. This API has been removed, and it is recommended to use
2337<a href="crypto.html#decipherfinaloutputencoding"><code>decipher.final()</code></a> instead.</p>
2338<h4 id="DEP0106">DEP0106: <code>crypto.createCipher</code> and <code>crypto.createDecipher</code><span><a class="mark" href="#dep0106-cryptocreatecipher-and-cryptocreatedecipher" id="dep0106-cryptocreatecipher-and-cryptocreatedecipher">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0106_crypto_createcipher_and_crypto_createdecipher"></a></h4>
2339<div class="api_metadata">
2340<details class="changelog"><summary>History</summary>
2341<table>
2342<tbody><tr><th>Version</th><th>Changes</th></tr>
2343<tr><td>v11.0.0</td>
2344<td><p>Runtime deprecation.</p></td></tr>
2345<tr><td>v10.0.0</td>
2346<td><p>Documentation-only deprecation.</p></td></tr>
2347</tbody></table>
2348</details>
2349</div>
2350<p>Type: Runtime</p>
2351<p>Using <a href="crypto.html#cryptocreatecipheralgorithm-password-options"><code>crypto.createCipher()</code></a> and <a href="crypto.html#cryptocreatedecipheralgorithm-password-options"><code>crypto.createDecipher()</code></a> must be
2352avoided as they use a weak key derivation function (MD5 with no salt) and static
2353initialization vectors. It is recommended to derive a key using
2354<a href="crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback"><code>crypto.pbkdf2()</code></a> or <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> with random salts and to use
2355<a href="crypto.html#cryptocreatecipherivalgorithm-key-iv-options"><code>crypto.createCipheriv()</code></a> and <a href="crypto.html#cryptocreatedecipherivalgorithm-key-iv-options"><code>crypto.createDecipheriv()</code></a> to obtain the
2356<a href="crypto.html#class-cipher"><code>Cipher</code></a> and <a href="crypto.html#class-decipher"><code>Decipher</code></a> objects respectively.</p>
2357<h4 id="DEP0107">DEP0107: <code>tls.convertNPNProtocols()</code><span><a class="mark" href="#dep0107-tlsconvertnpnprotocols" id="dep0107-tlsconvertnpnprotocols">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0107_tls_convertnpnprotocols"></a></h4>
2358<div class="api_metadata">
2359<details class="changelog"><summary>History</summary>
2360<table>
2361<tbody><tr><th>Version</th><th>Changes</th></tr>
2362<tr><td>v11.0.0</td>
2363<td><p>End-of-Life.</p></td></tr>
2364<tr><td>v10.0.0</td>
2365<td><p>Runtime deprecation.</p></td></tr>
2366</tbody></table>
2367</details>
2368</div>
2369<p>Type: End-of-Life</p>
2370<p>This was an undocumented helper function not intended for use outside Node.js
2371core and obsoleted by the removal of NPN (Next Protocol Negotiation) support.</p>
2372<h4 id="DEP0108">DEP0108: <code>zlib.bytesRead</code><span><a class="mark" href="#dep0108-zlibbytesread" id="dep0108-zlibbytesread">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0108_zlib_bytesread"></a></h4>
2373<div class="api_metadata">
2374<details class="changelog"><summary>History</summary>
2375<table>
2376<tbody><tr><th>Version</th><th>Changes</th></tr>
2377<tr><td>v11.0.0</td>
2378<td><p>Runtime deprecation.</p></td></tr>
2379<tr><td>v10.0.0</td>
2380<td><p>Documentation-only deprecation.</p></td></tr>
2381</tbody></table>
2382</details>
2383</div>
2384<p>Type: Runtime</p>
2385<p>Deprecated alias for <a href="zlib.html#zlibbyteswritten"><code>zlib.bytesWritten</code></a>. This original name was chosen
2386because it also made sense to interpret the value as the number of bytes
2387read by the engine, but is inconsistent with other streams in Node.js that
2388expose values under these names.</p>
2389<h4 id="DEP0109">DEP0109: <code>http</code>, <code>https</code>, and <code>tls</code> support for invalid URLs<span><a class="mark" href="#dep0109-http-https-and-tls-support-for-invalid-urls" id="dep0109-http-https-and-tls-support-for-invalid-urls">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0109_http_https_and_tls_support_for_invalid_urls"></a></h4>
2390<div class="api_metadata">
2391<details class="changelog"><summary>History</summary>
2392<table>
2393<tbody><tr><th>Version</th><th>Changes</th></tr>
2394<tr><td>v16.0.0</td>
2395<td><p>End-of-Life.</p></td></tr>
2396<tr><td>v11.0.0</td>
2397<td><p>Runtime deprecation.</p></td></tr>
2398</tbody></table>
2399</details>
2400</div>
2401<p>Type: End-of-Life</p>
2402<p>Some previously supported (but strictly invalid) URLs were accepted through the
2403<a href="http.html#httprequestoptions-callback"><code>http.request()</code></a>, <a href="http.html#httpgetoptions-callback"><code>http.get()</code></a>, <a href="https.html#httpsrequestoptions-callback"><code>https.request()</code></a>,
2404<a href="https.html#httpsgetoptions-callback"><code>https.get()</code></a>, and <a href="tls.html#tlscheckserveridentityhostname-cert"><code>tls.checkServerIdentity()</code></a> APIs because those were
2405accepted by the legacy <code>url.parse()</code> API. The mentioned APIs now use the WHATWG
2406URL parser that requires strictly valid URLs. Passing an invalid URL is
2407deprecated and support will be removed in the future.</p>
2408<h4 id="DEP0110">DEP0110: <code>vm.Script</code> cached data<span><a class="mark" href="#dep0110-vmscript-cached-data" id="dep0110-vmscript-cached-data">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0110_vm_script_cached_data"></a></h4>
2409<div class="api_metadata">
2410<details class="changelog"><summary>History</summary>
2411<table>
2412<tbody><tr><th>Version</th><th>Changes</th></tr>
2413<tr><td>v10.6.0</td>
2414<td><p>Documentation-only deprecation.</p></td></tr>
2415</tbody></table>
2416</details>
2417</div>
2418<p>Type: Documentation-only</p>
2419<p>The <code>produceCachedData</code> option is deprecated. Use
2420<a href="vm.html#scriptcreatecacheddata"><code>script.createCachedData()</code></a> instead.</p>
2421<h4 id="DEP0111">DEP0111: <code>process.binding()</code><span><a class="mark" href="#dep0111-processbinding" id="dep0111-processbinding">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0111_process_binding"></a></h4>
2422<div class="api_metadata">
2423<details class="changelog"><summary>History</summary>
2424<table>
2425<tbody><tr><th>Version</th><th>Changes</th></tr>
2426<tr><td>v11.12.0</td>
2427<td><p>Added support for <code>--pending-deprecation</code>.</p></td></tr>
2428<tr><td>v10.9.0</td>
2429<td><p>Documentation-only deprecation.</p></td></tr>
2430</tbody></table>
2431</details>
2432</div>
2433<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2434<p><code>process.binding()</code> is for use by Node.js internal code only.</p>
2435<p>While <code>process.binding()</code> has not reached End-of-Life status in general, it is
2436unavailable when <a href="permissions.html#policies">policies</a> are enabled.</p>
2437<h4 id="DEP0112">DEP0112: <code>dgram</code> private APIs<span><a class="mark" href="#dep0112-dgram-private-apis" id="dep0112-dgram-private-apis">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0112_dgram_private_apis"></a></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>v11.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>The <code>node:dgram</code> module previously contained several APIs that were never meant
2449to accessed outside of Node.js core: <code>Socket.prototype._handle</code>,
2450<code>Socket.prototype._receiving</code>, <code>Socket.prototype._bindState</code>,
2451<code>Socket.prototype._queue</code>, <code>Socket.prototype._reuseAddr</code>,
2452<code>Socket.prototype._healthCheck()</code>, <code>Socket.prototype._stopReceiving()</code>, and
2453<code>dgram._createSocketHandle()</code>.</p>
2454<h4 id="DEP0113">DEP0113: <code>Cipher.setAuthTag()</code>, <code>Decipher.getAuthTag()</code><span><a class="mark" href="#dep0113-ciphersetauthtag-deciphergetauthtag" id="dep0113-ciphersetauthtag-deciphergetauthtag">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0113_cipher_setauthtag_decipher_getauthtag"></a></h4>
2455<div class="api_metadata">
2456<details class="changelog"><summary>History</summary>
2457<table>
2458<tbody><tr><th>Version</th><th>Changes</th></tr>
2459<tr><td>v12.0.0</td>
2460<td><p>End-of-Life.</p></td></tr>
2461<tr><td>v11.0.0</td>
2462<td><p>Runtime deprecation.</p></td></tr>
2463</tbody></table>
2464</details>
2465</div>
2466<p>Type: End-of-Life</p>
2467<p><code>Cipher.setAuthTag()</code> and <code>Decipher.getAuthTag()</code> are no longer available. They
2468were never documented and would throw when called.</p>
2469<h4 id="DEP0114">DEP0114: <code>crypto._toBuf()</code><span><a class="mark" href="#dep0114-crypto_tobuf" id="dep0114-crypto_tobuf">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0114_crypto_tobuf"></a></h4>
2470<div class="api_metadata">
2471<details class="changelog"><summary>History</summary>
2472<table>
2473<tbody><tr><th>Version</th><th>Changes</th></tr>
2474<tr><td>v12.0.0</td>
2475<td><p>End-of-Life.</p></td></tr>
2476<tr><td>v11.0.0</td>
2477<td><p>Runtime deprecation.</p></td></tr>
2478</tbody></table>
2479</details>
2480</div>
2481<p>Type: End-of-Life</p>
2482<p>The <code>crypto._toBuf()</code> function was not designed to be used by modules outside
2483of Node.js core and was removed.</p>
2484<!--lint disable nodejs-yaml-comments -->
2485<h4 id="DEP0115">DEP0115: <code>crypto.prng()</code>, <code>crypto.pseudoRandomBytes()</code>, <code>crypto.rng()</code><span><a class="mark" href="#dep0115-cryptoprng-cryptopseudorandombytes-cryptorng" id="dep0115-cryptoprng-cryptopseudorandombytes-cryptorng">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng"></a></h4>
2486<div class="api_metadata">
2487<details class="changelog"><summary>History</summary>
2488<table>
2489<tbody><tr><th>Version</th><th>Changes</th></tr>
2490<tr><td>v11.0.0</td>
2491<td><p>Added documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
2492</tbody></table>
2493</details>
2494</div>
2495<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2496<!--lint enable nodejs-yaml-comments -->
2497<p>In recent versions of Node.js, there is no difference between
2498<a href="crypto.html#cryptorandombytessize-callback"><code>crypto.randomBytes()</code></a> and <code>crypto.pseudoRandomBytes()</code>. The latter is
2499deprecated along with the undocumented aliases <code>crypto.prng()</code> and
2500<code>crypto.rng()</code> in favor of <a href="crypto.html#cryptorandombytessize-callback"><code>crypto.randomBytes()</code></a> and might be removed in a
2501future release.</p>
2502<h4 id="DEP0116">DEP0116: Legacy URL API<span><a class="mark" href="#dep0116-legacy-url-api" id="dep0116-legacy-url-api">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0116_legacy_url_api"></a></h4>
2503<div class="api_metadata">
2504<details class="changelog"><summary>History</summary>
2505<table>
2506<tbody><tr><th>Version</th><th>Changes</th></tr>
2507<tr><td>v18.13.0</td>
2508<td><p>`url.parse()` is deprecated again in DEP0169.</p></td></tr>
2509<tr><td>v15.13.0, v14.17.0</td>
2510<td><p>Deprecation revoked. Status changed to "Legacy".</p></td></tr>
2511<tr><td>v11.0.0</td>
2512<td><p>Documentation-only deprecation.</p></td></tr>
2513</tbody></table>
2514</details>
2515</div>
2516<p>Type: Deprecation revoked</p>
2517<p>The <a href="url.html#legacy-url-api">legacy URL API</a> is deprecated. This includes <a href="url.html#urlformaturlobject"><code>url.format()</code></a>,
2518<a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a>, <a href="url.html#urlresolvefrom-to"><code>url.resolve()</code></a>, and the <a href="url.html#legacy-urlobject">legacy <code>urlObject</code></a>. Please
2519use the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> instead.</p>
2520<h4 id="DEP0117">DEP0117: Native crypto handles<span><a class="mark" href="#dep0117-native-crypto-handles" id="dep0117-native-crypto-handles">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0117_native_crypto_handles"></a></h4>
2521<div class="api_metadata">
2522<details class="changelog"><summary>History</summary>
2523<table>
2524<tbody><tr><th>Version</th><th>Changes</th></tr>
2525<tr><td>v12.0.0</td>
2526<td><p>End-of-Life.</p></td></tr>
2527<tr><td>v11.0.0</td>
2528<td><p>Runtime deprecation.</p></td></tr>
2529</tbody></table>
2530</details>
2531</div>
2532<p>Type: End-of-Life</p>
2533<p>Previous versions of Node.js exposed handles to internal native objects through
2534the <code>_handle</code> property of the <code>Cipher</code>, <code>Decipher</code>, <code>DiffieHellman</code>,
2535<code>DiffieHellmanGroup</code>, <code>ECDH</code>, <code>Hash</code>, <code>Hmac</code>, <code>Sign</code>, and <code>Verify</code> classes.
2536The <code>_handle</code> property has been removed because improper use of the native
2537object can lead to crashing the application.</p>
2538<h4 id="DEP0118">DEP0118: <code>dns.lookup()</code> support for a falsy host name<span><a class="mark" href="#dep0118-dnslookup-support-for-a-falsy-host-name" id="dep0118-dnslookup-support-for-a-falsy-host-name">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0118_dns_lookup_support_for_a_falsy_host_name"></a></h4>
2539<div class="api_metadata">
2540<details class="changelog"><summary>History</summary>
2541<table>
2542<tbody><tr><th>Version</th><th>Changes</th></tr>
2543<tr><td>v11.0.0</td>
2544<td><p>Runtime deprecation.</p></td></tr>
2545</tbody></table>
2546</details>
2547</div>
2548<p>Type: Runtime</p>
2549<p>Previous versions of Node.js supported <code>dns.lookup()</code> with a falsy host name
2550like <code>dns.lookup(false)</code> due to backward compatibility.
2551This behavior is undocumented and is thought to be unused in real world apps.
2552It will become an error in future versions of Node.js.</p>
2553<h4 id="DEP0119">DEP0119: <code>process.binding('uv').errname()</code> private API<span><a class="mark" href="#dep0119-processbindinguverrname-private-api" id="dep0119-processbindinguverrname-private-api">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0119_process_binding_uv_errname_private_api"></a></h4>
2554<div class="api_metadata">
2555<details class="changelog"><summary>History</summary>
2556<table>
2557<tbody><tr><th>Version</th><th>Changes</th></tr>
2558<tr><td>v11.0.0</td>
2559<td><p>Documentation-only deprecation.</p></td></tr>
2560</tbody></table>
2561</details>
2562</div>
2563<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2564<p><code>process.binding('uv').errname()</code> is deprecated. Please use
2565<a href="util.html#utilgetsystemerrornameerr"><code>util.getSystemErrorName()</code></a> instead.</p>
2566<h4 id="DEP0120">DEP0120: Windows Performance Counter support<span><a class="mark" href="#dep0120-windows-performance-counter-support" id="dep0120-windows-performance-counter-support">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0120_windows_performance_counter_support"></a></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>v12.0.0</td>
2572<td><p>End-of-Life.</p></td></tr>
2573<tr><td>v11.0.0</td>
2574<td><p>Runtime deprecation.</p></td></tr>
2575</tbody></table>
2576</details>
2577</div>
2578<p>Type: End-of-Life</p>
2579<p>Windows Performance Counter support has been removed from Node.js. The
2580undocumented <code>COUNTER_NET_SERVER_CONNECTION()</code>,
2581<code>COUNTER_NET_SERVER_CONNECTION_CLOSE()</code>, <code>COUNTER_HTTP_SERVER_REQUEST()</code>,
2582<code>COUNTER_HTTP_SERVER_RESPONSE()</code>, <code>COUNTER_HTTP_CLIENT_REQUEST()</code>, and
2583<code>COUNTER_HTTP_CLIENT_RESPONSE()</code> functions have been deprecated.</p>
2584<h4 id="DEP0121">DEP0121: <code>net._setSimultaneousAccepts()</code><span><a class="mark" href="#dep0121-net_setsimultaneousaccepts" id="dep0121-net_setsimultaneousaccepts">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0121_net_setsimultaneousaccepts"></a></h4>
2585<div class="api_metadata">
2586<details class="changelog"><summary>History</summary>
2587<table>
2588<tbody><tr><th>Version</th><th>Changes</th></tr>
2589<tr><td>v12.0.0</td>
2590<td><p>Runtime deprecation.</p></td></tr>
2591</tbody></table>
2592</details>
2593</div>
2594<p>Type: Runtime</p>
2595<p>The undocumented <code>net._setSimultaneousAccepts()</code> function was originally
2596intended for debugging and performance tuning when using the
2597<code>node:child_process</code> and <code>node:cluster</code> modules on Windows. The function is not
2598generally useful and is being removed. See discussion here:
2599<a href="https://github.com/nodejs/node/issues/18391">https://github.com/nodejs/node/issues/18391</a></p>
2600<h4 id="DEP0122">DEP0122: <code>tls</code> <code>Server.prototype.setOptions()</code><span><a class="mark" href="#dep0122-tls-serverprototypesetoptions" id="dep0122-tls-serverprototypesetoptions">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0122_tls_server_prototype_setoptions"></a></h4>
2601<div class="api_metadata">
2602<details class="changelog"><summary>History</summary>
2603<table>
2604<tbody><tr><th>Version</th><th>Changes</th></tr>
2605<tr><td>v12.0.0</td>
2606<td><p>Runtime deprecation.</p></td></tr>
2607</tbody></table>
2608</details>
2609</div>
2610<p>Type: Runtime</p>
2611<p>Please use <code>Server.prototype.setSecureContext()</code> instead.</p>
2612<h4 id="DEP0123">DEP0123: setting the TLS ServerName to an IP address<span><a class="mark" href="#dep0123-setting-the-tls-servername-to-an-ip-address" id="dep0123-setting-the-tls-servername-to-an-ip-address">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0123_setting_the_tls_servername_to_an_ip_address"></a></h4>
2613<div class="api_metadata">
2614<details class="changelog"><summary>History</summary>
2615<table>
2616<tbody><tr><th>Version</th><th>Changes</th></tr>
2617<tr><td>v12.0.0</td>
2618<td><p>Runtime deprecation.</p></td></tr>
2619</tbody></table>
2620</details>
2621</div>
2622<p>Type: Runtime</p>
2623<p>Setting the TLS ServerName to an IP address is not permitted by
2624<a href="https://tools.ietf.org/html/rfc6066#section-3">RFC 6066</a>. This will be ignored in a future version.</p>
2625<h4 id="DEP0124">DEP0124: using <code>REPLServer.rli</code><span><a class="mark" href="#dep0124-using-replserverrli" id="dep0124-using-replserverrli">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0124_using_replserver_rli"></a></h4>
2626<div class="api_metadata">
2627<details class="changelog"><summary>History</summary>
2628<table>
2629<tbody><tr><th>Version</th><th>Changes</th></tr>
2630<tr><td>v15.0.0</td>
2631<td><p>End-of-Life.</p></td></tr>
2632<tr><td>v12.0.0</td>
2633<td><p>Runtime deprecation.</p></td></tr>
2634</tbody></table>
2635</details>
2636</div>
2637<p>Type: End-of-Life</p>
2638<p>This property is a reference to the instance itself.</p>
2639<h4 id="DEP0125">DEP0125: <code>require('node:_stream_wrap')</code><span><a class="mark" href="#dep0125-requirenode_stream_wrap" id="dep0125-requirenode_stream_wrap">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0125_require_node_stream_wrap"></a></h4>
2640<div class="api_metadata">
2641<details class="changelog"><summary>History</summary>
2642<table>
2643<tbody><tr><th>Version</th><th>Changes</th></tr>
2644<tr><td>v12.0.0</td>
2645<td><p>Runtime deprecation.</p></td></tr>
2646</tbody></table>
2647</details>
2648</div>
2649<p>Type: Runtime</p>
2650<p>The <code>node:_stream_wrap</code> module is deprecated.</p>
2651<h4 id="DEP0126">DEP0126: <code>timers.active()</code><span><a class="mark" href="#dep0126-timersactive" id="dep0126-timersactive">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0126_timers_active"></a></h4>
2652<div class="api_metadata">
2653<details class="changelog"><summary>History</summary>
2654<table>
2655<tbody><tr><th>Version</th><th>Changes</th></tr>
2656<tr><td>v11.14.0</td>
2657<td><p>Runtime deprecation.</p></td></tr>
2658</tbody></table>
2659</details>
2660</div>
2661<p>Type: Runtime</p>
2662<p>The previously undocumented <code>timers.active()</code> is deprecated.
2663Please use the publicly documented <a href="timers.html#timeoutrefresh"><code>timeout.refresh()</code></a> instead.
2664If re-referencing the timeout is necessary, <a href="timers.html#timeoutref"><code>timeout.ref()</code></a> can be used
2665with no performance impact since Node.js 10.</p>
2666<h4 id="DEP0127">DEP0127: <code>timers._unrefActive()</code><span><a class="mark" href="#dep0127-timers_unrefactive" id="dep0127-timers_unrefactive">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0127_timers_unrefactive"></a></h4>
2667<div class="api_metadata">
2668<details class="changelog"><summary>History</summary>
2669<table>
2670<tbody><tr><th>Version</th><th>Changes</th></tr>
2671<tr><td>v11.14.0</td>
2672<td><p>Runtime deprecation.</p></td></tr>
2673</tbody></table>
2674</details>
2675</div>
2676<p>Type: Runtime</p>
2677<p>The previously undocumented and "private" <code>timers._unrefActive()</code> is deprecated.
2678Please use the publicly documented <a href="timers.html#timeoutrefresh"><code>timeout.refresh()</code></a> instead.
2679If unreferencing the timeout is necessary, <a href="timers.html#timeoutunref"><code>timeout.unref()</code></a> can be used
2680with no performance impact since Node.js 10.</p>
2681<h4 id="DEP0128">DEP0128: modules with an invalid <code>main</code> entry and an <code>index.js</code> file<span><a class="mark" href="#dep0128-modules-with-an-invalid-main-entry-and-an-indexjs-file" id="dep0128-modules-with-an-invalid-main-entry-and-an-indexjs-file">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0128_modules_with_an_invalid_main_entry_and_an_index_js_file"></a></h4>
2682<div class="api_metadata">
2683<details class="changelog"><summary>History</summary>
2684<table>
2685<tbody><tr><th>Version</th><th>Changes</th></tr>
2686<tr><td>v16.0.0</td>
2687<td><p>Runtime deprecation.</p></td></tr>
2688<tr><td>v12.0.0</td>
2689<td><p>Documentation-only.</p></td></tr>
2690</tbody></table>
2691</details>
2692</div>
2693<p>Type: Runtime</p>
2694<p>Modules that have an invalid <code>main</code> entry (e.g., <code>./does-not-exist.js</code>) and
2695also have an <code>index.js</code> file in the top level directory will resolve the
2696<code>index.js</code> file. That is deprecated and is going to throw an error in future
2697Node.js versions.</p>
2698<h4 id="DEP0129">DEP0129: <code>ChildProcess._channel</code><span><a class="mark" href="#dep0129-childprocess_channel" id="dep0129-childprocess_channel">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0129_childprocess_channel"></a></h4>
2699<div class="api_metadata">
2700<details class="changelog"><summary>History</summary>
2701<table>
2702<tbody><tr><th>Version</th><th>Changes</th></tr>
2703<tr><td>v13.0.0</td>
2704<td><p>Runtime deprecation.</p></td></tr>
2705<tr><td>v11.14.0</td>
2706<td><p>Documentation-only.</p></td></tr>
2707</tbody></table>
2708</details>
2709</div>
2710<p>Type: Runtime</p>
2711<p>The <code>_channel</code> property of child process objects returned by <code>spawn()</code> and
2712similar functions is not intended for public use. Use <code>ChildProcess.channel</code>
2713instead.</p>
2714<h4 id="DEP0130">DEP0130: <code>Module.createRequireFromPath()</code><span><a class="mark" href="#dep0130-modulecreaterequirefrompath" id="dep0130-modulecreaterequirefrompath">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0130_module_createrequirefrompath"></a></h4>
2715<div class="api_metadata">
2716<details class="changelog"><summary>History</summary>
2717<table>
2718<tbody><tr><th>Version</th><th>Changes</th></tr>
2719<tr><td>v16.0.0</td>
2720<td><p>End-of-life.</p></td></tr>
2721<tr><td>v13.0.0</td>
2722<td><p>Runtime deprecation.</p></td></tr>
2723<tr><td>v12.2.0</td>
2724<td><p>Documentation-only.</p></td></tr>
2725</tbody></table>
2726</details>
2727</div>
2728<p>Type: End-of-Life</p>
2729<p>Use <a href="module.html#modulecreaterequirefilename"><code>module.createRequire()</code></a> instead.</p>
2730<h4 id="DEP0131">DEP0131: Legacy HTTP parser<span><a class="mark" href="#dep0131-legacy-http-parser" id="dep0131-legacy-http-parser">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0131_legacy_http_parser"></a></h4>
2731<div class="api_metadata">
2732<details class="changelog"><summary>History</summary>
2733<table>
2734<tbody><tr><th>Version</th><th>Changes</th></tr>
2735<tr><td>v13.0.0</td>
2736<td><p>This feature has been removed.</p></td></tr>
2737<tr><td>v12.22.0</td>
2738<td><p>Runtime deprecation.</p></td></tr>
2739<tr><td>v12.3.0</td>
2740<td><p>Documentation-only.</p></td></tr>
2741</tbody></table>
2742</details>
2743</div>
2744<p>Type: End-of-Life</p>
2745<p>The legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0,
2746is deprecated and has been removed in v13.0.0. Prior to v13.0.0, the
2747<code>--http-parser=legacy</code> command-line flag could be used to revert to using the
2748legacy parser.</p>
2749<h4 id="DEP0132">DEP0132: <code>worker.terminate()</code> with callback<span><a class="mark" href="#dep0132-workerterminate-with-callback" id="dep0132-workerterminate-with-callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0132_worker_terminate_with_callback"></a></h4>
2750<div class="api_metadata">
2751<details class="changelog"><summary>History</summary>
2752<table>
2753<tbody><tr><th>Version</th><th>Changes</th></tr>
2754<tr><td>v12.5.0</td>
2755<td><p>Runtime deprecation.</p></td></tr>
2756</tbody></table>
2757</details>
2758</div>
2759<p>Type: Runtime</p>
2760<p>Passing a callback to <a href="worker_threads.html#workerterminate"><code>worker.terminate()</code></a> is deprecated. Use the returned
2761<code>Promise</code> instead, or a listener to the worker's <code>'exit'</code> event.</p>
2762<h4 id="DEP0133">DEP0133: <code>http</code> <code>connection</code><span><a class="mark" href="#dep0133-http-connection" id="dep0133-http-connection">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0133_http_connection"></a></h4>
2763<div class="api_metadata">
2764<details class="changelog"><summary>History</summary>
2765<table>
2766<tbody><tr><th>Version</th><th>Changes</th></tr>
2767<tr><td>v12.12.0</td>
2768<td><p>Documentation-only deprecation.</p></td></tr>
2769</tbody></table>
2770</details>
2771</div>
2772<p>Type: Documentation-only</p>
2773<p>Prefer <a href="http.html#responsesocket"><code>response.socket</code></a> over <a href="http.html#responseconnection"><code>response.connection</code></a> and
2774<a href="http.html#requestsocket"><code>request.socket</code></a> over <a href="http.html#requestconnection"><code>request.connection</code></a>.</p>
2775<h4 id="DEP0134">DEP0134: <code>process._tickCallback</code><span><a class="mark" href="#dep0134-process_tickcallback" id="dep0134-process_tickcallback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0134_process_tickcallback"></a></h4>
2776<div class="api_metadata">
2777<details class="changelog"><summary>History</summary>
2778<table>
2779<tbody><tr><th>Version</th><th>Changes</th></tr>
2780<tr><td>v12.12.0</td>
2781<td><p>Documentation-only deprecation.</p></td></tr>
2782</tbody></table>
2783</details>
2784</div>
2785<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2786<p>The <code>process._tickCallback</code> property was never documented as
2787an officially supported API.</p>
2788<h4 id="DEP0135">DEP0135: <code>WriteStream.open()</code> and <code>ReadStream.open()</code> are internal<span><a class="mark" href="#dep0135-writestreamopen-and-readstreamopen-are-internal" id="dep0135-writestreamopen-and-readstreamopen-are-internal">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0135_writestream_open_and_readstream_open_are_internal"></a></h4>
2789<div class="api_metadata">
2790<details class="changelog"><summary>History</summary>
2791<table>
2792<tbody><tr><th>Version</th><th>Changes</th></tr>
2793<tr><td>v13.0.0</td>
2794<td><p>Runtime deprecation.</p></td></tr>
2795</tbody></table>
2796</details>
2797</div>
2798<p>Type: Runtime</p>
2799<p><a href="fs.html#class-fswritestream"><code>WriteStream.open()</code></a> and <a href="fs.html#class-fsreadstream"><code>ReadStream.open()</code></a> are undocumented internal
2800APIs that do not make sense to use in userland. File streams should always be
2801opened through their corresponding factory methods <a href="fs.html#fscreatewritestreampath-options"><code>fs.createWriteStream()</code></a>
2802and <a href="fs.html#fscreatereadstreampath-options"><code>fs.createReadStream()</code></a>) or by passing a file descriptor in options.</p>
2803<h4 id="DEP0136">DEP0136: <code>http</code> <code>finished</code><span><a class="mark" href="#dep0136-http-finished" id="dep0136-http-finished">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0136_http_finished"></a></h4>
2804<div class="api_metadata">
2805<details class="changelog"><summary>History</summary>
2806<table>
2807<tbody><tr><th>Version</th><th>Changes</th></tr>
2808<tr><td>v13.4.0, v12.16.0</td>
2809<td><p>Documentation-only deprecation.</p></td></tr>
2810</tbody></table>
2811</details>
2812</div>
2813<p>Type: Documentation-only</p>
2814<p><a href="http.html#responsefinished"><code>response.finished</code></a> indicates whether <a href="http.html#responseenddata-encoding-callback"><code>response.end()</code></a> has been
2815called, not whether <code>'finish'</code> has been emitted and the underlying data
2816is flushed.</p>
2817<p>Use <a href="http.html#responsewritablefinished"><code>response.writableFinished</code></a> or <a href="http.html#responsewritableended"><code>response.writableEnded</code></a>
2818accordingly instead to avoid the ambiguity.</p>
2819<p>To maintain existing behavior <code>response.finished</code> should be replaced with
2820<code>response.writableEnded</code>.</p>
2821<h4 id="DEP0137">DEP0137: Closing fs.FileHandle on garbage collection<span><a class="mark" href="#dep0137-closing-fsfilehandle-on-garbage-collection" id="dep0137-closing-fsfilehandle-on-garbage-collection">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0137_closing_fs_filehandle_on_garbage_collection"></a></h4>
2822<div class="api_metadata">
2823<details class="changelog"><summary>History</summary>
2824<table>
2825<tbody><tr><th>Version</th><th>Changes</th></tr>
2826<tr><td>v14.0.0</td>
2827<td><p>Runtime deprecation.</p></td></tr>
2828</tbody></table>
2829</details>
2830</div>
2831<p>Type: Runtime</p>
2832<p>Allowing a <a href="fs.html#class-filehandle"><code>fs.FileHandle</code></a> object to be closed on garbage collection is
2833deprecated. In the future, doing so might result in a thrown error that will
2834terminate the process.</p>
2835<p>Please ensure that all <code>fs.FileHandle</code> objects are explicitly closed using
2836<code>FileHandle.prototype.close()</code> when the <code>fs.FileHandle</code> is no longer needed:</p>
2837<pre><code class="language-js"><span class="hljs-keyword">const</span> fsPromises = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:fs'</span>).<span class="hljs-property">promises</span>;
2838<span class="hljs-keyword">async</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">openAndClose</span>(<span class="hljs-params"></span>) {
2839  <span class="hljs-keyword">let</span> filehandle;
2840  <span class="hljs-keyword">try</span> {
2841    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>);
2842  } <span class="hljs-keyword">finally</span> {
2843    <span class="hljs-keyword">if</span> (filehandle !== <span class="hljs-literal">undefined</span>)
2844      <span class="hljs-keyword">await</span> filehandle.<span class="hljs-title function_">close</span>();
2845  }
2846}</code> <button class="copy-button">copy</button></pre>
2847<h4 id="DEP0138">DEP0138: <code>process.mainModule</code><span><a class="mark" href="#dep0138-processmainmodule" id="dep0138-processmainmodule">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0138_process_mainmodule"></a></h4>
2848<div class="api_metadata">
2849<details class="changelog"><summary>History</summary>
2850<table>
2851<tbody><tr><th>Version</th><th>Changes</th></tr>
2852<tr><td>v14.0.0</td>
2853<td><p>Documentation-only deprecation.</p></td></tr>
2854</tbody></table>
2855</details>
2856</div>
2857<p>Type: Documentation-only</p>
2858<p><a href="process.html#processmainmodule"><code>process.mainModule</code></a> is a CommonJS-only feature while <code>process</code> global
2859object is shared with non-CommonJS environment. Its use within ECMAScript
2860modules is unsupported.</p>
2861<p>It is deprecated in favor of <a href="modules.html#accessing-the-main-module"><code>require.main</code></a>, because it serves the same
2862purpose and is only available on CommonJS environment.</p>
2863<h4 id="DEP0139">DEP0139: <code>process.umask()</code> with no arguments<span><a class="mark" href="#dep0139-processumask-with-no-arguments" id="dep0139-processumask-with-no-arguments">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0139_process_umask_with_no_arguments"></a></h4>
2864<div class="api_metadata">
2865<details class="changelog"><summary>History</summary>
2866<table>
2867<tbody><tr><th>Version</th><th>Changes</th></tr>
2868<tr><td>v14.0.0, v12.19.0</td>
2869<td><p>Documentation-only deprecation.</p></td></tr>
2870</tbody></table>
2871</details>
2872</div>
2873<p>Type: Documentation-only</p>
2874<p>Calling <code>process.umask()</code> with no argument causes the process-wide umask to be
2875written twice. This introduces a race condition between threads, and is a
2876potential security vulnerability. There is no safe, cross-platform alternative
2877API.</p>
2878<h4 id="DEP0140">DEP0140: Use <code>request.destroy()</code> instead of <code>request.abort()</code><span><a class="mark" href="#dep0140-use-requestdestroy-instead-of-requestabort" id="dep0140-use-requestdestroy-instead-of-requestabort">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0140_use_request_destroy_instead_of_request_abort"></a></h4>
2879<div class="api_metadata">
2880<details class="changelog"><summary>History</summary>
2881<table>
2882<tbody><tr><th>Version</th><th>Changes</th></tr>
2883<tr><td>v14.1.0, v13.14.0</td>
2884<td><p>Documentation-only deprecation.</p></td></tr>
2885</tbody></table>
2886</details>
2887</div>
2888<p>Type: Documentation-only</p>
2889<p>Use <a href="http.html#requestdestroyerror"><code>request.destroy()</code></a> instead of <a href="http.html#requestabort"><code>request.abort()</code></a>.</p>
2890<h4 id="DEP0141">DEP0141: <code>repl.inputStream</code> and <code>repl.outputStream</code><span><a class="mark" href="#dep0141-replinputstream-and-reploutputstream" id="dep0141-replinputstream-and-reploutputstream">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0141_repl_inputstream_and_repl_outputstream"></a></h4>
2891<div class="api_metadata">
2892<details class="changelog"><summary>History</summary>
2893<table>
2894<tbody><tr><th>Version</th><th>Changes</th></tr>
2895<tr><td>v14.3.0</td>
2896<td><p>Documentation-only (supports [<code>--pending-deprecation</code>][]).</p></td></tr>
2897</tbody></table>
2898</details>
2899</div>
2900<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2901<p>The <code>node:repl</code> module exported the input and output stream twice. Use <code>.input</code>
2902instead of <code>.inputStream</code> and <code>.output</code> instead of <code>.outputStream</code>.</p>
2903<h4 id="DEP0142">DEP0142: <code>repl._builtinLibs</code><span><a class="mark" href="#dep0142-repl_builtinlibs" id="dep0142-repl_builtinlibs">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0142_repl_builtinlibs"></a></h4>
2904<div class="api_metadata">
2905<details class="changelog"><summary>History</summary>
2906<table>
2907<tbody><tr><th>Version</th><th>Changes</th></tr>
2908<tr><td>v14.3.0</td>
2909<td><p>Documentation-only (supports [<code>--pending-deprecation</code>][]).</p></td></tr>
2910</tbody></table>
2911</details>
2912</div>
2913<p>Type: Documentation-only</p>
2914<p>The <code>node:repl</code> module exports a <code>_builtinLibs</code> property that contains an array
2915of built-in modules. It was incomplete so far and instead it's better to rely
2916upon <code>require('node:module').builtinModules</code>.</p>
2917<h4 id="DEP0143">DEP0143: <code>Transform._transformState</code><span><a class="mark" href="#dep0143-transform_transformstate" id="dep0143-transform_transformstate">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0143_transform_transformstate"></a></h4>
2918<div class="api_metadata">
2919<details class="changelog"><summary>History</summary>
2920<table>
2921<tbody><tr><th>Version</th><th>Changes</th></tr>
2922<tr><td>v14.5.0</td>
2923<td><p>Runtime deprecation.</p></td></tr>
2924</tbody></table>
2925</details>
2926</div>
2927<p>Type: Runtime
2928<code>Transform._transformState</code> will be removed in future versions where it is
2929no longer required due to simplification of the implementation.</p>
2930<h4 id="DEP0144">DEP0144: <code>module.parent</code><span><a class="mark" href="#dep0144-moduleparent" id="dep0144-moduleparent">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0144_module_parent"></a></h4>
2931<div class="api_metadata">
2932<details class="changelog"><summary>History</summary>
2933<table>
2934<tbody><tr><th>Version</th><th>Changes</th></tr>
2935<tr><td>v14.6.0, v12.19.0</td>
2936<td><p>Documentation-only deprecation.</p></td></tr>
2937</tbody></table>
2938</details>
2939</div>
2940<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
2941<p>A CommonJS module can access the first module that required it using
2942<code>module.parent</code>. This feature is deprecated because it does not work
2943consistently in the presence of ECMAScript modules and because it gives an
2944inaccurate representation of the CommonJS module graph.</p>
2945<p>Some modules use it to check if they are the entry point of the current process.
2946Instead, it is recommended to compare <code>require.main</code> and <code>module</code>:</p>
2947<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>) {
2948  <span class="hljs-comment">// Code section that will run only if current file is the entry point.</span>
2949}</code> <button class="copy-button">copy</button></pre>
2950<p>When looking for the CommonJS modules that have required the current one,
2951<code>require.cache</code> and <code>module.children</code> can be used:</p>
2952<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>)
2953  .<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> <button class="copy-button">copy</button></pre>
2954<h4 id="DEP0145">DEP0145: <code>socket.bufferSize</code><span><a class="mark" href="#dep0145-socketbuffersize" id="dep0145-socketbuffersize">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0145_socket_buffersize"></a></h4>
2955<div class="api_metadata">
2956<details class="changelog"><summary>History</summary>
2957<table>
2958<tbody><tr><th>Version</th><th>Changes</th></tr>
2959<tr><td>v14.6.0</td>
2960<td><p>Documentation-only deprecation.</p></td></tr>
2961</tbody></table>
2962</details>
2963</div>
2964<p>Type: Documentation-only</p>
2965<p><a href="net.html#socketbuffersize"><code>socket.bufferSize</code></a> is just an alias for <a href="stream.html#writablewritablelength"><code>writable.writableLength</code></a>.</p>
2966<h4 id="DEP0146">DEP0146: <code>new crypto.Certificate()</code><span><a class="mark" href="#dep0146-new-cryptocertificate" id="dep0146-new-cryptocertificate">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0146_new_crypto_certificate"></a></h4>
2967<div class="api_metadata">
2968<details class="changelog"><summary>History</summary>
2969<table>
2970<tbody><tr><th>Version</th><th>Changes</th></tr>
2971<tr><td>v14.9.0</td>
2972<td><p>Documentation-only deprecation.</p></td></tr>
2973</tbody></table>
2974</details>
2975</div>
2976<p>Type: Documentation-only</p>
2977<p>The <a href="crypto.html#legacy-api"><code>crypto.Certificate()</code> constructor</a> is deprecated. Use
2978<a href="crypto.html#class-certificate">static methods of <code>crypto.Certificate()</code></a> instead.</p>
2979<h4 id="DEP0147">DEP0147: <code>fs.rmdir(path, { recursive: true })</code><span><a class="mark" href="#dep0147-fsrmdirpath--recursive-true-" id="dep0147-fsrmdirpath--recursive-true-">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0147_fs_rmdir_path_recursive_true"></a></h4>
2980<div class="api_metadata">
2981<details class="changelog"><summary>History</summary>
2982<table>
2983<tbody><tr><th>Version</th><th>Changes</th></tr>
2984<tr><td>v16.0.0</td>
2985<td><p>Runtime deprecation.</p></td></tr>
2986<tr><td>v15.0.0</td>
2987<td><p>Runtime deprecation for permissive behavior.</p></td></tr>
2988<tr><td>v14.14.0</td>
2989<td><p>Documentation-only deprecation.</p></td></tr>
2990</tbody></table>
2991</details>
2992</div>
2993<p>Type: Runtime</p>
2994<p>In future versions of Node.js, <code>recursive</code> option will be ignored for
2995<code>fs.rmdir</code>, <code>fs.rmdirSync</code>, and <code>fs.promises.rmdir</code>.</p>
2996<p>Use <code>fs.rm(path, { recursive: true, force: true })</code>,
2997<code>fs.rmSync(path, { recursive: true, force: true })</code> or
2998<code>fs.promises.rm(path, { recursive: true, force: true })</code> instead.</p>
2999<h4 id="DEP0148">DEP0148: Folder mappings in <code>"exports"</code> (trailing <code>"/"</code>)<span><a class="mark" href="#dep0148-folder-mappings-in-exports-trailing-" id="dep0148-folder-mappings-in-exports-trailing-">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0148_folder_mappings_in_exports_trailing"></a></h4>
3000<div class="api_metadata">
3001<details class="changelog"><summary>History</summary>
3002<table>
3003<tbody><tr><th>Version</th><th>Changes</th></tr>
3004<tr><td>v17.0.0</td>
3005<td><p>End-of-Life.</p></td></tr>
3006<tr><td>v16.0.0</td>
3007<td><p>Runtime deprecation.</p></td></tr>
3008<tr><td>v15.1.0</td>
3009<td><p>Runtime deprecation for self-referencing imports.</p></td></tr>
3010<tr><td>v14.13.0</td>
3011<td><p>Documentation-only deprecation.</p></td></tr>
3012</tbody></table>
3013</details>
3014</div>
3015<p>Type: Runtime</p>
3016<p>Using a trailing <code>"/"</code> to define subpath folder mappings in the
3017<a href="packages.html#subpath-exports">subpath exports</a> or <a href="packages.html#subpath-imports">subpath imports</a> fields is deprecated. Use
3018<a href="packages.html#subpath-patterns">subpath patterns</a> instead.</p>
3019<h4 id="DEP0149">DEP0149: <code>http.IncomingMessage#connection</code><span><a class="mark" href="#dep0149-httpincomingmessageconnection" id="dep0149-httpincomingmessageconnection">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0149_http_incomingmessage_connection"></a></h4>
3020<div class="api_metadata">
3021<details class="changelog"><summary>History</summary>
3022<table>
3023<tbody><tr><th>Version</th><th>Changes</th></tr>
3024<tr><td>v16.0.0</td>
3025<td><p>Documentation-only deprecation.</p></td></tr>
3026</tbody></table>
3027</details>
3028</div>
3029<p>Type: Documentation-only.</p>
3030<p>Prefer <a href="http.html#messagesocket"><code>message.socket</code></a> over <a href="http.html#messageconnection"><code>message.connection</code></a>.</p>
3031<h4 id="DEP0150">DEP0150: Changing the value of <code>process.config</code><span><a class="mark" href="#dep0150-changing-the-value-of-processconfig" id="dep0150-changing-the-value-of-processconfig">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0150_changing_the_value_of_process_config"></a></h4>
3032<div class="api_metadata">
3033<details class="changelog"><summary>History</summary>
3034<table>
3035<tbody><tr><th>Version</th><th>Changes</th></tr>
3036<tr><td>v19.0.0</td>
3037<td><p>End-of-Life.</p></td></tr>
3038<tr><td>v16.0.0</td>
3039<td><p>Runtime deprecation.</p></td></tr>
3040</tbody></table>
3041</details>
3042</div>
3043<p>Type: End-of-Life</p>
3044<p>The <code>process.config</code> property provides access to Node.js compile-time settings.
3045However, the property is mutable and therefore subject to tampering. The ability
3046to change the value will be removed in a future version of Node.js.</p>
3047<h4 id="DEP0151">DEP0151: Main index lookup and extension searching<span><a class="mark" href="#dep0151-main-index-lookup-and-extension-searching" id="dep0151-main-index-lookup-and-extension-searching">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0151_main_index_lookup_and_extension_searching"></a></h4>
3048<div class="api_metadata">
3049<details class="changelog"><summary>History</summary>
3050<table>
3051<tbody><tr><th>Version</th><th>Changes</th></tr>
3052<tr><td>v16.0.0</td>
3053<td><p>Runtime deprecation.</p></td></tr>
3054<tr><td>v15.8.0, v14.18.0</td>
3055<td><p>Documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
3056</tbody></table>
3057</details>
3058</div>
3059<p>Type: Runtime</p>
3060<p>Previously, <code>index.js</code> and extension searching lookups would apply to
3061<code>import 'pkg'</code> main entry point resolution, even when resolving ES modules.</p>
3062<p>With this deprecation, all ES module main entry point resolutions require
3063an explicit <a href="packages.html#main-entry-point-export"><code>"exports"</code> or <code>"main"</code> entry</a> with the exact file extension.</p>
3064<h4 id="DEP0152">DEP0152: Extension PerformanceEntry properties<span><a class="mark" href="#dep0152-extension-performanceentry-properties" id="dep0152-extension-performanceentry-properties">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0152_extension_performanceentry_properties"></a></h4>
3065<div class="api_metadata">
3066<details class="changelog"><summary>History</summary>
3067<table>
3068<tbody><tr><th>Version</th><th>Changes</th></tr>
3069<tr><td>v16.0.0</td>
3070<td><p>Runtime deprecation.</p></td></tr>
3071</tbody></table>
3072</details>
3073</div>
3074<p>Type: Runtime</p>
3075<p>The <code>'gc'</code>, <code>'http2'</code>, and <code>'http'</code> <a href="perf_hooks.html#class-performanceentry" class="type">&#x3C;PerformanceEntry></a> object types have
3076additional properties assigned to them that provide additional information.
3077These properties are now available within the standard <code>detail</code> property
3078of the <code>PerformanceEntry</code> object. The existing accessors have been
3079deprecated and should no longer be used.</p>
3080<h4 id="DEP0153">DEP0153: <code>dns.lookup</code> and <code>dnsPromises.lookup</code> options type coercion<span><a class="mark" href="#dep0153-dnslookup-and-dnspromiseslookup-options-type-coercion" id="dep0153-dnslookup-and-dnspromiseslookup-options-type-coercion">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0153_dns_lookup_and_dnspromises_lookup_options_type_coercion"></a></h4>
3081<div class="api_metadata">
3082<details class="changelog"><summary>History</summary>
3083<table>
3084<tbody><tr><th>Version</th><th>Changes</th></tr>
3085<tr><td>v18.0.0</td>
3086<td><p>End-of-Life.</p></td></tr>
3087<tr><td>v17.0.0</td>
3088<td><p>Runtime deprecation.</p></td></tr>
3089<tr><td>v16.8.0</td>
3090<td><p>Documentation-only deprecation.</p></td></tr>
3091</tbody></table>
3092</details>
3093</div>
3094<p>Type: End-of-Life</p>
3095<p>Using a non-nullish non-integer value for <code>family</code> option, a non-nullish
3096non-number value for <code>hints</code> option, a non-nullish non-boolean value for <code>all</code>
3097option, or a non-nullish non-boolean value for <code>verbatim</code> option in
3098<a href="dns.html#dnslookuphostname-options-callback"><code>dns.lookup()</code></a> and <a href="dns.html#dnspromiseslookuphostname-options"><code>dnsPromises.lookup()</code></a> throws an
3099<code>ERR_INVALID_ARG_TYPE</code> error.</p>
3100<h4 id="DEP0154">DEP0154: RSA-PSS generate key pair options<span><a class="mark" href="#dep0154-rsa-pss-generate-key-pair-options" id="dep0154-rsa-pss-generate-key-pair-options">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0154_rsa_pss_generate_key_pair_options"></a></h4>
3101<div class="api_metadata">
3102<details class="changelog"><summary>History</summary>
3103<table>
3104<tbody><tr><th>Version</th><th>Changes</th></tr>
3105<tr><td>v16.10.0</td>
3106<td><p>Documentation-only deprecation.</p></td></tr>
3107</tbody></table>
3108</details>
3109</div>
3110<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
3111<p>The <code>'hash'</code> and <code>'mgf1Hash'</code> options are replaced with <code>'hashAlgorithm'</code>
3112and <code>'mgf1HashAlgorithm'</code>.</p>
3113<h4 id="DEP0155">DEP0155: Trailing slashes in pattern specifier resolutions<span><a class="mark" href="#dep0155-trailing-slashes-in-pattern-specifier-resolutions" id="dep0155-trailing-slashes-in-pattern-specifier-resolutions">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0155_trailing_slashes_in_pattern_specifier_resolutions"></a></h4>
3114<div class="api_metadata">
3115<details class="changelog"><summary>History</summary>
3116<table>
3117<tbody><tr><th>Version</th><th>Changes</th></tr>
3118<tr><td>v17.0.0</td>
3119<td><p>Runtime deprecation.</p></td></tr>
3120<tr><td>v16.10.0</td>
3121<td><p>Documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
3122</tbody></table>
3123</details>
3124</div>
3125<p>Type: Runtime</p>
3126<p>The remapping of specifiers ending in <code>"/"</code> like <code>import 'pkg/x/'</code> is deprecated
3127for package <code>"exports"</code> and <code>"imports"</code> pattern resolutions.</p>
3128<h4 id="DEP0156">DEP0156: <code>.aborted</code> property and <code>'abort'</code>, <code>'aborted'</code> event in <code>http</code><span><a class="mark" href="#dep0156-aborted-property-and-abort-aborted-event-in-http" id="dep0156-aborted-property-and-abort-aborted-event-in-http">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0156_aborted_property_and_abort_aborted_event_in_http"></a></h4>
3129<div class="api_metadata">
3130<details class="changelog"><summary>History</summary>
3131<table>
3132<tbody><tr><th>Version</th><th>Changes</th></tr>
3133<tr><td>v17.0.0, v16.12.0</td>
3134<td><p>Documentation-only deprecation.</p></td></tr>
3135</tbody></table>
3136</details>
3137</div>
3138<p>Type: Documentation-only</p>
3139<p>Move to <a href="stream.html#stream" class="type">&#x3C;Stream></a> API instead, as the <a href="http.html#class-httpclientrequest"><code>http.ClientRequest</code></a>,
3140<a href="http.html#class-httpserverresponse"><code>http.ServerResponse</code></a>, and <a href="http.html#class-httpincomingmessage"><code>http.IncomingMessage</code></a> are all stream-based.
3141Check <code>stream.destroyed</code> instead of the <code>.aborted</code> property, and listen for
3142<code>'close'</code> instead of <code>'abort'</code>, <code>'aborted'</code> event.</p>
3143<p>The <code>.aborted</code> property and <code>'abort'</code> event are only useful for detecting
3144<code>.abort()</code> calls. For closing a request early, use the Stream
3145<code>.destroy([error])</code> then check the <code>.destroyed</code> property and <code>'close'</code> event
3146should have the same effect. The receiving end should also check the
3147<a href="stream.html#readablereadableended"><code>readable.readableEnded</code></a> value on <a href="http.html#class-httpincomingmessage"><code>http.IncomingMessage</code></a> to get whether
3148it was an aborted or graceful destroy.</p>
3149<h4 id="DEP0157">DEP0157: Thenable support in streams<span><a class="mark" href="#dep0157-thenable-support-in-streams" id="dep0157-thenable-support-in-streams">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0157_thenable_support_in_streams"></a></h4>
3150<div class="api_metadata">
3151<details class="changelog"><summary>History</summary>
3152<table>
3153<tbody><tr><th>Version</th><th>Changes</th></tr>
3154<tr><td>v18.0.0</td>
3155<td><p>End-of-life.</p></td></tr>
3156<tr><td>v17.2.0, v16.14.0</td>
3157<td><p>Documentation-only deprecation.</p></td></tr>
3158</tbody></table>
3159</details>
3160</div>
3161<p>Type: End-of-Life</p>
3162<p>An undocumented feature of Node.js streams was to support thenables in
3163implementation methods. This is now deprecated, use callbacks instead and avoid
3164use of async function for streams implementation methods.</p>
3165<p>This feature caused users to encounter unexpected problems where the user
3166implements the function in callback style but uses e.g. an async method which
3167would cause an error since mixing promise and callback semantics is not valid.</p>
3168<pre><code class="language-js"><span class="hljs-keyword">const</span> w = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Writable</span>({
3169  <span class="hljs-keyword">async</span> <span class="hljs-title function_">final</span>(<span class="hljs-params">callback</span>) {
3170    <span class="hljs-keyword">await</span> <span class="hljs-title function_">someOp</span>();
3171    <span class="hljs-title function_">callback</span>();
3172  },
3173});</code> <button class="copy-button">copy</button></pre>
3174<h4 id="DEP0158">DEP0158: <code>buffer.slice(start, end)</code><span><a class="mark" href="#dep0158-bufferslicestart-end" id="dep0158-bufferslicestart-end">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0158_buffer_slice_start_end"></a></h4>
3175<div class="api_metadata">
3176<details class="changelog"><summary>History</summary>
3177<table>
3178<tbody><tr><th>Version</th><th>Changes</th></tr>
3179<tr><td>v17.5.0, v16.15.0</td>
3180<td><p>Documentation-only deprecation.</p></td></tr>
3181</tbody></table>
3182</details>
3183</div>
3184<p>Type: Documentation-only</p>
3185<p>This method was deprecated because it is not compatible with
3186<code>Uint8Array.prototype.slice()</code>, which is a superclass of <code>Buffer</code>.</p>
3187<p>Use <a href="buffer.html#bufsubarraystart-end"><code>buffer.subarray</code></a> which does the same thing instead.</p>
3188<h4 id="DEP0159">DEP0159: <code>ERR_INVALID_CALLBACK</code><span><a class="mark" href="#dep0159-err_invalid_callback" id="dep0159-err_invalid_callback">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0159_err_invalid_callback"></a></h4>
3189<div class="api_metadata">
3190<details class="changelog"><summary>History</summary>
3191<table>
3192<tbody><tr><th>Version</th><th>Changes</th></tr>
3193<tr><td>v18.0.0</td>
3194<td><p>End-of-Life.</p></td></tr>
3195</tbody></table>
3196</details>
3197</div>
3198<p>Type: End-of-Life</p>
3199<p>This error code was removed due to adding more confusion to
3200the errors used for value type validation.</p>
3201<h4 id="DEP0160">DEP0160: <code>process.on('multipleResolves', handler)</code><span><a class="mark" href="#dep0160-processonmultipleresolves-handler" id="dep0160-processonmultipleresolves-handler">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0160_process_on_multipleresolves_handler"></a></h4>
3202<div class="api_metadata">
3203<details class="changelog"><summary>History</summary>
3204<table>
3205<tbody><tr><th>Version</th><th>Changes</th></tr>
3206<tr><td>v18.0.0</td>
3207<td><p>Runtime deprecation.</p></td></tr>
3208<tr><td>v17.6.0, v16.15.0</td>
3209<td><p>Documentation-only deprecation.</p></td></tr>
3210</tbody></table>
3211</details>
3212</div>
3213<p>Type: Runtime.</p>
3214<p>This event was deprecated because it did not work with V8 promise combinators
3215which diminished its usefulness.</p>
3216<h4 id="DEP0161">DEP0161: <code>process._getActiveRequests()</code> and <code>process._getActiveHandles()</code><span><a class="mark" href="#dep0161-process_getactiverequests-and-process_getactivehandles" id="dep0161-process_getactiverequests-and-process_getactivehandles">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0161_process_getactiverequests_and_process_getactivehandles"></a></h4>
3217<div class="api_metadata">
3218<details class="changelog"><summary>History</summary>
3219<table>
3220<tbody><tr><th>Version</th><th>Changes</th></tr>
3221<tr><td>v17.6.0, v16.15.0</td>
3222<td><p>Documentation-only deprecation.</p></td></tr>
3223</tbody></table>
3224</details>
3225</div>
3226<p>Type: Documentation-only</p>
3227<p>The <code>process._getActiveHandles()</code> and <code>process._getActiveRequests()</code>
3228functions are not intended for public use and can be removed in future
3229releases.</p>
3230<p>Use <a href="process.html#processgetactiveresourcesinfo"><code>process.getActiveResourcesInfo()</code></a> to get a list of types of active
3231resources and not the actual references.</p>
3232<h4 id="DEP0162">DEP0162: <code>fs.write()</code>, <code>fs.writeFileSync()</code> coercion to string<span><a class="mark" href="#dep0162-fswrite-fswritefilesync-coercion-to-string" id="dep0162-fswrite-fswritefilesync-coercion-to-string">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0162_fs_write_fs_writefilesync_coercion_to_string"></a></h4>
3233<div class="api_metadata">
3234<details class="changelog"><summary>History</summary>
3235<table>
3236<tbody><tr><th>Version</th><th>Changes</th></tr>
3237<tr><td>v19.0.0</td>
3238<td><p>End-of-Life.</p></td></tr>
3239<tr><td>v18.0.0</td>
3240<td><p>Runtime deprecation.</p></td></tr>
3241<tr><td>v17.8.0, v16.15.0</td>
3242<td><p>Documentation-only deprecation.</p></td></tr>
3243</tbody></table>
3244</details>
3245</div>
3246<p>Type: End-of-Life</p>
3247<p>Implicit coercion of objects with own <code>toString</code> property, passed as second
3248parameter in <a href="fs.html#fswritefd-buffer-offset-length-position-callback"><code>fs.write()</code></a>, <a href="fs.html#fswritefilefile-data-options-callback"><code>fs.writeFile()</code></a>, <a href="fs.html#fsappendfilepath-data-options-callback"><code>fs.appendFile()</code></a>,
3249<a href="fs.html#fswritefilesyncfile-data-options"><code>fs.writeFileSync()</code></a>, and <a href="fs.html#fsappendfilesyncpath-data-options"><code>fs.appendFileSync()</code></a> is deprecated.
3250Convert them to primitive strings.</p>
3251<h4 id="DEP0163">DEP0163: <code>channel.subscribe(onMessage)</code>, <code>channel.unsubscribe(onMessage)</code><span><a class="mark" href="#dep0163-channelsubscribeonmessage-channelunsubscribeonmessage" id="dep0163-channelsubscribeonmessage-channelunsubscribeonmessage">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0163_channel_subscribe_onmessage_channel_unsubscribe_onmessage"></a></h4>
3252<div class="api_metadata">
3253<details class="changelog"><summary>History</summary>
3254<table>
3255<tbody><tr><th>Version</th><th>Changes</th></tr>
3256<tr><td>v18.7.0, v16.17.0</td>
3257<td><p>Documentation-only deprecation.</p></td></tr>
3258</tbody></table>
3259</details>
3260</div>
3261<p>Type: Documentation-only</p>
3262<p>These methods were deprecated because they can be used in a way which does not
3263hold the channel reference alive long enough to receive the events.</p>
3264<p>Use <a href="diagnostics_channel.html#diagnostics_channelsubscribename-onmessage"><code>diagnostics_channel.subscribe(name, onMessage)</code></a> or
3265<a href="diagnostics_channel.html#diagnostics_channelunsubscribename-onmessage"><code>diagnostics_channel.unsubscribe(name, onMessage)</code></a> which does the same
3266thing instead.</p>
3267<h4 id="DEP0164">DEP0164: <code>process.exit(code)</code>, <code>process.exitCode</code> coercion to integer<span><a class="mark" href="#dep0164-processexitcode-processexitcode-coercion-to-integer" id="dep0164-processexitcode-processexitcode-coercion-to-integer">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0164_process_exit_code_process_exitcode_coercion_to_integer"></a></h4>
3268<div class="api_metadata">
3269<details class="changelog"><summary>History</summary>
3270<table>
3271<tbody><tr><th>Version</th><th>Changes</th></tr>
3272<tr><td>v18.10.0</td>
3273<td><p>Documentation-only deprecation of <code>process.exitCode</code> integer coercion.</p></td></tr>
3274<tr><td>v18.7.0, v16.17.0</td>
3275<td><p>Documentation-only deprecation of <code>process.exit(code)</code> integer coercion.</p></td></tr>
3276</tbody></table>
3277</details>
3278</div>
3279<p>Type: Documentation-only</p>
3280<p>Values other than <code>undefined</code>, <code>null</code>, integer numbers, and integer strings
3281(e.g., <code>'1'</code>) are deprecated as value for the <code>code</code> parameter in
3282<a href="process.html#processexitcode"><code>process.exit()</code></a> and as value to assign to <a href="process.html#processexitcode_1"><code>process.exitCode</code></a>.</p>
3283<h4 id="DEP0165">DEP0165: <code>--trace-atomics-wait</code><span><a class="mark" href="#dep0165---trace-atomics-wait" id="dep0165---trace-atomics-wait">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0165_trace_atomics_wait"></a></h4>
3284<div class="api_metadata">
3285<details class="changelog"><summary>History</summary>
3286<table>
3287<tbody><tr><th>Version</th><th>Changes</th></tr>
3288<tr><td>v18.8.0</td>
3289<td><p>Documentation-only deprecation.</p></td></tr>
3290</tbody></table>
3291</details>
3292</div>
3293<p>Type: Documentation-only</p>
3294<p>The <a href="cli.html#--trace-atomics-wait"><code>--trace-atomics-wait</code></a> flag is deprecated.</p>
3295<h4 id="DEP0166">DEP0166: Double slashes in imports and exports targets<span><a class="mark" href="#dep0166-double-slashes-in-imports-and-exports-targets" id="dep0166-double-slashes-in-imports-and-exports-targets">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0166_double_slashes_in_imports_and_exports_targets"></a></h4>
3296<div class="api_metadata">
3297<details class="changelog"><summary>History</summary>
3298<table>
3299<tbody><tr><th>Version</th><th>Changes</th></tr>
3300<tr><td>v19.0.0</td>
3301<td><p>Runtime deprecation.</p></td></tr>
3302<tr><td>v18.10.0</td>
3303<td><p>Documentation-only deprecation with <code>--pending-deprecation</code> support.</p></td></tr>
3304</tbody></table>
3305</details>
3306</div>
3307<p>Type: Runtime</p>
3308<p>Package imports and exports targets mapping into paths including a double slash
3309(of <em>"/"</em> or <em>"\"</em>) are deprecated and will fail with a resolution validation
3310error in a future release. This same deprecation also applies to pattern matches
3311starting or ending in a slash.</p>
3312<h4 id="DEP0167">DEP0167: Weak <code>DiffieHellmanGroup</code> instances (<code>modp1</code>, <code>modp2</code>, <code>modp5</code>)<span><a class="mark" href="#dep0167-weak-diffiehellmangroup-instances-modp1-modp2-modp5" id="dep0167-weak-diffiehellmangroup-instances-modp1-modp2-modp5">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0167_weak_diffiehellmangroup_instances_modp1_modp2_modp5"></a></h4>
3313<div class="api_metadata">
3314<details class="changelog"><summary>History</summary>
3315<table>
3316<tbody><tr><th>Version</th><th>Changes</th></tr>
3317<tr><td>v18.10.0</td>
3318<td><p>Documentation-only deprecation.</p></td></tr>
3319</tbody></table>
3320</details>
3321</div>
3322<p>Type: Documentation-only</p>
3323<p>The well-known MODP groups <code>modp1</code>, <code>modp2</code>, and <code>modp5</code> are deprecated because
3324they are not secure against practical attacks. See <a href="https://www.rfc-editor.org/rfc/rfc8247#section-2.4">RFC 8247 Section 2.4</a> for
3325details.</p>
3326<p>These groups might be removed in future versions of Node.js. Applications that
3327rely on these groups should evaluate using stronger MODP groups instead.</p>
3328<h4 id="DEP0168">DEP0168: Unhandled exception in Node-API callbacks<span><a class="mark" href="#dep0168-unhandled-exception-in-node-api-callbacks" id="dep0168-unhandled-exception-in-node-api-callbacks">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0168_unhandled_exception_in_node_api_callbacks"></a></h4>
3329<div class="api_metadata">
3330<details class="changelog"><summary>History</summary>
3331<table>
3332<tbody><tr><th>Version</th><th>Changes</th></tr>
3333<tr><td>v18.3.0, v16.17.0</td>
3334<td><p>Runtime deprecation.</p></td></tr>
3335</tbody></table>
3336</details>
3337</div>
3338<p>Type: Runtime</p>
3339<p>The implicit suppression of uncaught exceptions in Node-API callbacks is now
3340deprecated.</p>
3341<p>Set the flag <a href="cli.html#--force-node-api-uncaught-exceptions-policy"><code>--force-node-api-uncaught-exceptions-policy</code></a> to force Node.js
3342to emit an <a href="process.html#event-uncaughtexception"><code>'uncaughtException'</code></a> event if the exception is not handled in
3343Node-API callbacks.</p>
3344<h4 id="DEP0169">DEP0169: Insecure url.parse()<span><a class="mark" href="#dep0169-insecure-urlparse" id="dep0169-insecure-urlparse">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0169_insecure_url_parse"></a></h4>
3345<div class="api_metadata">
3346<details class="changelog"><summary>History</summary>
3347<table>
3348<tbody><tr><th>Version</th><th>Changes</th></tr>
3349<tr><td>v18.17.0</td>
3350<td><p>Added support for <code>--pending-deprecation</code>.</p></td></tr>
3351<tr><td>v18.13.0</td>
3352<td><p>Documentation-only deprecation.</p></td></tr>
3353</tbody></table>
3354</details>
3355</div>
3356<p>Type: Documentation-only (supports <a href="cli.html#--pending-deprecation"><code>--pending-deprecation</code></a>)</p>
3357<p><a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a> behavior is not standardized and prone to errors that
3358have security implications. Use the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> instead. CVEs are not
3359issued for <code>url.parse()</code> vulnerabilities.</p>
3360<h4 id="DEP0170">DEP0170: Invalid port when using <code>url.parse()</code><span><a class="mark" href="#dep0170-invalid-port-when-using-urlparse" id="dep0170-invalid-port-when-using-urlparse">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0170_invalid_port_when_using_url_parse"></a></h4>
3361<div class="api_metadata">
3362<details class="changelog"><summary>History</summary>
3363<table>
3364<tbody><tr><th>Version</th><th>Changes</th></tr>
3365<tr><td>v18.13.0</td>
3366<td><p>Documentation-only deprecation.</p></td></tr>
3367</tbody></table>
3368</details>
3369</div>
3370<p>Type: Documentation-only</p>
3371<p><a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a> accepts URLs with ports that are not numbers. This behavior
3372might result in host name spoofing with unexpected input. These URLs will throw
3373an error in future versions of Node.js, as the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> does already.</p>
3374<h4 id="DEP0171">DEP0171: Setters for <code>http.IncomingMessage</code> headers and trailers<span><a class="mark" href="#dep0171-setters-for-httpincomingmessage-headers-and-trailers" id="dep0171-setters-for-httpincomingmessage-headers-and-trailers">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0171_setters_for_http_incomingmessage_headers_and_trailers"></a></h4>
3375<div class="api_metadata">
3376<details class="changelog"><summary>History</summary>
3377<table>
3378<tbody><tr><th>Version</th><th>Changes</th></tr>
3379<tr><td>v18.13.0</td>
3380<td><p>Documentation-only deprecation.</p></td></tr>
3381</tbody></table>
3382</details>
3383</div>
3384<p>Type: Documentation-only</p>
3385<p>In a future version of Node.js, <a href="http.html#messageheaders"><code>message.headers</code></a>,
3386<a href="http.html#messageheadersdistinct"><code>message.headersDistinct</code></a>, <a href="http.html#messagetrailers"><code>message.trailers</code></a>, and
3387<a href="http.html#messagetrailersdistinct"><code>message.trailersDistinct</code></a> will be read-only.</p>
3388<!-- md-lint skip-deprecation DEP0172 -->
3389<!-- md-lint skip-deprecation DEP0173 -->
3390<!-- md-lint skip-deprecation DEP0174 -->
3391<!-- md-lint skip-deprecation DEP0175 -->
3392<!-- md-lint skip-deprecation DEP0176 -->
3393<!-- md-lint skip-deprecation DEP0177 -->
3394<h4 id="DEP0178">DEP0178: <code>dirent.path</code><span><a class="mark" href="#dep0178-direntpath" id="dep0178-direntpath">#</a></span><a aria-hidden="true" class="legacy" id="deprecations_dep0178_dirent_path"></a></h4>
3395<div class="api_metadata">
3396<details class="changelog"><summary>History</summary>
3397<table>
3398<tbody><tr><th>Version</th><th>Changes</th></tr>
3399<tr><td>v18.20.0</td>
3400<td><p>Documentation-only deprecation.</p></td></tr>
3401</tbody></table>
3402</details>
3403</div>
3404<p>Type: Documentation-only</p>
3405<p>The <a href="fs.html#direntpath"><code>dirent.path</code></a> is deprecated due to its lack of consistency across
3406release lines. Please use <a href="fs.html#direntparentpath"><code>dirent.parentPath</code></a> instead.</p></section>
3407        <!-- API END -->
3408      </div>
3409    </div>
3410  </div>
3411</body>
3412</html>
3413