lib: move DEP0023 to end of life · nodejs/node@853bee0 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -513,6 +513,9 @@ The `os.tmpDir()` API is deprecated. Please use [`os.tmpdir()`][] instead.
513 513 ### DEP0023: os.getNetworkInterfaces()
514 514 <!-- YAML
515 515 changes:
516 + - version: REPLACEME
517 + pr-url: https://github.com/nodejs/node/pull/25280
518 + description: End-of-Life.
516 519 - version:
517 520 - v4.8.6
518 521 - v6.12.0
@@ -523,10 +526,10 @@ changes:
523 526 description: Runtime deprecation.
524 527 -->
525 528
526 -Type: Runtime
529 +Type: End-of-Life
527 530
528 531 The `os.getNetworkInterfaces()` method is deprecated. Please use the
529 -[`os.networkInterfaces`][] property instead.
532 +[`os.networkInterfaces()`][] method instead.
530 533
531 534 <a id="DEP0024"></a>
532 535 ### DEP0024: REPLServer.prototype.convertToContext()
@@ -2366,7 +2369,7 @@ Setting the TLS ServerName to an IP address is not permitted by
2366 2369 [`http.request()`]: http.html#http_http_request_options_callback
2367 2370 [`https.get()`]: https.html#https_https_get_options_callback
2368 2371 [`https.request()`]: https.html#https_https_request_options_callback
2369 -[`os.networkInterfaces`]: os.html#os_os_networkinterfaces
2372 +[`os.networkInterfaces()`]: os.html#os_os_networkinterfaces
2370 2373 [`os.tmpdir()`]: os.html#os_os_tmpdir
2371 2374 [`process.env`]: process.html#process_process_env
2372 2375 [`punycode`]: punycode.html
Original file line number Diff line number Diff line change
@@ -78,9 +78,6 @@ const kEndianness = isBigEndian ? 'BE' : 'LE';
78 78 const tmpDirDeprecationMsg =
79 79 'os.tmpDir() is deprecated. Use os.tmpdir() instead.';
80 80
81 -const getNetworkInterfacesDepMsg =
82 -'os.getNetworkInterfaces is deprecated. Use os.networkInterfaces instead.';
83 -
84 81 const avgValues = new Float64Array(3);
85 82
86 83 function loadavg() {
@@ -269,9 +266,6 @@ module.exports = {
269 266 uptime: getUptime,
270 267
271 268 // Deprecated APIs
272 -getNetworkInterfaces: deprecate(getInterfaceAddresses,
273 -getNetworkInterfacesDepMsg,
274 -'DEP0023'),
275 269 tmpDir: deprecate(tmpdir, tmpDirDeprecationMsg, 'DEP0022')
276 270 };
277 271