Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-compat

@yarnpkg/plugin-compat

This plugin contains various builtin patches that will be applied to packages that aren't compatible with the Plug'n'Play resolution out-of-the-box.

Install

This plugin is included by default in Yarn.

Compatibility Features

Variables

Const PATCHES

PATCHES: Map<string & object, getPatch> = new Map([[structUtils.makeIdent(null, `fsevents`).identHash, getFseventsPatch],[structUtils.makeIdent(null, `resolve`).identHash, getResolvePatch],[structUtils.makeIdent(null, `typescript`).identHash, getTypescriptPatch],])

Const TEST_RANGES

TEST_RANGES: Array<[]> = [[`fsevents`, [`^1`,`^2.1`,`latest`,],], [`resolve`, [`>=1.9`,`latest`,`next`,],], [`typescript`, [`>=3.2`,`latest`,`next`,],],]

Const TEST_TIMEOUT

TEST_TIMEOUT: 100000000 = 100000000

Const packageExtensions

packageExtensions: Array<[]> = [// https://github.com/SamVerschueren/stream-to-observable/pull/5[`@samverschueren/stream-to-observable@*`, {peerDependenciesMeta: {[`rxjs`]: optionalPeerDep,[`zenObservable`]: optionalPeerDep,},}],// https://github.com/sindresorhus/any-observable/pull/25[`any-observable@<0.5.1`, {peerDependenciesMeta: {[`rxjs`]: optionalPeerDep,[`zenObservable`]: optionalPeerDep,},}],// https://github.com/keymetrics/pm2-io-agent/pull/125[`@pm2/agent@<1.0.4`, {dependencies: {[`debug`]: `*`,},}],// https://github.com/visionmedia/debug/pull/727[`debug@*`, {peerDependenciesMeta: {[`supports-color`]: optionalPeerDep,},}],// https://github.com/sindresorhus/got/pull/1125[`got@<11`, {dependencies: {[`@types/responselike`]: `^1.0.0`,[`@types/keyv`]: `^3.1.1`,},}],// https://github.com/szmarczak/cacheable-lookup/pull/12[`cacheable-lookup@<4.1.2`, {dependencies: {[`@types/keyv`]: `^3.1.1`,},}],// https://github.com/prisma-labs/http-link-dataloader/pull/22[`http-link-dataloader@*`, {peerDependencies: {[`graphql`]: `^0.13.1 || ^14.0.0`,},}],// https://github.com/theia-ide/typescript-language-server/issues/144[`typescript-language-server@*`, {dependencies: {[`vscode-jsonrpc`]: `^5.0.1`,[`vscode-languageserver-protocol`]: `^3.15.0`,},}],// https://github.com/gucong3000/postcss-syntax/pull/46[`postcss-syntax@*`, {peerDependenciesMeta: {[`postcss-html`]: optionalPeerDep,[`postcss-jsx`]: optionalPeerDep,[`postcss-less`]: optionalPeerDep,[`postcss-markdown`]: optionalPeerDep,[`postcss-scss`]: optionalPeerDep,},}],// https://github.com/cssinjs/jss/pull/1315[`jss-plugin-rule-value-function@<=10.1.1`, {dependencies: {[`tiny-warning`]: `^1.0.2`,},}],// https://github.com/vadimdemedes/ink-select-input/pull/26[`ink-select-input@*`, {peerDependencies: {react: `^16.8.2`,},}],// https://github.com/iarna/promise-inflight/pull/4[`promise-inflight@*`, {peerDependenciesMeta: {[`bluebird`]: optionalPeerDep,},}],// https://github.com/casesandberg/reactcss/pull/153[`reactcss@*`, {peerDependencies: {react: `*`,},}],// https://github.com/casesandberg/react-color/pull/746[`react-color@<=2.19.0`, {peerDependencies: {react: `*`,},}],// https://github.com/angeloocana/gatsby-plugin-i18n/pull/145[`gatsby-plugin-i18n@*`, {dependencies: {ramda: `^0.24.1`,},}],// https://github.com/3rd-Eden/useragent/pull/159[`useragent@^2.0.0`, {dependencies: {request: `^2.88.0`,yamlparser: `0.0.x`,semver: `5.5.x`,},}],// https://github.com/apollographql/apollo-tooling/pull/2049[`@apollographql/apollo-tools@*`, {peerDependencies: {graphql: `^14.2.1 || ^15.0.0`,},}],// https://github.com/mbrn/material-table/pull/2374[`material-table@^2.0.0`, {dependencies: {"@babel/runtime": `^7.11.2`,},}],// https://github.com/babel/babel/pull/11118[`@babel/parser@*`, {dependencies: {"@babel/types": `^7.8.3`,},}],// https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/507[`fork-ts-checker-webpack-plugin@*`, {peerDependencies: {eslint: `>= 6`,typescript: `>= 2.7`,webpack: `>= 4`,},peerDependenciesMeta: {eslint: optionalPeerDep,},}],// https://github.com/react-component/animate/pull/89[`rc-animate@*`, {peerDependencies: {react: `^15.0.0 || ^16.0.0`,"react-dom": `^15.0.0 || ^16.0.0`,},}],]

Let patch

patch: string

Let patch

patch: string

Let patch

patch: string

Const testedCandidates

testedCandidates: Set<LocatorHash> = new Set()

A Set used to keep track of the test candidates, so we only test each candidate once.

Functions

createProject

getConfiguration

getDescriptorCandidates

getPatch

  • getPatch(): string

getPatch

  • getPatch(): string

getPatch

  • getPatch(): string

testCandidate

  • testCandidate(locator: Locator): Promise<void>

Object literals

Const optionalPeerDep

optionalPeerDep: object

optional

optional: boolean = true

Const plugin

plugin: object

hooks

hooks: object

getBuiltinPatch

  • getBuiltinPatch(project: Project, name: string): Promise<undefined | null | string>

reduceDependency

registerPackageExtensions

  • registerPackageExtensions(configuration: Configuration, registerPackageExtension: function): Promise<void>

Generated using TypeDoc