Skip to content

Commit 5738107

Browse files
Ceres6ruyadorno
authored andcommitted
doc: deprecate passing invalid types in fs.existsSync
PR-URL: #55892 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jason Zhang <[email protected]>
1 parent a4fa31a commit 5738107

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api/deprecations.md

+14
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,20 @@ It is recommended to use the `new` qualifier instead. This applies to all REPL c
36873687

36883688
<!-- md-lint skip-deprecation DEP0186 -->
36893689

3690+
### DEP0187: Passing invalid argument types to `fs.existsSync`
3691+
3692+
<!-- YAML
3693+
changes:
3694+
- version: REPLACEME
3695+
pr-url: https://github.com/nodejs/node/pull/55892
3696+
description: Documentation-only.
3697+
-->
3698+
3699+
Type: Documentation-only
3700+
3701+
Passing non-supported argument types is deprecated and, instead of returning `false`,
3702+
will throw an error in a future version.
3703+
36903704
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
36913705
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
36923706
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)