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

chore(deps): update dependency @changesets/cli to v2.27.7 #3004

Merged
merged 4 commits into from
Jul 21, 2024
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"version": "changeset version"
},
"devDependencies": {
"@changesets/cli": "2.26.2",
"@changesets/cli": "2.27.7",
"@ianvs/prettier-plugin-sort-imports": "4.3.1",
"@next/eslint-plugin-next": "14.2.5",
"@rollup/plugin-alias": "^5.0.0",
Expand Down Expand Up @@ -52,7 +52,7 @@
"next": "14.2.5"
},
"patchedDependencies": {
"@changesets/assemble-release-plan@5.2.4": "patches/@changesets__assemble-release-plan@5.2.4.patch",
"@changesets/assemble-release-plan@6.0.3": "patches/@changesets__assemble-release-plan@6.0.3.patch",
"tsup@8.1.0": "patches/tsup@8.0.1.patch"
}
}
Expand Down
44 changes: 0 additions & 44 deletions patches/@changesets__assemble-release-plan@5.2.4.patch

This file was deleted.

22 changes: 22 additions & 0 deletions patches/@changesets__assemble-release-plan@6.0.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js
index 60427457c887f2d72168fecec83d79088c68e3a4..07565f3336140470e8ea0d7c1a9b09586f8e946e 100644
--- a/dist/changesets-assemble-release-plan.cjs.js
+++ b/dist/changesets-assemble-release-plan.cjs.js
@@ -299,7 +299,7 @@ function shouldBumpMajor({
// 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.
// 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.
+ !onlyUpdatePeerDependentsWhenOutOfRange) && ( // bump major only if the dependent doesn't already has a major release.
!releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major");
}

@@ -396,7 +396,7 @@ function matchFixedConstraint(releases, packagesByName, config) {

function getPreVersion(version) {
let parsed = semverParse__default["default"](version);
- let preVersion = parsed.prerelease[1] === undefined ? -1 : parsed.prerelease[1];
+ let preVersion = parsed?.prerelease[1] === undefined ? -1 : parsed.prerelease[1];

if (typeof preVersion !== "number") {
throw new errors.InternalError("preVersion is not a number");
Loading