Skip to content

Allow marking a package as "discontinued" #289

Closed
@matanlurey

Description

@matanlurey

Pub currently ranks packages based on the updated column:

screen shot 2017-08-08 at 8 32 43 am

This works great, until it doesn't. For the angular package, there is a historic, unsupported/maintained 1.x version that is presented instead of the newest 4.0.0-alpha version:

screen shot 2017-08-08 at 8 33 36 am

screen shot 2017-08-08 at 8 33 42 am

Under normal circumstances, this might be fine, i.e. ranking stable releases higher than unstable for viewing preference. However, package authors should be given an option (perhaps in an admin, or manually via a ticket system for the time being) to deprecate a version range.

In this case, imagine the following metadata was attached to the angular package:

{
  "deprecated": [
    "<4.0.0-alpha",
  ],
}

And the ranking was instead stable > unstable > deprecated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions