Skip to content

Commit b3715f8

Browse files
authored
Adds a deprecation notice for --registry (#603)
* Adds a deprecation notice for --registry * Versions
1 parent 86afc2b commit b3715f8

File tree

29 files changed

+297
-268
lines changed

29 files changed

+297
-268
lines changed

.pnp.js

Lines changed: 212 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-19.7 KB
Binary file not shown.
19.9 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"jest": "^24.9.0",
7878
"jest-environment-node": "^24.5.0",
7979
"jest-junit": "^5.2.0",
80+
"micromatch": "^4.0.2",
8081
"typescript": "next"
8182
},
8283
"dependenciesMeta": {

packages/plugin-constraints/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@yarnpkg/plugin-constraints",
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
5-
"nonce": "5301940434866055"
5+
"nonce": "7585875648344119"
66
},
77
"repository": {
88
"type": "git",
@@ -11,7 +11,7 @@
1111
"main": "./sources/index.ts",
1212
"dependencies": {
1313
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
14-
"clipanion": "^2.1.4",
14+
"clipanion": "^2.1.5",
1515
"inquirer": "^6.2.0",
1616
"lodash": "^4.17.15",
1717
"node-emoji": "^1.8.1",

packages/plugin-dlx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
55
"semver": "2.0.0-rc.8",
6-
"nonce": "3160882433942277"
6+
"nonce": "74637455747283"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
1010
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
1111
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
12-
"clipanion": "^2.1.4",
12+
"clipanion": "^2.1.5",
1313
"tmp": "^0.1.0"
1414
},
1515
"peerDependencies": {

packages/plugin-essentials/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "2.0.0-rc.14",
44
"nextVersion": {
55
"semver": "2.0.0-rc.15",
6-
"nonce": "5564259159637473"
6+
"nonce": "2243492182071963"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
1010
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
1111
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
1212
"@yarnpkg/parsers": "workspace:2.0.0-rc.6",
13-
"clipanion": "^2.1.4",
13+
"clipanion": "^2.1.5",
1414
"inquirer": "^6.2.0",
1515
"semver": "^5.6.0",
1616
"treeify": "^1.1.0",

packages/plugin-essentials/sources/commands/install.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export default class YarnCommand extends BaseCommand {
2727
@Command.Boolean(`--ignore-engines`, {hidden: true})
2828
ignoreEngines?: boolean;
2929

30+
@Command.String(`--registry`, {hidden: true})
31+
registry?: string;
32+
3033
@Command.Boolean(`--inline-builds`)
3134
inlineBuilds?: boolean;
3235

@@ -115,7 +118,22 @@ export default class YarnCommand extends BaseCommand {
115118
}
116119
}
117120

118-
// Thie preferOffline flag doesn't make much sense with our architecture.
121+
// The registry flag isn't supported anymore because it makes little sense
122+
// to use a registry for a single install. You instead want to configure it
123+
// for all installs inside a project, so through the .yarnrc.yml file. Note
124+
// that if absolutely necessary, the old behavior can be emulated by adding
125+
// the YARN_NPM_REGISTRY_SERVER variable to the environment.
126+
if (typeof this.registry !== `undefined`) {
127+
const exitCode = await reportDeprecation(`The --registry option is deprecated; prefer setting npmRegistryServer in your .yarnrc.yml file`, {
128+
error: false,
129+
});
130+
131+
if (typeof exitCode !== `undefined`) {
132+
return exitCode;
133+
}
134+
}
135+
136+
// The preferOffline flag doesn't make much sense with our architecture.
119137
// It would require the fetchers to also act as resolvers, which is
120138
// doable but quirky. Since a similar behavior is available via the
121139
// --cached flag in yarn add, I prefer to move it outside of the core and

packages/plugin-exec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.10",
44
"nextVersion": {
55
"semver": "2.0.0-rc.11",
6-
"nonce": "3191441279484977"
6+
"nonce": "5750973026892119"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
55
"semver": "2.0.0-rc.8",
6-
"nonce": "8374734736462359"
6+
"nonce": "5650609414009539"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-git/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.10",
44
"nextVersion": {
55
"semver": "2.0.0-rc.11",
6-
"nonce": "8852017617396473"
6+
"nonce": "3829861458962891"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
55
"semver": "2.0.0-rc.8",
6-
"nonce": "5124917051306301"
6+
"nonce": "4076295208483177"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-http/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.6",
44
"nextVersion": {
55
"semver": "2.0.0-rc.7",
6-
"nonce": "6640478481937115"
6+
"nonce": "8941610679694589"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-init/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"name": "@yarnpkg/plugin-init",
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
5-
"nonce": "7756168890256573"
5+
"semver": "2.0.0-rc.8",
6+
"nonce": "7170250290609391"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {
910
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
1011
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
11-
"clipanion": "^2.1.4"
12+
"clipanion": "^2.1.5"
1213
},
1314
"peerDependencies": {
1415
"@yarnpkg/cli": "^2.0.0-rc.14",

packages/plugin-interactive-tools/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "@yarnpkg/plugin-interactive-tools",
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
5-
"nonce": "8056885300016611"
5+
"semver": "2.0.0-rc.8",
6+
"nonce": "169745633945081"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {
910
"@yarnpkg/libui": "workspace:2.0.0-rc.1",
10-
"clipanion": "^2.1.4",
11+
"clipanion": "^2.1.5",
1112
"diff": "^4.0.1",
1213
"ink": "^2.3.0",
1314
"react": "^16.8.4"

packages/plugin-link/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.6",
44
"nextVersion": {
55
"semver": "2.0.0-rc.7",
6-
"nonce": "8682417663509609"
6+
"nonce": "2244242492382277"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-npm-cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "@yarnpkg/plugin-npm-cli",
33
"version": "2.0.0-rc.7",
44
"nextVersion": {
5-
"nonce": "6402142169993559"
5+
"semver": "2.0.0-rc.8",
6+
"nonce": "8015973604047221"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {
910
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
10-
"clipanion": "^2.1.4",
11+
"clipanion": "^2.1.5",
1112
"inquirer": "^6.2.0",
1213
"ssri": "^6.0.1",
1314
"yup": "^0.27.0"

packages/plugin-npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.9",
44
"nextVersion": {
55
"semver": "2.0.0-rc.10",
6-
"nonce": "7377922503534113"
6+
"nonce": "1545390344234337"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {

packages/plugin-pack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "2.0.0-rc.10",
44
"nextVersion": {
55
"semver": "2.0.0-rc.11",
6-
"nonce": "8517283940162395"
6+
"nonce": "3221478822395571"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
1010
"@types/tar-stream": "1.6.0",
1111
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
12-
"clipanion": "^2.1.4",
12+
"clipanion": "^2.1.5",
1313
"micromatch": "^4.0.2",
1414
"tar-stream": "^2.0.1"
1515
},

packages/plugin-pnp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "2.0.0-rc.10",
44
"nextVersion": {
55
"semver": "2.0.0-rc.11",
6-
"nonce": "3307771289272475"
6+
"nonce": "2728164957464611"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
1010
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
1111
"@yarnpkg/plugin-stage": "workspace:2.0.0-rc.10",
1212
"@yarnpkg/pnp": "workspace:2.0.0-rc.11",
13-
"clipanion": "^2.1.4"
13+
"clipanion": "^2.1.5"
1414
},
1515
"peerDependencies": {
1616
"@yarnpkg/cli": "^2.0.0-rc.14",

packages/plugin-stage/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "@yarnpkg/plugin-stage",
33
"version": "2.0.0-rc.10",
44
"nextVersion": {
5-
"nonce": "5446961221828219"
5+
"semver": "2.0.0-rc.11",
6+
"nonce": "1409225200896619"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {
910
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
10-
"clipanion": "^2.1.4"
11+
"clipanion": "^2.1.5"
1112
},
1213
"peerDependencies": {
1314
"@yarnpkg/cli": "^2.0.0-rc.14",

packages/plugin-typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@yarnpkg/plugin-typescript",
33
"version": "2.0.0-rc.8",
44
"nextVersion": {
5-
"nonce": "7069083052887039"
5+
"semver": "2.0.0-rc.9",
6+
"nonce": "753053801153065"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {

packages/plugin-version/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "2.0.0-rc.12",
44
"nextVersion": {
55
"semver": "2.0.0-rc.13",
6-
"nonce": "7412603642868411"
6+
"nonce": "2380948915725565"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
1010
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
11-
"clipanion": "^2.1.4",
11+
"clipanion": "^2.1.5",
1212
"ink": "^2.3.0",
1313
"react": "^16.8.4",
1414
"semver": "^5.6.0",

packages/plugin-workspace-tools/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "@yarnpkg/plugin-workspace-tools",
33
"version": "2.0.0-rc.9",
44
"nextVersion": {
5-
"nonce": "6690372440243295"
5+
"semver": "2.0.0-rc.10",
6+
"nonce": "7301549269229877"
67
},
78
"main": "./sources/index.ts",
89
"dependencies": {
910
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
10-
"clipanion": "^2.1.4",
11+
"clipanion": "^2.1.5",
1112
"p-limit": "^2.2.0",
1213
"yup": "^0.27.0"
1314
},

packages/yarnpkg-builder/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@yarnpkg/builder",
33
"version": "2.0.0-rc.12",
44
"nextVersion": {
5-
"nonce": "5176271151140161"
5+
"semver": "2.0.0-rc.13",
6+
"nonce": "8820164288706743"
67
},
78
"bin": "./sources/boot-dev.js",
89
"dependencies": {
@@ -15,7 +16,7 @@
1516
"babel-loader": "^8.0.6",
1617
"babel-plugin-lazy-import": "arcanis/babel-plugin-lazy-import",
1718
"chalk": "^2.4.1",
18-
"clipanion": "^2.1.4",
19+
"clipanion": "^2.1.5",
1920
"filesize": "^4.1.2",
2021
"pnp-webpack-plugin": "^1.4.3",
2122
"semver": "^5.6.0",

packages/yarnpkg-check/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "2.0.0-rc.6",
44
"nextVersion": {
55
"semver": "2.0.0-rc.7",
6-
"nonce": "7690951356767357"
6+
"nonce": "2013900552142069"
77
},
88
"bin": "./sources/boot-cli-dev.js",
99
"dependencies": {
1010
"@yarnpkg/cli": "workspace:2.0.0-rc.18",
1111
"@yarnpkg/core": "workspace:2.0.0-rc.14",
1212
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
13-
"clipanion": "^2.1.4",
13+
"clipanion": "^2.1.5",
1414
"globby": "^10.0.1",
1515
"micromatch": "^4.0.2",
1616
"p-limit": "^2.2.0",

packages/yarnpkg-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.18",
44
"nextVersion": {
55
"semver": "2.0.0-rc.19",
6-
"nonce": "3796400125088331"
6+
"nonce": "8372198198239853"
77
},
88
"main": "./sources/index.ts",
99
"dependencies": {
@@ -25,7 +25,7 @@
2525
"@yarnpkg/plugin-version": "workspace:2.0.0-rc.12",
2626
"@yarnpkg/shell": "workspace:2.0.0-rc.4",
2727
"chalk": "^2.4.1",
28-
"clipanion": "^2.1.4",
28+
"clipanion": "^2.1.5",
2929
"promise.prototype.finally": "^3.1.1",
3030
"semver": "^5.6.0",
3131
"tmp": "^0.1.0",

packages/yarnpkg-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0-rc.14",
44
"nextVersion": {
55
"semver": "2.0.0-rc.15",
6-
"nonce": "1547313522643507"
6+
"nonce": "7573282563559685"
77
},
88
"main": "./sources/index.ts",
99
"sideEffects": false,
@@ -16,7 +16,7 @@
1616
"agentkeepalive": "^4.0.2",
1717
"camelcase": "^5.3.1",
1818
"chalk": "^2.4.1",
19-
"clipanion": "^2.1.4",
19+
"clipanion": "^2.1.5",
2020
"cross-spawn": "^6.0.5",
2121
"globby": "^10.0.1",
2222
"got": "^9.2.2",

0 commit comments

Comments
 (0)