Skip to content

Commit d6a2317

Browse files
avivkellertargos
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 bc020f7 commit d6a2317

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy