Skip to content

Commit 746ca58

Browse files
committed
watch: mark as stable
1 parent dab85bd commit 746ca58

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
@@ -2302,14 +2302,17 @@ added:
23022302
- v18.11.0
23032303
- v16.19.0
23042304
changes:
2305+
- version: REPLACEME
2306+
pr-url: https://github.com/nodejs/node/pull/52074
2307+
description: Watch mode is now stable.
23052308
- version:
23062309
- v19.2.0
23072310
- v18.13.0
23082311
pr-url: https://github.com/nodejs/node/pull/45214
23092312
description: Test runner now supports running in watch mode.
23102313
-->
23112314

2312-
> Stability: 1 - Experimental
2315+
> Stability: 2 - Stable
23132316
23142317
Starts Node.js in watch mode.
23152318
When in watch mode, changes in the watched files cause the Node.js process to
@@ -2331,9 +2334,13 @@ node --watch index.js
23312334
added:
23322335
- v18.11.0
23332336
- v16.19.0
2337+
changes:
2338+
- version: REPLACEME
2339+
pr-url: https://github.com/nodejs/node/pull/52074
2340+
description: Watch mode is now stable.
23342341
-->
23352342

2336-
> Stability: 1 - Experimental
2343+
> Stability: 2 - Stable
23372344
23382345
Starts Node.js in watch mode and specifies what paths to watch.
23392346
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)