Skip to content

Commit 64aa31f

Browse files
Aviv Kellertargos
Aviv Keller
authored andcommitted
repl: doc-deprecate instantiating node:repl classes without new
PR-URL: #54842 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 93881a4 commit 64aa31f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/api/deprecations.md

+15
Original file line numberDiff line numberDiff line change
@@ -3558,6 +3558,21 @@ Instantiating classes without the `new` qualifier exported by the `node:zlib` mo
35583558
It is recommended to use the `new` qualifier instead. This applies to all Zlib classes, such as `Deflate`,
35593559
`DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`.
35603560

3561+
### DEP0185: Instantiating `node:repl` classes without `new`
3562+
3563+
<!-- YAML
3564+
changes:
3565+
- version: REPLACEME
3566+
pr-url: https://github.com/nodejs/node/pull/54842
3567+
description: Documentation-only deprecation.
3568+
-->
3569+
3570+
Type: Documentation-only
3571+
3572+
Instantiating classes without the `new` qualifier exported by the `node:repl` module is deprecated.
3573+
It is recommended to use the `new` qualifier instead. This applies to all REPL classes, including
3574+
`REPLServer` and `Recoverable`.
3575+
35613576
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35623577
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35633578
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
 (0)