-
Notifications
You must be signed in to change notification settings - Fork 655
Improve invalid semver string handling #3304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @jtgeibel (rust-highfive has picked a reviewer for you, use r? to override) |
looks great. could you check if it's possible to add a few tests for these cases? 🙏 |
a0f3296
to
91c2072
Compare
I added some tests, but honestly, I'm not very familiar with ember so I'm not entirely happy with the results. If you have any comments, anything I should or should not test, please let me know.
And sorry for force-push spam, I forgot to remove/check some stuff before pushing. |
☔ The latest upstream changes (presumably #3263) made this pull request unmergeable. Please resolve the merge conflicts. |
…id/versions` * Add a tooltip message and a new icon to components/version-list/row * Handle null returned from `semverParse` in models/version * Add `loose` option to `semverParse` (https://github.com/npm/node-semver#functions)
* Add tests for version-list/row * Add tests for invalid/non-standard semver strings to models/version tests * Add loose option to more node-semver calls
crates/:crate_id/versions
looks great, thanks! @bors r+ |
📌 Commit aebe476 has been approved by |
☀️ Test successful - checks-actions |
?
) to components/version-list/rowsemverParse
in models/versionloose
option tosemverParse
(https://github.com/npm/node-semver#functions)I placed the checks so that "invalid version" has higher priority than "first version" but lower than "yanked".


I also modified css of the version list so that long versions do not overflow from tooltips.
Before
After
Fixes #3294