Skip to content

Commit 4f68c7c

Browse files
authoredMar 15, 2024··
watch: mark as stable
PR-URL: #52074 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 9a1e01c commit 4f68c7c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
 

Diff for: ‎doc/api/cli.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -2317,14 +2317,17 @@ added:
23172317
- v18.11.0
23182318
- v16.19.0
23192319
changes:
2320+
- version: REPLACEME
2321+
pr-url: https://github.com/nodejs/node/pull/52074
2322+
description: Watch mode is now stable.
23202323
- version:
23212324
- v19.2.0
23222325
- v18.13.0
23232326
pr-url: https://github.com/nodejs/node/pull/45214
23242327
description: Test runner now supports running in watch mode.
23252328
-->
23262329

2327-
> Stability: 1 - Experimental
2330+
> Stability: 2 - Stable
23282331
23292332
Starts Node.js in watch mode.
23302333
When in watch mode, changes in the watched files cause the Node.js process to
@@ -2346,9 +2349,13 @@ node --watch index.js
23462349
added:
23472350
- v18.11.0
23482351
- v16.19.0
2352+
changes:
2353+
- version: REPLACEME
2354+
pr-url: https://github.com/nodejs/node/pull/52074
2355+
description: Watch mode is now stable.
23492356
-->
23502357

2351-
> Stability: 1 - Experimental
2358+
> Stability: 2 - Stable
23522359
23532360
Starts Node.js in watch mode and specifies what paths to watch.
23542361
When in watch mode, changes in the watched paths cause the Node.js process to

Diff for: ‎lib/internal/main/watch_mode.js

-2
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)
Please sign in to comment.