From 004b74c8c65a492a15a7538f71d44a92a86675fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 11 Aug 2024 23:10:55 +0100 Subject: feat: Rename --unstable-hmr to --watch-hmr (#24975) This commit stabilizes HMR functionality and renames `--unstable-hmr` to `--watch-hmr`. The `--unstable-hmr` flag is still working, but hidden from the help output. It will be removed in Deno 2. Once https://github.com/denoland/deno/pull/24958 lands we should improve grouping of `--watch` and `--watch-hmr` flags. --- tests/integration/watcher_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/watcher_tests.rs b/tests/integration/watcher_tests.rs index bb757eb35..3cec2f442 100644 --- a/tests/integration/watcher_tests.rs +++ b/tests/integration/watcher_tests.rs @@ -1675,7 +1675,7 @@ console.log("Listening...") let mut child = util::deno_cmd() .current_dir(t.path()) .arg("run") - .arg("--unstable-hmr") + .arg("--watch-hmr") .arg("--allow-net") .arg("-L") .arg("debug") @@ -1748,7 +1748,7 @@ export function foo() { let mut child = util::deno_cmd() .current_dir(t.path()) .arg("run") - .arg("--unstable-hmr") + .arg("--watch-hmr") .arg("-L") .arg("debug") .arg(&file_to_watch) @@ -1806,7 +1806,7 @@ export function foo() { let mut child = util::deno_cmd() .current_dir(t.path()) .arg("run") - .arg("--unstable-hmr") + .arg("--watch-hmr") .arg("-L") .arg("debug") .arg(&file_to_watch) @@ -1871,7 +1871,7 @@ export function foo() { let mut child = util::deno_cmd() .current_dir(t.path()) .arg("run") - .arg("--unstable-hmr") + .arg("--watch-hmr") .arg("-L") .arg("debug") .arg(&file_to_watch) -- cgit v1.2.3