Skip to content

Commit 441ce24

Browse files
Ceres6marco-ippolito
authored andcommitted
doc: deprecate passing invalid types in fs.existsSync
PR-URL: #55892 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
1 parent 79e0812 commit 441ce24

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,22 @@ Instantiating classes without the `new` qualifier exported by the `node:repl` mo
35733573
It is recommended to use the `new` qualifier instead. This applies to all REPL classes, including
35743574
`REPLServer` and `Recoverable`.
35753575

3576+
<!-- md-lint skip-deprecation DEP0186 -->
3577+
3578+
### DEP0187: Passing invalid argument types to `fs.existsSync`
3579+
3580+
<!-- YAML
3581+
changes:
3582+
- version: REPLACEME
3583+
pr-url: https://github.com/nodejs/node/pull/55892
3584+
description: Documentation-only.
3585+
-->
3586+
3587+
Type: Documentation-only
3588+
3589+
Passing non-supported argument types is deprecated and, instead of returning `false`,
3590+
will throw an error in a future version.
3591+
35763592
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35773593
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35783594
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy