-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(why): allow specifying a version or range #6992
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
Open
remypar5
wants to merge
11
commits into
yarnpkg:master
Choose a base branch
from
remypar5:feat/6859-allow-version-range-for-yarn-why
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+379
−19
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
56f6ec7
feat(why): allow specifying a version or range
remypar5 7855f00
chore: bump versions
remypar5 56fcb00
Merge branch 'master' into feat/6859-allow-version-range-for-yarn-why
remypar5 aff9cfd
Merge branch 'master' into feat/6859-allow-version-range-for-yarn-why
remypar5 60e4cb0
Merge branch 'master' of github.com:yarnpkg/berry into feat/6859-allo…
remypar5 ff997bc
test: use targeted dependencies instead of specific
remypar5 a1ae2eb
refactor: use existing global utility over a local one
remypar5 6a78d2f
test: add failure for invalid range
remypar5 1235171
refactor: simplify and fail fast
remypar5 9770333
chore: remove unused import
remypar5 0e4ec7d
chore: retry after flaky test fail
remypar5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| releases: | ||
| "@yarnpkg/cli": minor | ||
| "@yarnpkg/core": minor | ||
| "@yarnpkg/plugin-essentials": minor | ||
|
|
||
| declined: | ||
| - "@yarnpkg/plugin-catalog" | ||
| - "@yarnpkg/plugin-compat" | ||
| - "@yarnpkg/plugin-constraints" | ||
| - "@yarnpkg/plugin-dlx" | ||
| - "@yarnpkg/plugin-exec" | ||
| - "@yarnpkg/plugin-file" | ||
| - "@yarnpkg/plugin-git" | ||
| - "@yarnpkg/plugin-github" | ||
| - "@yarnpkg/plugin-http" | ||
| - "@yarnpkg/plugin-init" | ||
| - "@yarnpkg/plugin-interactive-tools" | ||
| - "@yarnpkg/plugin-jsr" | ||
| - "@yarnpkg/plugin-link" | ||
| - "@yarnpkg/plugin-nm" | ||
| - "@yarnpkg/plugin-npm" | ||
| - "@yarnpkg/plugin-npm-cli" | ||
| - "@yarnpkg/plugin-pack" | ||
| - "@yarnpkg/plugin-patch" | ||
| - "@yarnpkg/plugin-pnp" | ||
| - "@yarnpkg/plugin-pnpm" | ||
| - "@yarnpkg/plugin-stage" | ||
| - "@yarnpkg/plugin-typescript" | ||
| - "@yarnpkg/plugin-version" | ||
| - "@yarnpkg/plugin-workspace-tools" | ||
| - "@yarnpkg/builder" | ||
| - "@yarnpkg/doctor" | ||
| - "@yarnpkg/extensions" | ||
| - "@yarnpkg/nm" | ||
| - "@yarnpkg/pnpify" | ||
| - "@yarnpkg/sdks" |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.0.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
4 changes: 4 additions & 0 deletions
4
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.0.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "why-no-deps", | ||
| "version": "1.0.0" | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.1.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
4 changes: 4 additions & 0 deletions
4
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.1.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "why-no-deps", | ||
| "version": "1.1.0" | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.1.1/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
4 changes: 4 additions & 0 deletions
4
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-1.1.1/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "why-no-deps", | ||
| "version": "1.1.1" | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-2.0.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
4 changes: 4 additions & 0 deletions
4
packages/acceptance-tests/pkg-tests-fixtures/packages/why-no-deps-2.0.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "why-no-deps", | ||
| "version": "2.0.0" | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.0.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.0.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "why-range-dep", | ||
| "version": "1.0.0", | ||
| "dependencies": { | ||
| "why-no-deps": "^1.0.0" | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.0.1/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.0.1/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "why-range-dep", | ||
| "version": "1.0.1", | ||
| "dependencies": { | ||
| "why-no-deps": "^1.0.1" | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.1.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.1.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "why-range-dep", | ||
| "version": "1.1.0", | ||
| "dependencies": { | ||
| "why-no-deps": "^1.1.0" | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.1.1/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-1.1.1/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "why-range-dep", | ||
| "version": "1.1.1", | ||
| "dependencies": { | ||
| "why-no-deps": "^1.1.1" | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-2.0.0/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = require(`./package.json`); | ||
|
|
||
| for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) { | ||
| for (const dep of Object.keys(module.exports[key] || {})) { | ||
| module.exports[key][dep] = require(dep); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
packages/acceptance-tests/pkg-tests-fixtures/packages/why-range-dep-2.0.0/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "why-range-dep", | ||
| "version": "2.0.0", | ||
| "dependencies": { | ||
| "why-no-deps": "^2.0.0" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.