Skip to content
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

Suggestion: Show newer versions first in the version select #11

Open
ershisan99 opened this issue Dec 20, 2023 · 2 comments
Open

Suggestion: Show newer versions first in the version select #11

ershisan99 opened this issue Dec 20, 2023 · 2 comments

Comments

@ershisan99
Copy link

I feel like users are more likely to need documentation for a rather new version of a package and scrolling through all the possible versions doesn't really feel nice.

I'm willing to submit a pr for this change.

@ershisan99 ershisan99 changed the title Show newer versions first in the version select Suggestion: Show newer versions first in the version select Dec 20, 2023
@pastelsky
Copy link
Owner

@ershisan99 Could you expand what you mean with an example?

The dropdown is already sorted to show versions in ascending order with the newer versions closer.

Screenshot 2023-12-20 at 5 43 50 PM

I think it might be a good idea for e.g. to skip patch versions by default (using a checkbox) because as per semver they are unlikely to introduce an API change.

@difosfor
Copy link

I'd also expect the versions to be sorted in descending order, i.e: 3.1.0, 3.0.2, 3.0.1, ..

I'd also like to be able to see the beta versions of our package in the dropdown.

Perhaps you should just show versions in descending order by the time of publishing? E.g. like npm:
https://www.npmjs.com/package/@liveryvideo/player?activeTab=versions

As an aside: Have you considered perhaps having tsdocs linked to or even incorporated into npmjs.com as a tab there? Same with bundlephobia. I think it would be very nice to have a one stop shop for all of our package needs. Could be a nice way for Microsoft to add TypeScript support across their services that way 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants