Skip to content

Commit 8433032

Browse files
avivkelleraduh95
authored andcommitted
repl: doc-deprecate instantiating node:repl classes without new
PR-URL: #54842 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent c2bf013 commit 8433032

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/api/deprecations.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3670,6 +3670,21 @@ Instantiating classes without the `new` qualifier exported by the `node:zlib` mo
36703670
It is recommended to use the `new` qualifier instead. This applies to all Zlib classes, such as `Deflate`,
36713671
`DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`.
36723672

3673+
### DEP0185: Instantiating `node:repl` classes without `new`
3674+
3675+
<!-- YAML
3676+
changes:
3677+
- version: REPLACEME
3678+
pr-url: https://github.com/nodejs/node/pull/54842
3679+
description: Documentation-only deprecation.
3680+
-->
3681+
3682+
Type: Documentation-only
3683+
3684+
Instantiating classes without the `new` qualifier exported by the `node:repl` module is deprecated.
3685+
It is recommended to use the `new` qualifier instead. This applies to all REPL classes, including
3686+
`REPLServer` and `Recoverable`.
3687+
36733688
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
36743689
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
36753690
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)