Skip to content

Commit

Permalink
Update changesets, configure fixed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Sep 26, 2024
1 parent c314e82 commit 1173ea2
Show file tree
Hide file tree
Showing 17 changed files with 110 additions and 2,265 deletions.
9 changes: 5 additions & 4 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"$schema": "https://unpkg.com/@changesets/[email protected].3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"fixed": [["@open-pioneer/*"]],
"linked": [],
"ignore": [],
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"privatePackages": {
"version": false,
"tag": false
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"prepare": "husky",
"ci:test": "pnpm run clean && pnpm run lint && pnpm run check-types && vitest run",
"ci:version": "pnpm changeset version && pnpm exec prettier './src/**/CHANGELOG.md' --write --ignore-path .eslintignore && pnpm install",
"ci:publish": "pnpm run clean && pnpm run build-packages && pnpm publish -r --access public && tag-current-versions"
"ci:publish": "pnpm run clean && pnpm run build-packages && pnpm publish -r --access public && pnpm changeset tag"
},
"pnpm": {
"//": [
Expand Down Expand Up @@ -53,7 +53,7 @@
"ignoreCves": []
},
"patchedDependencies": {
"@changesets/assemble-release-plan@6.0.0": "patches/@changesets__assemble-release-plan@6.0.0.patch"
"@changesets/assemble-release-plan": "patches/@changesets__assemble-release-plan.patch"
},
"peerDependencyRules": {
"allowedVersions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js
index ee5c0f67fabadeb112e9f238d8b144a4d125830f..04e62e3fb543b4f992df606fb0733969d3c451fa 100644
index 4f7b5e5b37bb05874a5c1d8e583e29d4a9593ecf..b37528cb682b5076619d6b6e6c4783f7621c285f 100644
--- a/dist/changesets-assemble-release-plan.cjs.js
+++ b/dist/changesets-assemble-release-plan.cjs.js
@@ -209,7 +209,7 @@ function shouldBumpMajor({
@@ -347,7 +347,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.
+ !onlyUpdatePeerDependentsWhenOutOfRange) && ( // patch: dont bump automatically when peers go out of range, see https://github.com/changesets/changesets/issues/1011
!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 bf5202626a164a7780650d333983c3479b078689..529601b6da9cbd05bc1be0fa5d39a10efd4a67cc 100644
index a327d9e4c709a6698f505d60d8bbf0046d4bde74..e9f3600ef93bb8c3778e3143598948218b834ec4 100644
--- a/dist/changesets-assemble-release-plan.esm.js
+++ b/dist/changesets-assemble-release-plan.esm.js
@@ -198,7 +198,7 @@ function shouldBumpMajor({
@@ -336,7 +336,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(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.
+ !onlyUpdatePeerDependentsWhenOutOfRange) && ( // patch: dont bump automatically when peers go out of range, see https://github.com/changesets/changesets/issues/1011
!releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major");
}

Loading

0 comments on commit 1173ea2

Please sign in to comment.