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

feat: add JsrVersionResolver trait to allow more control over version resolution #554

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nathanwhit
Copy link
Member

this is to support specifying versions to use for jsr packages that are not roots (for deno outdated --update). Currently, as a user of deno_graph there isn't a way to influence the version resolution for non-roots, and there also isn't a way to selectively invalidate cached metadata for packages.

@nathanwhit nathanwhit changed the title feat: add `JsrVersionResolver trait to allow more control over version resolution feat: add JsrVersionResolver trait to allow more control over version resolution Dec 9, 2024
package_req: &PackageReq,
) -> Option<&'a Version>;

fn force_fetch_metadata<'a>(&self, package_name: &str) -> bool;
Copy link
Member Author

Choose a reason for hiding this comment

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

meh on this, doesn't really feel like it's the right place but adding another trait is annoying

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.

1 participant