1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

feat: hide several --unstable-* flags (#25378)

This commit hides following unstable flags:
- `--unstable-ffi` (the API is now stable)
- `--unstable-webgpu` (this API is now stable)
- `--unstable-fs` (no more unstable APIs)
- `--unstable-byonm` (BYONM is on by default)


The flags are still parseable, but they are not used. Concrete cleanup
will be done in a follow up PR.
This commit is contained in:
Bartek Iwańczuk 2024-09-03 10:11:41 +01:00 committed by GitHub
parent 90338eff8d
commit b9b4b0dd67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View file

@ -3848,15 +3848,9 @@ impl Iterator for UnstableArgsIter {
} else if self.idx == 2 { } else if self.idx == 2 {
Arg::new("unstable-byonm") Arg::new("unstable-byonm")
.long("unstable-byonm") .long("unstable-byonm")
.help("Enable unstable 'bring your own node_modules' feature")
.value_parser(FalseyValueParser::new()) .value_parser(FalseyValueParser::new())
.action(ArgAction::SetTrue) .action(ArgAction::SetTrue)
.hide(true) .hide(true)
.long_help(match self.cfg {
UnstableArgsConfig::None => None,
UnstableArgsConfig::ResolutionOnly
| UnstableArgsConfig::ResolutionAndRuntime => Some("true"),
})
.help_heading(UNSTABLE_HEADING) .help_heading(UNSTABLE_HEADING)
} else if self.idx == 3 { } else if self.idx == 3 {
Arg::new("unstable-sloppy-imports") Arg::new("unstable-sloppy-imports")

View file

@ -72,13 +72,13 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[UnstableGranularFlag] = &[
UnstableGranularFlag { UnstableGranularFlag {
name: deno_ffi::UNSTABLE_FEATURE_NAME, name: deno_ffi::UNSTABLE_FEATURE_NAME,
help_text: "Enable unstable FFI APIs", help_text: "Enable unstable FFI APIs",
show_in_help: true, show_in_help: false,
id: 3, id: 3,
}, },
UnstableGranularFlag { UnstableGranularFlag {
name: deno_fs::UNSTABLE_FEATURE_NAME, name: deno_fs::UNSTABLE_FEATURE_NAME,
help_text: "Enable unstable file system APIs", help_text: "Enable unstable file system APIs",
show_in_help: true, show_in_help: false,
id: 4, id: 4,
}, },
UnstableGranularFlag { UnstableGranularFlag {
@ -123,7 +123,7 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[UnstableGranularFlag] = &[
UnstableGranularFlag { UnstableGranularFlag {
name: deno_webgpu::UNSTABLE_FEATURE_NAME, name: deno_webgpu::UNSTABLE_FEATURE_NAME,
help_text: "Enable unstable `WebGPU` API", help_text: "Enable unstable `WebGPU` API",
show_in_help: true, show_in_help: false,
id: 11, id: 11,
}, },
UnstableGranularFlag { UnstableGranularFlag {