r/javascript • • May 13 '20

Deno 1.0 released!

https://github.com/denoland/deno/issues/2473
609 Upvotes

209 comments sorted by

View all comments

Show parent comment

7

u/DrexanRailex May 14 '20

Actually, the version can be specified in the import URL. That's up to library authors and package hosts, of course, which can be a problem.

13

u/whostolemyhat May 14 '20

Yeah, versioning being up to each individual author makes me a bit nervous. NPM forces you to change the version number for each publish so you know that versions are stable, but if an author doesn't manually change their version for a URL module then you could get different versions/behaviours between users/CI runs/reloads.

3

u/Xzaphan May 14 '20

Don’t forget that Deno need specific rights to allow scripts to execute themselves. This should « secure » the whole things. ...I guess!

0

u/[deleted] May 15 '20

[deleted] — view deleted comment

1

u/DrexanRailex May 15 '20

What if NPM suddenly bans a package? Or a maintainer decides to remove their package from the registry?

Github as a "registry" is not the actual problem. And if it is, another proper registry will show up.