Skip to content

Commit

Permalink
doc: deprecate passing invalid types in fs.existsSync
Browse files Browse the repository at this point in the history
PR-URL: #55892
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jason Zhang <[email protected]>
  • Loading branch information
Ceres6 authored and aduh95 committed Nov 26, 2024
1 parent 5b0ce37 commit baed276
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3756,6 +3756,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
Expand Down

0 comments on commit baed276

Please sign in to comment.