Skip to content

Include package deprecation information in API response #14236

Description

@LiteracyFanatic

GET https://api.cdnjs.com/libraries/datatables.net?fields=versions returns

{
    "versions": [
        "1.10.12",
        "1.10.13",
        "1.10.14",
        "1.10.15",
        "1.10.16",
        "1.10.18",
        "1.10.19",
        "1.10.20",
        "1.10.21",
        "1.10.22",
        "1.10.23",
        "1.10.24",
        "1.10.25",
        "1.11.0",
        "1.11.1",
        "1.11.2",
        "1.11.3",
        "1.11.4",
        "1.11.5",
        "1.12.0",
        "1.12.1",
        "1.13.0",
        "1.13.1",
        "1.13.10",
        "1.13.11",
        "1.13.2",
        "1.13.3",
        "1.13.4",
        "1.13.5",
        "1.13.6",
        "1.13.7",
        "1.13.8",
        "2.0.0",
        "2.0.1",
        "2.0.2",
        "2.0.3",
        "2.1.1"
    ]
}

One would naively assume from this response that 2.1.1 is the latest version of the package, but in reality it is a deprecated version (https://www.npmjs.com/package/datatables.net/v/2.1.1). It would be nice if the API either offered an option to exclude deprecated versions when making the request or included deprecation metadata in the response.

This issue was originally raised here: aspnet/LibraryManager#724.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions