Skip to content
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

fix(add/install): default to "latest" tag for npm packages in deno add npm:pkg #25858

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

nathanwhit
Copy link
Member

Fixes #25813.

I initially tried doing this in deno_semver, where it's a cleaner change, but that caused breakage in deno in places where we don't expect a tag (see #25857).

This does not fix wildcard requirements failing to choose pre-release versions. That's a little more involved and I'll do a separate PR.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

cli/tools/registry/pm.rs Outdated Show resolved Hide resolved
@dsherret dsherret changed the title fix(add/install): Default to "latest" tag for npm packages in deno add npm:pkg fix(add/install): default to "latest" tag for npm packages in deno add npm:pkg Sep 25, 2024
@nathanwhit nathanwhit enabled auto-merge (squash) September 25, 2024 00:33
@nathanwhit nathanwhit merged commit 5c40b47 into denoland:main Sep 25, 2024
17 checks passed
@nathanwhit nathanwhit deleted the deno-install-default-latest branch September 25, 2024 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno install can't find package npm:storybook-solidjs-vite, unless version is specified
2 participants