os: move tmpDir() to EOL

The tmpDir alias was deprecated in 7.0.0

PR-URL: https://github.com/nodejs/node/pull/31169
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
pull/31655/head
James M Snell 2020-01-02 14:45:24 -08:00
parent ec0dd6fa1c
commit ab4115f17c
No known key found for this signature in database
GPG Key ID: 7341B15C070877AC
2 changed files with 6 additions and 9 deletions

View File

@ -519,14 +519,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
removed. Please use [`os.tmpdir()`][] instead.
<a id="DEP0023"></a>
### DEP0023: `os.getNetworkInterfaces()`

View File

@ -28,7 +28,6 @@ const {
const { safeGetenv } = internalBinding('credentials');
const constants = internalBinding('constants').os;
const { deprecate } = require('internal/util');
const isWindows = process.platform === 'win32';
const {
@ -83,9 +82,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() {
@ -285,9 +281,6 @@ module.exports = {
type: getOSType,
userInfo,
uptime: getUptime,
// Deprecated APIs
tmpDir: deprecate(tmpdir, tmpDirDeprecationMsg, 'DEP0022')
};
ObjectDefineProperties(module.exports, {