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: support importing from jsr via HTTPS specifiers (except for type checking) #454

Merged
merged 12 commits into from
Apr 23, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Apr 19, 2024

Part of jsr-io/jsr#322

This allows importing from JSR via HTTPS specifiers as part of the code graph, but will error resolution for the type graph. Additionally, redirecting to a JSR HTTPS specifier from a non-JSR specifier is not yet implemented for this first pass.

The reason we don't support import JSR packages via HTTPS for type checking is because if we allowed importing anywhere in a package, then the entire package becomes part of the public api rather than just the entrypoints, so we'd be back to the same issues with deno.land/x where entire package implementations are being type checked.

@dsherret dsherret requested a review from bartlomieju April 19, 2024 21:04
@dsherret dsherret merged commit 808cb47 into denoland:main Apr 23, 2024
4 checks passed
@dsherret dsherret deleted the load_jsr_using_https_specifier branch April 23, 2024 19:43
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.

2 participants