@yarnpkg/plugin-link
Advanced tools
Comparing version 2.2.0 to 3.0.0-rc.1
@@ -8,6 +8,9 @@ import { Resolver, ResolveOptions, MinimalResolveOptions } from '@yarnpkg/core'; | ||
bindDescriptor(descriptor: Descriptor, fromLocator: Locator, opts: MinimalResolveOptions): Descriptor; | ||
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): never[]; | ||
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): {}; | ||
getCandidates(descriptor: Descriptor, dependencies: unknown, opts: ResolveOptions): Promise<Locator[]>; | ||
getSatisfying(descriptor: Descriptor, references: Array<string>, opts: ResolveOptions): Promise<null>; | ||
getSatisfying(descriptor: Descriptor, dependencies: Record<string, Package>, locators: Array<Locator>, opts: ResolveOptions): Promise<{ | ||
locators: Locator[]; | ||
sorted: boolean; | ||
}>; | ||
resolve(locator: Locator, opts: ResolveOptions): Promise<Package>; | ||
} |
@@ -29,3 +29,3 @@ "use strict"; | ||
getResolutionDependencies(descriptor, opts) { | ||
return []; | ||
return {}; | ||
} | ||
@@ -36,4 +36,8 @@ async getCandidates(descriptor, dependencies, opts) { | ||
} | ||
async getSatisfying(descriptor, references, opts) { | ||
return null; | ||
async getSatisfying(descriptor, dependencies, locators, opts) { | ||
const [locator] = await this.getCandidates(descriptor, dependencies, opts); | ||
return { | ||
locators: locators.filter(candidate => candidate.locatorHash === locator.locatorHash), | ||
sorted: false, | ||
}; | ||
} | ||
@@ -53,3 +57,3 @@ async resolve(locator, opts) { | ||
conditions: manifest.getConditions(), | ||
dependencies: new Map([...manifest.dependencies]), | ||
dependencies: opts.project.configuration.normalizeDependencyMap(manifest.dependencies), | ||
peerDependencies: manifest.peerDependencies, | ||
@@ -56,0 +60,0 @@ dependenciesMeta: manifest.dependenciesMeta, |
@@ -1,2 +0,2 @@ | ||
import { Resolver, ResolveOptions, MinimalResolveOptions } from '@yarnpkg/core'; | ||
import { Resolver, ResolveOptions, MinimalResolveOptions, Package } from '@yarnpkg/core'; | ||
import { Descriptor, Locator } from '@yarnpkg/core'; | ||
@@ -9,5 +9,8 @@ import { LinkType } from '@yarnpkg/core'; | ||
bindDescriptor(descriptor: Descriptor, fromLocator: Locator, opts: MinimalResolveOptions): Descriptor; | ||
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): never[]; | ||
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): {}; | ||
getCandidates(descriptor: Descriptor, dependencies: unknown, opts: ResolveOptions): Promise<Locator[]>; | ||
getSatisfying(descriptor: Descriptor, references: Array<string>, opts: ResolveOptions): Promise<null>; | ||
getSatisfying(descriptor: Descriptor, dependencies: Record<string, Package>, locators: Array<Locator>, opts: ResolveOptions): Promise<{ | ||
locators: Locator[]; | ||
sorted: boolean; | ||
}>; | ||
resolve(locator: Locator, opts: ResolveOptions): Promise<{ | ||
@@ -14,0 +17,0 @@ version: string; |
@@ -28,3 +28,3 @@ "use strict"; | ||
getResolutionDependencies(descriptor, opts) { | ||
return []; | ||
return {}; | ||
} | ||
@@ -35,4 +35,8 @@ async getCandidates(descriptor, dependencies, opts) { | ||
} | ||
async getSatisfying(descriptor, references, opts) { | ||
return null; | ||
async getSatisfying(descriptor, dependencies, locators, opts) { | ||
const [locator] = await this.getCandidates(descriptor, dependencies, opts); | ||
return { | ||
locators: locators.filter(candidate => candidate.locatorHash === locator.locatorHash), | ||
sorted: false, | ||
}; | ||
} | ||
@@ -39,0 +43,0 @@ async resolve(locator, opts) { |
{ | ||
"name": "@yarnpkg/plugin-link", | ||
"version": "2.2.0", | ||
"version": "3.0.0-rc.1", | ||
"license": "BSD-2-Clause", | ||
"main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "^2.6.0", | ||
"@yarnpkg/fslib": "^3.0.0-rc.1", | ||
"tslib": "^1.13.0" | ||
}, | ||
"peerDependencies": { | ||
"@yarnpkg/core": "^3.1.0" | ||
"@yarnpkg/core": "^4.0.0-rc.1" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/core": "^3.1.0" | ||
"@yarnpkg/core": "^4.0.0-rc.1" | ||
}, | ||
@@ -33,5 +33,6 @@ "repository": { | ||
"engines": { | ||
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" | ||
"node": ">=14.15.0" | ||
}, | ||
"stableVersion": "2.2.0", | ||
"typings": "./lib/index.d.ts" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16701
327
2
+ Added@yarnpkg/core@4.1.6(transitive)
+ Added@yarnpkg/fslib@3.1.1(transitive)
+ Added@yarnpkg/libzip@3.1.0(transitive)
+ Added@yarnpkg/parsers@3.0.2(transitive)
+ Added@yarnpkg/shell@4.1.1(transitive)
+ Addedci-info@4.1.0(transitive)
+ Addedclipanion@4.0.0-rc.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addeddotenv@16.4.7(transitive)
+ Addedtinylogic@2.0.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@chevrotain/types@9.1.0(transitive)
- Removed@chevrotain/utils@9.1.0(transitive)
- Removed@yarnpkg/core@3.7.0(transitive)
- Removed@yarnpkg/fslib@2.10.4(transitive)
- Removed@yarnpkg/libzip@2.3.0(transitive)
- Removed@yarnpkg/parsers@2.6.0(transitive)
- Removed@yarnpkg/shell@3.3.0(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedchevrotain@9.1.0(transitive)
- Removedci-info@3.9.0(transitive)
- Removedclipanion@3.2.0-rc.4(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedglobby@11.1.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedregexp-to-ast@0.5.0(transitive)
- Removedslash@3.0.0(transitive)
- Removedtinylogic@1.0.3(transitive)
Updated@yarnpkg/fslib@^3.0.0-rc.1