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(publish): lazily parse sources #22301

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Feb 6, 2024

Closes #22290

return Ok(Response::new(UnsyncBoxBody::new(
http_body_util::Full::new(Bytes::from(body)),
)));
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This confused for a few minutes, but we have ended up with two JSR test registries. I'll circle back with another PR that gets all the JSR tests to use this "test registry server".

pub trait SourceTextStore {
fn get_source_text<'a>(
&'a self,
specifier: &ModuleSpecifier,
) -> Option<Cow<'a, SourceTextInfo>>;
}

pub struct SourceTextParsedSourceStore<'a>(pub &'a dyn ParsedSourceStore);
pub struct SourceTextParsedSourceStore<'a>(pub LazyGraphSourceParser<'a>);
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe fixes #22288, but I don't have a test for that yet.

@dsherret dsherret merged commit c6def99 into denoland:main Feb 6, 2024
15 checks passed
@dsherret dsherret deleted the fix_publish_lazily_parse_sources branch February 6, 2024 20:57
littledivy pushed a commit that referenced this pull request Feb 8, 2024
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 publish doesn't work import-mapped specifiers in private files
2 participants