Skip to content

Commit a12a2d8

Browse files
aduh95BridgeAR
authored andcommitted
repl: update deprecation codes
Refs: #33294 PR-URL: #33430 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1c61914 commit a12a2d8

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

doc/api/deprecations.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2668,8 +2668,8 @@ Type: Documentation-only
26682668
26692669
Use [`request.destroy()`][] instead of [`request.abort()`][].
26702670
2671-
<a id="DEP0XXX"></a>
2672-
### DEP0XXX: `repl.inputStream` and `repl.outputStream`
2671+
<a id="DEP0141"></a>
2672+
### DEP0141: `repl.inputStream` and `repl.outputStream`
26732673
<!-- YAML
26742674
changes:
26752675
- version: REPLACEME
@@ -2682,8 +2682,8 @@ Type: Documentation-only (supports [`--pending-deprecation`][])
26822682
The `repl` module exported the input and output stream twice. Use `.input`
26832683
instead of `.inputStream` and `.output` instead of `.outputStream`.
26842684
2685-
<a id="DEP0XX1"></a>
2686-
### DEP0XX1: `repl._builtinLibs`
2685+
<a id="DEP0142"></a>
2686+
### DEP0142: `repl._builtinLibs`
26872687
<!-- YAML
26882688
changes:
26892689
- version: REPLACEME

lib/repl.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ function REPLServer(prompt,
225225
deprecate(() => this.input,
226226
'repl.inputStream and repl.outputStream is deprecated. ' +
227227
'Use repl.input and repl.output instead',
228-
'DEP0XXX') :
228+
'DEP0141') :
229229
() => this.input,
230230
set: pendingDeprecation ?
231231
deprecate((val) => this.input = val,
232232
'repl.inputStream and repl.outputStream is deprecated. ' +
233233
'Use repl.input and repl.output instead',
234-
'DEP0XXX') :
234+
'DEP0141') :
235235
(val) => this.input = val,
236236
enumerable: false,
237237
configurable: true
@@ -241,13 +241,13 @@ function REPLServer(prompt,
241241
deprecate(() => this.output,
242242
'repl.inputStream and repl.outputStream is deprecated. ' +
243243
'Use repl.input and repl.output instead',
244-
'DEP0XXX') :
244+
'DEP0141') :
245245
() => this.output,
246246
set: pendingDeprecation ?
247247
deprecate((val) => this.output = val,
248248
'repl.inputStream and repl.outputStream is deprecated. ' +
249249
'Use repl.input and repl.output instead',
250-
'DEP0XXX') :
250+
'DEP0141') :
251251
(val) => this.output = val,
252252
enumerable: false,
253253
configurable: true
@@ -1614,12 +1614,12 @@ ObjectDefineProperty(module.exports, '_builtinLibs', {
16141614
get: pendingDeprecation ? deprecate(
16151615
() => _builtinLibs,
16161616
'repl._builtinLibs is deprecated. Check module.builtinModules instead',
1617-
'DEP0XX1'
1617+
'DEP0142'
16181618
) : () => _builtinLibs,
16191619
set: pendingDeprecation ? deprecate(
16201620
(val) => _builtinLibs = val,
16211621
'repl._builtinLibs is deprecated. Check module.builtinModules instead',
1622-
'DEP0XX1'
1622+
'DEP0142'
16231623
) : (val) => _builtinLibs = val,
16241624
enumerable: false,
16251625
configurable: true

test/parallel/test-repl-options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ repl._builtinLibs;
3333

3434
common.expectWarning({
3535
DeprecationWarning: {
36-
DEP0XX1:
36+
DEP0142:
3737
'repl._builtinLibs is deprecated. Check module.builtinModules instead',
38-
DEP0XXX: 'repl.inputStream and repl.outputStream is deprecated. ' +
38+
DEP0141: 'repl.inputStream and repl.outputStream is deprecated. ' +
3939
'Use repl.input and repl.output instead',
4040
DEP0124: 'REPLServer.rli is deprecated',
4141
}

0 commit comments

Comments
 (0)