question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@versions to list down all versions of a module [Enhancement]

See original GitHub issue

any version management service requires being able to discover all the available versions,

lets say in a module, I use

import something from "https://deno.land/x/something@1.2.0/main.ts"

it’d be nice if I could do something similar to

curl https://deno.land/x/something@versions

if it’d return

{"versions": ["0.0.1", "1.0.0", "1.0.1", "1.1.0", "1.2.0", "2.0", "2.1"]}

there’s currently no standardised way of discovering all available versions of a file,

currently, for example, deno-udd, uses a variety of techniques to find all available versions, including

  • checking github releases
  • web scraping

apart from the other issues in this (like github’s rate limiting), there is no standard, meaning that every person who hosts a file on their site will have to tell deno-udd to be able to support their website, and every other deno version management service like deno-udd to be able to support their website, and like, what may be a standard way in one version management service might not be supported in another

I like the @versions method cause is simple, and probably super easy to implement

further, it’d be even better if it could support additional parameters like

{
    "versions": ["0.0.1", "1.0.0", "1.0.1", "1.1.0", "2.0", "2.6.9"],
    "deprecated": ["1.*"],
    "fatal-risk-of-use": ["<1.0.0"],
    "dog-person-wrote-code": false,
    "cat-person-wrote-code": true
}

relevant issue https://github.com/hayd/deno-udd/issues/10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
kidonngcommented, May 16, 2020

Why bother about GitHub’s rate limit when we have CDN like jsDelivr?

https://data.jsdelivr.com/v1/package/gh/denoland/deno

This is pretty simple to implement.

1reaction
lucacasonatocommented, May 16, 2020

deno.land also only works for github repos

@therealadityashankar That is not correct. It can also proxy any URL or packages from NPM.

There might be a solution for the rate limit. I will look into this further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I copy and “lock down” a version? - Anaplan Community
Go to Settings -> Versions; Insert a new version, Name the new version, and select OK; Select Bulk Copy; Make sure that Versions...
Read more >
Get list of all loaded python packages & versions, and variables
Show me everything available python package I can import & corresponding versions? help('modules'). NB: You can also type pip freeze on the ...
Read more >
New features — Modules documentation
This document describes the major changes occurring between versions of Modules. It provides an overview of the new features and changed behaviors that...
Read more >
proposal: cmd/go: notify about newer major versions #40323
We propose notifying users of new major versions when: They first add a requirement for an old major version of a module; They...
Read more >
Modules Part 03: Minimal Version Selection - Ardan Labs
0.6. Go is selecting the “minimal” version that is currently in the set of required versions for all the dependencies in the project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found