-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: patch @changesets/assemble-release-plan
- Loading branch information
1 parent
10f0afa
commit 12f3a94
Showing
4 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,38 @@ | ||
diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js | ||
index 4f7b5e5b37bb05874a5c1d8e583e29d4a9593ecf..9dc53e5c0a612e5adcd97a06571b50a605fd3a83 100644 | ||
--- a/dist/changesets-assemble-release-plan.cjs.js | ||
+++ b/dist/changesets-assemble-release-plan.cjs.js | ||
@@ -345,7 +345,7 @@ function shouldBumpMajor({ | ||
onlyUpdatePeerDependentsWhenOutOfRange | ||
}) { | ||
// we check if it is a peerDependency because if it is, our dependent bump type might need to be major. | ||
- return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. | ||
+ return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && nextRelease.type !== "minor" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. | ||
// 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. | ||
!onlyUpdatePeerDependentsWhenOutOfRange || !semverSatisfies__default["default"](incrementVersion(nextRelease, preInfo), versionRange)) && ( // bump major only if the dependent doesn't already has a major release. | ||
!releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major"); | ||
diff --git a/dist/changesets-assemble-release-plan.esm.js b/dist/changesets-assemble-release-plan.esm.js | ||
index a327d9e4c709a6698f505d60d8bbf0046d4bde74..773be3b1baf72a6a154347fe78a5a175ce6323b5 100644 | ||
--- a/dist/changesets-assemble-release-plan.esm.js | ||
+++ b/dist/changesets-assemble-release-plan.esm.js | ||
@@ -334,7 +334,7 @@ function shouldBumpMajor({ | ||
onlyUpdatePeerDependentsWhenOutOfRange | ||
}) { | ||
// we check if it is a peerDependency because if it is, our dependent bump type might need to be major. | ||
- return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. | ||
+ return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && nextRelease.type !== "minor" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. | ||
// 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. | ||
!onlyUpdatePeerDependentsWhenOutOfRange || !semverSatisfies(incrementVersion(nextRelease, preInfo), versionRange)) && ( // bump major only if the dependent doesn't already has a major release. | ||
!releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major"); | ||
diff --git a/src/determine-dependents.ts b/src/determine-dependents.ts | ||
index 4fc6508482d1a6e3ac1af875e1ac1c15f7555fbc..71c50d4b4be64316681eb633e5be1afb3aeac8cb 100644 | ||
--- a/src/determine-dependents.ts | ||
+++ b/src/determine-dependents.ts | ||
@@ -234,6 +234,7 @@ function shouldBumpMajor({ | ||
depType === "peerDependencies" && | ||
nextRelease.type !== "none" && | ||
nextRelease.type !== "patch" && | ||
+ nextRelease.type !== "minor" && | ||
// 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. | ||
// 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. | ||
(!onlyUpdatePeerDependentsWhenOutOfRange || |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.