Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a deprecation notice for --registry #603

Merged
merged 4 commits into from
Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
422 changes: 212 additions & 210 deletions .pnp.js

Large diffs are not rendered by default.

Binary file removed .yarn/cache/clipanion-npm-2.1.4-24e4437ef5-1.zip
Binary file not shown.
Binary file added .yarn/cache/clipanion-npm-2.1.5-aef0ebbd62-1.zip
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"jest": "^24.9.0",
"jest-environment-node": "^24.5.0",
"jest-junit": "^5.2.0",
"micromatch": "^4.0.2",
"typescript": "next"
},
"dependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@yarnpkg/plugin-constraints",
"version": "2.0.0-rc.7",
"nextVersion": {
"nonce": "5301940434866055"
"nonce": "7585875648344119"
},
"repository": {
"type": "git",
Expand All @@ -11,7 +11,7 @@
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"inquirer": "^6.2.0",
"lodash": "^4.17.15",
"node-emoji": "^1.8.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-dlx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "2.0.0-rc.7",
"nextVersion": {
"semver": "2.0.0-rc.8",
"nonce": "3160882433942277"
"nonce": "74637455747283"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"tmp": "^0.1.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "2.0.0-rc.14",
"nextVersion": {
"semver": "2.0.0-rc.15",
"nonce": "5564259159637473"
"nonce": "2243492182071963"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
"@yarnpkg/parsers": "workspace:2.0.0-rc.6",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"inquirer": "^6.2.0",
"semver": "^5.6.0",
"treeify": "^1.1.0",
Expand Down
20 changes: 19 additions & 1 deletion packages/plugin-essentials/sources/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default class YarnCommand extends BaseCommand {
@Command.Boolean(`--ignore-engines`, {hidden: true})
ignoreEngines?: boolean;

@Command.String(`--registry`, {hidden: true})
registry?: string;

@Command.Boolean(`--inline-builds`)
inlineBuilds?: boolean;

Expand Down Expand Up @@ -115,7 +118,22 @@ export default class YarnCommand extends BaseCommand {
}
}

// Thie preferOffline flag doesn't make much sense with our architecture.
// The registry flag isn't supported anymore because it makes little sense
// to use a registry for a single install. You instead want to configure it
// for all installs inside a project, so through the .yarnrc.yml file. Note
// that if absolutely necessary, the old behavior can be emulated by adding
// the YARN_NPM_REGISTRY_SERVER variable to the environment.
if (typeof this.registry !== `undefined`) {
const exitCode = await reportDeprecation(`The --registry option is deprecated; prefer setting npmRegistryServer in your .yarnrc.yml file`, {
error: false,
});

if (typeof exitCode !== `undefined`) {
return exitCode;
}
}

// The preferOffline flag doesn't make much sense with our architecture.
// It would require the fetchers to also act as resolvers, which is
// doable but quirky. Since a similar behavior is available via the
// --cached flag in yarn add, I prefer to move it outside of the core and
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.10",
"nextVersion": {
"semver": "2.0.0-rc.11",
"nonce": "3191441279484977"
"nonce": "5750973026892119"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.7",
"nextVersion": {
"semver": "2.0.0-rc.8",
"nonce": "8374734736462359"
"nonce": "5650609414009539"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.10",
"nextVersion": {
"semver": "2.0.0-rc.11",
"nonce": "8852017617396473"
"nonce": "3829861458962891"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.7",
"nextVersion": {
"semver": "2.0.0-rc.8",
"nonce": "5124917051306301"
"nonce": "4076295208483177"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.6",
"nextVersion": {
"semver": "2.0.0-rc.7",
"nonce": "6640478481937115"
"nonce": "8941610679694589"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "@yarnpkg/plugin-init",
"version": "2.0.0-rc.7",
"nextVersion": {
"nonce": "7756168890256573"
"semver": "2.0.0-rc.8",
"nonce": "7170250290609391"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"@yarnpkg/json-proxy": "workspace:2.0.0-rc.4",
"clipanion": "^2.1.4"
"clipanion": "^2.1.5"
},
"peerDependencies": {
"@yarnpkg/cli": "^2.0.0-rc.14",
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-interactive-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@yarnpkg/plugin-interactive-tools",
"version": "2.0.0-rc.7",
"nextVersion": {
"nonce": "8056885300016611"
"semver": "2.0.0-rc.8",
"nonce": "169745633945081"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/libui": "workspace:2.0.0-rc.1",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"diff": "^4.0.1",
"ink": "^2.3.0",
"react": "^16.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.6",
"nextVersion": {
"semver": "2.0.0-rc.7",
"nonce": "8682417663509609"
"nonce": "2244242492382277"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-npm-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@yarnpkg/plugin-npm-cli",
"version": "2.0.0-rc.7",
"nextVersion": {
"nonce": "6402142169993559"
"semver": "2.0.0-rc.8",
"nonce": "8015973604047221"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"inquirer": "^6.2.0",
"ssri": "^6.0.1",
"yup": "^0.27.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.9",
"nextVersion": {
"semver": "2.0.0-rc.10",
"nonce": "7377922503534113"
"nonce": "1545390344234337"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "2.0.0-rc.10",
"nextVersion": {
"semver": "2.0.0-rc.11",
"nonce": "8517283940162395"
"nonce": "3221478822395571"
},
"main": "./sources/index.ts",
"dependencies": {
"@types/tar-stream": "1.6.0",
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"micromatch": "^4.0.2",
"tar-stream": "^2.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "2.0.0-rc.10",
"nextVersion": {
"semver": "2.0.0-rc.11",
"nonce": "3307771289272475"
"nonce": "2728164957464611"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"@yarnpkg/plugin-stage": "workspace:2.0.0-rc.10",
"@yarnpkg/pnp": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4"
"clipanion": "^2.1.5"
},
"peerDependencies": {
"@yarnpkg/cli": "^2.0.0-rc.14",
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-stage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@yarnpkg/plugin-stage",
"version": "2.0.0-rc.10",
"nextVersion": {
"nonce": "5446961221828219"
"semver": "2.0.0-rc.11",
"nonce": "1409225200896619"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4"
"clipanion": "^2.1.5"
},
"peerDependencies": {
"@yarnpkg/cli": "^2.0.0-rc.14",
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@yarnpkg/plugin-typescript",
"version": "2.0.0-rc.8",
"nextVersion": {
"nonce": "7069083052887039"
"semver": "2.0.0-rc.9",
"nonce": "753053801153065"
},
"main": "./sources/index.ts",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "2.0.0-rc.12",
"nextVersion": {
"semver": "2.0.0-rc.13",
"nonce": "7412603642868411"
"nonce": "2380948915725565"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"ink": "^2.3.0",
"react": "^16.8.4",
"semver": "^5.6.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-workspace-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@yarnpkg/plugin-workspace-tools",
"version": "2.0.0-rc.9",
"nextVersion": {
"nonce": "6690372440243295"
"semver": "2.0.0-rc.10",
"nonce": "7301549269229877"
},
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"p-limit": "^2.2.0",
"yup": "^0.27.0"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/yarnpkg-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@yarnpkg/builder",
"version": "2.0.0-rc.12",
"nextVersion": {
"nonce": "5176271151140161"
"semver": "2.0.0-rc.13",
"nonce": "8820164288706743"
},
"bin": "./sources/boot-dev.js",
"dependencies": {
Expand All @@ -15,7 +16,7 @@
"babel-loader": "^8.0.6",
"babel-plugin-lazy-import": "arcanis/babel-plugin-lazy-import",
"chalk": "^2.4.1",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"filesize": "^4.1.2",
"pnp-webpack-plugin": "^1.4.3",
"semver": "^5.6.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/yarnpkg-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "2.0.0-rc.6",
"nextVersion": {
"semver": "2.0.0-rc.7",
"nonce": "7690951356767357"
"nonce": "2013900552142069"
},
"bin": "./sources/boot-cli-dev.js",
"dependencies": {
"@yarnpkg/cli": "workspace:2.0.0-rc.18",
"@yarnpkg/core": "workspace:2.0.0-rc.14",
"@yarnpkg/fslib": "workspace:2.0.0-rc.11",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"globby": "^10.0.1",
"micromatch": "^4.0.2",
"p-limit": "^2.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/yarnpkg-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.18",
"nextVersion": {
"semver": "2.0.0-rc.19",
"nonce": "3796400125088331"
"nonce": "8372198198239853"
},
"main": "./sources/index.ts",
"dependencies": {
Expand All @@ -25,7 +25,7 @@
"@yarnpkg/plugin-version": "workspace:2.0.0-rc.12",
"@yarnpkg/shell": "workspace:2.0.0-rc.4",
"chalk": "^2.4.1",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"promise.prototype.finally": "^3.1.1",
"semver": "^5.6.0",
"tmp": "^0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/yarnpkg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-rc.14",
"nextVersion": {
"semver": "2.0.0-rc.15",
"nonce": "1547313522643507"
"nonce": "7573282563559685"
},
"main": "./sources/index.ts",
"sideEffects": false,
Expand All @@ -16,7 +16,7 @@
"agentkeepalive": "^4.0.2",
"camelcase": "^5.3.1",
"chalk": "^2.4.1",
"clipanion": "^2.1.4",
"clipanion": "^2.1.5",
"cross-spawn": "^6.0.5",
"globby": "^10.0.1",
"got": "^9.2.2",
Expand Down
Loading