Skip to content

Commit baed276

Browse files
Ceres6aduh95
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 5b0ce37 commit baed276

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
@@ -3756,6 +3756,20 @@ It is recommended to use the `new` qualifier instead. This applies to all REPL c
37563756

37573757
<!-- md-lint skip-deprecation DEP0186 -->
37583758

3759+
### DEP0187: Passing invalid argument types to `fs.existsSync`
3760+
3761+
<!-- YAML
3762+
changes:
3763+
- version: REPLACEME
3764+
pr-url: https://github.com/nodejs/node/pull/55892
3765+
description: Documentation-only.
3766+
-->
3767+
3768+
Type: Documentation-only
3769+
3770+
Passing non-supported argument types is deprecated and, instead of returning `false`,
3771+
will throw an error in a future version.
3772+
37593773
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
37603774
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
37613775
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)