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

Construct Hub does not show latest major version of package #833

Open
Chriscbr opened this issue Apr 4, 2022 · 0 comments
Open

Construct Hub does not show latest major version of package #833

Chriscbr opened this issue Apr 4, 2022 · 0 comments
Labels
bug Something isn't working effort/medium About 3 days p1

Comments

@Chriscbr
Copy link
Contributor

Chriscbr commented Apr 4, 2022

From @alexpulver

Hi folks, how does Construct Hub selects the major version to display? For example, it shows the latest v1 version for https://constructs.dev/packages/cdk-remote-stack/v/1.0.30?lang=typescript, even though there are v2 versions for that construct

Currently Construct Hub tracks major versions of packages separately. When a package appears in search results or on a home page, the web app need to pick a major version of a package to show to the user. Currently, it selects whichever version was published to most recently. In some cases this causes confusion because users might expect the highest major version to be shown.

The reason we previously chose against showing the highest major version is because higher major versions may be outdated or invalid. For example, https://www.npmjs.com/package/cdk-dynamo-table-viewer was published to major version 3 but this version is actually invalid and outdated (it was likely published by accident). Hence why we show the most recently published version.

Some ideas for improving the experience:

  • prioritize the major version that is tagged as latest on npm -- this is the default version you get when you run npm install package-name
  • prioritize the highest major version, but ignoring any versions that are tagged as "deprecated" on NPM (related: Library deprecation support #343)
@Chriscbr Chriscbr added bug Something isn't working needs triage labels Apr 4, 2022
@ryparker ryparker added p1 effort/medium About 3 days and removed needs triage labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/medium About 3 days p1
Projects
None yet
Development

No branches or pull requests

2 participants