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

Remove redundant BumpInfo.groupOptions #989

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

ecraig12345
Copy link
Member

@ecraig12345 ecraig12345 commented Sep 10, 2024

The only place BumpInfo.groupOptions was used, it was accessing info redundant with BumpInfo.packageGroups. So remove groupOptions and update usage.

Move the initialization of BumpInfo.packageGroups from a side effect in bumpInPlace to instead be handled during bump info object initialization in gatherBumpInfo, for clarity.

Also add and start using a DeepReadonly type to indicate where objects are not mutated. This is again a step towards untangling the side effect spaghetti.

@ecraig12345 ecraig12345 merged commit 50f483e into master Sep 10, 2024
4 checks passed
@ecraig12345 ecraig12345 deleted the ecraig/bump-info-groups branch September 10, 2024 05:09
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