1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 11:53:59 -05:00

fix(outdated): allow --latest without --update (#27227)

Ref #27025.

it does nothing (it's the default behavior) but it doesn't hurt to allow
it
This commit is contained in:
Nathan Whitaker 2024-12-04 13:32:48 -05:00 committed by GitHub
parent f0586238fc
commit e718e3f471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2664,10 +2664,10 @@ Display outdated dependencies:
<p(245)>deno outdated</> <p(245)>deno outdated</>
<p(245)>deno outdated --compatible</> <p(245)>deno outdated --compatible</>
Update dependencies: Update dependencies to latest semver compatible versions:
<p(245)>deno outdated --update</> <p(245)>deno outdated --update</>
Update dependencies to latest versions, ignoring semver requirements:
<p(245)>deno outdated --update --latest</> <p(245)>deno outdated --update --latest</>
<p(245)>deno outdated --update</>
Filters can be used to select which packages to act on. Filters can include wildcards (*) to match multiple packages. Filters can be used to select which packages to act on. Filters can include wildcards (*) to match multiple packages.
<p(245)>deno outdated --update --latest \"@std/*\"</> <p(245)>deno outdated --update --latest \"@std/*\"</>
@ -2703,7 +2703,6 @@ Specific version requirements to update to can be specified:
.help( .help(
"Update to the latest version, regardless of semver constraints", "Update to the latest version, regardless of semver constraints",
) )
.requires("update")
.conflicts_with("compatible"), .conflicts_with("compatible"),
) )
.arg( .arg(
@ -11687,6 +11686,14 @@ Usage: deno repl [OPTIONS] [-- [ARGS]...]\n"
recursive: false, recursive: false,
}, },
), ),
(
svec!["--latest"],
OutdatedFlags {
filters: svec![],
kind: OutdatedKind::PrintOutdated { compatible: false },
recursive: false,
},
),
]; ];
for (input, expected) in cases { for (input, expected) in cases {
let mut args = svec!["deno", "outdated"]; let mut args = svec!["deno", "outdated"];