Skip to content

Commit 4ec784c

Browse files
MoLowmarco-ippolito
authored andcommitted
watch: mark as stable
PR-URL: #52074 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent a9543fa commit 4ec784c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

doc/api/cli.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,14 +2265,17 @@ added:
22652265
- v18.11.0
22662266
- v16.19.0
22672267
changes:
2268+
- version: REPLACEME
2269+
pr-url: https://github.com/nodejs/node/pull/52074
2270+
description: Watch mode is now stable.
22682271
- version:
22692272
- v19.2.0
22702273
- v18.13.0
22712274
pr-url: https://github.com/nodejs/node/pull/45214
22722275
description: Test runner now supports running in watch mode.
22732276
-->
22742277

2275-
> Stability: 1 - Experimental
2278+
> Stability: 2 - Stable
22762279
22772280
Starts Node.js in watch mode.
22782281
When in watch mode, changes in the watched files cause the Node.js process to
@@ -2294,9 +2297,13 @@ node --watch index.js
22942297
added:
22952298
- v18.11.0
22962299
- v16.19.0
2300+
changes:
2301+
- version: REPLACEME
2302+
pr-url: https://github.com/nodejs/node/pull/52074
2303+
description: Watch mode is now stable.
22972304
-->
22982305

2299-
> Stability: 1 - Experimental
2306+
> Stability: 2 - Stable
23002307
23012308
Starts Node.js in watch mode and specifies what paths to watch.
23022309
When in watch mode, changes in the watched paths cause the Node.js process to

lib/internal/main/watch_mode.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const {
1818
exitCodes: { kNoFailure },
1919
} = internalBinding('errors');
2020
const { getOptionValue } = require('internal/options');
21-
const { emitExperimentalWarning } = require('internal/util');
2221
const { FilesWatcher } = require('internal/watch_mode/files_watcher');
2322
const { green, blue, red, white, clear } = require('internal/util/colors');
2423

@@ -117,7 +116,6 @@ async function restart() {
117116
}
118117
}
119118

120-
emitExperimentalWarning('Watch mode');
121119
start();
122120
watcher
123121
.on('changed', restart)

0 commit comments

Comments
 (0)