From 4f68c7c1c9373257a1c429fba8d4dc730ff3e32d Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Fri, 15 Mar 2024 15:09:48 +0200 Subject: [PATCH] watch: mark as stable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/52074 Reviewed-By: Matteo Collina Reviewed-By: Rafael Gonzaga Reviewed-By: Michaƫl Zasso Reviewed-By: Yagiz Nizipli Reviewed-By: Chemi Atlow Reviewed-By: Michael Dawson Reviewed-By: Benjamin Gruenbaum --- doc/api/cli.md | 11 +++++++++-- lib/internal/main/watch_mode.js | 2 -- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index b445f6b0e1..8bc982d66a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2317,6 +2317,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 @@ -2324,7 +2327,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 @@ -2346,9 +2349,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 05433c934b..ab9f9fa95b 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)