Skip to content

fix: let changesets own the version, not a hand edit - #20

Merged
AminChirazi merged 1 commit into
mainfrom
fix/let-changesets-own-the-version
Jul 28, 2026
Merged

fix: let changesets own the version, not a hand edit#20
AminChirazi merged 1 commit into
mainfrom
fix/let-changesets-own-the-version

Conversation

@AminChirazi

Copy link
Copy Markdown
Contributor

Catches a wrong version before it publishes. Nothing has shipped yet - npm still shows 0.2.0 - but the open release PR #19 currently proposes 2.0.0.

What happened

In #18 I bumped package.json to 1.0.0 by hand and also added a major changeset. This repo publishes through changesets/action, which computes the next version from the changesets at merge time. So the two compound:

1.0.0 (hand edit) + major (changeset) = 2.0.0

which is what #19 proposes, skipping 1.0.0 entirely.

The fix

package.json goes back to 0.2.0 and the changeset does the work. From 0.2.0, a major bump is 1.0.0 - the version I intended, arrived at by the mechanism the repo actually uses.

Once this lands, the changesets action regenerates #19 against the corrected base and it should propose 1.0.0.

Worth noting for review

This is the second time in this sequence that a late push landed on an already-merged branch, so the fix had to be recovered onto a fresh branch. Both #18 and datamaker-py#26 merged fast enough that follow-up commits were orphaned - see datamaker-py#27 for the other recovery.

I bumped package.json to 1.0.0 by hand AND added a major changeset. This repo
publishes through `changesets/action`, which computes the next version from the
changesets at merge time - so the two together would have taken 1.0.0 to 2.0.0
and published that, skipping 1.0.0 entirely.

package.json goes back to 0.2.0 and the major changeset does the work:
`changeset status` confirms one package to be bumped at major, which from
0.2.0 is 1.0.0. The published result is the same version I intended, arrived
at by the mechanism the repo actually uses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 28, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@AminChirazi
AminChirazi merged commit 807a096 into main Jul 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants