Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a1bcad8

Browse filesBrowse files
committed
repl: remove deprecated repl.parseREPLKeyword() function
This removes the deprecated REPLServer.parseREPLKeyword function. It is deprecated for a long time and should not provide any benefit to users. To improve the maintainability of the REPL module, it's now removed. Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de> PR-URL: #33286 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4ace010 commit a1bcad8
Copy full SHA for a1bcad8

File tree

Expand file treeCollapse file tree

3 files changed

+4
-22
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-22
lines changed
Open diff view settings
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1564,12 +1564,15 @@ The `REPLServer.bufferedCommand` property was deprecated in favor of
15641564
### DEP0075: `REPLServer.parseREPLKeyword()`
15651565
<!-- YAML
15661566
changes:
1567+
- version: REPLACEME
1568+
pr-url: https://github.com/nodejs/node/pull/33286
1569+
description: End-of-Life.
15671570
- version: v9.0.0
15681571
pr-url: https://github.com/nodejs/node/pull/14223
15691572
description: Runtime deprecation.
15701573
-->
15711574

1572-
Type: Runtime
1575+
Type: End-of-Life
15731576

15741577
`REPLServer.parseREPLKeyword()` was removed from userland visibility.
15751578

Collapse file

‎lib/repl.js‎

Copy file name to clipboardExpand all lines: lib/repl.js
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,6 @@ function REPLServer(prompt,
679679
return false;
680680
}
681681

682-
self.parseREPLKeyword = deprecate(
683-
_parseREPLKeyword,
684-
'REPLServer.parseREPLKeyword() is deprecated',
685-
'DEP0075');
686-
687682
self.on('close', function emitExit() {
688683
if (paused) {
689684
pausedBuffer.push(['close']);
Collapse file

‎test/parallel/test-repl-deprecations.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-repl-deprecations.js
-16Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.