0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-05 18:37:20 -05:00
deno/cli/tools
Nathan Whitaker 3b66473981 fix(outdated): ensure "Latest" version is greater than "Update" version (#27390)
Fixes #27038.

Previously, for NPM packages the latest version was the version with the
"latest" tag. For JSR packages, the latest version was the greatest
version that matched a `*` version requirement. Unfortunately, that
doesn't work well with pre-release versions.

This PR changes it so that the latest version is always > the currently
requested version.
For NPM: if "latest" tag > current then "latest" tag; otherwise the
greatest version that is >= current
For JSR: greatest version >= current

This is the most reasonable behavior I could come up with. For example,

```
versions:
2.0.0-beta.2
2.0.0-beta.1
1.0.0 => "latest" tag

with a version req `^2.0.0-beta.1`

previously:
"Update" column => 2.0.0-beta.2
"Latest" column => 1.0.0

now:
"Update" column => 2.0.0-beta.2
"Latest" column => 2.0.0-beta.2
```
2025-01-09 15:19:10 -05:00
..
bench feat(unstable): support caching npm dependencies only as they're needed (#27300) 2024-12-11 03:37:34 +01:00
coverage refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
doc refactor: update deno_doc, use prismjs, remove internal reference html generation logic (#26885) 2024-11-19 08:56:04 -08:00
init fix(init): support scoped npm packages (#27128) 2024-11-28 15:47:29 +01:00
jupyter feat(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
lint refactor(lint): renames and code flattening (#27386) 2025-01-09 15:19:09 -05:00
registry fix(outdated): ensure "Latest" version is greater than "Update" version (#27390) 2025-01-09 15:19:10 -05:00
repl refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
run refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
test refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
check.rs refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
clean.rs feat(clean): add progress bar (#25026) 2024-08-14 13:04:07 +02:00
compile.rs fix(compile): analyze modules in directory specified in --include (#27296) 2025-01-09 15:19:06 -05:00
doc.rs feat(unstable): support caching npm dependencies only as they're needed (#27300) 2024-12-11 03:37:34 +01:00
fmt.rs fix(fmt): stable formatting of HTML files with JS (#27164) 2024-12-05 23:03:52 +01:00
info.rs fix(compile): output contents of embedded file system (#27302) 2025-01-09 15:19:06 -05:00
installer.rs refactor: extract out FileFetcher to deno_cache_dir (#27263) 2025-01-09 15:19:09 -05:00
mod.rs BREAKING: remove deno vendor (#25343) 2024-09-03 17:00:57 +10:00
serve.rs feat(watch): log which file changed on HMR or watch change (#25801) 2024-11-16 15:59:31 +01:00
task.rs feat(unstable): support caching npm dependencies only as they're needed (#27300) 2024-12-11 03:37:34 +01:00
upgrade.rs fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00:00