mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
9d7174e434
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 ```
28 lines
951 B
JSON
28 lines
951 B
JSON
{
|
|
"version": "4",
|
|
"specifiers": {
|
|
"jsr:@denotest/has-only-pre-release@^2.0.0-beta.1": "2.0.0-beta.1",
|
|
"jsr:@denotest/has-pre-release@^2.0.0-beta.1": "2.0.0-beta.1",
|
|
"npm:@denotest/has-pre-release@^2.0.0-beta.1": "2.0.0-beta.1"
|
|
},
|
|
"jsr": {
|
|
"@denotest/has-only-pre-release@2.0.0-beta.1": {
|
|
"integrity": "43fd680ea94bb5db5fe1a2d86101c47d0e2cc77323b881755cea9a0372e49537"
|
|
},
|
|
"@denotest/has-pre-release@2.0.0-beta.1": {
|
|
"integrity": "43fd680ea94bb5db5fe1a2d86101c47d0e2cc77323b881755cea9a0372e49537"
|
|
}
|
|
},
|
|
"npm": {
|
|
"@denotest/has-pre-release@2.0.0-beta.1": {
|
|
"integrity": "sha512-K1fHe1L2EUSLgijtzzALNpkkIO0SrX3z+IXvVjjOIE8HKd4T7lkpzDdoUp+WllwS3KXmuJh+9vIfY5lFp38pew=="
|
|
}
|
|
},
|
|
"workspace": {
|
|
"dependencies": [
|
|
"jsr:@denotest/has-only-pre-release@^2.0.0-beta.1",
|
|
"jsr:@denotest/has-pre-release@^2.0.0-beta.1",
|
|
"npm:@denotest/has-pre-release@^2.0.0-beta.1"
|
|
]
|
|
}
|
|
}
|