Replies: 1 comment 1 reply
-
|
You can skip adding a version if:
You should always use a version or version constraint together with a lockfile if:
We strongly recommend going with the versioned approach for any serious project. Only consider going without versions if it's a short lived prototype that only a single developer hacks on. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Deno community,
since the launch of JSR 🎉 I've noticed, that you don't have to (or even should?) specify a version when importing a dependency.

You just
import { dirname } from 'jsr:@std/path';and it will resolve to the latest version by default.When compared to
deno.landit's recommended that you specify a version.Otherwise you get squiggly lines on the import:
The resolution works completely fine either way:
I quite like not having to specify a version, as it checks for the newest dependencies on each run (if you don't use a lockfile).
But why is there a difference in how versions are expected?
Is the warning for "Implicitly using latest version..." necessary?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions