Skip to content

Commit d398eb7

Browse files
authored
fix: prevent 0.x minor bumps from triggering major in dependents (#447)
Changesets treats a minor bump in 0.x as breaking (per semver), which caused plugins with emdash as a peer dep to jump to 1.0.0 in the release PR. Fix by: - Adding updateInternalDependents: out-of-range so workspace:* deps are never considered out of range - Adding onlyUpdatePeerDependentsWhenOutOfRange for the same reason - Moving emdash from dependencies to peerDependencies in atproto, audit-log, and webhook-notifier to match the other plugins
1 parent 80a895b commit d398eb7

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.changeset/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"baseBranch": "main",
1414
"updateInternalDependencies": "minor",
1515
"bumpVersionsWithWorkspaceProtocolOnly": true,
16+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
17+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
18+
"updateInternalDependents": "out-of-range"
19+
},
1620
"ignore": [
1721
"@emdash-cms/blocks-playground",
1822
"@emdash-cms/demo-cloudflare",

packages/plugins/atproto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
"author": "Matt Kane",
2828
"license": "MIT",
29-
"dependencies": {
29+
"peerDependencies": {
3030
"emdash": "workspace:*"
3131
},
3232
"devDependencies": {

packages/plugins/audit-log/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"author": "Matt Kane",
2626
"license": "MIT",
27-
"dependencies": {
27+
"peerDependencies": {
2828
"emdash": "workspace:*"
2929
},
3030
"devDependencies": {

packages/plugins/webhook-notifier/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"author": "Matt Kane",
2626
"license": "MIT",
27-
"dependencies": {
27+
"peerDependencies": {
2828
"emdash": "workspace:*"
2929
},
3030
"devDependencies": {

0 commit comments

Comments
 (0)