-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extra suffix slash #58
Comments
cc @takker99 . Is this the case for all "scoped" urls? |
I see in tests that suffix slash is always created for paths that don't end with extension. There shouldn't be any assumptions about the final string, only the version portion from original string needs to be changed (applies to all registries). For example this test needs to pass, but currently doesn't and even output may be different than expected because of missing pin (esm.sh engine version). Deno.test("registryEsmShPinned", () => {
const url = "https://esm.sh/foo@0.1.0?pin=63";
const v = lookup(url, REGISTRIES);
assert(v !== undefined);
const vAt = v.at("0.2.0");
assertEquals(vAt.url, "https://esm.sh/foo@0.2.0?pin=63");
}); [Diff] Actual / Expected
- "https://esm.sh/foo@0.2.0/"
+ "https://esm.sh/foo@0.2.0?pin=63" |
@hayd any update on this? A slash is still being added, which results in errors. {
"imports": {
"twind": "https://esm.sh/twind@0.16.17",
"twind/": "https://esm.sh/twind@0.16.17/"
// after
"twind": "https://esm.sh/twind@1.0.0-next.38/",
"twind/": "https://esm.sh/twind@1.0.0-next.38//"
}
} |
When updating module from
esm.sh
UDD turns it into
It's a convention to not include extra slash and it's not just cosmetic, it actually invalidates the cache, as Deno will keep separate copies for both
canvas-confetti@1.4.0
andcanvas-confetti@1.4.0/
The text was updated successfully, but these errors were encountered: