denoland/deno · #37241
fix(cli): accept --unstable-tsgo again
cli/args/mod.rs4 + / 0 −
@@ -1438,6 +1438,10 @@ impl CliOptions { self.flags.type_check_mode } + pub fn unstable_tsgo(&self) -> bool {+ self.flags.unstable_config.tsgo || self.workspace().has_unstable("tsgo")+ }+ pub fn unsafely_ignore_certificate_errors(&self) -> &Option<Vec<String>> { &self.flags.unsafely_ignore_certificate_errors }cli/lib/args.rs2 + / 0 −
@@ -279,6 +279,7 @@ pub struct UnstableConfig { pub raw_imports: bool, pub sloppy_imports: bool, pub npm_lazy_caching: bool,+ pub tsgo: bool, pub features: Vec<String>, // --unstabe-kv --unstable-cron } @@ -300,6 +301,7 @@ impl UnstableConfig { &mut self.npm_lazy_caching, UNSTABLE_ENV_VAR_NAMES.npm_lazy_caching, );+ maybe_set(sys, &mut self.tsgo, UNSTABLE_ENV_VAR_NAMES.tsgo); maybe_set( sys, &mut self.raw_imports,cli/standalone/binary.rs1 + / 0 −
@@ -1195,6 +1195,7 @@ impl<'a> DenoCompileBinaryWriter<'a> { npm_lazy_caching: self.cli_options.unstable_npm_lazy_caching(), raw_imports: self.cli_options.unstable_raw_imports(), sloppy_imports: self.cli_options.unstable_sloppy_imports(),+ tsgo: self.cli_options.unstable_tsgo(), }, otel_config: self.cli_options.otel_config(), vfs_case_sensitivity: vfs.case_sensitivity,libs/cli_parser/src/convert.rs4 + / 0 −
@@ -936,6 +936,10 @@ fn unstable_args_parse(result: &ParseResult, flags: &mut Flags) { "unstable-raw-imports", Some(|c: &mut UnstableConfig| c.raw_imports = true), ),+ (+ "unstable-tsgo",+ Some(|c: &mut UnstableConfig| c.tsgo = true),+ ), ("unstable-ffi", None), ("unstable-worker-options", None), ("unstable-broadcast-channel", None),libs/cli_parser/src/defs.rs4 + / 0 −
@@ -524,6 +524,10 @@ ArgDef::new("unstable-bare-node-builtins") .set_true() .hidden() .help("Enable unstable Temporal API"),+ ArgDef::new("unstable-tsgo")+ .long("unstable-tsgo")+ .set_true()+ .hidden(), ArgDef::new("unstable-unsafe-proto") .long("unstable-unsafe-proto") .long_aliases(&["unsafe-proto"])runtime/features/data.rs7 + / 0 −
@@ -201,4 +201,11 @@ pub static FEATURE_DESCRIPTIONS: &[UnstableFeatureDescription] = &[ kind: UnstableFeatureKind::Runtime, env_var: None, },+ UnstableFeatureDescription {+ name: "tsgo",+ help_text: "Enable unstable TypeScript Go integration",+ show_in_help: true,+ kind: UnstableFeatureKind::Cli,+ env_var: Some("DENO_UNSTABLE_TSGO"),+ }, ];runtime/features/gen.js4 + / 4 −
@@ -21,8 +21,8 @@ export const unstableIds = { process: 17, rawImports: 18, temporal: 21,- unsafeProto: 22,- vsock: 23,- webgpu: 24,- workerOptions: 25,+ unsafeProto: 23,+ vsock: 24,+ webgpu: 25,+ workerOptions: 26, };runtime/features/gen.rs14 + / 4 −
@@ -183,36 +183,44 @@ pub static UNSTABLE_FEATURES: &[UnstableFeatureDefinition] = &[ id: 21, kind: UnstableFeatureKind::Runtime, },+ UnstableFeatureDefinition {+ name: "tsgo",+ flag_name: "unstable-tsgo",+ help_text: "Enable unstable TypeScript Go integration",+ show_in_help: true,+ id: 22,+ kind: UnstableFeatureKind::Cli,+ }, UnstableFeatureDefinition { name: "unsafe-proto", flag_name: "unstable-unsafe-proto", help_text: "Enable unsafe __proto__ support. This is a security risk.", show_in_help: true,- id: 22,+ id: 23, kind: UnstableFeatureKind::Runtime, }, UnstableFeatureDefinition { name: "vsock", flag_name: "unstable-vsock", help_text: "Enable unstable VSOCK APIs", show_in_help: false,- id: 23,+ id: 24, kind: UnstableFeatureKind::Runtime, }, UnstableFeatureDefinition { name: "webgpu", flag_name: "unstable-webgpu", help_text: "Enable unstable WebGPU APIs", show_in_help: true,- id: 24,+ id: 25, kind: UnstableFeatureKind::Runtime, }, UnstableFeatureDefinition { name: "worker-options", flag_name: "unstable-worker-options", help_text: "Enable unstable Web Worker APIs", show_in_help: true,- id: 25,+ id: 26, kind: UnstableFeatureKind::Runtime, }, ];@@ -224,6 +232,7 @@ pub struct UnstableEnvVarNames { pub raw_imports: &'static str, pub sloppy_imports: &'static str, pub subdomain_wildcards: &'static str,+ pub tsgo: &'static str, } pub static UNSTABLE_ENV_VAR_NAMES: UnstableEnvVarNames = UnstableEnvVarNames { bare_node_builtins: "DENO_UNSTABLE_BARE_NODE_BUILTINS",@@ -233,4 +242,5 @@ pub static UNSTABLE_ENV_VAR_NAMES: UnstableEnvVarNames = UnstableEnvVarNames { raw_imports: "DENO_UNSTABLE_RAW_IMPORTS", sloppy_imports: "DENO_UNSTABLE_SLOPPY_IMPORTS", subdomain_wildcards: "DENO_UNSTABLE_SUBDOMAIN_WILDCARDS",+ tsgo: "DENO_UNSTABLE_TSGO", };