Skip to content

Commit ab4115f

Browse files
committed
os: move tmpDir() to EOL
The tmpDir alias was deprecated in 7.0.0 PR-URL: #31169 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent ec0dd6f commit ab4115f

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

doc/api/deprecations.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,18 @@ The `Server.listenFD()` method was deprecated and removed. Please use
519519
### DEP0022: `os.tmpDir()`
520520
<!-- YAML
521521
changes:
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()`

lib/os.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const {
2828

2929
const { safeGetenv } = internalBinding('credentials');
3030
const constants = internalBinding('constants').os;
31-
const { deprecate } = require('internal/util');
3231
const isWindows = process.platform === 'win32';
3332

3433
const {
@@ -83,9 +82,6 @@ getUptime[SymbolToPrimitive] = () => getUptime();
8382

8483
const kEndianness = isBigEndian ? 'BE' : 'LE';
8584

86-
const tmpDirDeprecationMsg =
87-
'os.tmpDir() is deprecated. Use os.tmpdir() instead.';
88-
8985
const avgValues = new Float64Array(3);
9086

9187
function 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

293286
ObjectDefineProperties(module.exports, {

0 commit comments

Comments
 (0)