-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
refactor(npm): move InNpmPackageChecker
code to deno_resolver
#27609
Conversation
@@ -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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So supersedes #27409?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So supersedes #27409?
As title. Will allow consumers to create this struct and use our behaviour. Closes #27409
As title. Will allow consumers to create this struct and use our behaviour.
Closes #27409