Skip to content

Commit e1d4d6a

Browse files
authored
repl: eol deprecate instantiating without new
PR-URL: #59495 Refs: #54869 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent f855cda commit e1d4d6a

File tree

3 files changed

+825
-855
lines changed

3 files changed

+825
-855
lines changed

doc/api/deprecations.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,6 +3850,9 @@ It is recommended to use the `new` qualifier instead. This applies to all Zlib c
38503850

38513851
<!-- YAML
38523852
changes:
3853+
- version: REPLACEME
3854+
pr-url: https://github.com/nodejs/node/pull/59495
3855+
description: End-of-Life.
38533856
- version: v24.0.0
38543857
pr-url: https://github.com/nodejs/node/pull/54869
38553858
description: Runtime deprecation.
@@ -3860,10 +3863,10 @@ changes:
38603863
description: Documentation-only deprecation.
38613864
-->
38623865

3863-
Type: Runtime
3866+
Type: End-of-Life
38643867

38653868
Instantiating classes without the `new` qualifier exported by the `node:repl` module is deprecated.
3866-
It is recommended to use the `new` qualifier instead. This applies to all REPL classes, including
3869+
The `new` qualifier must be used instead. This applies to all REPL classes, including
38673870
`REPLServer` and `Recoverable`.
38683871

38693872
<!-- md-lint skip-deprecation DEP0186 -->

0 commit comments

Comments
 (0)