Describe the bug
plugin-interactive-tools marks a deprecated version, not tagged as "latest", as "Range/Latest" and suggests updating to it.
The line presented to me in upgrade process:
? Pick the packages you want to upgrade. Current Range/Latest
…
> @wojtekmaj/predict-input-value â—‰ ^1.0.0 â—¯ ^1.1.0
Quick look at npm api results for this package reveals that:
1.0.0:
"dist-tags": {
"latest": "1.0.0"
},
"versions": {
"1.1.0": {
"name": "@wojtekmaj/predict-input-value",
"version": "1.1.0",
…
"deprecated": "Mistakenly released"
}
"1.0.0": { … }
},
To Reproduce
I hope the information above is enough, but let me know if you need even more information.
Environment if relevant (please complete the following information):
Generally, the value of the latest tag doesn't matter except when there's no range at all (so if you put ^1.0, even if latest is set to something before, it doesn't matter).
That being said, we probably should ignore the deprecated versions when there are non-deprecated ones 🤔
...and unless the deprecated version is the one currently installed, to prevent suggesting a downgrade.
Should be fixed by https://github.com/yarnpkg/berry/pull/1683