File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -519,14 +519,18 @@ The `Server.listenFD()` method was deprecated and removed. Please use
519519### DEP0022: ` os.tmpDir() `
520520<!-- YAML
521521changes:
522+ - version: REPLACEME
523+ pr-url: REPLACEME
524+ description: End-of-Life.
522525 - version: v7.0.0
523526 pr-url: https://github.com/nodejs/node/pull/6739
524527 description: Runtime deprecation.
525528-->
526529
527- Type: Runtime
530+ Type: End-of-Life
528531
529- The ` os.tmpDir() ` API is deprecated. Please use [ ` os.tmpdir() ` ] [ ] instead.
532+ The ` os.tmpDir() ` API iws deprecated in Node.js 7.0.0 and has since been
533+ removed. Please use [ ` os.tmpdir() ` ] [ ] instead.
530534
531535<a id =" DEP0023 " ></a >
532536### DEP0023: ` os.getNetworkInterfaces() `
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ const {
2828
2929const { safeGetenv } = internalBinding ( 'credentials' ) ;
3030const constants = internalBinding ( 'constants' ) . os ;
31- const { deprecate } = require ( 'internal/util' ) ;
3231const isWindows = process . platform === 'win32' ;
3332
3433const {
@@ -83,9 +82,6 @@ getUptime[SymbolToPrimitive] = () => getUptime();
8382
8483const kEndianness = isBigEndian ? 'BE' : 'LE' ;
8584
86- const tmpDirDeprecationMsg =
87- 'os.tmpDir() is deprecated. Use os.tmpdir() instead.' ;
88-
8985const avgValues = new Float64Array ( 3 ) ;
9086
9187function loadavg ( ) {
@@ -285,9 +281,6 @@ module.exports = {
285281 type : getOSType ,
286282 userInfo,
287283 uptime : getUptime ,
288-
289- // Deprecated APIs
290- tmpDir : deprecate ( tmpdir , tmpDirDeprecationMsg , 'DEP0022' )
291284} ;
292285
293286ObjectDefineProperties ( module . exports , {
You can’t perform that action at this time.
0 commit comments