Skip to content

Commit a01319a

Browse files
authored
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 a43a283 commit a01319a

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

37733773
<!-- md-lint skip-deprecation DEP0186 -->
37743774

3775+
### DEP0187: Passing invalid argument types to `fs.existsSync`
3776+
3777+
<!-- YAML
3778+
changes:
3779+
- version: REPLACEME
3780+
pr-url: https://github.com/nodejs/node/pull/55892
3781+
description: Documentation-only.
3782+
-->
3783+
3784+
Type: Documentation-only
3785+
3786+
Passing non-supported argument types is deprecated and, instead of returning `false`,
3787+
will throw an error in a future version.
3788+
37753789
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
37763790
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
37773791
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)