doc: deprecate passing invalid types in `fs.existsSync`

PR-URL: https://github.com/nodejs/node/pull/55892
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
pull/55986/head
Carlos Espa 2024-11-25 23:48:24 +01:00 committed by GitHub
parent a43a2832e2
commit a01319a55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -3772,6 +3772,20 @@ It is recommended to use the `new` qualifier instead. This applies to all REPL c
<!-- md-lint skip-deprecation DEP0186 -->
### DEP0187: Passing invalid argument types to `fs.existsSync`
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/55892
description: Documentation-only.
-->
Type: Documentation-only
Passing non-supported argument types is deprecated and, instead of returning `false`,
will throw an error in a future version.
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4