1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/util/server/src
Nathan Whitaker 9d7174e434
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
```
2024-12-17 23:56:03 +00:00
..
servers refactor: extract out FileFetcher to deno_cache_dir (#27263) 2024-12-16 23:39:40 +00:00
testdata chore: move test_util to tests/util/server (#22444) 2024-02-19 06:34:24 -07:00
assertions.rs fix(lsp): Pass diagnostic codes to TSC as numbers (#23720) 2024-05-06 23:54:52 +00:00
builders.rs fix: improve auto-imports for npm packages (#27224) 2024-12-04 12:05:34 -05:00
factory.rs chore: move test_util to tests/util/server (#22444) 2024-02-19 06:34:24 -07:00
fs.rs chore: remove print debugging from test server (#26529) 2024-10-24 22:06:17 +00:00
https.rs chore: upgrade to reqwest 0.12.4 and rustls 0.22 (#24388) 2024-07-02 02:09:47 +02:00
lib.rs fix(compile): analyze modules in directory specified in --include (#27296) 2024-12-12 18:07:35 +00:00
lsp.rs fix(lsp): sql and component file formatting (#27350) 2024-12-13 14:14:55 +00:00
macros.rs fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00:00
npm.rs fix(outdated): ensure "Latest" version is greater than "Update" version (#27390) 2024-12-17 23:56:03 +00:00
pty.rs chore: remove print debugging from test server (#26529) 2024-10-24 22:06:17 +00:00
spawn.rs chore: move test_util to tests/util/server (#22444) 2024-02-19 06:34:24 -07:00
test_server.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00