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

Include package deprecation information in API response #14236

Open
LiteracyFanatic opened this issue Mar 25, 2024 · 1 comment
Open

Include package deprecation information in API response #14236

LiteracyFanatic opened this issue Mar 25, 2024 · 1 comment

Comments

@LiteracyFanatic
Copy link

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.

@MattIPv4
Copy link
Member

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

No branches or pull requests

2 participants