diff --git a/.pnp.cjs b/.pnp.cjs index eb841c9aba24..d6e16cbb36fe 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -148,6 +148,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "name": "@yarnpkg/doctor",\ "reference": "workspace:packages/yarnpkg-doctor"\ },\ + {\ + "name": "@yarnpkg/extensions",\ + "reference": "workspace:packages/yarnpkg-extensions"\ + },\ {\ "name": "@yarnpkg/fslib",\ "reference": "workspace:packages/yarnpkg-fslib"\ @@ -210,6 +214,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@yarnpkg/doctor", ["workspace:packages/yarnpkg-doctor"]],\ ["@yarnpkg/esbuild-plugin-pnp", ["virtual:5d170a96e3bd35439131aba7820e7b850e9381656d638624d34e228d96fc2f134ebf73b7eb6235db8cb822a7bcd252e04750d4dfcaeb49408c4e561390950138#workspace:packages/esbuild-plugin-pnp", "workspace:packages/esbuild-plugin-pnp"]],\ ["@yarnpkg/eslint-config", ["virtual:e470d99b1e4fdf4c5db5d090ff5472cdeba0404b7ffd31cd2efab3493dd184c67bc45f60c2ef1c040e2c41afe38c6280bffc5df2fbe3aefaa2b6eacf685ab07c#workspace:packages/eslint-config", "workspace:packages/eslint-config"]],\ + ["@yarnpkg/extensions", ["virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions", "workspace:packages/yarnpkg-extensions"]],\ ["@yarnpkg/fslib", ["workspace:packages/yarnpkg-fslib"]],\ ["@yarnpkg/gatsby", ["workspace:packages/gatsby"]],\ ["@yarnpkg/json-proxy", ["workspace:packages/yarnpkg-json-proxy"]],\ @@ -10391,6 +10396,29 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "SOFT"\ }]\ ]],\ + ["@yarnpkg/extensions", [\ + ["virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions", {\ + "packageLocation": "./.yarn/__virtual__/@yarnpkg-extensions-virtual-a079f34157/1/packages/yarnpkg-extensions/",\ + "packageDependencies": [\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ + ["@types/yarnpkg__core", null],\ + ["@yarnpkg/core", "workspace:packages/yarnpkg-core"]\ + ],\ + "packagePeers": [\ + "@types/yarnpkg__core",\ + "@yarnpkg/core"\ + ],\ + "linkType": "SOFT"\ + }],\ + ["workspace:packages/yarnpkg-extensions", {\ + "packageLocation": "./packages/yarnpkg-extensions/",\ + "packageDependencies": [\ + ["@yarnpkg/extensions", "workspace:packages/yarnpkg-extensions"],\ + ["@yarnpkg/core", "workspace:packages/yarnpkg-core"]\ + ],\ + "linkType": "SOFT"\ + }]\ + ]],\ ["@yarnpkg/fslib", [\ ["workspace:packages/yarnpkg-fslib", {\ "packageLocation": "./packages/yarnpkg-fslib/",\ @@ -10645,6 +10673,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:f4e4f4a9a0213f122880195b39adaee7de5cb560c1d806ebc8bace6a3124e5b8f820bbb89ebecd4d535caeb6f527d343143210aa405689c118ff2813b78998a0#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10670,6 +10699,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:14a22fb3831dfc762a1bb8a042d17886271c56698e1a83233f09eaacff5a5b83fe6f87adb9255774eab3586392c18ff98cf87aa6b374d572d9b72f88829f6d9e#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10695,6 +10725,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:616a2ba0d005227805d037f4c8ec29f1dd09fdb3e3f49f7b5c4a07a62139a147d373d38bc5ebcb31bddab3956c3fc25d54edf8722741d9ebdbe9d36d21968f91#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10720,6 +10751,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:ef8e1544cc953676e27fe7445218564293b5a190d023e4610c14767688870b772297269e2848a1d8d72f54605aacc9da3b2b7dc56dca754d297b70b14e6a665e#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10745,6 +10777,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:7bf4ad1016291a7e1c04756f55760890095421dd1b945930b62d8d0464c365d1cdce28ed812277b54dc54443922ac82afd5e98ed7f1d218ae7753d16e21541bb#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10770,6 +10803,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10795,6 +10829,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:a027ddc7edcbf74025e90effce333897039d2c6f8e1ebe319fb72c52c5be1b885da91acc56476d19bb6ce2e31cbc2d5b11241940b82f833a2cac262496c0088f#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:08fe6ad7a76ed00f8dc32e3b968ce66fd4db8ac47424db78612ce3633e63ecb46d41984611094facf53bbef7eae7fbf98bbfd729fb77f5ccde564684f4e3a829#workspace:packages/plugin-npm"],\ @@ -10820,6 +10855,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:cfce476fbcac37853570c2d41665757b5f868b1c2f089ee6edbc8bb5aa32141e156cae7d75350d1095258d90afbabe2b2bb142142b995d133c3ee535c89d459b#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10845,6 +10881,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:3f21a2572d1fa6d1ff8d16d86e25bcefcbff7d17161c440fdbddbd871d9d675c377d66a2cbd98ddb8f2c024060bc7bc6c01e8ae328fa1fef861c72a9b2c30755#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10870,6 +10907,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:baf8bf095598663073ea5e8bd5af72409e894f8926160bf6fe0a24c693d417f91b536d9e3bbb0ea5f3d0ad8cd2f1ec38b71e964f9475ba719a1f5a8505cf10c3#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10895,6 +10933,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:7bf4ad1016291a7e1c04756f55760890095421dd1b945930b62d8d0464c365d1cdce28ed812277b54dc54443922ac82afd5e98ed7f1d218ae7753d16e21541bb#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10920,6 +10959,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:743b60015fc887fe314a7ee01ea4843b516ac512d77939f47dc39d50bc7db742dc8994fe9bb2245ada0b3ce6f8aa58329d603fbc24093050cd499cb16a1a995f#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10945,6 +10985,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/yarnpkg__plugin-patch", null],\ ["@yarnpkg/cli", "virtual:4a733c8d9614e2148392368219d98ec1a70b4e8ce99164edd551241b22f6c5233e9d0ccf9f6d83265c8a5aafc617cfd3c4100b3efef1e092a42053c23770ed9a#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ @@ -10968,6 +11009,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/resolve", "npm:1.17.1"],\ ["@yarnpkg/cli", "virtual:f4e4f4a9a0213f122880195b39adaee7de5cb560c1d806ebc8bace6a3124e5b8f820bbb89ebecd4d535caeb6f527d343143210aa405689c118ff2813b78998a0#workspace:packages/yarnpkg-cli"],\ ["@yarnpkg/core", "workspace:packages/yarnpkg-core"],\ + ["@yarnpkg/extensions", "virtual:278bc71407223dd2bc9ed6dcaec459b0cf9f599d3a54c3151d28f79fb3a427390fad08553f7c1ad9311ccd3a081e35dfd4095a517d349ec05b8b41552b547315#workspace:packages/yarnpkg-extensions"],\ ["@yarnpkg/fslib", "workspace:packages/yarnpkg-fslib"],\ ["@yarnpkg/monorepo", "workspace:."],\ ["@yarnpkg/plugin-npm", "virtual:712d04b0098634bdb13868ff8f85b327022bd7d3880873ada8c0ae56847ed36cf9da1fd74a88519380129cec528fe2bd2201426bc28ac9d4a8cc6734ff25c538#workspace:packages/plugin-npm"],\ diff --git a/.yarn/versions/1633b796.yml b/.yarn/versions/1633b796.yml new file mode 100644 index 000000000000..bd1f44b605d9 --- /dev/null +++ b/.yarn/versions/1633b796.yml @@ -0,0 +1,5 @@ +releases: + "@yarnpkg/extensions": minor + +declined: + - "@yarnpkg/plugin-compat" diff --git a/packages/gatsby/static/configuration/yarnrc.json b/packages/gatsby/static/configuration/yarnrc.json index d50ebdbcc09c..3ae463d3ed20 100644 --- a/packages/gatsby/static/configuration/yarnrc.json +++ b/packages/gatsby/static/configuration/yarnrc.json @@ -529,7 +529,7 @@ }, "packageExtensions": { "_package": "@yarnpkg/core", - "description": "Some packages may have been specified incorrectly with regard to their dependencies - for example with one dependency being missing, causing Yarn to refuse it the access. The `packageExtensions` fields offer a way to extend the existing package definitions with additional information. If you use it, consider sending a PR upstream and contributing your extension to the [`plugin-compat` database](https://github.com/yarnpkg/berry/blob/master/packages/plugin-compat/sources/extensions.ts).\nNote: This field is made to add dependencies; if you need to rewrite existing ones, prefer the [`resolutions`](/configuration/manifest#resolutions) field.", + "description": "Some packages may have been specified incorrectly with regard to their dependencies - for example with one dependency being missing, causing Yarn to refuse it the access. The `packageExtensions` fields offer a way to extend the existing package definitions with additional information. If you use it, consider sending a PR upstream and contributing your extension to the [`plugin-compat` database](https://github.com/yarnpkg/berry/blob/master/packages/extensions/sources/index.ts).\nNote: This field is made to add dependencies; if you need to rewrite existing ones, prefer the [`resolutions`](/configuration/manifest#resolutions) field.", "type": "object", "patternProperties": { "^(?:@([^/]+?)/)?([^/]+?)(?:@(.+))$": { diff --git a/packages/plugin-compat/package.json b/packages/plugin-compat/package.json index 4cc7f6a584ba..2e51b3ae142e 100644 --- a/packages/plugin-compat/package.json +++ b/packages/plugin-compat/package.json @@ -7,6 +7,9 @@ "@yarnpkg/core": "workspace:^", "@yarnpkg/plugin-patch": "workspace:^" }, + "dependencies": { + "@yarnpkg/extensions": "workspace:^" + }, "devDependencies": { "@types/lodash-es": "4.17.4", "@types/resolve": "^1.17.1", diff --git a/packages/plugin-compat/sources/extensions.ts b/packages/plugin-compat/sources/extensions.ts index 3c2efd2e69fc..694f60edb826 100644 --- a/packages/plugin-compat/sources/extensions.ts +++ b/packages/plugin-compat/sources/extensions.ts @@ -1,828 +1,5 @@ -// To extend this list, please open a PR on the relevant repository that adds -// the same fields as you add here and prefix your changes with the relevant -// PR url. +/** + * This file has been moved to packages/yarnpkg-extensions/sources/index.ts + */ -import {PackageExtensionData} from '@yarnpkg/core'; - -const optionalPeerDep = { - optional: true, -}; - -export const packageExtensions: Array<[string, PackageExtensionData]> = [ - // https://github.com/tailwindlabs/tailwindcss-aspect-ratio/pull/14 - [`@tailwindcss/aspect-ratio@<0.2.1`, { - peerDependencies: { - [`tailwindcss`]: `^2.0.2`, - }, - }], - // https://github.com/tailwindlabs/tailwindcss-line-clamp/pull/6 - [`@tailwindcss/line-clamp@<0.2.1`, { - peerDependencies: { - [`tailwindcss`]: `^2.0.2`, - }, - }], - // https://github.com/FullHuman/purgecss/commit/24116f394dc54c913e4fd254cf2d78c03db971f2 - [`@fullhuman/postcss-purgecss@3.1.3 || 3.1.3-alpha.0`, { - peerDependencies: { - [`postcss`]: `^8.0.0`, - }, - }], - // https://github.com/SamVerschueren/stream-to-observable/pull/5 - [`@samverschueren/stream-to-observable@<0.3.1`, { - 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@<4.2.0`, { - 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@<4.1.0`, { - peerDependencies: { - react: `^16.8.2`, - }, - }], - // https://github.com/xz64/license-webpack-plugin/pull/100 - [`license-webpack-plugin@<2.3.18`, { - peerDependenciesMeta: { - [`webpack`]: optionalPeerDep, - }, - }], - // https://github.com/snowpackjs/snowpack/issues/3158 - [`snowpack@>=3.3.0`, { - dependencies: { - [`node-gyp`]: `^7.1.0`, - }, - }], - // 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@<=0.5.2`, { - 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@<=6.3.4`, { - peerDependencies: { - eslint: `>= 6`, - typescript: `>= 2.7`, - webpack: `>= 4`, - 'vue-template-compiler': `*`, - }, - peerDependenciesMeta: { - eslint: optionalPeerDep, - 'vue-template-compiler': optionalPeerDep, - }, - }], - // https://github.com/react-component/animate/pull/116 - [`rc-animate@<=3.1.1`, { - peerDependencies: { - react: `>=16.9.0`, - 'react-dom': `>=16.9.0`, - }, - }], - // https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/1491 - [`react-bootstrap-table2-paginator@*`, { - dependencies: { - classnames: `^2.2.6`, - }, - }], - // https://github.com/STRML/react-draggable/pull/525 - [`react-draggable@<=4.4.3`, { - peerDependencies: { - react: `>= 16.3.0`, - 'react-dom': `>= 16.3.0`, - }, - }], - // https://github.com/jaydenseric/apollo-upload-client/commit/336691cec6698661ab404649e4e8435750255803 - [`apollo-upload-client@<14`, { - peerDependencies: { - graphql: `14 - 15`, - }, - }], - // https://github.com/algolia/react-instantsearch/pull/2975 - [`react-instantsearch-core@<=6.7.0`, { - peerDependencies: { - algoliasearch: `>= 3.1 < 5`, - }, - }], - // https://github.com/algolia/react-instantsearch/pull/2975 - [`react-instantsearch-dom@<=6.7.0`, { - dependencies: { - 'react-fast-compare': `^3.0.0`, - }, - }], - // https://github.com/websockets/ws/pull/1626 - [`ws@<7.2.1`, { - peerDependencies: { - bufferutil: `^4.0.1`, - 'utf-8-validate': `^5.0.2`, - }, - peerDependenciesMeta: { - bufferutil: optionalPeerDep, - 'utf-8-validate': optionalPeerDep, - }, - }], - // https://github.com/tajo/react-portal/pull/233 - [`react-portal@*`, { - peerDependencies: { - 'react-dom': `^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0`, - }, - }], - // https://github.com/facebook/create-react-app/pull/9872 - [`react-scripts@<=4.0.1`, { - peerDependencies: { - [`react`]: `*`, - }, - }], - // https://github.com/DevExpress/testcafe/pull/5872 - [`testcafe@<=1.10.1`, { - dependencies: { - '@babel/plugin-transform-for-of': `^7.12.1`, - '@babel/runtime': `^7.12.5`, - }, - }], - // https://github.com/DevExpress/testcafe-legacy-api/pull/51 - [`testcafe-legacy-api@<=4.2.0`, { - dependencies: { - 'testcafe-hammerhead': `^17.0.1`, - 'read-file-relative': `^1.2.0`, - }, - }], - // https://github.com/googleapis/nodejs-firestore/pull/1425 - [`@google-cloud/firestore@<=4.9.3`, { - dependencies: { - protobufjs: `^6.8.6`, - }, - }], - // https://github.com/thinhle-agilityio/gatsby-source-apiserver/pull/58 - [`gatsby-source-apiserver@*`, { - dependencies: { - [`babel-polyfill`]: `^6.26.0`, - }, - }], - // https://github.com/webpack/webpack-cli/pull/2097 - [`@webpack-cli/package-utils@<=1.0.1-alpha.4`, { - dependencies: { - [`cross-spawn`]: `^7.0.3`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/20156 - [`gatsby-remark-prismjs@<3.3.28`, { - dependencies: { - [`lodash`]: `^4`, - }, - }], - // https://github.com/Creatiwity/gatsby-plugin-favicon/pull/65 - [`gatsby-plugin-favicon@*`, { - peerDependencies: { - [`webpack`]: `*`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/28759 - [`gatsby-plugin-sharp@<=4.6.0-next.3`, { - dependencies: { - [`debug`]: `^4.3.1`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/28759 - [`gatsby-react-router-scroll@<=5.6.0-next.0`, { - dependencies: { - [`prop-types`]: `^15.7.2`, - }, - }], - // https://github.com/rebassjs/rebass/pull/934 - [`@rebass/forms@*`, { - dependencies: { - [`@styled-system/should-forward-prop`]: `^5.0.0`, - }, - peerDependencies: { - react: `^16.8.6`, - }, - }], - // https://github.com/rebassjs/rebass/pull/934 - [`rebass@*`, { - peerDependencies: { - react: `^16.8.6`, - }, - }], - // https://github.com/ant-design/react-slick/pull/95 - [`@ant-design/react-slick@<=0.28.3`, { - peerDependencies: { - react: `>=16.0.0`, - }, - }], - // https://github.com/mqttjs/MQTT.js/pull/1266 - [`mqtt@<4.2.7`, { - dependencies: { - duplexify: `^4.1.1`, - }, - }], - // https://github.com/vuetifyjs/vue-cli-plugins/pull/155 - [`vue-cli-plugin-vuetify@<=2.0.3`, { - dependencies: { - semver: `^6.3.0`, - }, - peerDependenciesMeta: { - 'sass-loader': optionalPeerDep, - 'vuetify-loader': optionalPeerDep, - }, - }], - // https://github.com/vuetifyjs/vue-cli-plugins/pull/152 - [`vue-cli-plugin-vuetify@<=2.0.4`, { - dependencies: { - 'null-loader': `^3.0.0`, - }, - }], - // https://github.com/vuetifyjs/vue-cli-plugins/pull/155 - [`@vuetify/cli-plugin-utils@<=0.0.4`, { - dependencies: { - semver: `^6.3.0`, - }, - peerDependenciesMeta: { - 'sass-loader': optionalPeerDep, - }, - }], - // https://github.com/vuejs/vue-cli/pull/6060/files#diff-857cfb6f3e9a676b0de4a00c2c712297068c038a7d5820c133b8d6aa8cceb146R28 - [`@vue/cli-plugin-typescript@<=5.0.0-alpha.0`, { - dependencies: { - 'babel-loader': `^8.1.0`, - }, - }], - // https://github.com/vuejs/vue-cli/pull/6456 - [`@vue/cli-plugin-typescript@<=5.0.0-beta.0`, { - dependencies: { - '@babel/core': `^7.12.16`, - }, - peerDependencies: { - 'vue-template-compiler': `^2.0.0`, - }, - peerDependenciesMeta: { - 'vue-template-compiler': optionalPeerDep, - }, - }], - // https://github.com/apache/cordova-ios/pull/1105 - [`cordova-ios@<=6.3.0`, { - dependencies: { - underscore: `^1.9.2`, - }, - }], - // https://github.com/apache/cordova-lib/pull/871 - [`cordova-lib@<=10.0.1`, { - dependencies: { - underscore: `^1.9.2`, - }, - }], - // https://github.com/creationix/git-node-fs/pull/8 - [`git-node-fs@*`, { - peerDependencies: { - 'js-git': `^0.7.8`, - }, - peerDependenciesMeta: { - 'js-git': optionalPeerDep, - }, - }], - // https://github.com/tj/consolidate.js/pull/339 - [`consolidate@*`, { - peerDependencies: { - velocityjs: `^2.0.1`, - tinyliquid: `^0.2.34`, - 'liquid-node': `^3.0.1`, - jade: `^1.11.0`, - 'then-jade': `*`, - dust: `^0.3.0`, - 'dustjs-helpers': `^1.7.4`, - 'dustjs-linkedin': `^2.7.5`, - swig: `^1.4.2`, - 'swig-templates': `^2.0.3`, - 'razor-tmpl': `^1.3.1`, - atpl: `>=0.7.6`, - liquor: `^0.0.5`, - twig: `^1.15.2`, - ejs: `^3.1.5`, - eco: `^1.1.0-rc-3`, - jazz: `^0.0.18`, - jqtpl: `~1.1.0`, - hamljs: `^0.6.2`, - hamlet: `^0.3.3`, - whiskers: `^0.4.0`, - 'haml-coffee': `^1.14.1`, - 'hogan.js': `^3.0.2`, - templayed: `>=0.2.3`, - handlebars: `^4.7.6`, - underscore: `^1.11.0`, - lodash: `^4.17.20`, - pug: `^3.0.0`, - 'then-pug': `*`, - qejs: `^3.0.5`, - walrus: `^0.10.1`, - mustache: `^4.0.1`, - just: `^0.1.8`, - ect: `^0.5.9`, - mote: `^0.2.0`, - toffee: `^0.3.6`, - dot: `^1.1.3`, - 'bracket-template': `^1.1.5`, - ractive: `^1.3.12`, - nunjucks: `^3.2.2`, - htmling: `^0.0.8`, - 'babel-core': `^6.26.3`, - plates: `~0.4.11`, - 'react-dom': `^16.13.1`, - react: `^16.13.1`, - 'arc-templates': `^0.5.3`, - vash: `^0.13.0`, - slm: `^2.0.0`, - marko: `^3.14.4`, - teacup: `^2.0.0`, - 'coffee-script': `^1.12.7`, - squirrelly: `^5.1.0`, - twing: `^5.0.2`, - }, - peerDependenciesMeta: { - velocityjs: optionalPeerDep, - tinyliquid: optionalPeerDep, - 'liquid-node': optionalPeerDep, - jade: optionalPeerDep, - 'then-jade': optionalPeerDep, - dust: optionalPeerDep, - 'dustjs-helpers': optionalPeerDep, - 'dustjs-linkedin': optionalPeerDep, - swig: optionalPeerDep, - 'swig-templates': optionalPeerDep, - 'razor-tmpl': optionalPeerDep, - atpl: optionalPeerDep, - liquor: optionalPeerDep, - twig: optionalPeerDep, - ejs: optionalPeerDep, - eco: optionalPeerDep, - jazz: optionalPeerDep, - jqtpl: optionalPeerDep, - hamljs: optionalPeerDep, - hamlet: optionalPeerDep, - whiskers: optionalPeerDep, - 'haml-coffee': optionalPeerDep, - 'hogan.js': optionalPeerDep, - templayed: optionalPeerDep, - handlebars: optionalPeerDep, - underscore: optionalPeerDep, - lodash: optionalPeerDep, - pug: optionalPeerDep, - 'then-pug': optionalPeerDep, - qejs: optionalPeerDep, - walrus: optionalPeerDep, - mustache: optionalPeerDep, - just: optionalPeerDep, - ect: optionalPeerDep, - mote: optionalPeerDep, - toffee: optionalPeerDep, - dot: optionalPeerDep, - 'bracket-template': optionalPeerDep, - ractive: optionalPeerDep, - nunjucks: optionalPeerDep, - htmling: optionalPeerDep, - 'babel-core': optionalPeerDep, - plates: optionalPeerDep, - 'react-dom': optionalPeerDep, - react: optionalPeerDep, - 'arc-templates': optionalPeerDep, - vash: optionalPeerDep, - slm: optionalPeerDep, - marko: optionalPeerDep, - teacup: optionalPeerDep, - 'coffee-script': optionalPeerDep, - squirrelly: optionalPeerDep, - twing: optionalPeerDep, - }, - }], - // https://github.com/vuejs/vue-loader/pull/1853 - // https://github.com/vuejs/vue-loader/commit/089473af97077b8e14b3feff48d32d2733ad792c - [`vue-loader@<=16.3.3`, { - peerDependencies: { - '@vue/compiler-sfc': `^3.0.8`, - webpack: `^4.1.0 || ^5.0.0-0`, - }, - peerDependenciesMeta: { - '@vue/compiler-sfc': optionalPeerDep, - }, - }], - // https://github.com/vuejs/vue-loader/pull/1944 - [`vue-loader@^16.7.0`, { - peerDependencies: { - '@vue/compiler-sfc': `^3.0.8`, - vue: `^3.2.13`, - }, - peerDependenciesMeta: { - '@vue/compiler-sfc': optionalPeerDep, - vue: optionalPeerDep, - }, - }], - // https://github.com/salesforce-ux/scss-parser/pull/43 - [`scss-parser@*`, { - dependencies: { - lodash: `^4.17.21`, - }, - }], - // https://github.com/salesforce-ux/query-ast/pull/25 - [`query-ast@*`, { - dependencies: { - lodash: `^4.17.21`, - }, - }], - // https://github.com/reduxjs/redux-thunk/pull/251 - [`redux-thunk@<=2.3.0`, { - peerDependencies: { - redux: `^4.0.0`, - }, - }], - // https://github.com/snowpackjs/snowpack/pull/3556 - [`skypack@<=0.3.2`, { - dependencies: { - tar: `^6.1.0`, - }, - }], - // https://github.com/npm/metavuln-calculator/pull/8 - [`@npmcli/metavuln-calculator@<2.0.0`, { - dependencies: { - 'json-parse-even-better-errors': `^2.3.1`, - }, - }], - // https://github.com/npm/bin-links/pull/17 - [`bin-links@<2.3.0`, { - dependencies: { - 'mkdirp-infer-owner': `^1.0.2`, - }, - }], - // https://github.com/snowpackjs/rollup-plugin-polyfill-node/pull/30 - [`rollup-plugin-polyfill-node@<=0.8.0`, { - peerDependencies: { - rollup: `^1.20.0 || ^2.0.0`, - }, - }], - // https://github.com/snowpackjs/snowpack/pull/3673 - [`snowpack@<3.8.6`, { - dependencies: { - 'magic-string': `^0.25.7`, - }, - }], - // https://github.com/elm-community/elm-webpack-loader/pull/202 - [`elm-webpack-loader@*`, { - dependencies: { - temp: `^0.9.4`, - }, - }], - // https://github.com/winstonjs/winston-transport/pull/58 - [`winston-transport@<=4.4.0`, { - dependencies: { - logform: `^2.2.0`, - }, - }], - // https://github.com/vire/jest-vue-preprocessor/pull/177 - [`jest-vue-preprocessor@*`, { - dependencies: { - '@babel/core': `7.8.7`, - '@babel/template': `7.8.6`, - }, - peerDependencies: { - pug: `^2.0.4`, - }, - peerDependenciesMeta: { - pug: optionalPeerDep, - }, - }], - // https://github.com/rt2zz/redux-persist/pull/1336 - [`redux-persist@*`, { - peerDependencies: { - react: `>=16`, - }, - peerDependenciesMeta: { - react: optionalPeerDep, - }, - }], - // https://github.com/paixaop/node-sodium/pull/159 - [`sodium@>=3`, { - dependencies: { - 'node-gyp': `^3.8.0`, - }, - }], - // https://github.com/gajus/babel-plugin-graphql-tag/pull/63 - [`babel-plugin-graphql-tag@<=3.1.0`, { - peerDependencies: { - graphql: `^14.0.0 || ^15.0.0`, - }, - }], - // https://github.com/microsoft/playwright/pull/8501 - [`@playwright/test@<=1.14.1`, { - dependencies: { - 'jest-matcher-utils': `^26.4.2`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/32954 - ...[ - `babel-plugin-remove-graphql-queries@<3.14.0-next.1`, - `babel-preset-gatsby-package@<1.14.0-next.1`, - `create-gatsby@<1.14.0-next.1`, - `gatsby-admin@<0.24.0-next.1`, - `gatsby-cli@<3.14.0-next.1`, - `gatsby-core-utils@<2.14.0-next.1`, - `gatsby-design-tokens@<3.14.0-next.1`, - `gatsby-legacy-polyfills@<1.14.0-next.1`, - `gatsby-plugin-benchmark-reporting@<1.14.0-next.1`, - `gatsby-plugin-graphql-config@<0.23.0-next.1`, - `gatsby-plugin-image@<1.14.0-next.1`, - `gatsby-plugin-mdx@<2.14.0-next.1`, - `gatsby-plugin-netlify-cms@<5.14.0-next.1`, - `gatsby-plugin-no-sourcemaps@<3.14.0-next.1`, - `gatsby-plugin-page-creator@<3.14.0-next.1`, - `gatsby-plugin-preact@<5.14.0-next.1`, - `gatsby-plugin-preload-fonts@<2.14.0-next.1`, - `gatsby-plugin-schema-snapshot@<2.14.0-next.1`, - `gatsby-plugin-styletron@<6.14.0-next.1`, - `gatsby-plugin-subfont@<3.14.0-next.1`, - `gatsby-plugin-utils@<1.14.0-next.1`, - `gatsby-recipes@<0.25.0-next.1`, - `gatsby-source-shopify@<5.6.0-next.1`, - `gatsby-source-wikipedia@<3.14.0-next.1`, - `gatsby-transformer-screenshot@<3.14.0-next.1`, - `gatsby-worker@<0.5.0-next.1`, - ].map<[string, PackageExtensionData]>(descriptorString => [ - descriptorString, - { - dependencies: { - '@babel/runtime': `^7.14.8`, - }, - }, - ]), - // Originally fixed in https://github.com/gatsbyjs/gatsby/pull/31837 (https://github.com/gatsbyjs/gatsby/commit/6378692d7ec1eb902520720e27aca97e8eb42c21) - // Version updated and added in https://github.com/gatsbyjs/gatsby/pull/32928 - [`gatsby-core-utils@<2.14.0-next.1`, { - dependencies: { - got: `8.3.2`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/32861 - [`gatsby-plugin-gatsby-cloud@<=3.1.0-next.0`, { - dependencies: { - 'gatsby-core-utils': `^2.13.0-next.0`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/31837 - [`gatsby-plugin-gatsby-cloud@<=3.2.0-next.1`, { - peerDependencies: { - webpack: `*`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/31837 - [`babel-plugin-remove-graphql-queries@<=3.14.0-next.1`, { - dependencies: { - 'gatsby-core-utils': `^2.8.0-next.1`, - }, - }], - // https://github.com/gatsbyjs/gatsby/pull/32861 - [`gatsby-plugin-netlify@3.13.0-next.1`, { - dependencies: { - 'gatsby-core-utils': `^2.13.0-next.0`, - }, - }], - // https://github.com/paul-soporan/clipanion-v3-codemod/pull/1 - [`clipanion-v3-codemod@<=0.2.0`, { - peerDependencies: { - jscodeshift: `^0.11.0`, - }, - }], - // https://github.com/FormidableLabs/react-live/pull/180 - [`react-live@*`, { - peerDependencies: { - 'react-dom': `*`, - react: `*`, - }, - }], - // https://github.com/webpack/webpack/pull/11190 - [`webpack@<4.44.1`, { - peerDependenciesMeta: { - 'webpack-cli': optionalPeerDep, - 'webpack-command': optionalPeerDep, - }, - }], - // https://github.com/webpack/webpack/pull/11189 - [`webpack@<5.0.0-beta.23`, { - peerDependenciesMeta: { - 'webpack-cli': optionalPeerDep, - }, - }], - // https://github.com/webpack/webpack-dev-server/pull/2396 - [`webpack-dev-server@<3.10.2`, { - peerDependenciesMeta: { - 'webpack-cli': optionalPeerDep, - }, - }], - // https://github.com/slorber/responsive-loader/pull/1/files - [`@docusaurus/responsive-loader@<1.5.0`, { - peerDependenciesMeta: { - sharp: optionalPeerDep, - jimp: optionalPeerDep, - }, - }], - // https://github.com/import-js/eslint-plugin-import/pull/2283 - [`eslint-module-utils@*`, { - peerDependenciesMeta: { - 'eslint-import-resolver-node': optionalPeerDep, - 'eslint-import-resolver-typescript': optionalPeerDep, - 'eslint-import-resolver-webpack': optionalPeerDep, - '@typescript-eslint/parser': optionalPeerDep, - }, - }], - // https://github.com/import-js/eslint-plugin-import/pull/2283 - [`eslint-plugin-import@*`, { - peerDependenciesMeta: { - '@typescript-eslint/parser': optionalPeerDep, - }, - }], - // https://github.com/GoogleChromeLabs/critters/pull/91 - [`critters-webpack-plugin@<3.0.2`, { - peerDependenciesMeta: { - 'html-webpack-plugin': optionalPeerDep, - }, - }], - // https://github.com/terser/terser/commit/05b23eeb682d732484ad51b19bf528258fd5dc2a - [`terser@<=5.10.0`, { - dependencies: { - acorn: `^8.5.0`, - }, - }], - // https://github.com/facebook/create-react-app/pull/11751 - [`babel-preset-react-app@10.0.x`, { - dependencies: { - '@babel/plugin-proposal-private-property-in-object': `^7.16.0`, - }, - }], - // https://github.com/facebook/create-react-app/pull/11751 - [`eslint-config-react-app@*`, { - peerDependenciesMeta: { - typescript: optionalPeerDep, - }, - }], - // https://github.com/vuejs/eslint-config-typescript/pull/39 - [`@vue/eslint-config-typescript@*`, { - peerDependenciesMeta: { - typescript: optionalPeerDep, - }, - }], - // https://github.com/antfu/unplugin-vue2-script-setup/pull/100 - [`unplugin-vue2-script-setup@<0.9.1`, { - peerDependencies: { - '@vue/composition-api': `^1.4.3`, - '@vue/runtime-dom': `^3.2.26`, - }, - }], - // https://github.com/cypress-io/snapshot/pull/159 - [`@cypress/snapshot@*`, { - dependencies: { - debug: `^3.2.7`, - }, - }], - // https://github.com/wemaintain/auto-relay/pull/95 - [`auto-relay@*`, { - peerDependencies: { - 'reflect-metadata': `^0.1.13`, - }, - }], - // https://github.com/JuniorTour/vue-template-babel-compiler/pull/40 - [`vue-template-babel-compiler@<1.2.0`, { - peerDependencies: { - [`vue-template-compiler`]: `^2.6.0`, - }, - }], - // https://github.com/parcel-bundler/parcel/pull/7977 - [`@parcel/transformer-image@<2.5.0`, { - peerDependencies: { - [`@parcel/core`]: `*`, - }, - }], - // https://github.com/parcel-bundler/parcel/pull/7977 - [`@parcel/transformer-js@<2.5.0`, { - peerDependencies: { - [`@parcel/core`]: `*`, - }, - }], - // Experiment to unblock the usage of Parcel in E2E tests - [`parcel@*`, { - peerDependenciesMeta: { - [`@parcel/core`]: optionalPeerDep, - }, - }], - // This doesn't have an upstream PR. - // The auto types causes two instances of eslint-config-react-app, - // one that has access to @types/eslint and one that doesn't. - // ESLint doesn't allow the same plugin to show up multiple times so it throws. - // As a temporary workaround until create-react-app fixes their ESLint - // setup we make eslint a peer dependency /w fallback. - // TODO: Lock the range when create-react-app fixes their ESLint setup - [`react-scripts@*`, { - peerDependencies: { - [`eslint`]: `*`, - }, - }], -]; +export {packageExtensions} from '@yarnpkg/extensions'; diff --git a/packages/yarnpkg-extensions/README.md b/packages/yarnpkg-extensions/README.md new file mode 100644 index 000000000000..dd385749d94b --- /dev/null +++ b/packages/yarnpkg-extensions/README.md @@ -0,0 +1,9 @@ +# `@yarnpkg/extensions` + +This package contains package extensions that fix known issues in the ecosystem + +## Install + +``` +yarn add @yarnpkg/extensions +``` diff --git a/packages/yarnpkg-extensions/package.json b/packages/yarnpkg-extensions/package.json new file mode 100644 index 000000000000..05f81c777648 --- /dev/null +++ b/packages/yarnpkg-extensions/package.json @@ -0,0 +1,31 @@ +{ + "name": "@yarnpkg/extensions", + "version": "1.0.0", + "license": "BSD-2-Clause", + "main": "./sources/index.ts", + "peerDependencies": { + "@yarnpkg/core": "workspace:^" + }, + "devDependencies": { + "@yarnpkg/core": "workspace:^" + }, + "repository": { + "type": "git", + "url": "ssh://git@github.com/yarnpkg/berry.git", + "directory": "packages/yarnpkg-extensions" + }, + "scripts": { + "postpack": "rm -rf lib", + "prepack": "run build:compile \"$(pwd)\"" + }, + "publishConfig": { + "main": "./lib/index.js", + "typings": "./lib/index.d.ts" + }, + "files": [ + "/lib/**/*" + ], + "engines": { + "node": ">=14.15.0" + } +} diff --git a/packages/yarnpkg-extensions/sources/index.ts b/packages/yarnpkg-extensions/sources/index.ts new file mode 100644 index 000000000000..3c2efd2e69fc --- /dev/null +++ b/packages/yarnpkg-extensions/sources/index.ts @@ -0,0 +1,828 @@ +// To extend this list, please open a PR on the relevant repository that adds +// the same fields as you add here and prefix your changes with the relevant +// PR url. + +import {PackageExtensionData} from '@yarnpkg/core'; + +const optionalPeerDep = { + optional: true, +}; + +export const packageExtensions: Array<[string, PackageExtensionData]> = [ + // https://github.com/tailwindlabs/tailwindcss-aspect-ratio/pull/14 + [`@tailwindcss/aspect-ratio@<0.2.1`, { + peerDependencies: { + [`tailwindcss`]: `^2.0.2`, + }, + }], + // https://github.com/tailwindlabs/tailwindcss-line-clamp/pull/6 + [`@tailwindcss/line-clamp@<0.2.1`, { + peerDependencies: { + [`tailwindcss`]: `^2.0.2`, + }, + }], + // https://github.com/FullHuman/purgecss/commit/24116f394dc54c913e4fd254cf2d78c03db971f2 + [`@fullhuman/postcss-purgecss@3.1.3 || 3.1.3-alpha.0`, { + peerDependencies: { + [`postcss`]: `^8.0.0`, + }, + }], + // https://github.com/SamVerschueren/stream-to-observable/pull/5 + [`@samverschueren/stream-to-observable@<0.3.1`, { + 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@<4.2.0`, { + 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@<4.1.0`, { + peerDependencies: { + react: `^16.8.2`, + }, + }], + // https://github.com/xz64/license-webpack-plugin/pull/100 + [`license-webpack-plugin@<2.3.18`, { + peerDependenciesMeta: { + [`webpack`]: optionalPeerDep, + }, + }], + // https://github.com/snowpackjs/snowpack/issues/3158 + [`snowpack@>=3.3.0`, { + dependencies: { + [`node-gyp`]: `^7.1.0`, + }, + }], + // 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@<=0.5.2`, { + 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@<=6.3.4`, { + peerDependencies: { + eslint: `>= 6`, + typescript: `>= 2.7`, + webpack: `>= 4`, + 'vue-template-compiler': `*`, + }, + peerDependenciesMeta: { + eslint: optionalPeerDep, + 'vue-template-compiler': optionalPeerDep, + }, + }], + // https://github.com/react-component/animate/pull/116 + [`rc-animate@<=3.1.1`, { + peerDependencies: { + react: `>=16.9.0`, + 'react-dom': `>=16.9.0`, + }, + }], + // https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/1491 + [`react-bootstrap-table2-paginator@*`, { + dependencies: { + classnames: `^2.2.6`, + }, + }], + // https://github.com/STRML/react-draggable/pull/525 + [`react-draggable@<=4.4.3`, { + peerDependencies: { + react: `>= 16.3.0`, + 'react-dom': `>= 16.3.0`, + }, + }], + // https://github.com/jaydenseric/apollo-upload-client/commit/336691cec6698661ab404649e4e8435750255803 + [`apollo-upload-client@<14`, { + peerDependencies: { + graphql: `14 - 15`, + }, + }], + // https://github.com/algolia/react-instantsearch/pull/2975 + [`react-instantsearch-core@<=6.7.0`, { + peerDependencies: { + algoliasearch: `>= 3.1 < 5`, + }, + }], + // https://github.com/algolia/react-instantsearch/pull/2975 + [`react-instantsearch-dom@<=6.7.0`, { + dependencies: { + 'react-fast-compare': `^3.0.0`, + }, + }], + // https://github.com/websockets/ws/pull/1626 + [`ws@<7.2.1`, { + peerDependencies: { + bufferutil: `^4.0.1`, + 'utf-8-validate': `^5.0.2`, + }, + peerDependenciesMeta: { + bufferutil: optionalPeerDep, + 'utf-8-validate': optionalPeerDep, + }, + }], + // https://github.com/tajo/react-portal/pull/233 + [`react-portal@*`, { + peerDependencies: { + 'react-dom': `^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0`, + }, + }], + // https://github.com/facebook/create-react-app/pull/9872 + [`react-scripts@<=4.0.1`, { + peerDependencies: { + [`react`]: `*`, + }, + }], + // https://github.com/DevExpress/testcafe/pull/5872 + [`testcafe@<=1.10.1`, { + dependencies: { + '@babel/plugin-transform-for-of': `^7.12.1`, + '@babel/runtime': `^7.12.5`, + }, + }], + // https://github.com/DevExpress/testcafe-legacy-api/pull/51 + [`testcafe-legacy-api@<=4.2.0`, { + dependencies: { + 'testcafe-hammerhead': `^17.0.1`, + 'read-file-relative': `^1.2.0`, + }, + }], + // https://github.com/googleapis/nodejs-firestore/pull/1425 + [`@google-cloud/firestore@<=4.9.3`, { + dependencies: { + protobufjs: `^6.8.6`, + }, + }], + // https://github.com/thinhle-agilityio/gatsby-source-apiserver/pull/58 + [`gatsby-source-apiserver@*`, { + dependencies: { + [`babel-polyfill`]: `^6.26.0`, + }, + }], + // https://github.com/webpack/webpack-cli/pull/2097 + [`@webpack-cli/package-utils@<=1.0.1-alpha.4`, { + dependencies: { + [`cross-spawn`]: `^7.0.3`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/20156 + [`gatsby-remark-prismjs@<3.3.28`, { + dependencies: { + [`lodash`]: `^4`, + }, + }], + // https://github.com/Creatiwity/gatsby-plugin-favicon/pull/65 + [`gatsby-plugin-favicon@*`, { + peerDependencies: { + [`webpack`]: `*`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/28759 + [`gatsby-plugin-sharp@<=4.6.0-next.3`, { + dependencies: { + [`debug`]: `^4.3.1`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/28759 + [`gatsby-react-router-scroll@<=5.6.0-next.0`, { + dependencies: { + [`prop-types`]: `^15.7.2`, + }, + }], + // https://github.com/rebassjs/rebass/pull/934 + [`@rebass/forms@*`, { + dependencies: { + [`@styled-system/should-forward-prop`]: `^5.0.0`, + }, + peerDependencies: { + react: `^16.8.6`, + }, + }], + // https://github.com/rebassjs/rebass/pull/934 + [`rebass@*`, { + peerDependencies: { + react: `^16.8.6`, + }, + }], + // https://github.com/ant-design/react-slick/pull/95 + [`@ant-design/react-slick@<=0.28.3`, { + peerDependencies: { + react: `>=16.0.0`, + }, + }], + // https://github.com/mqttjs/MQTT.js/pull/1266 + [`mqtt@<4.2.7`, { + dependencies: { + duplexify: `^4.1.1`, + }, + }], + // https://github.com/vuetifyjs/vue-cli-plugins/pull/155 + [`vue-cli-plugin-vuetify@<=2.0.3`, { + dependencies: { + semver: `^6.3.0`, + }, + peerDependenciesMeta: { + 'sass-loader': optionalPeerDep, + 'vuetify-loader': optionalPeerDep, + }, + }], + // https://github.com/vuetifyjs/vue-cli-plugins/pull/152 + [`vue-cli-plugin-vuetify@<=2.0.4`, { + dependencies: { + 'null-loader': `^3.0.0`, + }, + }], + // https://github.com/vuetifyjs/vue-cli-plugins/pull/155 + [`@vuetify/cli-plugin-utils@<=0.0.4`, { + dependencies: { + semver: `^6.3.0`, + }, + peerDependenciesMeta: { + 'sass-loader': optionalPeerDep, + }, + }], + // https://github.com/vuejs/vue-cli/pull/6060/files#diff-857cfb6f3e9a676b0de4a00c2c712297068c038a7d5820c133b8d6aa8cceb146R28 + [`@vue/cli-plugin-typescript@<=5.0.0-alpha.0`, { + dependencies: { + 'babel-loader': `^8.1.0`, + }, + }], + // https://github.com/vuejs/vue-cli/pull/6456 + [`@vue/cli-plugin-typescript@<=5.0.0-beta.0`, { + dependencies: { + '@babel/core': `^7.12.16`, + }, + peerDependencies: { + 'vue-template-compiler': `^2.0.0`, + }, + peerDependenciesMeta: { + 'vue-template-compiler': optionalPeerDep, + }, + }], + // https://github.com/apache/cordova-ios/pull/1105 + [`cordova-ios@<=6.3.0`, { + dependencies: { + underscore: `^1.9.2`, + }, + }], + // https://github.com/apache/cordova-lib/pull/871 + [`cordova-lib@<=10.0.1`, { + dependencies: { + underscore: `^1.9.2`, + }, + }], + // https://github.com/creationix/git-node-fs/pull/8 + [`git-node-fs@*`, { + peerDependencies: { + 'js-git': `^0.7.8`, + }, + peerDependenciesMeta: { + 'js-git': optionalPeerDep, + }, + }], + // https://github.com/tj/consolidate.js/pull/339 + [`consolidate@*`, { + peerDependencies: { + velocityjs: `^2.0.1`, + tinyliquid: `^0.2.34`, + 'liquid-node': `^3.0.1`, + jade: `^1.11.0`, + 'then-jade': `*`, + dust: `^0.3.0`, + 'dustjs-helpers': `^1.7.4`, + 'dustjs-linkedin': `^2.7.5`, + swig: `^1.4.2`, + 'swig-templates': `^2.0.3`, + 'razor-tmpl': `^1.3.1`, + atpl: `>=0.7.6`, + liquor: `^0.0.5`, + twig: `^1.15.2`, + ejs: `^3.1.5`, + eco: `^1.1.0-rc-3`, + jazz: `^0.0.18`, + jqtpl: `~1.1.0`, + hamljs: `^0.6.2`, + hamlet: `^0.3.3`, + whiskers: `^0.4.0`, + 'haml-coffee': `^1.14.1`, + 'hogan.js': `^3.0.2`, + templayed: `>=0.2.3`, + handlebars: `^4.7.6`, + underscore: `^1.11.0`, + lodash: `^4.17.20`, + pug: `^3.0.0`, + 'then-pug': `*`, + qejs: `^3.0.5`, + walrus: `^0.10.1`, + mustache: `^4.0.1`, + just: `^0.1.8`, + ect: `^0.5.9`, + mote: `^0.2.0`, + toffee: `^0.3.6`, + dot: `^1.1.3`, + 'bracket-template': `^1.1.5`, + ractive: `^1.3.12`, + nunjucks: `^3.2.2`, + htmling: `^0.0.8`, + 'babel-core': `^6.26.3`, + plates: `~0.4.11`, + 'react-dom': `^16.13.1`, + react: `^16.13.1`, + 'arc-templates': `^0.5.3`, + vash: `^0.13.0`, + slm: `^2.0.0`, + marko: `^3.14.4`, + teacup: `^2.0.0`, + 'coffee-script': `^1.12.7`, + squirrelly: `^5.1.0`, + twing: `^5.0.2`, + }, + peerDependenciesMeta: { + velocityjs: optionalPeerDep, + tinyliquid: optionalPeerDep, + 'liquid-node': optionalPeerDep, + jade: optionalPeerDep, + 'then-jade': optionalPeerDep, + dust: optionalPeerDep, + 'dustjs-helpers': optionalPeerDep, + 'dustjs-linkedin': optionalPeerDep, + swig: optionalPeerDep, + 'swig-templates': optionalPeerDep, + 'razor-tmpl': optionalPeerDep, + atpl: optionalPeerDep, + liquor: optionalPeerDep, + twig: optionalPeerDep, + ejs: optionalPeerDep, + eco: optionalPeerDep, + jazz: optionalPeerDep, + jqtpl: optionalPeerDep, + hamljs: optionalPeerDep, + hamlet: optionalPeerDep, + whiskers: optionalPeerDep, + 'haml-coffee': optionalPeerDep, + 'hogan.js': optionalPeerDep, + templayed: optionalPeerDep, + handlebars: optionalPeerDep, + underscore: optionalPeerDep, + lodash: optionalPeerDep, + pug: optionalPeerDep, + 'then-pug': optionalPeerDep, + qejs: optionalPeerDep, + walrus: optionalPeerDep, + mustache: optionalPeerDep, + just: optionalPeerDep, + ect: optionalPeerDep, + mote: optionalPeerDep, + toffee: optionalPeerDep, + dot: optionalPeerDep, + 'bracket-template': optionalPeerDep, + ractive: optionalPeerDep, + nunjucks: optionalPeerDep, + htmling: optionalPeerDep, + 'babel-core': optionalPeerDep, + plates: optionalPeerDep, + 'react-dom': optionalPeerDep, + react: optionalPeerDep, + 'arc-templates': optionalPeerDep, + vash: optionalPeerDep, + slm: optionalPeerDep, + marko: optionalPeerDep, + teacup: optionalPeerDep, + 'coffee-script': optionalPeerDep, + squirrelly: optionalPeerDep, + twing: optionalPeerDep, + }, + }], + // https://github.com/vuejs/vue-loader/pull/1853 + // https://github.com/vuejs/vue-loader/commit/089473af97077b8e14b3feff48d32d2733ad792c + [`vue-loader@<=16.3.3`, { + peerDependencies: { + '@vue/compiler-sfc': `^3.0.8`, + webpack: `^4.1.0 || ^5.0.0-0`, + }, + peerDependenciesMeta: { + '@vue/compiler-sfc': optionalPeerDep, + }, + }], + // https://github.com/vuejs/vue-loader/pull/1944 + [`vue-loader@^16.7.0`, { + peerDependencies: { + '@vue/compiler-sfc': `^3.0.8`, + vue: `^3.2.13`, + }, + peerDependenciesMeta: { + '@vue/compiler-sfc': optionalPeerDep, + vue: optionalPeerDep, + }, + }], + // https://github.com/salesforce-ux/scss-parser/pull/43 + [`scss-parser@*`, { + dependencies: { + lodash: `^4.17.21`, + }, + }], + // https://github.com/salesforce-ux/query-ast/pull/25 + [`query-ast@*`, { + dependencies: { + lodash: `^4.17.21`, + }, + }], + // https://github.com/reduxjs/redux-thunk/pull/251 + [`redux-thunk@<=2.3.0`, { + peerDependencies: { + redux: `^4.0.0`, + }, + }], + // https://github.com/snowpackjs/snowpack/pull/3556 + [`skypack@<=0.3.2`, { + dependencies: { + tar: `^6.1.0`, + }, + }], + // https://github.com/npm/metavuln-calculator/pull/8 + [`@npmcli/metavuln-calculator@<2.0.0`, { + dependencies: { + 'json-parse-even-better-errors': `^2.3.1`, + }, + }], + // https://github.com/npm/bin-links/pull/17 + [`bin-links@<2.3.0`, { + dependencies: { + 'mkdirp-infer-owner': `^1.0.2`, + }, + }], + // https://github.com/snowpackjs/rollup-plugin-polyfill-node/pull/30 + [`rollup-plugin-polyfill-node@<=0.8.0`, { + peerDependencies: { + rollup: `^1.20.0 || ^2.0.0`, + }, + }], + // https://github.com/snowpackjs/snowpack/pull/3673 + [`snowpack@<3.8.6`, { + dependencies: { + 'magic-string': `^0.25.7`, + }, + }], + // https://github.com/elm-community/elm-webpack-loader/pull/202 + [`elm-webpack-loader@*`, { + dependencies: { + temp: `^0.9.4`, + }, + }], + // https://github.com/winstonjs/winston-transport/pull/58 + [`winston-transport@<=4.4.0`, { + dependencies: { + logform: `^2.2.0`, + }, + }], + // https://github.com/vire/jest-vue-preprocessor/pull/177 + [`jest-vue-preprocessor@*`, { + dependencies: { + '@babel/core': `7.8.7`, + '@babel/template': `7.8.6`, + }, + peerDependencies: { + pug: `^2.0.4`, + }, + peerDependenciesMeta: { + pug: optionalPeerDep, + }, + }], + // https://github.com/rt2zz/redux-persist/pull/1336 + [`redux-persist@*`, { + peerDependencies: { + react: `>=16`, + }, + peerDependenciesMeta: { + react: optionalPeerDep, + }, + }], + // https://github.com/paixaop/node-sodium/pull/159 + [`sodium@>=3`, { + dependencies: { + 'node-gyp': `^3.8.0`, + }, + }], + // https://github.com/gajus/babel-plugin-graphql-tag/pull/63 + [`babel-plugin-graphql-tag@<=3.1.0`, { + peerDependencies: { + graphql: `^14.0.0 || ^15.0.0`, + }, + }], + // https://github.com/microsoft/playwright/pull/8501 + [`@playwright/test@<=1.14.1`, { + dependencies: { + 'jest-matcher-utils': `^26.4.2`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/32954 + ...[ + `babel-plugin-remove-graphql-queries@<3.14.0-next.1`, + `babel-preset-gatsby-package@<1.14.0-next.1`, + `create-gatsby@<1.14.0-next.1`, + `gatsby-admin@<0.24.0-next.1`, + `gatsby-cli@<3.14.0-next.1`, + `gatsby-core-utils@<2.14.0-next.1`, + `gatsby-design-tokens@<3.14.0-next.1`, + `gatsby-legacy-polyfills@<1.14.0-next.1`, + `gatsby-plugin-benchmark-reporting@<1.14.0-next.1`, + `gatsby-plugin-graphql-config@<0.23.0-next.1`, + `gatsby-plugin-image@<1.14.0-next.1`, + `gatsby-plugin-mdx@<2.14.0-next.1`, + `gatsby-plugin-netlify-cms@<5.14.0-next.1`, + `gatsby-plugin-no-sourcemaps@<3.14.0-next.1`, + `gatsby-plugin-page-creator@<3.14.0-next.1`, + `gatsby-plugin-preact@<5.14.0-next.1`, + `gatsby-plugin-preload-fonts@<2.14.0-next.1`, + `gatsby-plugin-schema-snapshot@<2.14.0-next.1`, + `gatsby-plugin-styletron@<6.14.0-next.1`, + `gatsby-plugin-subfont@<3.14.0-next.1`, + `gatsby-plugin-utils@<1.14.0-next.1`, + `gatsby-recipes@<0.25.0-next.1`, + `gatsby-source-shopify@<5.6.0-next.1`, + `gatsby-source-wikipedia@<3.14.0-next.1`, + `gatsby-transformer-screenshot@<3.14.0-next.1`, + `gatsby-worker@<0.5.0-next.1`, + ].map<[string, PackageExtensionData]>(descriptorString => [ + descriptorString, + { + dependencies: { + '@babel/runtime': `^7.14.8`, + }, + }, + ]), + // Originally fixed in https://github.com/gatsbyjs/gatsby/pull/31837 (https://github.com/gatsbyjs/gatsby/commit/6378692d7ec1eb902520720e27aca97e8eb42c21) + // Version updated and added in https://github.com/gatsbyjs/gatsby/pull/32928 + [`gatsby-core-utils@<2.14.0-next.1`, { + dependencies: { + got: `8.3.2`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/32861 + [`gatsby-plugin-gatsby-cloud@<=3.1.0-next.0`, { + dependencies: { + 'gatsby-core-utils': `^2.13.0-next.0`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/31837 + [`gatsby-plugin-gatsby-cloud@<=3.2.0-next.1`, { + peerDependencies: { + webpack: `*`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/31837 + [`babel-plugin-remove-graphql-queries@<=3.14.0-next.1`, { + dependencies: { + 'gatsby-core-utils': `^2.8.0-next.1`, + }, + }], + // https://github.com/gatsbyjs/gatsby/pull/32861 + [`gatsby-plugin-netlify@3.13.0-next.1`, { + dependencies: { + 'gatsby-core-utils': `^2.13.0-next.0`, + }, + }], + // https://github.com/paul-soporan/clipanion-v3-codemod/pull/1 + [`clipanion-v3-codemod@<=0.2.0`, { + peerDependencies: { + jscodeshift: `^0.11.0`, + }, + }], + // https://github.com/FormidableLabs/react-live/pull/180 + [`react-live@*`, { + peerDependencies: { + 'react-dom': `*`, + react: `*`, + }, + }], + // https://github.com/webpack/webpack/pull/11190 + [`webpack@<4.44.1`, { + peerDependenciesMeta: { + 'webpack-cli': optionalPeerDep, + 'webpack-command': optionalPeerDep, + }, + }], + // https://github.com/webpack/webpack/pull/11189 + [`webpack@<5.0.0-beta.23`, { + peerDependenciesMeta: { + 'webpack-cli': optionalPeerDep, + }, + }], + // https://github.com/webpack/webpack-dev-server/pull/2396 + [`webpack-dev-server@<3.10.2`, { + peerDependenciesMeta: { + 'webpack-cli': optionalPeerDep, + }, + }], + // https://github.com/slorber/responsive-loader/pull/1/files + [`@docusaurus/responsive-loader@<1.5.0`, { + peerDependenciesMeta: { + sharp: optionalPeerDep, + jimp: optionalPeerDep, + }, + }], + // https://github.com/import-js/eslint-plugin-import/pull/2283 + [`eslint-module-utils@*`, { + peerDependenciesMeta: { + 'eslint-import-resolver-node': optionalPeerDep, + 'eslint-import-resolver-typescript': optionalPeerDep, + 'eslint-import-resolver-webpack': optionalPeerDep, + '@typescript-eslint/parser': optionalPeerDep, + }, + }], + // https://github.com/import-js/eslint-plugin-import/pull/2283 + [`eslint-plugin-import@*`, { + peerDependenciesMeta: { + '@typescript-eslint/parser': optionalPeerDep, + }, + }], + // https://github.com/GoogleChromeLabs/critters/pull/91 + [`critters-webpack-plugin@<3.0.2`, { + peerDependenciesMeta: { + 'html-webpack-plugin': optionalPeerDep, + }, + }], + // https://github.com/terser/terser/commit/05b23eeb682d732484ad51b19bf528258fd5dc2a + [`terser@<=5.10.0`, { + dependencies: { + acorn: `^8.5.0`, + }, + }], + // https://github.com/facebook/create-react-app/pull/11751 + [`babel-preset-react-app@10.0.x`, { + dependencies: { + '@babel/plugin-proposal-private-property-in-object': `^7.16.0`, + }, + }], + // https://github.com/facebook/create-react-app/pull/11751 + [`eslint-config-react-app@*`, { + peerDependenciesMeta: { + typescript: optionalPeerDep, + }, + }], + // https://github.com/vuejs/eslint-config-typescript/pull/39 + [`@vue/eslint-config-typescript@*`, { + peerDependenciesMeta: { + typescript: optionalPeerDep, + }, + }], + // https://github.com/antfu/unplugin-vue2-script-setup/pull/100 + [`unplugin-vue2-script-setup@<0.9.1`, { + peerDependencies: { + '@vue/composition-api': `^1.4.3`, + '@vue/runtime-dom': `^3.2.26`, + }, + }], + // https://github.com/cypress-io/snapshot/pull/159 + [`@cypress/snapshot@*`, { + dependencies: { + debug: `^3.2.7`, + }, + }], + // https://github.com/wemaintain/auto-relay/pull/95 + [`auto-relay@*`, { + peerDependencies: { + 'reflect-metadata': `^0.1.13`, + }, + }], + // https://github.com/JuniorTour/vue-template-babel-compiler/pull/40 + [`vue-template-babel-compiler@<1.2.0`, { + peerDependencies: { + [`vue-template-compiler`]: `^2.6.0`, + }, + }], + // https://github.com/parcel-bundler/parcel/pull/7977 + [`@parcel/transformer-image@<2.5.0`, { + peerDependencies: { + [`@parcel/core`]: `*`, + }, + }], + // https://github.com/parcel-bundler/parcel/pull/7977 + [`@parcel/transformer-js@<2.5.0`, { + peerDependencies: { + [`@parcel/core`]: `*`, + }, + }], + // Experiment to unblock the usage of Parcel in E2E tests + [`parcel@*`, { + peerDependenciesMeta: { + [`@parcel/core`]: optionalPeerDep, + }, + }], + // This doesn't have an upstream PR. + // The auto types causes two instances of eslint-config-react-app, + // one that has access to @types/eslint and one that doesn't. + // ESLint doesn't allow the same plugin to show up multiple times so it throws. + // As a temporary workaround until create-react-app fixes their ESLint + // setup we make eslint a peer dependency /w fallback. + // TODO: Lock the range when create-react-app fixes their ESLint setup + [`react-scripts@*`, { + peerDependencies: { + [`eslint`]: `*`, + }, + }], +]; diff --git a/yarn.lock b/yarn.lock index 329a1b198856..68126874b6bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5551,6 +5551,16 @@ __metadata: languageName: unknown linkType: soft +"@yarnpkg/extensions@workspace:^, @yarnpkg/extensions@workspace:packages/yarnpkg-extensions": + version: 0.0.0-use.local + resolution: "@yarnpkg/extensions@workspace:packages/yarnpkg-extensions" + dependencies: + "@yarnpkg/core": "workspace:^" + peerDependencies: + "@yarnpkg/core": "workspace:^" + languageName: unknown + linkType: soft + "@yarnpkg/fslib@workspace:^, @yarnpkg/fslib@workspace:packages/yarnpkg-fslib": version: 0.0.0-use.local resolution: "@yarnpkg/fslib@workspace:packages/yarnpkg-fslib" @@ -5788,6 +5798,7 @@ __metadata: "@types/resolve": ^1.17.1 "@yarnpkg/cli": "workspace:^" "@yarnpkg/core": "workspace:^" + "@yarnpkg/extensions": "workspace:^" "@yarnpkg/fslib": "workspace:^" "@yarnpkg/monorepo": "workspace:^" "@yarnpkg/plugin-npm": "workspace:^"