Skip to content

Revert prebump version change, stop passing packageInfos#1333

Merged
ecraig12345 merged 2 commits into
mainfrom
revert-prebump
Jul 20, 2026
Merged

Revert prebump version change, stop passing packageInfos#1333
ecraig12345 merged 2 commits into
mainfrom
revert-prebump

Conversation

@ecraig12345

@ecraig12345 ecraig12345 commented Jul 19, 2026

Copy link
Copy Markdown
Member

On further thought, it's debatable which version prebump ought to receive: that behavior was included in the tests of the original PR #608 (granted may have been a copy-paste), and it's conceivable that someone might want to know which version the package will be bumped to before the bump is written to disk.

This PR reverts to the old behavior with clearer documentation (reverting the fix(?) of #1116).

It also stops implicitly passing packageInfos as a 4th argument to prebump and throws an error if its usage is detected. That argument was never intended to be used, and the temptation of having it there is for users to try to modify it, which may have unintended side effects. If you were using prebump that way, please open an issue and we can figure out a better alternative.

(The prebump hook has no usage that I could find in a github search, so I would have just removed it--but of course it's being used internally, in a reasonable manner in at least one case.)

Also clean up some old change files.

@ecraig12345
ecraig12345 merged commit b3a685f into main Jul 20, 2026
11 checks passed
@ecraig12345
ecraig12345 deleted the revert-prebump branch July 20, 2026 20:10
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.

1 participant