{"$schema":"https://doc-kit.nodejs.org/schemas/api-doc/1.0.0.json","id":"deprecations","path":"/deprecations","type":"misc","module":null,"title":"Deprecated APIs","introducedIn":"v7.7.0","sourceLink":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[],"description":"Node.js APIs might be deprecated for any of the following reasons:\n\n* Use of the API is unsafe.\n* An improved alternative API is available.\n* Breaking changes to the API are expected in a future major release.\n\nNode.js uses four kinds of deprecations:\n\n* Documentation-only\n* Application (non-`node_modules` code only)\n* Runtime (all code)\n* End-of-Life\n\nA Documentation-only deprecation is one that is expressed only within the\nNode.js API docs. These generate no side-effects while running Node.js.\nSome Documentation-only deprecations trigger a runtime warning when launched\nwith [`--pending-deprecation`](cli.html#--pending-deprecation) flag (or its alternative,\n`NODE_PENDING_DEPRECATION=1` environment variable), similarly to Runtime\ndeprecations below. Documentation-only deprecations that support that flag\nare explicitly labeled as such in the\n[list of Deprecated APIs](#list-of-deprecated-apis).\n\nAn Application deprecation for only non-`node_modules` code will, by default,\ngenerate a process warning that will be printed to `stderr` the first time\nthe deprecated API is used in code that's not loaded from `node_modules`.\nWhen the [`--throw-deprecation`](cli.html#--throw-deprecation) command-line flag is used, a Runtime\ndeprecation will cause an error to be thrown. When\n[`--pending-deprecation`](cli.html#--pending-deprecation) is used, warnings will also be emitted for\ncode loaded from `node_modules`.\n\nA runtime deprecation for all code is similar to the runtime deprecation\nfor non-`node_modules` code, except that it also emits a warning for\ncode loaded from `node_modules`.\n\nAn End-of-Life deprecation is used when functionality is or will soon be removed\nfrom Node.js.","summary":"Node.js APIs might be deprecated for any of the following reasons:","examples":[],"children":[{"kind":"section","id":"revoking-deprecations","name":"Revoking deprecations","title":"Revoking deprecations","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[],"description":"Occasionally, the deprecation of an API might be reversed. In such situations,\nthis document will be updated with information relevant to the decision.\nHowever, the deprecation identifier will not be modified.","summary":"Occasionally, the deprecation of an API might be reversed. In such situations, this document will be updated with information relevant to the decision. However, the deprecation identifier will not be modified.","examples":[],"children":[]},{"kind":"section","id":"list-of-deprecated-apis","name":"List of deprecated APIs","title":"List of deprecated APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[],"description":"","summary":"","examples":[],"children":[{"kind":"section","id":"DEP0001","name":"DEP0001: http.OutgoingMessage.prototype.flush","title":"DEP0001: `http.OutgoingMessage.prototype.flush`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/31164","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v1.6.0"],"prUrl":"https://github.com/nodejs/node/pull/1156","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`OutgoingMessage.prototype.flush()` has been removed. Use\n`OutgoingMessage.prototype.flushHeaders()` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0002","name":"DEP0002: require('_linklist')","title":"DEP0002: `require('_linklist')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/12113","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v5.0.0"],"prUrl":"https://github.com/nodejs/node/pull/3078","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `_linklist` module is deprecated. Please use a userland alternative.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0003","name":"DEP0003: _writableState.buffer","title":"DEP0003: `_writableState.buffer`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/31165","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.15"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/8826","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `_writableState.buffer` has been removed. Use `_writableState.getBuffer()`\ninstead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0004","name":"DEP0004: CryptoStream.prototype.readyState","title":"DEP0004: `CryptoStream.prototype.readyState`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17882","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.4.0"],"prUrl":null,"commit":"9c7f89bf56abd37a796fea621ad2e47dd33d2b82","description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `CryptoStream.prototype.readyState` property was removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0005","name":"DEP0005: Buffer() constructor","title":"DEP0005: `Buffer()` constructor","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19524","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/4682","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Application (non-`node_modules` code only)\n\nThe `Buffer()` function and `new Buffer()` constructor are deprecated due to\nAPI usability issues that can lead to accidental security issues.\n\nAs an alternative, use one of the following methods of constructing `Buffer`\nobjects:\n\n* [`Buffer.alloc(size[, fill[, encoding]])`](buffer.html#static-method-bufferallocsize-fill-encoding): Create a `Buffer` with\n  *initialized* memory.\n* [`Buffer.allocUnsafe(size)`](buffer.html#static-method-bufferallocunsafesize-alignment): Create a `Buffer` with\n  *uninitialized* memory.\n* [`Buffer.allocUnsafeSlow(size)`](buffer.html#static-method-bufferallocunsafeslowsize-alignment): Create a `Buffer` with *uninitialized*\n  memory.\n* [`Buffer.from(array)`](buffer.html#static-method-bufferfromarray): Create a `Buffer` with a copy of `array`\n* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`](buffer.html#static-method-bufferfromarraybuffer-byteoffset-length) -\n  Create a `Buffer` that wraps the given `arrayBuffer`.\n* [`Buffer.from(buffer)`](buffer.html#static-method-bufferfrombuffer): Create a `Buffer` that copies `buffer`.\n* [`Buffer.from(string[, encoding])`](buffer.html#static-method-bufferfromstring-encoding): Create a `Buffer`\n  that copies `string`.\n\nWithout `--pending-deprecation`, runtime warnings occur only for code not in\n`node_modules`. This means there will not be deprecation warnings for\n`Buffer()` usage in dependencies. With `--pending-deprecation`, a runtime\nwarning results no matter where the `Buffer()` usage occurs.","summary":"Type: Application (non-`node_modules` code only)","examples":[],"children":[]},{"kind":"section","id":"DEP0006","name":"DEP0006: child_process options.customFds","title":"DEP0006: `child_process` `options.customFds`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25279","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.14"],"prUrl":null,"commit":null,"description":"Runtime deprecation."},{"versions":["v0.5.10"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nWithin the [`child_process`](child_process.html) module's `spawn()`, `fork()`, and `exec()`\nmethods, the `options.customFds` option is deprecated. The `options.stdio`\noption should be used instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0007","name":"DEP0007: Replace cluster worker.suicide with worker.exitedAfterDisconnect","title":"DEP0007: Replace `cluster` `worker.suicide` with `worker.exitedAfterDisconnect`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13702","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/3747","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/3743","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nIn an earlier version of the Node.js `cluster`, a boolean property with the name\n`suicide` was added to the `Worker` object. The intent of this property was to\nprovide an indication of how and why the `Worker` instance exited. In Node.js\n6.0.0, the old property was deprecated and replaced with a new\n[`worker.exitedAfterDisconnect`](cluster.html#workerexitedafterdisconnect) property. The old property name did not\nprecisely describe the actual semantics and was unnecessarily emotion-laden.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0008","name":"DEP0008: require('node:constants')","title":"DEP0008: `require('node:constants')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.3.0"],"prUrl":"https://github.com/nodejs/node/pull/6534","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `node:constants` module is deprecated. When requiring access to constants\nrelevant to specific Node.js builtin modules, developers should instead refer\nto the `constants` property exposed by the relevant module. For instance,\n`require('node:fs').constants` and `require('node:os').constants`.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0009","name":"DEP0009: crypto.pbkdf2 without digest","title":"DEP0009: `crypto.pbkdf2` without digest","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/31166","commit":null,"description":"End-of-Life (for `digest === null`)."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22861","commit":null,"description":"Runtime deprecation (for `digest === null`)."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11305","commit":null,"description":"End-of-Life (for `digest === undefined`)."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/4047","commit":null,"description":"Runtime deprecation (for `digest === undefined`)."}],"description":"Type: End-of-Life\n\nUse of the [`crypto.pbkdf2()`](crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback) API without specifying a digest was deprecated\nin Node.js 6.0 because the method defaulted to using the non-recommended\n`'SHA1'` digest. Previously, a deprecation warning was printed. Starting in\nNode.js 8.0.0, calling `crypto.pbkdf2()` or `crypto.pbkdf2Sync()` with\n`digest` set to `undefined` will throw a `TypeError`.\n\nBeginning in Node.js 11.0.0, calling these functions with `digest` set to\n`null` would print a deprecation warning to align with the behavior when `digest`\nis `undefined`.\n\nNow, however, passing either `undefined` or `null` will throw a `TypeError`.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0010","name":"DEP0010: crypto.createCredentials","title":"DEP0010: `crypto.createCredentials`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/21153","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.13"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/7265","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `crypto.createCredentials()` API was removed. Please use\n[`tls.createSecureContext()`](tls.html#tlscreatesecurecontextoptions) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0011","name":"DEP0011: crypto.Credentials","title":"DEP0011: `crypto.Credentials`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/21153","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.13"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/7265","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `crypto.Credentials` class was removed. Please use [`tls.SecureContext`](tls.html#tlscreatesecurecontextoptions)\ninstead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0012","name":"DEP0012: Domain.dispose","title":"DEP0012: `Domain.dispose`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/15412","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.7"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/5021","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`Domain.dispose()` has been removed. Recover from failed I/O actions\nexplicitly via error event handlers set on the domain instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0013","name":"DEP0013: fs asynchronous function without callback","title":"DEP0013: `fs` asynchronous function without callback","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18668","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/7897","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nCalling an asynchronous function without a callback throws a `TypeError`\nin Node.js 10.0.0 onwards. See <https://github.com/nodejs/node/pull/12562>.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0014","name":"DEP0014: fs.read legacy String interface","title":"DEP0014: `fs.read` legacy String interface","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/9683","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/4525","commit":null,"description":"Runtime deprecation."},{"versions":["v0.1.96"],"prUrl":null,"commit":"c93e0aaf062081db3ec40ac45b3e2c979d5759d6","description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe [`fs.read()`](fs.html#fsreadfd-buffer-offset-length-position-callback) legacy `String` interface is deprecated. Use the `Buffer`\nAPI as mentioned in the documentation instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0015","name":"DEP0015: fs.readSync legacy String interface","title":"DEP0015: `fs.readSync` legacy String interface","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/9683","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/4525","commit":null,"description":"Runtime deprecation."},{"versions":["v0.1.96"],"prUrl":null,"commit":"c93e0aaf062081db3ec40ac45b3e2c979d5759d6","description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe [`fs.readSync()`](fs.html#fsreadsyncfd-buffer-offset-length-position) legacy `String` interface is deprecated. Use the\n`Buffer` API as mentioned in the documentation instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0016","name":"DEP0016: GLOBAL/root","title":"DEP0016: `GLOBAL`/`root`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/31167","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/1838","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `GLOBAL` and `root` aliases for the `global` property were deprecated\nin Node.js 6.0.0 and have since been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0017","name":"DEP0017: Intl.v8BreakIterator","title":"DEP0017: `Intl.v8BreakIterator`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/15238","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/8908","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`Intl.v8BreakIterator` was a non-standard extension and has been removed.\nSee [`Intl.Segmenter`](https://github.com/tc39/proposal-intl-segmenter).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0018","name":"DEP0018: Unhandled promise rejections","title":"DEP0018: Unhandled promise rejections","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/35316","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/8217","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nUnhandled promise rejections are deprecated. By default, promise rejections\nthat are not handled terminate the Node.js process with a non-zero exit\ncode. To change the way Node.js treats unhandled rejections, use the\n[`--unhandled-rejections`](cli.html#--unhandled-rejectionsmode) command-line option.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0019","name":"DEP0019: require('.') resolved outside directory","title":"DEP0019: `require('.')` resolved outside directory","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26973","commit":null,"description":"Removed functionality."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v1.8.1"],"prUrl":"https://github.com/nodejs/node/pull/1363","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nIn certain cases, `require('.')` could resolve outside the package directory.\nThis behavior has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0020","name":"DEP0020: Server.connections","title":"DEP0020: `Server.connections`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33647","commit":null,"description":"Server.connections has been removed."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.9.7"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/4595","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `Server.connections` property was deprecated in Node.js 0.9.7 and has\nbeen removed. Please use the [`Server.getConnections()`](net.html#servergetconnectionscallback) method instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0021","name":"DEP0021: Server.listenFD","title":"DEP0021: `Server.listenFD`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/27127","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.7.12"],"prUrl":null,"commit":"41421ff9da1288aa241a5e9dcf915b685ade1c23","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `Server.listenFD()` method was deprecated and removed. Please use\n[`Server.listen({fd: <number>})`](net.html#serverlistenhandle-backlog-callback) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0022","name":"DEP0022: os.tmpDir()","title":"DEP0022: `os.tmpDir()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/31169","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/6739","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `os.tmpDir()` API was deprecated in Node.js 7.0.0 and has since been\nremoved. Please use [`os.tmpdir()`](os.html#ostmpdir) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tmpdir-to-tmpdir)):\n\n```bash\nnpx codemod@latest @nodejs/tmpDir-to-tmpdir\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/tmpDir-to-tmpdir"}],"children":[]},{"kind":"section","id":"DEP0023","name":"DEP0023: os.getNetworkInterfaces()","title":"DEP0023: `os.getNetworkInterfaces()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25280","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.6.0"],"prUrl":null,"commit":"37bb37d151fb6ee4696730e63ff28bb7a4924f97","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `os.getNetworkInterfaces()` method is deprecated. Please use the\n[`os.networkInterfaces()`](os.html#osnetworkinterfaces) method instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0024","name":"DEP0024: REPLServer.prototype.convertToContext()","title":"DEP0024: `REPLServer.prototype.convertToContext()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13434","commit":null,"description":"End-of-Life."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/7829","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `REPLServer.prototype.convertToContext()` API has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0025","name":"DEP0025: require('node:sys')","title":"DEP0025: `require('node:sys')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v1.0.0"],"prUrl":"https://github.com/nodejs/node/pull/317","commit":null,"description":"Runtime deprecation."}],"description":"Type: Runtime\n\nThe `node:sys` module is deprecated. Please use the [`util`](util.html) module instead.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0026","name":"DEP0026: util.print()","title":"DEP0026: `util.print()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25377","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.3"],"prUrl":null,"commit":"896b2aa7074fc886efd7dd0a397d694763cac7ce","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`util.print()` has been removed. Please use [`console.log()`](console.html#consolelogdata-args) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)):\n\n```bash\nnpx codemod@latest @nodejs/util-print-to-console-log\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-print-to-console-log"}],"children":[]},{"kind":"section","id":"DEP0027","name":"DEP0027: util.puts()","title":"DEP0027: `util.puts()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25377","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.3"],"prUrl":null,"commit":"896b2aa7074fc886efd7dd0a397d694763cac7ce","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`util.puts()` has been removed. Please use [`console.log()`](console.html#consolelogdata-args) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)):\n\n```bash\nnpx codemod@latest @nodejs/util-print-to-console-log\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-print-to-console-log"}],"children":[]},{"kind":"section","id":"DEP0028","name":"DEP0028: util.debug()","title":"DEP0028: `util.debug()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25377","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.3"],"prUrl":null,"commit":"896b2aa7074fc886efd7dd0a397d694763cac7ce","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`util.debug()` has been removed. Please use [`console.error()`](console.html#consoleerrordata-args) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)):\n\n```bash\nnpx codemod@latest @nodejs/util-print-to-console-log\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-print-to-console-log"}],"children":[]},{"kind":"section","id":"DEP0029","name":"DEP0029: util.error()","title":"DEP0029: `util.error()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25377","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.3"],"prUrl":null,"commit":"896b2aa7074fc886efd7dd0a397d694763cac7ce","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`util.error()` has been removed. Please use [`console.error()`](console.html#consoleerrordata-args) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)):\n\n```bash\nnpx codemod@latest @nodejs/util-print-to-console-log\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-print-to-console-log"}],"children":[]},{"kind":"section","id":"DEP0030","name":"DEP0030: SlowBuffer","title":"DEP0030: `SlowBuffer`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58220","commit":null,"description":"End-of-Life."},{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55175","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/5833","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `SlowBuffer` class has been removed. Please use\n[`Buffer.allocUnsafeSlow(size)`](buffer.html#static-method-bufferallocunsafeslowsize-alignment) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/slow-buffer-to-buffer-alloc-unsafe-slow)).\n\n```bash\nnpx codemod@latest @nodejs/slow-buffer-to-buffer-alloc-unsafe-slow\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/slow-buffer-to-buffer-alloc-unsafe-slow"}],"children":[]},{"kind":"section","id":"DEP0031","name":"DEP0031: ecdh.setPublicKey()","title":"DEP0031: `ecdh.setPublicKey()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58620","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v5.2.0"],"prUrl":"https://github.com/nodejs/node/pull/3511","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nThe [`ecdh.setPublicKey()`](crypto.html#ecdhsetpublickeypublickey-encoding) method is now deprecated as its inclusion in\nthe API is not useful.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0032","name":"DEP0032: node:domain module","title":"DEP0032: `node:domain` module","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v1.4.2"],"prUrl":"https://github.com/nodejs/node/pull/943","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`domain`](domain.html) module is deprecated and should not be used.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0033","name":"DEP0033: EventEmitter.listenerCount()","title":"DEP0033: `EventEmitter.listenerCount()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.4.0","v24.14.0"],"prUrl":"https://github.com/nodejs/node/pull/60214","commit":null,"description":"Deprecation revoked."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v3.2.0"],"prUrl":"https://github.com/nodejs/node/pull/2349","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Revoked\n\nThe [`events.listenerCount(emitter, eventName)`](events.html#eventslistenercountemitterortarget-eventname) API was deprecated, as it\nprovided identical functionality to [`emitter.listenerCount(eventName)`](events.html#emitterlistenercounteventname-listener). The\ndeprecation was revoked because this function has been repurposed to also\naccept {EventTarget} arguments.","summary":"Type: Revoked","examples":[],"children":[]},{"kind":"section","id":"DEP0034","name":"DEP0034: fs.exists(path, callback)","title":"DEP0034: `fs.exists(path, callback)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v1.0.0"],"prUrl":"https://github.com/nodejs/node/pull/166","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`fs.exists(path, callback)`](fs.html#fsexistspath-callback) API is deprecated. Please use\n[`fs.stat()`](fs.html#fsstatpath-options-callback) or [`fs.access()`](fs.html#fsaccesspath-mode-callback) instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0035","name":"DEP0035: fs.lchmod(path, mode, callback)","title":"DEP0035: `fs.lchmod(path, mode, callback)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.4.7"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`fs.lchmod(path, mode, callback)`](fs.html#fslchmodpath-mode-callback) API is deprecated.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0036","name":"DEP0036: fs.lchmodSync(path, mode)","title":"DEP0036: `fs.lchmodSync(path, mode)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.4.7"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`fs.lchmodSync(path, mode)`](fs.html#fslchmodsyncpath-mode) API is deprecated.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0037","name":"DEP0037: fs.lchown(path, uid, gid, callback)","title":"DEP0037: `fs.lchown(path, uid, gid, callback)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.6.0"],"prUrl":"https://github.com/nodejs/node/pull/21498","commit":null,"description":"Deprecation revoked."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.4.7"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Deprecation revoked\n\nThe [`fs.lchown(path, uid, gid, callback)`](fs.html#fslchownpath-uid-gid-callback) API was deprecated. The\ndeprecation was revoked because the requisite supporting APIs were added in\nlibuv.","summary":"Type: Deprecation revoked","examples":[],"children":[]},{"kind":"section","id":"DEP0038","name":"DEP0038: fs.lchownSync(path, uid, gid)","title":"DEP0038: `fs.lchownSync(path, uid, gid)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.6.0"],"prUrl":"https://github.com/nodejs/node/pull/21498","commit":null,"description":"Deprecation revoked."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.4.7"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Deprecation revoked\n\nThe [`fs.lchownSync(path, uid, gid)`](fs.html#fslchownsyncpath-uid-gid) API was deprecated. The deprecation was\nrevoked because the requisite supporting APIs were added in libuv.","summary":"Type: Deprecation revoked","examples":[],"children":[]},{"kind":"section","id":"DEP0039","name":"DEP0039: require.extensions","title":"DEP0039: `require.extensions`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.10.6"],"prUrl":null,"commit":"7bd8a5a2a60b75266f89f9a32877d55294a3881c","description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`require.extensions`](modules.html#requireextensions) property is deprecated.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0040","name":"DEP0040: node:punycode module","title":"DEP0040: `node:punycode` module","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.7.0","v22.14.0"],"prUrl":"https://github.com/nodejs/node/pull/56632","commit":null,"description":"Application deprecation."},{"versions":["v21.0.0"],"prUrl":"https://github.com/nodejs/node/pull/47202","commit":null,"description":"Runtime deprecation."},{"versions":["v16.6.0"],"prUrl":"https://github.com/nodejs/node/pull/38444","commit":null,"description":"Added support for `--pending-deprecation`."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/7941","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Application (non-`node_modules` code only)\n\nThe [`punycode`](punycode.html) module is deprecated. Please use a userland alternative\ninstead.","summary":"Type: Application (non-`node_modules` code only)","examples":[],"children":[]},{"kind":"section","id":"DEP0041","name":"DEP0041: NODE_REPL_HISTORY_FILE environment variable","title":"DEP0041: `NODE_REPL_HISTORY_FILE` environment variable","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13876","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v3.0.0"],"prUrl":"https://github.com/nodejs/node/pull/2224","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `NODE_REPL_HISTORY_FILE` environment variable was removed. Please use\n`NODE_REPL_HISTORY` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0042","name":"DEP0042: tls.CryptoStream","title":"DEP0042: `tls.CryptoStream`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17882","commit":null,"description":"End-of-Life."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v0.11.3"],"prUrl":null,"commit":"af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7","description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `tls.CryptoStream` class was removed. Please use\n[`tls.TLSSocket`](tls.html#class-tlstlssocket) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0043","name":"DEP0043: tls.SecurePair","title":"DEP0043: `tls.SecurePair`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57361","commit":null,"description":"End-of-Life."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11349","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/6063","commit":null,"description":"Documentation-only deprecation."},{"versions":["v0.11.15"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/8695,https://github.com/nodejs/node-v0.x-archive/pull/8700","commit":null,"description":"Deprecation revoked."},{"versions":["v0.11.3"],"prUrl":null,"commit":"af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `tls.SecurePair` class is deprecated. Please use\n[`tls.TLSSocket`](tls.html#class-tlstlssocket) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0044","name":"DEP0044: util.isArray()","title":"DEP0044: `util.isArray()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nThe [`util.isArray()`](util.html#utilisarrayobject) API is deprecated. Please use `Array.isArray()`\ninstead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: Runtime","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0045","name":"DEP0045: util.isBoolean()","title":"DEP0045: `util.isBoolean()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isBoolean()` API has been removed. Please use\n`typeof arg === 'boolean'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0046","name":"DEP0046: util.isBuffer()","title":"DEP0046: `util.isBuffer()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isBuffer()` API has been removed. Please use\n[`Buffer.isBuffer()`](buffer.html#static-method-bufferisbufferobj) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0047","name":"DEP0047: util.isDate()","title":"DEP0047: `util.isDate()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isDate()` API has been removed. Please use\n`arg instanceof Date` instead.\n\nAlso for stronger approaches, consider using:\n`Date.prototype.toString.call(arg) === '[object Date]' && !isNaN(arg)`.\nThis can also be used in a `try/catch` block to handle invalid date objects.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0048","name":"DEP0048: util.isError()","title":"DEP0048: `util.isError()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isError()` API has been removed. Please use `Error.isError(arg)`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0049","name":"DEP0049: util.isFunction()","title":"DEP0049: `util.isFunction()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isFunction()` API has been removed. Please use\n`typeof arg === 'function'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0050","name":"DEP0050: util.isNull()","title":"DEP0050: `util.isNull()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isNull()` API has been removed. Please use\n`arg === null` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0051","name":"DEP0051: util.isNullOrUndefined()","title":"DEP0051: `util.isNullOrUndefined()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isNullOrUndefined()` API has been removed. Please use\n`arg === null || arg === undefined` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0052","name":"DEP0052: util.isNumber()","title":"DEP0052: `util.isNumber()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isNumber()` API has been removed. Please use\n`typeof arg === 'number'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0053","name":"DEP0053: util.isObject()","title":"DEP0053: `util.isObject()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isObject()` API has been removed. Please use\n`arg && typeof arg === 'object'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0054","name":"DEP0054: util.isPrimitive()","title":"DEP0054: `util.isPrimitive()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isPrimitive()` API has been removed. Please use `Object(arg) !== arg` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0055","name":"DEP0055: util.isRegExp()","title":"DEP0055: `util.isRegExp()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isRegExp()` API has been removed. Please use\n`arg instanceof RegExp` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0056","name":"DEP0056: util.isString()","title":"DEP0056: `util.isString()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isString()` API has been removed. Please use\n`typeof arg === 'string'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0057","name":"DEP0057: util.isSymbol()","title":"DEP0057: `util.isSymbol()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isSymbol()` API has been removed. Please use\n`typeof arg === 'symbol'` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0058","name":"DEP0058: util.isUndefined()","title":"DEP0058: `util.isUndefined()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0","v4.8.6"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v4.0.0","v3.3.1"],"prUrl":"https://github.com/nodejs/node/pull/2447","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.isUndefined()` API has been removed. Please use\n`arg === undefined` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):\n\n```bash\nnpx codemod@latest @nodejs/util-is\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-is"}],"children":[]},{"kind":"section","id":"DEP0059","name":"DEP0059: util.log()","title":"DEP0059: `util.log()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52744","commit":null,"description":"End-of-Life deprecation."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/6161","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.log()` API has been removed because it's an unmaintained\nlegacy API that was exposed to user land by accident. Instead,\nconsider the following alternatives based on your specific needs:\n\n* **Third-Party Logging Libraries**\n\n* **Use `console.log(new Date().toLocaleString(), message)`**\n\nBy adopting one of these alternatives, you can transition away from `util.log()`\nand choose a logging strategy that aligns with the specific\nrequirements and complexity of your application.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-log-to-console-log)):\n\n```bash\nnpx codemod@latest @nodejs/util-log-to-console-log\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-log-to-console-log"}],"children":[]},{"kind":"section","id":"DEP0060","name":"DEP0060: util._extend()","title":"DEP0060: `util._extend()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50488","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/4903","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nThe [`util._extend()`](util.html#util_extendtarget-source) API is deprecated because it's an unmaintained\nlegacy API that was exposed to user land by accident.\nPlease use `target = Object.assign(target, source)` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-extend-to-object-assign)):\n\n```bash\nnpx codemod@latest @nodejs/util-extend-to-object-assign\n```","summary":"Type: Runtime","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/util-extend-to-object-assign"}],"children":[]},{"kind":"section","id":"DEP0061","name":"DEP0061: fs.SyncWriteStream","title":"DEP0061: `fs.SyncWriteStream`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/20735","commit":null,"description":"End-of-Life."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/10467","commit":null,"description":"Runtime deprecation."},{"versions":["v7.0.0"],"prUrl":"https://github.com/nodejs/node/pull/6749","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `fs.SyncWriteStream` class was never intended to be a publicly accessible\nAPI and has been removed. No alternative API is available. Please use a userland\nalternative.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0062","name":"DEP0062: node --debug","title":"DEP0062: `node --debug`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25828","commit":null,"description":"End-of-Life."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/10970","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`--debug` activates the legacy V8 debugger interface, which was removed as\nof V8 5.8. It is replaced by Inspector which is activated with `--inspect`\ninstead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0063","name":"DEP0063: ServerResponse.prototype.writeHeader()","title":"DEP0063: `ServerResponse.prototype.writeHeader()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/60635","commit":null,"description":"End-of-Life."},{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/59060","commit":null,"description":"Runtime deprecation."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11355","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `node:http` module `ServerResponse.prototype.writeHeader()` API is\ndeprecated. Please use `ServerResponse.prototype.writeHead()` instead.\n\nThe `ServerResponse.prototype.writeHeader()` method was never documented as an\nofficially supported API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0064","name":"DEP0064: tls.createSecurePair()","title":"DEP0064: `tls.createSecurePair()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57361","commit":null,"description":"End-of-Life."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11349","commit":null,"description":"Runtime deprecation."},{"versions":["v6.12.0"],"prUrl":"https://github.com/nodejs/node/pull/10116","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v6.0.0"],"prUrl":"https://github.com/nodejs/node/pull/6063","commit":null,"description":"Documentation-only deprecation."},{"versions":["v0.11.15"],"prUrl":"https://github.com/nodejs/node-v0.x-archive/pull/8695,https://github.com/nodejs/node-v0.x-archive/pull/8700","commit":null,"description":"Deprecation revoked."},{"versions":["v0.11.3"],"prUrl":null,"commit":"af80e7bc6e6f33c582eb1f7d37c7f5bbe9f910f7","description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `tls.createSecurePair()` API was deprecated in documentation in Node.js\n0.11.3. Users should use `tls.Socket` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tls-create-secure-pair-to-tls-socket)):\n\n```bash\nnpx codemod @nodejs/tls-create-secure-pair-to-tls-socket\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/tls-create-secure-pair-to-tls-socket"}],"children":[]},{"kind":"section","id":"DEP0065","name":"DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic","title":"DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19187","commit":null,"description":"End-of-Life."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11599","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `node:repl` module's `REPL_MODE_MAGIC` constant, used for `replMode` option,\nhas been removed. Its behavior has been functionally identical to that of\n`REPL_MODE_SLOPPY` since Node.js 6.0.0, when V8 5.0 was imported. Please use\n`REPL_MODE_SLOPPY` instead.\n\nThe `NODE_REPL_MODE` environment variable is used to set the underlying\n`replMode` of an interactive `node` session. Its value, `magic`, is also\nremoved. Please use `sloppy` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0066","name":"DEP0066: OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames","title":"DEP0066: `OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57551","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/24167","commit":null,"description":"Runtime deprecation."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/10941","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `node:http` module `OutgoingMessage.prototype._headers` and\n`OutgoingMessage.prototype._headerNames` properties are deprecated. Use one of\nthe public methods (e.g. `OutgoingMessage.prototype.getHeader()`,\n`OutgoingMessage.prototype.getHeaders()`,\n`OutgoingMessage.prototype.getHeaderNames()`,\n`OutgoingMessage.prototype.getRawHeaderNames()`,\n`OutgoingMessage.prototype.hasHeader()`,\n`OutgoingMessage.prototype.removeHeader()`,\n`OutgoingMessage.prototype.setHeader()`) for working with outgoing headers.\n\nThe `OutgoingMessage.prototype._headers` and\n`OutgoingMessage.prototype._headerNames` properties were never documented as\nofficially supported properties.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http-outgoingmessage-headers)):\n\n```bash\nnpx codemod@latest @nodejs/http-outgoingmessage-headers\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/http-outgoingmessage-headers"}],"children":[]},{"kind":"section","id":"DEP0067","name":"DEP0067: OutgoingMessage.prototype._renderHeaders","title":"DEP0067: `OutgoingMessage.prototype._renderHeaders`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/10941","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `node:http` module `OutgoingMessage.prototype._renderHeaders()` API is\ndeprecated.\n\nThe `OutgoingMessage.prototype._renderHeaders` property was never documented as\nan officially supported API.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0068","name":"DEP0068: node debug","title":"DEP0068: `node debug`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33648","commit":null,"description":"The legacy `node debug` command was removed."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/11441","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`node debug` corresponds to the legacy CLI debugger which has been replaced with\na V8-inspector based CLI debugger available through `node inspect`.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0069","name":"DEP0069: vm.runInDebugContext(string)","title":"DEP0069: `vm.runInDebugContext(string)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13295","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/12815","commit":null,"description":"Runtime deprecation."},{"versions":["v8.0.0"],"prUrl":"https://github.com/nodejs/node/pull/12243","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nDebugContext has been removed in V8 and is not available in Node.js 10+.\n\nDebugContext was an experimental API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0070","name":"DEP0070: async_hooks.currentId()","title":"DEP0070: `async_hooks.currentId()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14414","commit":null,"description":"End-of-Life."},{"versions":["v8.2.0"],"prUrl":"https://github.com/nodejs/node/pull/13490","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`async_hooks.currentId()` was renamed to `async_hooks.executionAsyncId()` for\nclarity.\n\nThis change was made while `async_hooks` was an experimental API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0071","name":"DEP0071: async_hooks.triggerId()","title":"DEP0071: `async_hooks.triggerId()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14414","commit":null,"description":"End-of-Life."},{"versions":["v8.2.0"],"prUrl":"https://github.com/nodejs/node/pull/13490","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`async_hooks.triggerId()` was renamed to `async_hooks.triggerAsyncId()` for\nclarity.\n\nThis change was made while `async_hooks` was an experimental API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0072","name":"DEP0072: async_hooks.AsyncResource.triggerId()","title":"DEP0072: `async_hooks.AsyncResource.triggerId()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14414","commit":null,"description":"End-of-Life."},{"versions":["v8.2.0"],"prUrl":"https://github.com/nodejs/node/pull/13490","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`async_hooks.AsyncResource.triggerId()` was renamed to\n`async_hooks.AsyncResource.triggerAsyncId()` for clarity.\n\nThis change was made while `async_hooks` was an experimental API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0073","name":"DEP0073: Several internal properties of net.Server","title":"DEP0073: Several internal properties of `net.Server`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17141","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14449","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nAccessing several internal, undocumented properties of `net.Server` instances\nwith inappropriate names is deprecated.\n\nAs the original API was undocumented and not generally useful for non-internal\ncode, no replacement API is provided.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0074","name":"DEP0074: REPLServer.bufferedCommand","title":"DEP0074: `REPLServer.bufferedCommand`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33286","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13687","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `REPLServer.bufferedCommand` property was deprecated in favor of\n[`REPLServer.clearBufferedCommand()`](repl.html#replserverclearbufferedcommand).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0075","name":"DEP0075: REPLServer.parseREPLKeyword()","title":"DEP0075: `REPLServer.parseREPLKeyword()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33286","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14223","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`REPLServer.parseREPLKeyword()` was removed from userland visibility.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0076","name":"DEP0076: tls.parseCertString()","title":"DEP0076: `tls.parseCertString()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/41479","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14249","commit":null,"description":"Runtime deprecation."},{"versions":["v8.6.0"],"prUrl":"https://github.com/nodejs/node/pull/14245","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\n`tls.parseCertString()` was a trivial parsing helper that was made public by\nmistake. While it was supposed to parse certificate subject and issuer strings,\nit never handled multi-value Relative Distinguished Names correctly.\n\nEarlier versions of this document suggested using `querystring.parse()` as an\nalternative to `tls.parseCertString()`. However, `querystring.parse()` also does\nnot handle all certificate subjects correctly and should not be used.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0077","name":"DEP0077: Module._debug()","title":"DEP0077: `Module._debug()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58473","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/13948","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`Module._debug()` has been removed.\n\nThe `Module._debug()` function was never documented as an officially\nsupported API.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0078","name":"DEP0078: REPLServer.turnOffEditorMode()","title":"DEP0078: `REPLServer.turnOffEditorMode()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33286","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/15136","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`REPLServer.turnOffEditorMode()` was removed from userland visibility.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0079","name":"DEP0079: Custom inspection function on objects via .inspect()","title":"DEP0079: Custom inspection function on objects via `.inspect()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/20722","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/16393","commit":null,"description":"Runtime deprecation."},{"versions":["v8.7.0"],"prUrl":"https://github.com/nodejs/node/pull/15631","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nUsing a property named `inspect` on an object to specify a custom inspection\nfunction for [`util.inspect()`](util.html#utilinspectobject-options) is deprecated. Use [`util.inspect.custom`](util.html#utilinspectcustom)\ninstead. For backward compatibility with Node.js prior to version 6.4.0, both\ncan be specified.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0080","name":"DEP0080: path._makeLong()","title":"DEP0080: `path._makeLong()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/14956","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe internal `path._makeLong()` was not intended for public use. However,\nuserland modules have found it useful. The internal API is deprecated\nand replaced with an identical, public `path.toNamespacedPath()` method.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0081","name":"DEP0081: fs.truncate() using a file descriptor","title":"DEP0081: `fs.truncate()` using a file descriptor","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57567","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/15990","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`fs.truncate()` `fs.truncateSync()` usage with a file descriptor is\ndeprecated. Please use `fs.ftruncate()` or `fs.ftruncateSync()` to work with\nfile descriptors.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-truncate-fd-deprecation)):\n\n```bash\nnpx codemod@latest @nodejs/fs-truncate-fd-deprecation\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/fs-truncate-fd-deprecation"}],"children":[]},{"kind":"section","id":"DEP0082","name":"DEP0082: REPLServer.prototype.memory()","title":"DEP0082: `REPLServer.prototype.memory()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33286","commit":null,"description":"End-of-Life."},{"versions":["v9.0.0"],"prUrl":"https://github.com/nodejs/node/pull/16242","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`REPLServer.prototype.memory()` is only necessary for the internal mechanics of\nthe `REPLServer` itself. Do not use this function.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0083","name":"DEP0083: Disabling ECDH by setting ecdhCurve to false","title":"DEP0083: Disabling ECDH by setting `ecdhCurve` to `false`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19794","commit":null,"description":"End-of-Life."},{"versions":["v9.2.0"],"prUrl":"https://github.com/nodejs/node/pull/16130","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `ecdhCurve` option to `tls.createSecureContext()` and `tls.TLSSocket` could\nbe set to `false` to disable ECDH entirely on the server only. This mode was\ndeprecated in preparation for migrating to OpenSSL 1.1.0 and consistency with\nthe client and is now unsupported. Use the `ciphers` parameter instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0084","name":"DEP0084: requiring bundled internal dependencies","title":"DEP0084: requiring bundled internal dependencies","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25138","commit":null,"description":"This functionality has been removed."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/16392","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nSince Node.js versions 4.4.0 and 5.2.0, several modules only intended for\ninternal usage were mistakenly exposed to user code through `require()`. These\nmodules were:\n\n* `v8/tools/codemap`\n* `v8/tools/consarray`\n* `v8/tools/csvparser`\n* `v8/tools/logreader`\n* `v8/tools/profile_view`\n* `v8/tools/profile`\n* `v8/tools/SourceMap`\n* `v8/tools/splaytree`\n* `v8/tools/tickprocessor-driver`\n* `v8/tools/tickprocessor`\n* `node-inspect/lib/_inspect` (from 7.6.0)\n* `node-inspect/lib/internal/inspect_client` (from 7.6.0)\n* `node-inspect/lib/internal/inspect_repl` (from 7.6.0)\n\nThe `v8/*` modules do not have any exports, and if not imported in a specific\norder would in fact throw errors. As such there are virtually no legitimate use\ncases for importing them through `require()`.\n\nOn the other hand, `node-inspect` can be installed locally through a package\nmanager, as it is published on the npm registry under the same name. No source\ncode modification is necessary if that is done.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0085","name":"DEP0085: AsyncHooks sensitive API","title":"DEP0085: AsyncHooks sensitive API","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17147","commit":null,"description":"End-of-Life."},{"versions":["v9.4.0","v8.10.0"],"prUrl":"https://github.com/nodejs/node/pull/16972","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe AsyncHooks sensitive API was never documented and had various minor issues.\nUse the `AsyncResource` API instead. See\n<https://github.com/nodejs/node/issues/15572>.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0086","name":"DEP0086: Remove runInAsyncIdScope","title":"DEP0086: Remove `runInAsyncIdScope`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17147","commit":null,"description":"End-of-Life."},{"versions":["v9.4.0","v8.10.0"],"prUrl":"https://github.com/nodejs/node/pull/16972","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`runInAsyncIdScope` doesn't emit the `'before'` or `'after'` event and can thus\ncause a lot of issues. See <https://github.com/nodejs/node/issues/14328>.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0089","name":"DEP0089: require('node:assert')","title":"DEP0089: `require('node:assert')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.8.0"],"prUrl":"https://github.com/nodejs/node/pull/28892","commit":null,"description":"Deprecation revoked."},{"versions":["v9.9.0","v8.13.0"],"prUrl":"https://github.com/nodejs/node/pull/17002","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Deprecation revoked\n\nImporting assert directly was not recommended as the exposed functions use\nloose equality checks. The deprecation was revoked because use of the\n`node:assert` module is not discouraged, and the deprecation caused developer\nconfusion.","summary":"Type: Deprecation revoked","examples":[],"children":[]},{"kind":"section","id":"DEP0090","name":"DEP0090: Invalid GCM authentication tag lengths","title":"DEP0090: Invalid GCM authentication tag lengths","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17825","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18017","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nNode.js used to support all GCM authentication tag lengths which are accepted by\nOpenSSL when calling [`decipher.setAuthTag()`](crypto.html#deciphersetauthtagbuffer-encoding). Beginning with Node.js\nv11.0.0, only authentication tag lengths of 128, 120, 112, 104, 96, 64, and 32\nbits are allowed. Authentication tags of other lengths are invalid per\n[NIST SP 800-38D](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0091","name":"DEP0091: crypto.DEFAULT_ENCODING","title":"DEP0091: `crypto.DEFAULT_ENCODING`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v20.0.0"],"prUrl":"https://github.com/nodejs/node/pull/47182","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18333","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `crypto.DEFAULT_ENCODING` property only existed for compatibility with\nNode.js releases prior to versions 0.9.3 and has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0092","name":"DEP0092: Top-level this bound to module.exports","title":"DEP0092: Top-level `this` bound to `module.exports`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/16878","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nAssigning properties to the top-level `this` as an alternative\nto `module.exports` is deprecated. Developers should use `exports`\nor `module.exports` instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0093","name":"DEP0093: crypto.fips is deprecated and replaced","title":"DEP0093: `crypto.fips` is deprecated and replaced","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55019","commit":null,"description":"Runtime deprecation."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18335","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nThe [`crypto.fips`](crypto.html#cryptofips) property is deprecated. Please use `crypto.setFips()`\nand `crypto.getFips()` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-fips-to-getFips)).\n\n```bash\nnpx codemod@latest @nodejs/crypto-fips-to-getFips\n```","summary":"Type: Runtime","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/crypto-fips-to-getFips"}],"children":[]},{"kind":"section","id":"DEP0094","name":"DEP0094: Using assert.fail() with more than one argument","title":"DEP0094: Using `assert.fail()` with more than one argument","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58532","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18418","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nUsing `assert.fail()` with more than one argument is deprecated. Use\n`assert.fail()` with only one argument or use a different `node:assert` module\nmethod.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0095","name":"DEP0095: timers.enroll()","title":"DEP0095: `timers.enroll()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/56966","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18066","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`timers.enroll()` has been removed. Please use the publicly documented\n[`setTimeout()`](timers.html#settimeoutcallback-delay-args) or [`setInterval()`](timers.html#setintervalcallback-delay-args) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).\n\n```bash\nnpx codemod @nodejs/timers-deprecations\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/timers-deprecations"}],"children":[]},{"kind":"section","id":"DEP0096","name":"DEP0096: timers.unenroll()","title":"DEP0096: `timers.unenroll()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/56966","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18066","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`timers.unenroll()` has been removed. Please use the publicly documented\n[`clearTimeout()`](timers.html#cleartimeouttimeout) or [`clearInterval()`](timers.html#clearintervaltimeout) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).\n\n```bash\nnpx codemod @nodejs/timers-deprecations\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/timers-deprecations"}],"children":[]},{"kind":"section","id":"DEP0097","name":"DEP0097: MakeCallback with domain property","title":"DEP0097: `MakeCallback` with `domain` property","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/17417","commit":null,"description":"Runtime deprecation."}],"description":"Type: Runtime\n\nUsers of `MakeCallback` that add the `domain` property to carry context,\nshould start using the `async_context` variant of `MakeCallback` or\n`CallbackScope`, or the high-level `AsyncResource` class.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0098","name":"DEP0098: AsyncHooks embedder AsyncResource.emitBefore and AsyncResource.emitAfter APIs","title":"DEP0098: AsyncHooks embedder `AsyncResource.emitBefore` and `AsyncResource.emitAfter` APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26530","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0","v9.6.0","v8.12.0"],"prUrl":"https://github.com/nodejs/node/pull/18632","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe embedded API provided by AsyncHooks exposes `.emitBefore()` and\n`.emitAfter()` methods which are very easy to use incorrectly which can lead\nto unrecoverable errors.\n\nUse [`asyncResource.runInAsyncScope()`](async_context.html#asyncresourceruninasyncscopefn-thisarg-args) API instead which provides a much\nsafer, and more convenient, alternative. See\n<https://github.com/nodejs/node/pull/18513>.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0099","name":"DEP0099: Async context-unaware node::MakeCallback C++ APIs","title":"DEP0099: Async context-unaware `node::MakeCallback` C++ APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18632","commit":null,"description":"Compile-time deprecation."}],"description":"Type: Compile-time\n\nCertain versions of `node::MakeCallback` APIs available to native addons are\ndeprecated. Please use the versions of the API that accept an `async_context`\nparameter.","summary":"Type: Compile-time","examples":[],"children":[]},{"kind":"section","id":"DEP0100","name":"DEP0100: process.assert()","title":"DEP0100: `process.assert()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55035","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18666","commit":null,"description":"Runtime deprecation."},{"versions":["v0.3.7"],"prUrl":null,"commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\n`process.assert()` is deprecated. Please use the [`assert`](assert.html) module instead.\n\nThis was never a documented feature.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/process-assert-to-node-assert)).\n\n```bash\nnpx codemod@latest @nodejs/process-assert-to-node-assert\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/process-assert-to-node-assert"}],"children":[]},{"kind":"section","id":"DEP0101","name":"DEP0101: --with-lttng","title":"DEP0101: `--with-lttng`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18982","commit":null,"description":"End-of-Life."}],"description":"Type: End-of-Life\n\nThe `--with-lttng` compile-time option has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0102","name":"DEP0102: Using noAssert in Buffer#(read|write) operations","title":"DEP0102: Using `noAssert` in `Buffer#(read|write)` operations","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18395","commit":null,"description":"End-of-Life."}],"description":"Type: End-of-Life\n\nUsing the `noAssert` argument has no functionality anymore. All input is\nverified regardless of the value of `noAssert`. Skipping the verification\ncould lead to hard-to-find errors and crashes.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0103","name":"DEP0103: process.binding('util').is[...] typechecks","title":"DEP0103: `process.binding('util').is[...]` typechecks","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.9.0"],"prUrl":"https://github.com/nodejs/node/pull/22004","commit":null,"description":"Superseded by [DEP0111](#DEP0111)."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18415","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nUsing `process.binding()` in general should be avoided. The type checking\nmethods in particular can be replaced by using [`util.types`](util.html#utiltypes).\n\nThis deprecation has been superseded by the deprecation of the\n`process.binding()` API ([DEP0111](#DEP0111)).","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0104","name":"DEP0104: process.env string coercion","title":"DEP0104: `process.env` string coercion","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/18990","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nWhen assigning a non-string property to [`process.env`](process.html#processenv), the assigned value is\nimplicitly converted to a string. This behavior is deprecated if the assigned\nvalue is not a string, boolean, or number. In the future, such assignment might\nresult in a thrown error. Please convert the property to a string before\nassigning it to `process.env`.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0105","name":"DEP0105: decipher.finaltol","title":"DEP0105: `decipher.finaltol`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19941","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19353","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`decipher.finaltol()` has never been documented and was an alias for\n[`decipher.final()`](crypto.html#decipherfinaloutputencoding). This API has been removed, and it is recommended to use\n[`decipher.final()`](crypto.html#decipherfinaloutputencoding) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0106","name":"DEP0106: crypto.createCipher and crypto.createDecipher","title":"DEP0106: `crypto.createCipher` and `crypto.createDecipher`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/50973","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22089","commit":null,"description":"Runtime deprecation."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19343","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\n`crypto.createCipher()` and `crypto.createDecipher()` have been removed\nas they use a weak key derivation function (MD5 with no salt) and static\ninitialization vectors.\nIt is recommended to derive a key using\n[`crypto.pbkdf2()`](crypto.html#cryptopbkdf2password-salt-iterations-keylen-digest-callback) or [`crypto.scrypt()`](crypto.html#cryptoscryptpassword-salt-keylen-options-callback) with random salts and to use\n[`crypto.createCipheriv()`](crypto.html#cryptocreatecipherivalgorithm-key-iv-options) and [`crypto.createDecipheriv()`](crypto.html#cryptocreatedecipherivalgorithm-key-iv-options) to obtain the\n[`Cipheriv`](crypto.html#class-cipheriv) and [`Decipheriv`](crypto.html#class-decipheriv) objects respectively.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-createcipheriv-migration)):\n\n```bash\nnpx codemod @nodejs/crypto-createcipheriv-migration\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/crypto-createcipheriv-migration"}],"children":[]},{"kind":"section","id":"DEP0107","name":"DEP0107: tls.convertNPNProtocols()","title":"DEP0107: `tls.convertNPNProtocols()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/20736","commit":null,"description":"End-of-Life."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19403","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThis was an undocumented helper function not intended for use outside Node.js\ncore and obsoleted by the removal of NPN (Next Protocol Negotiation) support.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0108","name":"DEP0108: zlib.bytesRead","title":"DEP0108: `zlib.bytesRead`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55020","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23308","commit":null,"description":"Runtime deprecation."},{"versions":["v10.0.0"],"prUrl":"https://github.com/nodejs/node/pull/19414","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nDeprecated alias for [`zlib.bytesWritten`](zlib.html#zlibbyteswritten). This original name was chosen\nbecause it also made sense to interpret the value as the number of bytes\nread by the engine, but is inconsistent with other streams in Node.js that\nexpose values under these names.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/zlib-bytesread-to-byteswritten)):\n\n```bash\nnpx codemod@latest @nodejs/zlib-bytesread-to-byteswritten\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/zlib-bytesread-to-byteswritten"}],"children":[]},{"kind":"section","id":"DEP0109","name":"DEP0109: http, https, and tls support for invalid URLs","title":"DEP0109: `http`, `https`, and `tls` support for invalid URLs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/36853","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/20270","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nSome previously supported (but strictly invalid) URLs were accepted through the\n[`http.request()`](http.html#httprequestoptions-callback), [`http.get()`](http.html#httpgetoptions-callback), [`https.request()`](https.html#httpsrequestoptions-callback),\n[`https.get()`](https.html#httpsgetoptions-callback), and [`tls.checkServerIdentity()`](tls.html#tlscheckserveridentityhostname-cert) APIs because those were\naccepted by the legacy `url.parse()` API. The mentioned APIs now use the WHATWG\nURL parser that requires strictly valid URLs. Passing an invalid URL is\ndeprecated and support will be removed in the future.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0110","name":"DEP0110: vm.Script cached data","title":"DEP0110: `vm.Script` cached data","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v10.6.0"],"prUrl":"https://github.com/nodejs/node/pull/20300","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `produceCachedData` option is deprecated. Use\n[`script.createCachedData()`](vm.html#scriptcreatecacheddata) instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0111","name":"DEP0111: process.binding()","title":"DEP0111: `process.binding()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.12.0"],"prUrl":"https://github.com/nodejs/node/pull/26500","commit":null,"description":"Added support for `--pending-deprecation`."},{"versions":["v10.9.0"],"prUrl":"https://github.com/nodejs/node/pull/22004","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\n`process.binding()` is for use by Node.js internal code only.\n\nWhile `process.binding()` has not reached End-of-Life status in general, it is\nunavailable when the [permission model](permissions.html#permission-model) is enabled.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0112","name":"DEP0112: dgram private APIs","title":"DEP0112: `dgram` private APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58474","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22011","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `node:dgram` module previously contained several APIs that were never meant\nto accessed outside of Node.js core: `Socket.prototype._handle`,\n`Socket.prototype._receiving`, `Socket.prototype._bindState`,\n`Socket.prototype._queue`, `Socket.prototype._reuseAddr`,\n`Socket.prototype._healthCheck()`, `Socket.prototype._stopReceiving()`, and\n`dgram._createSocketHandle()`. These have been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0113","name":"DEP0113: Cipher.setAuthTag(), Decipher.getAuthTag()","title":"DEP0113: `Cipher.setAuthTag()`, `Decipher.getAuthTag()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26249","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22126","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`Cipher.setAuthTag()` and `Decipher.getAuthTag()` are no longer available. They\nwere never documented and would throw when called.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0114","name":"DEP0114: crypto._toBuf()","title":"DEP0114: `crypto._toBuf()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/25338","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22501","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `crypto._toBuf()` function was not designed to be used by modules outside\nof Node.js core and was removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0115","name":"DEP0115: crypto.prng(), crypto.pseudoRandomBytes(), crypto.rng()","title":"DEP0115: `crypto.prng()`, `crypto.pseudoRandomBytes()`, `crypto.rng()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22519,https://github.com/nodejs/node/pull/23017","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nIn recent versions of Node.js, there is no difference between\n[`crypto.randomBytes()`](crypto.html#cryptorandombytessize-callback) and `crypto.pseudoRandomBytes()`. The latter is\ndeprecated along with the undocumented aliases `crypto.prng()` and\n`crypto.rng()` in favor of [`crypto.randomBytes()`](crypto.html#cryptorandombytessize-callback) and might be removed in a\nfuture release.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0116","name":"DEP0116: Legacy URL API","title":"DEP0116: Legacy URL API","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55017","commit":null,"description":"DEP0169 covers also `url.format()` and `url.resolve()`."},{"versions":["v19.0.0","v18.13.0"],"prUrl":"https://github.com/nodejs/node/pull/44919","commit":null,"description":"DEP0169 deprecates `url.parse()` again."},{"versions":["v15.13.0","v14.17.0"],"prUrl":"https://github.com/nodejs/node/pull/37784","commit":null,"description":"Deprecation revoked. Status changed to \"Legacy\"."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22715","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Deprecation revoked\n\nThe [legacy URL API](url.html#legacy-url-api) is deprecated. This includes [`url.format()`](url.html#urlformaturlobject),\n[`url.parse()`](url.html#urlparseurlstring-parsequerystring-slashesdenotehost), [`url.resolve()`](url.html#urlresolvefrom-to), and the [legacy `urlObject`](url.html#legacy-urlobject). Please\nuse the [WHATWG URL API](url.html#the-whatwg-url-api) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)).\n\n```bash\nnpx codemod@latest @nodejs/node-url-to-whatwg-url\n```","summary":"Type: Deprecation revoked","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/node-url-to-whatwg-url"}],"children":[]},{"kind":"section","id":"DEP0117","name":"DEP0117: Native crypto handles","title":"DEP0117: Native crypto handles","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/27011","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22747","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nPrevious versions of Node.js exposed handles to internal native objects through\nthe `_handle` property of the `Cipher`, `Decipher`, `DiffieHellman`,\n`DiffieHellmanGroup`, `ECDH`, `Hash`, `Hmac`, `Sign`, and `Verify` classes.\nThe `_handle` property has been removed because improper use of the native\nobject can lead to crashing the application.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0118","name":"DEP0118: dns.lookup() support for a falsy host name","title":"DEP0118: `dns.lookup()` support for a falsy host name","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58619","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23173","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nPrevious versions of Node.js supported `dns.lookup()` with a falsy host name\nlike `dns.lookup(false)` due to backward compatibility. This has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0119","name":"DEP0119: process.binding('uv').errname() private API","title":"DEP0119: `process.binding('uv').errname()` private API","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23597","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\n`process.binding('uv').errname()` is deprecated. Please use\n[`util.getSystemErrorName()`](util.html#utilgetsystemerrornameerr) instead.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0120","name":"DEP0120: Windows Performance Counter support","title":"DEP0120: Windows Performance Counter support","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/24862","commit":null,"description":"End-of-Life."},{"versions":["v11.0.0"],"prUrl":"https://github.com/nodejs/node/pull/22485","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nWindows Performance Counter support has been removed from Node.js. The\nundocumented `COUNTER_NET_SERVER_CONNECTION()`,\n`COUNTER_NET_SERVER_CONNECTION_CLOSE()`, `COUNTER_HTTP_SERVER_REQUEST()`,\n`COUNTER_HTTP_SERVER_RESPONSE()`, `COUNTER_HTTP_CLIENT_REQUEST()`, and\n`COUNTER_HTTP_CLIENT_RESPONSE()` functions have been deprecated.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0121","name":"DEP0121: net._setSimultaneousAccepts()","title":"DEP0121: `net._setSimultaneousAccepts()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57550","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23760","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe undocumented `net._setSimultaneousAccepts()` function was originally\nintended for debugging and performance tuning when using the\n`node:child_process` and `node:cluster` modules on Windows. The function is not\ngenerally useful and is being removed. See discussion here:\n<https://github.com/nodejs/node/issues/18391>","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0122","name":"DEP0122: tls Server.prototype.setOptions()","title":"DEP0122: `tls` `Server.prototype.setOptions()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57339","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23820","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nPlease use `Server.prototype.setSecureContext()` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0123","name":"DEP0123: setting the TLS ServerName to an IP address","title":"DEP0123: setting the TLS ServerName to an IP address","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58533","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/23329","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nSetting the TLS ServerName to an IP address is not permitted by\n[RFC 6066](https://tools.ietf.org/html/rfc6066#section-3).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0124","name":"DEP0124: using REPLServer.rli","title":"DEP0124: using `REPLServer.rli`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33286","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26260","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThis property is a reference to the instance itself.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0125","name":"DEP0125: require('node:_stream_wrap')","title":"DEP0125: `require('node:_stream_wrap')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/60657","commit":null,"description":"End-of-Life."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26245","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `node:_stream_wrap` module is deprecated.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0126","name":"DEP0126: timers.active()","title":"DEP0126: `timers.active()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/56966","commit":null,"description":"End-of-Life."},{"versions":["v11.14.0"],"prUrl":"https://github.com/nodejs/node/pull/26760","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe previously undocumented `timers.active()` has been removed.\nPlease use the publicly documented [`timeout.refresh()`](timers.html#timeoutrefresh) instead.\nIf re-referencing the timeout is necessary, [`timeout.ref()`](timers.html#timeoutref) can be used\nwith no performance impact since Node.js 10.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).\n\n```bash\nnpx codemod @nodejs/timers-deprecations\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/timers-deprecations"}],"children":[]},{"kind":"section","id":"DEP0127","name":"DEP0127: timers._unrefActive()","title":"DEP0127: `timers._unrefActive()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/56966","commit":null,"description":"End-of-Life."},{"versions":["v11.14.0"],"prUrl":"https://github.com/nodejs/node/pull/26760","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe previously undocumented and \"private\" `timers._unrefActive()` has been removed.\nPlease use the publicly documented [`timeout.refresh()`](timers.html#timeoutrefresh) instead.\nIf unreferencing the timeout is necessary, [`timeout.unref()`](timers.html#timeoutunref) can be used\nwith no performance impact since Node.js 10.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).\n\n```bash\nnpx codemod @nodejs/timers-deprecations\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/timers-deprecations"}],"children":[]},{"kind":"section","id":"DEP0128","name":"DEP0128: modules with an invalid main entry and an index.js file","title":"DEP0128: modules with an invalid `main` entry and an `index.js` file","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37204","commit":null,"description":"Runtime deprecation."},{"versions":["v12.0.0"],"prUrl":"https://github.com/nodejs/node/pull/26823","commit":null,"description":"Documentation-only."}],"description":"Type: Runtime\n\nModules that have an invalid `main` entry (e.g., `./does-not-exist.js`) and\nalso have an `index.js` file in the top level directory will resolve the\n`index.js` file. That is deprecated and is going to throw an error in future\nNode.js versions.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0129","name":"DEP0129: ChildProcess._channel","title":"DEP0129: `ChildProcess._channel`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58527","commit":null,"description":"End-of-Life."},{"versions":["v13.0.0"],"prUrl":"https://github.com/nodejs/node/pull/27949","commit":null,"description":"Runtime deprecation."},{"versions":["v11.14.0"],"prUrl":"https://github.com/nodejs/node/pull/26982","commit":null,"description":"Documentation-only."}],"description":"Type: End-of-Life\n\nThe `_channel` property of child process objects returned by `spawn()` and\nsimilar functions is not intended for public use. Use `ChildProcess.channel`\ninstead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0130","name":"DEP0130: Module.createRequireFromPath()","title":"DEP0130: `Module.createRequireFromPath()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37201","commit":null,"description":"End-of-life."},{"versions":["v13.0.0"],"prUrl":"https://github.com/nodejs/node/pull/27951","commit":null,"description":"Runtime deprecation."},{"versions":["v12.2.0"],"prUrl":"https://github.com/nodejs/node/pull/27405","commit":null,"description":"Documentation-only."}],"description":"Type: End-of-Life\n\nUse [`module.createRequire()`](module.html#modulecreaterequirefilename) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/create-require-from-path)):\n\n```bash\nnpx codemod@latest @nodejs/create-require-from-path\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/create-require-from-path"}],"children":[]},{"kind":"section","id":"DEP0131","name":"DEP0131: Legacy HTTP parser","title":"DEP0131: Legacy HTTP parser","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v13.0.0"],"prUrl":"https://github.com/nodejs/node/pull/29589","commit":null,"description":"This feature has been removed."},{"versions":["v12.22.0"],"prUrl":"https://github.com/nodejs/node/pull/37603","commit":null,"description":"Runtime deprecation."},{"versions":["v12.3.0"],"prUrl":"https://github.com/nodejs/node/pull/27498","commit":null,"description":"Documentation-only."}],"description":"Type: End-of-Life\n\nThe legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0,\nis deprecated and has been removed in v13.0.0. Prior to v13.0.0, the\n`--http-parser=legacy` command-line flag could be used to revert to using the\nlegacy parser.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0132","name":"DEP0132: worker.terminate() with callback","title":"DEP0132: `worker.terminate()` with callback","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58528","commit":null,"description":"End-of-Life."},{"versions":["v12.5.0"],"prUrl":"https://github.com/nodejs/node/pull/28021","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nPassing a callback to [`worker.terminate()`](worker_threads.html#workerterminate) is deprecated. Use the returned\n`Promise` instead, or a listener to the worker's `'exit'` event.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0133","name":"DEP0133: http connection","title":"DEP0133: `http` `connection`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.12.0"],"prUrl":"https://github.com/nodejs/node/pull/29015","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nPrefer [`response.socket`](http.html#responsesocket) over [`response.connection`](http.html#responseconnection) and\n[`request.socket`](http.html#requestsocket) over [`request.connection`](http.html#requestconnection).","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0134","name":"DEP0134: process._tickCallback","title":"DEP0134: `process._tickCallback`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v12.12.0"],"prUrl":"https://github.com/nodejs/node/pull/29781","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nThe `process._tickCallback` property was never documented as\nan officially supported API.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0135","name":"DEP0135: WriteStream.open() and ReadStream.open() are internal","title":"DEP0135: `WriteStream.open()` and `ReadStream.open()` are internal","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58529","commit":null,"description":"End-of-Life."},{"versions":["v13.0.0"],"prUrl":"https://github.com/nodejs/node/pull/29061","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n[`WriteStream.open()`](fs.html#class-fswritestream) and [`ReadStream.open()`](fs.html#class-fsreadstream) are undocumented internal\nAPIs that do not make sense to use in userland. File streams should always be\nopened through their corresponding factory methods [`fs.createWriteStream()`](fs.html#fscreatewritestreampath-options)\nand [`fs.createReadStream()`](fs.html#fscreatereadstreampath-options)) or by passing a file descriptor in options.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0136","name":"DEP0136: http finished","title":"DEP0136: `http` `finished`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v13.4.0","v12.16.0"],"prUrl":"https://github.com/nodejs/node/pull/28679","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\n[`response.finished`](http.html#responsefinished) indicates whether [`response.end()`](http.html#responseenddata-encoding-callback) has been\ncalled, not whether `'finish'` has been emitted and the underlying data\nis flushed.\n\nUse [`response.writableFinished`](http.html#responsewritablefinished) or [`response.writableEnded`](http.html#responsewritableended)\naccordingly instead to avoid the ambiguity.\n\nTo maintain existing behavior `response.finished` should be replaced with\n`response.writableEnded`.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0137","name":"DEP0137: Closing fs.FileHandle on garbage collection","title":"DEP0137: Closing fs.FileHandle on garbage collection","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58536","commit":null,"description":"End-of-Life."},{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/28396","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nAllowing a [`fs.FileHandle`](fs.html#class-filehandle) object to be closed on garbage collection used\nto be allowed, but now throws an error.\n\nPlease ensure that all `fs.FileHandle` objects are explicitly closed using\n`FileHandle.prototype.close()` when the `fs.FileHandle` is no longer needed:\n\n```js\nconst fsPromises = require('node:fs').promises;\nasync function openAndClose() {\n  let filehandle;\n  try {\n    filehandle = await fsPromises.open('thefile.txt', 'r');\n  } finally {\n    if (filehandle !== undefined)\n      await filehandle.close();\n  }\n}\n```","summary":"Type: End-of-Life","examples":[{"language":"js","displayName":null,"code":"const fsPromises = require('node:fs').promises;\nasync function openAndClose() {\n  let filehandle;\n  try {\n    filehandle = await fsPromises.open('thefile.txt', 'r');\n  } finally {\n    if (filehandle !== undefined)\n      await filehandle.close();\n  }\n}"}],"children":[]},{"kind":"section","id":"DEP0138","name":"DEP0138: process.mainModule","title":"DEP0138: `process.mainModule`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/32232","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\n[`process.mainModule`](process.html#processmainmodule) is a CommonJS-only feature while `process` global\nobject is shared with non-CommonJS environment. Its use within ECMAScript\nmodules is unsupported.\n\nIt is deprecated in favor of [`require.main`](modules.html#accessing-the-main-module), because it serves the same\npurpose and is only available on CommonJS environment.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/process-main-module)):\n\n```bash\nnpx codemod@latest @nodejs/process-main-module\n```","summary":"Type: Documentation-only","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/process-main-module"}],"children":[]},{"kind":"section","id":"DEP0139","name":"DEP0139: process.umask() with no arguments","title":"DEP0139: `process.umask()` with no arguments","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.0.0","v12.19.0"],"prUrl":"https://github.com/nodejs/node/pull/32499","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nCalling `process.umask()` with no argument causes the process-wide umask to be\nwritten twice. This introduces a race condition between threads, and is a\npotential security vulnerability. There is no safe, cross-platform alternative\nAPI.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0140","name":"DEP0140: Use request.destroy() instead of request.abort()","title":"DEP0140: Use `request.destroy()` instead of `request.abort()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.1.0","v13.14.0"],"prUrl":"https://github.com/nodejs/node/pull/32807","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nUse [`request.destroy()`](http.html#requestdestroyerror) instead of [`request.abort()`](http.html#requestabort).","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0141","name":"DEP0141: repl.inputStream and repl.outputStream","title":"DEP0141: `repl.inputStream` and `repl.outputStream`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.3.0"],"prUrl":"https://github.com/nodejs/node/pull/33294","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nThe `node:repl` module exported the input and output stream twice. Use `.input`\ninstead of `.inputStream` and `.output` instead of `.outputStream`.","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[],"children":[]},{"kind":"section","id":"DEP0142","name":"DEP0142: repl._builtinLibs","title":"DEP0142: `repl._builtinLibs`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.3.0"],"prUrl":"https://github.com/nodejs/node/pull/33294","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nThe `node:repl` module exports a `_builtinLibs` property that contains an array\nof built-in modules. It was incomplete so far and instead it's better to rely\nupon `require('node:module').builtinModules`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-builtin-modules)):\n\n```bash\nnpx codemod@latest @nodejs/repl-builtin-modules\n```","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/repl-builtin-modules"}],"children":[]},{"kind":"section","id":"DEP0143","name":"DEP0143: Transform._transformState","title":"DEP0143: `Transform._transformState`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33105","commit":null,"description":"End-of-Life."},{"versions":["v14.5.0"],"prUrl":"https://github.com/nodejs/node/pull/33126","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\n`Transform._transformState` will be removed in future versions where it is\nno longer required due to simplification of the implementation.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0144","name":"DEP0144: module.parent","title":"DEP0144: `module.parent`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.6.0","v12.19.0"],"prUrl":"https://github.com/nodejs/node/pull/32217","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nA CommonJS module can access the first module that required it using\n`module.parent`. This feature is deprecated because it does not work\nconsistently in the presence of ECMAScript modules and because it gives an\ninaccurate representation of the CommonJS module graph.\n\nSome modules use it to check if they are the entry point of the current process.\nInstead, it is recommended to compare `require.main` and `module`:\n\n```js\nif (require.main === module) {\n  // Code section that will run only if current file is the entry point.\n}\n```\n\nWhen looking for the CommonJS modules that have required the current one,\n`require.cache` and `module.children` can be used:\n\n```js\nconst moduleParents = Object.values(require.cache)\n  .filter((m) => m.children.includes(module));\n```","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[{"language":"js","displayName":null,"code":"if (require.main === module) {\n  // Code section that will run only if current file is the entry point.\n}"},{"language":"js","displayName":null,"code":"const moduleParents = Object.values(require.cache)\n  .filter((m) => m.children.includes(module));"}],"children":[]},{"kind":"section","id":"DEP0145","name":"DEP0145: socket.bufferSize","title":"DEP0145: `socket.bufferSize`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.6.0"],"prUrl":"https://github.com/nodejs/node/pull/34088","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\n[`socket.bufferSize`](net.html#socketbuffersize) is just an alias for [`writable.writableLength`](stream.html#writablewritablelength).","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0146","name":"DEP0146: new crypto.Certificate()","title":"DEP0146: `new crypto.Certificate()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v14.9.0"],"prUrl":"https://github.com/nodejs/node/pull/34697","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`crypto.Certificate()` constructor](crypto.html#legacy-api) is deprecated. Use\n[static methods of `crypto.Certificate()`](crypto.html#class-certificate) instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0147","name":"DEP0147: fs.rmdir(path, { recursive: true })","title":"DEP0147: `fs.rmdir(path, { recursive: true })`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58616","commit":null,"description":"End-of-Life."},{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37302","commit":null,"description":"Runtime deprecation."},{"versions":["v15.0.0"],"prUrl":"https://github.com/nodejs/node/pull/35562","commit":null,"description":"Runtime deprecation for permissive behavior."},{"versions":["v14.14.0"],"prUrl":"https://github.com/nodejs/node/pull/35579","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `fs.rmdir`, `fs.rmdirSync`, and `fs.promises.rmdir` methods used\nto support a `recursive` option. That option has been removed.\n\nUse `fs.rm(path, { recursive: true, force: true })`,\n`fs.rmSync(path, { recursive: true, force: true })` or\n`fs.promises.rm(path, { recursive: true, force: true })` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/rmdir)):\n\n```bash\nnpx codemod@latest @nodejs/rmdir\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/rmdir"}],"children":[]},{"kind":"section","id":"DEP0148","name":"DEP0148: Folder mappings in \"exports\" (trailing \"/\")","title":"DEP0148: Folder mappings in `\"exports\"` (trailing `\"/\"`)","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v17.0.0"],"prUrl":"https://github.com/nodejs/node/pull/40121","commit":null,"description":"End-of-Life."},{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37215","commit":null,"description":"Runtime deprecation."},{"versions":["v15.1.0"],"prUrl":"https://github.com/nodejs/node/pull/35747","commit":null,"description":"Runtime deprecation for self-referencing imports."},{"versions":["v14.13.0"],"prUrl":"https://github.com/nodejs/node/pull/34718","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nUsing a trailing `\"/\"` to define subpath folder mappings in the\n[subpath exports](packages.html#subpath-exports) or [subpath imports](packages.html#subpath-imports) fields is no longer supported.\nUse [subpath patterns](packages.html#subpath-patterns) instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0149","name":"DEP0149: http.IncomingMessage#connection","title":"DEP0149: `http.IncomingMessage#connection`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/33768","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nPrefer [`message.socket`](http.html#messagesocket) over [`message.connection`](http.html#messageconnection).","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0150","name":"DEP0150: Changing the value of process.config","title":"DEP0150: Changing the value of `process.config`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v19.0.0"],"prUrl":"https://github.com/nodejs/node/pull/43627","commit":null,"description":"End-of-Life."},{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/36902","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `process.config` property provides access to Node.js compile-time settings.\nHowever, the property is mutable and therefore subject to tampering. The ability\nto change the value will be removed in a future version of Node.js.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0151","name":"DEP0151: Main index lookup and extension searching","title":"DEP0151: Main index lookup and extension searching","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37206","commit":null,"description":"Runtime deprecation."},{"versions":["v15.8.0","v14.18.0"],"prUrl":"https://github.com/nodejs/node/pull/36918","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Runtime\n\nPreviously, `index.js` and extension searching lookups would apply to\n`import 'pkg'` main entry point resolution, even when resolving ES modules.\n\nWith this deprecation, all ES module main entry point resolutions require\nan explicit [`\"exports\"` or `\"main\"` entry](packages.html#main-entry-point-export) with the exact file extension.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0152","name":"DEP0152: Extension PerformanceEntry properties","title":"DEP0152: Extension PerformanceEntry properties","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58531","commit":null,"description":"End-of-Life."},{"versions":["v16.0.0"],"prUrl":"https://github.com/nodejs/node/pull/37136","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `'gc'`, `'http2'`, and `'http'` {PerformanceEntry} object types used to have\nadditional properties assigned to them that provide additional information.\nThese properties are now available within the standard `detail` property\nof the `PerformanceEntry` object. The deprecated accessors have been\nremoved.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0153","name":"DEP0153: dns.lookup and dnsPromises.lookup options type coercion","title":"DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/41431","commit":null,"description":"End-of-Life."},{"versions":["v17.0.0"],"prUrl":"https://github.com/nodejs/node/pull/39793","commit":null,"description":"Runtime deprecation."},{"versions":["v16.8.0"],"prUrl":"https://github.com/nodejs/node/pull/38906","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nUsing a non-nullish non-integer value for `family` option, a non-nullish\nnon-number value for `hints` option, a non-nullish non-boolean value for `all`\noption, or a non-nullish non-boolean value for `verbatim` option in\n[`dns.lookup()`](dns.html#dnslookuphostname-options-callback) and [`dnsPromises.lookup()`](dns.html#dnspromiseslookuphostname-options) throws an\n`ERR_INVALID_ARG_TYPE` error.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0154","name":"DEP0154: RSA-PSS generate key pair options","title":"DEP0154: RSA-PSS generate key pair options","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58706","commit":null,"description":"End-of-Life."},{"versions":["v20.0.0"],"prUrl":"https://github.com/nodejs/node/pull/45653","commit":null,"description":"Runtime deprecation."},{"versions":["v16.10.0"],"prUrl":"https://github.com/nodejs/node/pull/39927","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nUse  `'hashAlgorithm'` instead of `'hash'`, and `'mgf1HashAlgorithm'` instead of `'mgf1Hash'`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-rsa-pss-update)):\n\n```bash\nnpx codemod@latest @nodejs/crypto-rsa-pss-update\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/crypto-rsa-pss-update"}],"children":[]},{"kind":"section","id":"DEP0155","name":"DEP0155: Trailing slashes in pattern specifier resolutions","title":"DEP0155: Trailing slashes in pattern specifier resolutions","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v17.0.0"],"prUrl":"https://github.com/nodejs/node/pull/40117","commit":null,"description":"Runtime deprecation."},{"versions":["v16.10.0"],"prUrl":"https://github.com/nodejs/node/pull/40039","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Runtime\n\nThe remapping of specifiers ending in `\"/\"` like `import 'pkg/x/'` is deprecated\nfor package `\"exports\"` and `\"imports\"` pattern resolutions.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0156","name":"DEP0156: .aborted property and 'abort', 'aborted' event in http","title":"DEP0156: `.aborted` property and `'abort'`, `'aborted'` event in `http`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v17.0.0","v16.12.0"],"prUrl":"https://github.com/nodejs/node/pull/36670","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nMove to {Stream} API instead, as the [`http.ClientRequest`](http.html#class-httpclientrequest),\n[`http.ServerResponse`](http.html#class-httpserverresponse), and [`http.IncomingMessage`](http.html#class-httpincomingmessage) are all stream-based.\nCheck `stream.destroyed` instead of the `.aborted` property, and listen for\n`'close'` instead of `'abort'`, `'aborted'` event.\n\nThe `.aborted` property and `'abort'` event are only useful for detecting\n`.abort()` calls. For closing a request early, use the Stream\n`.destroy([error])` then check the `.destroyed` property and `'close'` event\nshould have the same effect. The receiving end should also check the\n[`readable.readableEnded`](stream.html#readablereadableended) value on [`http.IncomingMessage`](http.html#class-httpincomingmessage) to get whether\nit was an aborted or graceful destroy.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0157","name":"DEP0157: Thenable support in streams","title":"DEP0157: Thenable support in streams","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/40773","commit":null,"description":"End-of-life."},{"versions":["v17.2.0","v16.14.0"],"prUrl":"https://github.com/nodejs/node/pull/40860","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nAn undocumented feature of Node.js streams was to support thenables in\nimplementation methods. This is now deprecated, use callbacks instead and avoid\nuse of async function for streams implementation methods.\n\nThis feature caused users to encounter unexpected problems where the user\nimplements the function in callback style but uses e.g. an async method which\nwould cause an error since mixing promise and callback semantics is not valid.\n\n```js\nconst w = new Writable({\n  async final(callback) {\n    await someOp();\n    callback();\n  },\n});\n```","summary":"Type: End-of-Life","examples":[{"language":"js","displayName":null,"code":"const w = new Writable({\n  async final(callback) {\n    await someOp();\n    callback();\n  },\n});"}],"children":[]},{"kind":"section","id":"DEP0158","name":"DEP0158: buffer.slice(start, end)","title":"DEP0158: `buffer.slice(start, end)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v17.5.0","v16.15.0"],"prUrl":"https://github.com/nodejs/node/pull/41596","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThis method was deprecated because it is not compatible with\n`Uint8Array.prototype.slice()`, which is a superclass of `Buffer`.\n\nUse [`buffer.subarray`](buffer.html#bufsubarraystart-end) which does the same thing instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0159","name":"DEP0159: ERR_INVALID_CALLBACK","title":"DEP0159: `ERR_INVALID_CALLBACK`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/41678","commit":null,"description":"End-of-Life."}],"description":"Type: End-of-Life\n\nThis error code was removed due to adding more confusion to\nthe errors used for value type validation.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/err-invalid-callback)):\n\n```bash\nnpx codemod @nodejs/err-invalid-callback\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod @nodejs/err-invalid-callback"}],"children":[]},{"kind":"section","id":"DEP0160","name":"DEP0160: process.on('multipleResolves', handler)","title":"DEP0160: `process.on('multipleResolves', handler)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58707","commit":null,"description":"End-of-Life."},{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/41896","commit":null,"description":"Runtime deprecation."},{"versions":["v17.6.0","v16.15.0"],"prUrl":"https://github.com/nodejs/node/pull/41872","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThis event was deprecated and removed because it did not work with V8 promise\ncombinators which diminished its usefulness.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0161","name":"DEP0161: process._getActiveRequests() and process._getActiveHandles()","title":"DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v17.6.0","v16.15.0"],"prUrl":"https://github.com/nodejs/node/pull/41587","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `process._getActiveHandles()` and `process._getActiveRequests()`\nfunctions are not intended for public use and can be removed in future\nreleases.\n\nUse [`process.getActiveResourcesInfo()`](process.html#processgetactiveresourcesinfo) to get a list of types of active\nresources and not the actual references.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0162","name":"DEP0162: fs.write(), fs.writeFileSync() coercion to string","title":"DEP0162: `fs.write()`, `fs.writeFileSync()` coercion to string","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v19.0.0"],"prUrl":"https://github.com/nodejs/node/pull/42796","commit":null,"description":"End-of-Life."},{"versions":["v18.0.0"],"prUrl":"https://github.com/nodejs/node/pull/42607","commit":null,"description":"Runtime deprecation."},{"versions":["v17.8.0","v16.15.0"],"prUrl":"https://github.com/nodejs/node/pull/42149","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nImplicit coercion of objects with own `toString` property, passed as second\nparameter in [`fs.write()`](fs.html#fswritefd-buffer-offset-length-position-callback), [`fs.writeFile()`](fs.html#fswritefilefile-data-options-callback), [`fs.appendFile()`](fs.html#fsappendfilepath-data-options-callback),\n[`fs.writeFileSync()`](fs.html#fswritefilesyncfile-data-options), and [`fs.appendFileSync()`](fs.html#fsappendfilesyncpath-data-options) is deprecated.\nConvert them to primitive strings.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0163","name":"DEP0163: channel.subscribe(onMessage), channel.unsubscribe(onMessage)","title":"DEP0163: `channel.subscribe(onMessage)`, `channel.unsubscribe(onMessage)`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.8.0","v22.20.0"],"prUrl":"https://github.com/nodejs/node/pull/59758","commit":null,"description":"Deprecation revoked."},{"versions":["v18.7.0","v16.17.0"],"prUrl":"https://github.com/nodejs/node/pull/42714","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Deprecation revoked\n\nThese methods were deprecated because their use could leave the channel object\nvulnerable to being garbage-collected if not strongly referenced by the user.\nThe deprecation was revoked because channel objects are now resistant to\ngarbage collection when the channel has active subscribers.","summary":"Type: Deprecation revoked","examples":[],"children":[]},{"kind":"section","id":"DEP0164","name":"DEP0164: process.exit(code), process.exitCode coercion to integer","title":"DEP0164: `process.exit(code)`, `process.exitCode` coercion to integer","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v20.0.0"],"prUrl":"https://github.com/nodejs/node/pull/43716","commit":null,"description":"End-of-Life."},{"versions":["v19.0.0"],"prUrl":"https://github.com/nodejs/node/pull/44711","commit":null,"description":"Runtime deprecation."},{"versions":["v18.10.0","v16.18.0"],"prUrl":"https://github.com/nodejs/node/pull/44714","commit":null,"description":"Documentation-only deprecation of `process.exitCode` integer coercion."},{"versions":["v18.7.0","v16.17.0"],"prUrl":"https://github.com/nodejs/node/pull/43738","commit":null,"description":"Documentation-only deprecation of `process.exit(code)` integer coercion."}],"description":"Type: End-of-Life\n\nValues other than `undefined`, `null`, integer numbers, and integer strings\n(e.g., `'1'`) are deprecated as value for the `code` parameter in\n[`process.exit()`](process.html#processexitcode) and as value to assign to [`process.exitCode`](process.html#processexitcode_1).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0165","name":"DEP0165: --trace-atomics-wait","title":"DEP0165: `--trace-atomics-wait`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52747","commit":null,"description":"End-of-Life."},{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/51179","commit":null,"description":"Runtime deprecation."},{"versions":["v18.8.0","v16.18.0"],"prUrl":"https://github.com/nodejs/node/pull/44093","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `--trace-atomics-wait` flag has been removed because\nit uses the V8 hook `SetAtomicsWaitCallback`,\nthat will be removed in a future V8 release.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0166","name":"DEP0166: Double slashes in imports and exports targets","title":"DEP0166: Double slashes in imports and exports targets","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v19.0.0"],"prUrl":"https://github.com/nodejs/node/pull/44495","commit":null,"description":"Runtime deprecation."},{"versions":["v18.10.0"],"prUrl":"https://github.com/nodejs/node/pull/44477","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Runtime\n\nPackage imports and exports targets mapping into paths including a double slash\n(of *\"/\"* or *\"\\\\\"*) are deprecated and will fail with a resolution validation\nerror in a future release. This same deprecation also applies to pattern matches\nstarting or ending in a slash.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0167","name":"DEP0167: Weak DiffieHellmanGroup instances (modp1, modp2, modp5)","title":"DEP0167: Weak `DiffieHellmanGroup` instances (`modp1`, `modp2`, `modp5`)","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.10.0","v16.18.0"],"prUrl":"https://github.com/nodejs/node/pull/44588","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe well-known MODP groups `modp1`, `modp2`, and `modp5` are deprecated because\nthey are not secure against practical attacks. See [RFC 8247 Section 2.4](https://www.rfc-editor.org/rfc/rfc8247#section-2.4) for\ndetails.\n\nThese groups might be removed in future versions of Node.js. Applications that\nrely on these groups should evaluate using stronger MODP groups instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0168","name":"DEP0168: Unhandled exception in Node-API callbacks","title":"DEP0168: Unhandled exception in Node-API callbacks","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v18.3.0","v16.17.0"],"prUrl":"https://github.com/nodejs/node/pull/36510","commit":null,"description":"Runtime deprecation."}],"description":"Type: Runtime\n\nThe implicit suppression of uncaught exceptions in Node-API callbacks is now\ndeprecated.\n\nSet the flag [`--force-node-api-uncaught-exceptions-policy`](cli.html#--force-node-api-uncaught-exceptions-policy) to force Node.js\nto emit an [`'uncaughtException'`](process.html#event-uncaughtexception) event if the exception is not handled in\nNode-API callbacks.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0169","name":"DEP0169: Insecure url.parse()","title":"DEP0169: Insecure url.parse()","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55017","commit":null,"description":"Application deprecation."},{"versions":["v19.9.0","v18.17.0"],"prUrl":"https://github.com/nodejs/node/pull/47203","commit":null,"description":"Added support for `--pending-deprecation`."},{"versions":["v19.0.0","v18.13.0"],"prUrl":"https://github.com/nodejs/node/pull/44919","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Application (non-`node_modules` code only)\n\n[`url.parse()`](url.html#urlparseurlstring-parsequerystring-slashesdenotehost) behavior is not standardized and prone to errors that\nhave security implications. Use the [WHATWG URL API](url.html#the-whatwg-url-api) instead. CVEs are not\nissued for `url.parse()` vulnerabilities.\n\nCalling [`url.format(urlString)`](url.html#urlformaturlstring) or [`url.resolve()`](url.html#urlresolvefrom-to) invokes `url.parse()`\ninternally, and is therefore also covered by this deprecation.","summary":"Type: Application (non-`node_modules` code only)","examples":[],"children":[]},{"kind":"section","id":"DEP0170","name":"DEP0170: Invalid port when using url.parse()","title":"DEP0170: Invalid port when using `url.parse()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58617","commit":null,"description":"End-of-Life."},{"versions":["v20.0.0"],"prUrl":"https://github.com/nodejs/node/pull/45526","commit":null,"description":"Runtime deprecation."},{"versions":["v19.2.0","v18.13.0"],"prUrl":"https://github.com/nodejs/node/pull/45576","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\n[`url.parse()`](url.html#urlparseurlstring-parsequerystring-slashesdenotehost) used to accept URLs with ports that are not numbers. This\nbehavior might result in host name spoofing with unexpected input. These URLs\nwill throw an error (which the [WHATWG URL API](url.html#the-whatwg-url-api) also does).","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0171","name":"DEP0171: Setters for http.IncomingMessage headers and trailers","title":"DEP0171: Setters for `http.IncomingMessage` headers and trailers","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v19.3.0","v18.13.0"],"prUrl":"https://github.com/nodejs/node/pull/45697","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nIn a future version of Node.js, [`message.headers`](http.html#messageheaders),\n[`message.headersDistinct`](http.html#messageheadersdistinct), [`message.trailers`](http.html#messagetrailers), and\n[`message.trailersDistinct`](http.html#messagetrailersdistinct) will be read-only.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0172","name":"DEP0172: The asyncResource property of AsyncResource bound functions","title":"DEP0172: The `asyncResource` property of `AsyncResource` bound functions","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/58618","commit":null,"description":"End-of-Life."},{"versions":["v20.0.0"],"prUrl":"https://github.com/nodejs/node/pull/46432","commit":null,"description":"Runtime-deprecation."}],"description":"Type: End-of-Life\n\nOlder versions of Node.js would add the `asyncResource` when a function is\nbound to an `AsyncResource`. It no longer does.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0173","name":"DEP0173: the assert.CallTracker class","title":"DEP0173: the `assert.CallTracker` class","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/00000","commit":null,"description":"End-of-Life."},{"versions":["v20.1.0"],"prUrl":"https://github.com/nodejs/node/pull/47740","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `assert.CallTracker` API has been removed.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0174","name":"DEP0174: calling promisify on a function that returns a Promise","title":"DEP0174: calling `promisify` on a function that returns a `Promise`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v21.0.0"],"prUrl":"https://github.com/nodejs/node/pull/49609","commit":null,"description":"Runtime deprecation."},{"versions":["v20.8.0"],"prUrl":"https://github.com/nodejs/node/pull/49647","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nCalling [`util.promisify`](util.html#utilpromisifyoriginal) on a function that returns a `Promise` will ignore\nthe result of said promise, which can lead to unhandled promise rejections.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0175","name":"DEP0175: util.toUSVString","title":"DEP0175: `util.toUSVString`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v20.8.0"],"prUrl":"https://github.com/nodejs/node/pull/49725","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`util.toUSVString()`](util.html#utiltousvstringstring) API is deprecated. Please use\n[`String.prototype.toWellFormed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed) instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0176","name":"DEP0176: fs.F_OK, fs.R_OK, fs.W_OK, fs.X_OK","title":"DEP0176: `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55862","commit":null,"description":"End-of-Life."},{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/49686","commit":null,"description":"Runtime deprecation."},{"versions":["v20.8.0"],"prUrl":"https://github.com/nodejs/node/pull/49683","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\n`F_OK`, `R_OK`, `W_OK` and `X_OK` getters exposed directly on `node:fs` were\nremoved. Get them from `fs.constants` or `fs.promises.constants` instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-access-mode-constants)):\n\n```bash\nnpx codemod@latest @nodejs/fs-access-mode-constants\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/fs-access-mode-constants"}],"children":[]},{"kind":"section","id":"DEP0177","name":"DEP0177: util.types.isWebAssemblyCompiledModule","title":"DEP0177: `util.types.isWebAssemblyCompiledModule`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v21.7.0","v20.12.0"],"prUrl":"https://github.com/nodejs/node/pull/51442","commit":null,"description":"End-of-Life."},{"versions":["v21.3.0","v20.11.0"],"prUrl":"https://github.com/nodejs/node/pull/50486","commit":null,"description":"A deprecation code has been assigned."},{"versions":["v14.0.0"],"prUrl":"https://github.com/nodejs/node/pull/32116","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `util.types.isWebAssemblyCompiledModule` API has been removed.\nPlease use `value instanceof WebAssembly.Module` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0178","name":"DEP0178: dirent.path","title":"DEP0178: `dirent.path`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55548","commit":null,"description":"End-of-Life."},{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/51050","commit":null,"description":"Runtime deprecation."},{"versions":["v21.5.0","v20.12.0","v18.20.0"],"prUrl":"https://github.com/nodejs/node/pull/51020","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe `dirent.path` property has been removed due to its lack of consistency across\nrelease lines. Please use [`dirent.parentPath`](fs.html#direntparentpath) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/dirent-path-to-parent-path)):\n\n```bash\nnpx codemod@latest @nodejs/dirent-path-to-parent-path\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/dirent-path-to-parent-path"}],"children":[]},{"kind":"section","id":"DEP0179","name":"DEP0179: Hash constructor","title":"DEP0179: `Hash` constructor","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/51880","commit":null,"description":"Runtime deprecation."},{"versions":["v21.5.0","v20.12.0"],"prUrl":"https://github.com/nodejs/node/pull/51077","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nCalling `Hash` class directly with `Hash()` or `new Hash()` is\ndeprecated due to being internals, not intended for public use.\nPlease use the [`crypto.createHash()`](crypto.html#cryptocreatehashalgorithm-options) method to create Hash instances.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0180","name":"DEP0180: fs.Stats constructor","title":"DEP0180: `fs.Stats` constructor","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52067","commit":null,"description":"Runtime deprecation."},{"versions":["v20.13.0"],"prUrl":"https://github.com/nodejs/node/pull/51879","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nCalling `fs.Stats` class directly with `Stats()` or `new Stats()` is\ndeprecated due to being internals, not intended for public use.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0181","name":"DEP0181: Hmac constructor","title":"DEP0181: `Hmac` constructor","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52071","commit":null,"description":"Runtime deprecation."},{"versions":["v20.13.0"],"prUrl":"https://github.com/nodejs/node/pull/51881","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nCalling `Hmac` class directly with `Hmac()` or `new Hmac()` is\ndeprecated due to being internals, not intended for public use.\nPlease use the [`crypto.createHmac()`](crypto.html#cryptocreatehmacalgorithm-key-options) method to create Hmac instances.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0182","name":"DEP0182: Short GCM authentication tags without explicit authTagLength","title":"DEP0182: Short GCM authentication tags without explicit `authTagLength`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/61084","commit":null,"description":"End-of-Life."},{"versions":["v23.0.0"],"prUrl":"https://github.com/nodejs/node/pull/52552","commit":null,"description":"Runtime deprecation."},{"versions":["v20.13.0"],"prUrl":"https://github.com/nodejs/node/pull/52345","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nFor ciphers in GCM mode, the [`decipher.setAuthTag()`](crypto.html#deciphersetauthtagbuffer-encoding) function used to accept\nauthentication tags of any valid length (see also [DEP0090](#DEP0090)). This\nexception has been removed to better align with recommendations per\n[NIST SP 800-38D](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf), and applications that intend to use authentication tags\nthat are shorter than the default authentication tag length (i.e., shorter than\n16 bytes for AES-GCM) must explicitly set the `authTagLength` option of the\n[`crypto.createDecipheriv()`](crypto.html#cryptocreatedecipherivalgorithm-key-iv-options) function to the appropriate length.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0183","name":"DEP0183: OpenSSL engine-based APIs","title":"DEP0183: OpenSSL engine-based APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v22.4.0","v20.16.0"],"prUrl":"https://github.com/nodejs/node/pull/53329","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nOpenSSL 3 has deprecated support for custom engines with a recommendation to\nswitch to its new provider model. The `clientCertEngine` option for\n`https.request()`, [`tls.createSecureContext()`](tls.html#tlscreatesecurecontextoptions), and [`tls.createServer()`](tls.html#tlscreateserveroptions-secureconnectionlistener);\nthe `privateKeyEngine` and `privateKeyIdentifier` for [`tls.createSecureContext()`](tls.html#tlscreatesecurecontextoptions);\nand [`crypto.setEngine()`](crypto.html#cryptosetengineengine-flags) all depend on this functionality from OpenSSL.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0184","name":"DEP0184: Instantiating node:zlib classes without new","title":"DEP0184: Instantiating `node:zlib` classes without `new`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55718","commit":null,"description":"Runtime deprecation."},{"versions":["v22.9.0","v20.18.0"],"prUrl":"https://github.com/nodejs/node/pull/54708","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nInstantiating classes without the `new` qualifier exported by the `node:zlib` module is deprecated.\nIt is recommended to use the `new` qualifier instead. This applies to all Zlib classes, such as `Deflate`,\n`DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0185","name":"DEP0185: Instantiating node:repl classes without new","title":"DEP0185: Instantiating `node:repl` classes without `new`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/59495","commit":null,"description":"End-of-Life."},{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/54869","commit":null,"description":"Runtime deprecation."},{"versions":["v22.9.0","v20.18.0"],"prUrl":"https://github.com/nodejs/node/pull/54842","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nInstantiating classes without the `new` qualifier exported by the `node:repl` module is deprecated.\nThe `new` qualifier must be used instead. This applies to all REPL classes, including\n`REPLServer` and `Recoverable`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-classes-with-new)):\n\n```bash\nnpx codemod@latest @nodejs/repl-classes-with-new\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/repl-classes-with-new"}],"children":[]},{"kind":"section","id":"DEP0187","name":"DEP0187: Passing invalid argument types to fs.existsSync","title":"DEP0187: Passing invalid argument types to `fs.existsSync`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/55753","commit":null,"description":"Runtime deprecation."},{"versions":["v23.4.0","v22.13.0","v20.19.3"],"prUrl":"https://github.com/nodejs/node/pull/55892","commit":null,"description":"Documentation-only."}],"description":"Type: Runtime\n\nPassing non-supported argument types is deprecated and, instead of returning `false`,\nwill throw an error in a future version.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0188","name":"DEP0188: process.features.ipv6 and process.features.uv","title":"DEP0188: `process.features.ipv6` and `process.features.uv`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.4.0","v22.13.0"],"prUrl":"https://github.com/nodejs/node/pull/55545","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThese properties are unconditionally `true`. Any checks based on these properties are redundant.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0189","name":"DEP0189: process.features.tls_*","title":"DEP0189: `process.features.tls_*`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v23.4.0","v22.13.0"],"prUrl":"https://github.com/nodejs/node/pull/55545","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\n`process.features.tls_alpn`, `process.features.tls_ocsp`, and `process.features.tls_sni` are\ndeprecated, as their values are guaranteed to be identical to that of `process.features.tls`.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0190","name":"DEP0190: Passing args to node:child_process execFile/spawn with shell option","title":"DEP0190: Passing `args` to `node:child_process` `execFile`/`spawn` with `shell` option","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0"],"prUrl":"https://github.com/nodejs/node/pull/57199","commit":null,"description":"Runtime deprecation."},{"versions":["v23.11.0","v22.15.0"],"prUrl":"https://github.com/nodejs/node/pull/57389","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nWhen an `args` array is passed to [`child_process.execFile`](child_process.html#child_processexecfilefile-args-options-callback) or [`child_process.spawn`](child_process.html#child_processspawncommand-args-options) with the option\n`{ shell: true }` or `{ shell: '/path/to/shell' }`, the values are not escaped, only space-separated,\nwhich can lead to shell injection.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0191","name":"DEP0191: repl.builtinModules","title":"DEP0191: `repl.builtinModules`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.0.0","v22.16.0"],"prUrl":"https://github.com/nodejs/node/pull/57508","commit":null,"description":"Documentation-only deprecation with `--pending-deprecation` support."}],"description":"Type: Documentation-only (supports [`--pending-deprecation`](cli.html#--pending-deprecation))\n\nThe `node:repl` module exports a `builtinModules` property that contains an array\nof built-in modules. This was incomplete and matched the already deprecated\n`repl._builtinLibs` ([DEP0142](#dep0142-repl_builtinlibs)) instead it's better to rely\nupon `require('node:module').builtinModules`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-builtin-modules)):\n\n```bash\nnpx codemod@latest @nodejs/repl-builtin-modules\n```","summary":"Type: Documentation-only (supports `--pending-deprecation`)","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/repl-builtin-modules"}],"children":[]},{"kind":"section","id":"DEP0192","name":"DEP0192: require('node:_tls_common') and require('node:_tls_wrap')","title":"DEP0192: `require('node:_tls_common')` and `require('node:_tls_wrap')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.2.0","v22.17.0","v20.19.6"],"prUrl":"https://github.com/nodejs/node/pull/57643","commit":null,"description":"Runtime deprecation."}],"description":"Type: Runtime\n\nThe `node:_tls_common` and `node:_tls_wrap` modules are deprecated as they should be considered\nan internal nodejs implementation rather than a public facing API, use `node:tls` instead.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0193","name":"DEP0193: require('node:_stream_*')","title":"DEP0193: `require('node:_stream_*')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/60657","commit":null,"description":"End-of-Life."},{"versions":["v24.2.0","v22.17.0","v20.19.6"],"prUrl":"https://github.com/nodejs/node/pull/58337","commit":null,"description":"Runtime deprecation."}],"description":"Type: End-of-Life\n\nThe `node:_stream_duplex`, `node:_stream_passthrough`, `node:_stream_readable`, `node:_stream_transform`,\n`node:_stream_wrap` and `node:_stream_writable` modules are deprecated as they should be considered\nan internal nodejs implementation rather than a public facing API, use `node:stream` instead.","summary":"Type: End-of-Life","examples":[],"children":[]},{"kind":"section","id":"DEP0194","name":"DEP0194: HTTP/2 priority signaling","title":"DEP0194: HTTP/2 priority signaling","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.2.0"],"prUrl":"https://github.com/nodejs/node/pull/58293","commit":null,"description":"End-of-Life."},{"versions":["v24.2.0","v22.17.0","v20.19.6"],"prUrl":"https://github.com/nodejs/node/pull/58313","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: End-of-Life\n\nThe support for priority signaling has been removed following its deprecation in the [RFC 9113](https://datatracker.ietf.org/doc/html/rfc9113#section-5.3.1).\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling)):\n\n```bash\nnpx codemod@latest @nodejs/http2-priority-signaling\n```","summary":"Type: End-of-Life","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/http2-priority-signaling"}],"children":[]},{"kind":"section","id":"DEP0195","name":"DEP0195: Instantiating node:http classes without new","title":"DEP0195: Instantiating `node:http` classes without `new`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.2.0","v22.17.0"],"prUrl":"https://github.com/nodejs/node/pull/58518","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nInstantiating classes without the `new` qualifier exported by the `node:http` module is deprecated.\nIt is recommended to use the `new` qualifier instead. This applies to all http classes, such as\n`OutgoingMessage`, `IncomingMessage`, `ServerResponse` and `ClientRequest`.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http-classes-with-new)):\n\n```bash\nnpx codemod@latest @nodejs/http-classes-with-new\n```","summary":"Type: Documentation-only","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/http-classes-with-new"}],"children":[]},{"kind":"section","id":"DEP0196","name":"DEP0196: Calling node:child_process functions with options.shell as an empty string","title":"DEP0196: Calling `node:child_process` functions with `options.shell` as an empty string","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.2.0","v22.17.0"],"prUrl":"https://github.com/nodejs/node/pull/58564","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nCalling the process-spawning functions with `{ shell: '' }` is almost certainly\nunintentional, and can cause aberrant behavior.\n\nTo make [`child_process.execFile`](child_process.html#child_processexecfilefile-args-options-callback) or [`child_process.spawn`](child_process.html#child_processspawncommand-args-options) invoke the\ndefault shell, use `{ shell: true }`. If the intention is not to invoke a shell\n(default behavior), either omit the `shell` option, or set it to `false` or a\nnullish value.\n\nTo make [`child_process.exec`](child_process.html#child_processexeccommand-options-callback) invoke the default shell, either omit the\n`shell` option, or set it to a nullish value. If the intention is not to invoke\na shell, use [`child_process.execFile`](child_process.html#child_processexecfilefile-args-options-callback) instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0197","name":"DEP0197: util.types.isNativeError()","title":"DEP0197: `util.types.isNativeError()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.2.0"],"prUrl":"https://github.com/nodejs/node/pull/58262","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe [`util.types.isNativeError`](util.html#utiltypesisnativeerrorvalue) API is deprecated. Please use [`Error.isError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/isError) instead.\n\nAn automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/types-is-native-error)):\n\n```bash\nnpx codemod@latest @nodejs/types-is-native-error\n```","summary":"Type: Documentation-only","examples":[{"language":"bash","displayName":null,"code":"npx codemod@latest @nodejs/types-is-native-error"}],"children":[]},{"kind":"section","id":"DEP0198","name":"DEP0198: Creating SHAKE-128 and SHAKE-256 digests without an explicit options.outputLength","title":"DEP0198: Creating SHAKE-128 and SHAKE-256 digests without an explicit `options.outputLength`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.0.0"],"prUrl":"https://github.com/nodejs/node/pull/59008","commit":null,"description":"Runtime deprecation."},{"versions":["v24.4.0","v22.18.0","v20.19.5"],"prUrl":"https://github.com/nodejs/node/pull/58942","commit":null,"description":"Documentation-only deprecation with support for `--pending-deprecation`."}],"description":"Type: Runtime\n\nCreating SHAKE-128 and SHAKE-256 digests without an explicit `options.outputLength` is deprecated.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0199","name":"DEP0199: require('node:_http_*')","title":"DEP0199: `require('node:_http_*')`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.6.0","v22.19.0"],"prUrl":"https://github.com/nodejs/node/pull/59293","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `node:_http_agent`, `node:_http_client`, `node:_http_common`, `node:_http_incoming`,\n`node:_http_outgoing` and `node:_http_server` modules are deprecated as they should be considered\nan internal nodejs implementation rather than a public facing API, use `node:http` instead.","summary":"Type: Documentation-only","examples":[],"children":[]},{"kind":"section","id":"DEP0200","name":"DEP0200: Closing fs.Dir on garbage collection","title":"DEP0200: Closing fs.Dir on garbage collection","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v24.9.0"],"prUrl":"https://github.com/nodejs/node/pull/59839","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nAllowing a [`fs.Dir`](fs.html#class-fsdir) object to be closed on garbage collection is\ndeprecated. In the future, doing so might result in a thrown error that will\nterminate the process.\n\nPlease ensure that all `fs.Dir` objects are explicitly closed using\n`Dir.prototype.close()` or `using` keyword:\n\n```mjs\nimport { opendir } from 'node:fs/promises';\n\n{\n  await using dir = await opendir('/async/disposable/directory');\n} // Closed by dir[Symbol.asyncDispose]()\n\n{\n  using dir = await opendir('/sync/disposable/directory');\n} // Closed by dir[Symbol.dispose]()\n\n{\n  const dir = await opendir('/unconditionally/iterated/directory');\n  for await (const entry of dir) {\n    // process an entry\n  } // Closed by iterator\n}\n\n{\n  let dir;\n  try {\n    dir = await opendir('/legacy/closeable/directory');\n  } finally {\n    await dir?.close();\n  }\n}\n```","summary":"Type: Documentation-only","examples":[{"language":"mjs","displayName":null,"code":"import { opendir } from 'node:fs/promises';\n\n{\n  await using dir = await opendir('/async/disposable/directory');\n} // Closed by dir[Symbol.asyncDispose]()\n\n{\n  using dir = await opendir('/sync/disposable/directory');\n} // Closed by dir[Symbol.dispose]()\n\n{\n  const dir = await opendir('/unconditionally/iterated/directory');\n  for await (const entry of dir) {\n    // process an entry\n  } // Closed by iterator\n}\n\n{\n  let dir;\n  try {\n    dir = await opendir('/legacy/closeable/directory');\n  } finally {\n    await dir?.close();\n  }\n}"}],"children":[]},{"kind":"section","id":"DEP0201","name":"DEP0201: Passing options.type to Duplex.toWeb()","title":"DEP0201: Passing `options.type` to `Duplex.toWeb()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/62173","commit":null,"description":"Runtime deprecation."},{"versions":["v25.7.0"],"prUrl":"https://github.com/nodejs/node/pull/61632","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nPassing the `type` option to [`Duplex.toWeb()`](stream.html#streamduplextowebstreamduplex-options) is deprecated. To specify the\ntype of the readable half of the constructed readable-writable pair, use the\n`readableType` option instead.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0202","name":"DEP0202: Http1IncomingMessage and Http1ServerResponse options of HTTP/2 servers","title":"DEP0202: `Http1IncomingMessage` and `Http1ServerResponse` options of HTTP/2 servers","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v25.7.0"],"prUrl":"https://github.com/nodejs/node/pull/61713","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nThe `Http1IncomingMessage` and `Http1ServerResponse` options of\n[`http2.createServer()`](http2.html#http2createserveroptions-onrequesthandler) and [`http2.createSecureServer()`](http2.html#http2createsecureserveroptions-onrequesthandler) are\ndeprecated. Use `http1Options.IncomingMessage` and\n`http1Options.ServerResponse` instead.\n\n```cjs\n// Deprecated\nconst server = http2.createSecureServer({\n  allowHTTP1: true,\n  Http1IncomingMessage: MyIncomingMessage,\n  Http1ServerResponse: MyServerResponse,\n});\n```\n\n```cjs\n// Use this instead\nconst server = http2.createSecureServer({\n  allowHTTP1: true,\n  http1Options: {\n    IncomingMessage: MyIncomingMessage,\n    ServerResponse: MyServerResponse,\n  },\n});\n```","summary":"Type: Documentation-only","examples":[{"language":"cjs","displayName":null,"code":"// Deprecated\nconst server = http2.createSecureServer({\n  allowHTTP1: true,\n  Http1IncomingMessage: MyIncomingMessage,\n  Http1ServerResponse: MyServerResponse,\n});"},{"language":"cjs","displayName":null,"code":"// Use this instead\nconst server = http2.createSecureServer({\n  allowHTTP1: true,\n  http1Options: {\n    IncomingMessage: MyIncomingMessage,\n    ServerResponse: MyServerResponse,\n  },\n});"}],"children":[]},{"kind":"section","id":"DEP0203","name":"DEP0203: Passing CryptoKey to node:crypto APIs","title":"DEP0203: Passing `CryptoKey` to `node:crypto` APIs","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/62453","commit":null,"description":"Runtime deprecation."},{"versions":["v25.9.0"],"prUrl":"https://github.com/nodejs/node/pull/62321","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nPassing a [`CryptoKey`](webcrypto.html#class-cryptokey) to `node:crypto` functions is deprecated and\nwill throw an error in a future version. This includes\n[`crypto.createPublicKey()`](crypto.html#cryptocreatepublickeykey), [`crypto.createPrivateKey()`](crypto.html#cryptocreateprivatekeykey),\n[`crypto.sign()`](crypto.html#cryptosignalgorithm-data-key-callback), [`crypto.verify()`](crypto.html#cryptoverifyalgorithm-data-key-signature-callback),\n[`crypto.publicEncrypt()`](crypto.html#cryptopublicencryptkey-buffer), [`crypto.publicDecrypt()`](crypto.html#cryptopublicdecryptkey-buffer),\n[`crypto.privateEncrypt()`](crypto.html#cryptoprivateencryptprivatekey-buffer), [`crypto.privateDecrypt()`](crypto.html#cryptoprivatedecryptprivatekey-buffer),\n[`Sign.prototype.sign()`](crypto.html#signsignprivatekey-outputencoding), [`Verify.prototype.verify()`](crypto.html#verifyverifyobject-signature-signatureencoding),\n[`crypto.createHmac()`](crypto.html#cryptocreatehmacalgorithm-key-options), [`crypto.createCipheriv()`](crypto.html#cryptocreatecipherivalgorithm-key-iv-options),\n[`crypto.createDecipheriv()`](crypto.html#cryptocreatedecipherivalgorithm-key-iv-options), [`crypto.encapsulate()`](crypto.html#cryptoencapsulatekey-callback), and\n[`crypto.decapsulate()`](crypto.html#cryptodecapsulatekey-ciphertext-callback).","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0204","name":"DEP0204: KeyObject.from() with non-extractable CryptoKey","title":"DEP0204: `KeyObject.from()` with non-extractable `CryptoKey`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/62453","commit":null,"description":"Runtime deprecation."},{"versions":["v25.9.0"],"prUrl":"https://github.com/nodejs/node/pull/62321","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\nPassing a non-extractable [`CryptoKey`](webcrypto.html#class-cryptokey) to [`KeyObject.from()`](crypto.html#static-method-keyobjectfromkey) is\ndeprecated and will throw an error in a future version.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0205","name":"DEP0205: module.register()","title":"DEP0205: `module.register()`","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.0.0"],"prUrl":"https://github.com/nodejs/node/pull/62401","commit":null,"description":"Runtime deprecation."},{"versions":["v25.9.0"],"prUrl":"https://github.com/nodejs/node/pull/62395","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Runtime\n\n[`module.register()`](module.html#moduleregisterspecifier-parenturl-options) is deprecated. Use [`module.registerHooks()`](module.html#moduleregisterhooksoptions)\ninstead.\n\nThe `module.register()` API provides off-thread async hooks for customizing ES modules;\nthe `module.registerHooks()` API provides similar hooks that are synchronous, in-thread, and\nwork for all types of modules.\nSupporting async hooks has proven to be complex, involving worker threads orchestration, and there are issues\nthat have proven unresolvable. See [caveats of asynchronous customization hooks](module.html#caveats-of-asynchronous-customization-hooks). Please migrate to\n`module.registerHooks()` as soon as possible as `module.register()` will be\nremoved in a future version of Node.js.","summary":"Type: Runtime","examples":[],"children":[]},{"kind":"section","id":"DEP0206","name":"DEP0206: Calling digest() on an already-finalized Hmac instance","title":"DEP0206: Calling `digest()` on an already-finalized `Hmac` instance","scope":"module","overloadOf":null,"stability":null,"added":[],"deprecated":[],"removed":[],"napiVersion":[],"changes":[{"versions":["v26.2.0"],"prUrl":"https://github.com/nodejs/node/pull/63121","commit":null,"description":"Documentation-only deprecation."}],"description":"Type: Documentation-only\n\nCalling `hmac.digest()` more than once returns an empty buffer instead of\nthrowing an error. This behavior is inconsistent with `hash.digest()` and\nmay lead to subtle bugs. Calling `hmac.digest()` on a finalized `Hmac` instance\nwill throw an error in a future version.","summary":"Type: Documentation-only","examples":[],"children":[]}]}]}