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

refactor(npm): move InNpmPackageChecker code to deno_resolver #27609

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jan 9, 2025

As title. Will allow consumers to create this struct and use our behaviour.

Closes #27409

@@ -20,7 +23,7 @@ pub struct NpmPackageFsResolverPackageFolderError(deno_semver::StackString);

/// Part of the resolution that interacts with the file system.
#[async_trait(?Send)]
pub trait NpmPackageFsResolver: Send + Sync {
pub trait NpmPackageFsResolver: MaybeSend + MaybeSync {
Copy link
Member Author

Choose a reason for hiding this comment

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

Also included some fixes to get this crate compiling when not using the sync feature.

Copy link
Member

Choose a reason for hiding this comment

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

So supersedes #27409?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh. Yes.

@@ -20,7 +23,7 @@ pub struct NpmPackageFsResolverPackageFolderError(deno_semver::StackString);

/// Part of the resolution that interacts with the file system.
#[async_trait(?Send)]
pub trait NpmPackageFsResolver: Send + Sync {
pub trait NpmPackageFsResolver: MaybeSend + MaybeSync {
Copy link
Member

Choose a reason for hiding this comment

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

So supersedes #27409?

@dsherret dsherret merged commit 966370c into denoland:main Jan 9, 2025
17 checks passed
@dsherret dsherret deleted the refactor_npm_in_npm_pkg_checker branch January 9, 2025 19:05
dsherret added a commit that referenced this pull request Jan 9, 2025
As title. Will allow consumers to create this struct and use our
behaviour.

Closes #27409
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