Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Discussion]What's the best version manager for deno package? #4291

Closed
ahuigo opened this issue Mar 8, 2020 · 5 comments
Closed

[Discussion]What's the best version manager for deno package? #4291

ahuigo opened this issue Mar 8, 2020 · 5 comments

Comments

@ahuigo
Copy link

ahuigo commented Mar 8, 2020

It seems that deno has no version manager by far.
We could inject the version into our project code:

    import mod from 'mod/v0.1.1/main.ts';

It's painful as we have to write version everywhere. if we want to upgrade our package, replace the version is painful too.

So, what's the best version manager for deno package?

  1. yarn's PnP solution: bind version with module, and use a resolver like .pnp.js to parse module version and module path.
  2. python's solution: use requirements.txt to record package's version, use virtualenv to isolate different project(it could not isolate different version)
  3. go mod solution?
  4. Other solution?
@nayeemrmn
Copy link
Collaborator

Read the bottom section in https://deno.land/std/manual.md#linking-to-third-party-code.

@hayd
Copy link
Contributor

hayd commented Mar 8, 2020

A tool for updating versioned urls: https://github.com/hayd/deno-udd
But agree that using deps.ts makes things easier.

@jtheisen
Copy link

@nayeemrmn Link is broken.

@ivawzh
Copy link

ivawzh commented Apr 21, 2021

Wouldn't deps.ts make optimization (like code-split) hard?
Also, we will need to care about naming collisions, almost like global unique names for each 3rd party function.
Package source URL is forbidden to changes in the future too.

@denoland denoland locked and limited conversation to collaborators Apr 21, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants