From 064a73f7a08eb12d99fcdf8844e9ce5db62be78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 Sep 2024 22:44:29 +0100 Subject: BREAKING: Remove `--unstable` flag (#25522) This commit effectively removes the --unstable flag. It's still being parsed, but it only prints a warning that a granular flag should be used instead and doesn't actually enable any unstable feature. Closes https://github.com/denoland/deno/issues/25485 Closes https://github.com/denoland/deno/issues/23237 --- runtime/worker_bootstrap.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'runtime/worker_bootstrap.rs') diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs index b137efae2..3f3c25c5e 100644 --- a/runtime/worker_bootstrap.rs +++ b/runtime/worker_bootstrap.rs @@ -106,8 +106,6 @@ pub struct BootstrapOptions { pub is_stdout_tty: bool, pub is_stderr_tty: bool, pub color_level: deno_terminal::colors::ColorLevel, - // --unstable flag, deprecated - pub unstable: bool, // --unstable-* flags pub unstable_features: Vec, pub user_agent: String, @@ -144,7 +142,6 @@ impl Default for BootstrapOptions { log_level: Default::default(), locale: "en".to_string(), location: Default::default(), - unstable: Default::default(), unstable_features: Default::default(), inspect: Default::default(), args: Default::default(), @@ -174,8 +171,6 @@ struct BootstrapV8<'a>( &'a str, // location Option<&'a str>, - // unstable - bool, // granular unstable flags &'a [i32], // inspect @@ -213,7 +208,6 @@ impl BootstrapOptions { let bootstrap = BootstrapV8( &self.deno_version, self.location.as_ref().map(|l| l.as_str()), - self.unstable, self.unstable_features.as_ref(), self.inspect, self.enable_testing_features, -- cgit v1.2.3