@pnpm/resolving.resolver-base
Advanced tools
+26
-1
@@ -1,2 +0,2 @@ | ||
| import type { DependencyManifest, PackageVersionPolicy, PinnedVersion, PkgResolutionId, ProjectRootDir, SupportedArchitectures, TrustPolicy } from '@pnpm/types'; | ||
| import type { DependencyManifest, PackageManifest, PackageVersionPolicy, PinnedVersion, PkgResolutionId, ProjectRootDir, SupportedArchitectures, TrustPolicy } from '@pnpm/types'; | ||
| export { type PkgResolutionId }; | ||
@@ -243,1 +243,26 @@ /** | ||
| }, opts: ResolveOptions) => Promise<ResolveResult>; | ||
| /** | ||
| * Input to a resolver's `resolveLatest` function. The resolver decides | ||
| * whether it owns this dep purely from `wantedDependency` (its alias and | ||
| * manifest specifier) — the lockfile-resolved ref is the caller's | ||
| * concern, not the resolver's. | ||
| */ | ||
| export interface LatestQuery { | ||
| wantedDependency: WantedDependency; | ||
| compatible?: boolean; | ||
| } | ||
| /** | ||
| * Result of a resolver's `resolveLatest` call. | ||
| * | ||
| * - `undefined` means "this resolver does not handle this dep — try | ||
| * the next one". | ||
| * - An object (even without a `latestManifest`) means "I claim this | ||
| * dep, but I can't tell you what's latest" (e.g. policy blocked, | ||
| * network unavailable, no concept of latest for this protocol). | ||
| * The caller still surfaces a ref-mismatch report if the lockfile | ||
| * shifted. | ||
| */ | ||
| export interface LatestInfo { | ||
| latestManifest?: PackageManifest; | ||
| } | ||
| export type ResolveLatestFunction = (query: LatestQuery, opts: ResolveOptions) => Promise<LatestInfo | undefined>; |
+3
-3
| { | ||
| "name": "@pnpm/resolving.resolver-base", | ||
| "version": "1100.2.0", | ||
| "version": "1100.3.0", | ||
| "description": "Types for pnpm-compatible resolvers", | ||
@@ -28,6 +28,6 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@pnpm/types": "1101.1.0" | ||
| "@pnpm/types": "1101.1.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@pnpm/resolving.resolver-base": "1100.2.0" | ||
| "@pnpm/resolving.resolver-base": "1100.3.0" | ||
| }, | ||
@@ -34,0 +34,0 @@ "engines": { |
15896
6.66%319
8.5%+ Added
- Removed
Updated