diff --git a/doc/api/cli.md b/doc/api/cli.md index df90e9ae306b45..67d7151c9681f1 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2302,6 +2302,9 @@ added: - v18.11.0 - v16.19.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/52074 + description: Watch mode is now stable. - version: - v19.2.0 - v18.13.0 @@ -2309,7 +2312,7 @@ changes: description: Test runner now supports running in watch mode. --> -> Stability: 1 - Experimental +> Stability: 2 - Stable Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to @@ -2331,9 +2334,13 @@ node --watch index.js added: - v18.11.0 - v16.19.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/52074 + description: Watch mode is now stable. --> -> Stability: 1 - Experimental +> Stability: 2 - Stable Starts Node.js in watch mode and specifies what paths to watch. When in watch mode, changes in the watched paths cause the Node.js process to diff --git a/lib/internal/main/watch_mode.js b/lib/internal/main/watch_mode.js index 05433c934b6c03..ab9f9fa95bc271 100644 --- a/lib/internal/main/watch_mode.js +++ b/lib/internal/main/watch_mode.js @@ -18,7 +18,6 @@ const { exitCodes: { kNoFailure }, } = internalBinding('errors'); const { getOptionValue } = require('internal/options'); -const { emitExperimentalWarning } = require('internal/util'); const { FilesWatcher } = require('internal/watch_mode/files_watcher'); const { green, blue, red, white, clear } = require('internal/util/colors'); @@ -117,7 +116,6 @@ async function restart() { } } -emitExperimentalWarning('Watch mode'); start(); watcher .on('changed', restart)