Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
os: move tmpDir() to EOL
The tmpDir alias was deprecated in 7.0.0
  • Loading branch information
jasnell committed Feb 2, 2020
commit 957084ad62e47df5d9f614f3b3841b17b9e0a3ff
8 changes: 6 additions & 2 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,18 @@ The `Server.listenFD()` method was deprecated and removed. Please use
### DEP0022: `os.tmpDir()`
<!-- YAML
changes:
- version: REPLACEME
pr-url: REPLACEME
description: End-of-Life.
- version: v7.0.0
pr-url: https://github.com/nodejs/node/pull/6739
description: Runtime deprecation.
-->

Type: Runtime
Type: End-of-Life

The `os.tmpDir()` API is deprecated. Please use [`os.tmpdir()`][] instead.
The `os.tmpDir()` API iws deprecated in Node.js 7.0.0 and has since been
Comment thread
jasnell marked this conversation as resolved.
Outdated
removed. Please use [`os.tmpdir()`][] instead.

<a id="DEP0023"></a>
### DEP0023: `os.getNetworkInterfaces()`
Expand Down
6 changes: 0 additions & 6 deletions lib/os.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ getUptime[SymbolToPrimitive] = () => getUptime();

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

const tmpDirDeprecationMsg =
'os.tmpDir() is deprecated. Use os.tmpdir() instead.';

const avgValues = new Float64Array(3);

function loadavg() {
Expand Down Expand Up @@ -285,9 +282,6 @@ module.exports = {
type: getOSType,
userInfo,
uptime: getUptime,

// Deprecated APIs
tmpDir: deprecate(tmpdir, tmpDirDeprecationMsg, 'DEP0022')
Comment thread
jasnell marked this conversation as resolved.
Outdated
};

ObjectDefineProperties(module.exports, {
Expand Down