Skip to content

Commit f217b2d

Browse files
committed
repl: remove deprecated repl.turnOffEditorMode() function
This function is deprecated for multiple years and provides very little benefit to users. Thus, it's removed to improve the maintainability of the REPL module. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #33286 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a1bcad8 commit f217b2d

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

‎doc/api/deprecations.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,12 +1628,15 @@ supported API.
16281628
### DEP0078: `REPLServer.turnOffEditorMode()`
16291629
<!-- YAML
16301630
changes:
1631+
- version: REPLACEME
1632+
pr-url: https://github.com/nodejs/node/pull/33286
1633+
description: End-of-Life.
16311634
- version: v9.0.0
16321635
pr-url: https://github.com/nodejs/node/pull/15136
16331636
description: Runtime deprecation.
16341637
-->
16351638
1636-
Type: Runtime
1639+
Type: End-of-Life
16371640
16381641
`REPLServer.turnOffEditorMode()` was removed from userland visibility.
16391642

‎lib/repl.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,6 @@ REPLServer.prototype.setPrompt = function setPrompt(prompt){
10341034
Interface.prototype.setPrompt.call(this,prompt);
10351035
};
10361036

1037-
REPLServer.prototype.turnOffEditorMode=deprecate(
1038-
function(){_turnOffEditorMode(this);},
1039-
'REPLServer.turnOffEditorMode() is deprecated',
1040-
'DEP0078');
1041-
10421037
constrequireRE=/\brequire\s*\(\s*['"`](([\w@./-]+\/)?(?:[\w@./-]*))(?![^'"`])$/;
10431038
constfsAutoCompleteRE=/fs(?:\.promises)?\.\s*[a-z][a-zA-Z]+\(\s*["'](.*)/;
10441039
constsimpleExpressionRE=

‎test/parallel/test-repl-turn-off-editor-mode.js‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
(0)