Skip to content

Breaking: Change min to return the latest patch (but still the minimum major/minor); also, add min-minor and min-patch#375

Draft
DilumAluthge wants to merge 8 commits intomasterfrom
dpa/min
Draft

Breaking: Change min to return the latest patch (but still the minimum major/minor); also, add min-minor and min-patch#375
DilumAluthge wants to merge 8 commits intomasterfrom
dpa/min

Conversation

@DilumAluthge
Copy link
Member

@DilumAluthge DilumAluthge commented Mar 5, 2026

The major/minor will be the minimum, but the patch will be the latest. E.g. julia = "1.10" would lead to e.g. 1.10.11 (not 1.10.0).

Fixes #372

Before this PR:

  • min => 1.10.0

After this PR:

  • min-patch => 1.10.0 (minimum major/minor/patch)
  • min-minor => 1.10.11 (minimum major/minor, latest patch)
  • min => equivalent to min-minor (1.10.11)

The major/minor will be the minimum, but the patch will be the latest. E.g. `julia = "1.10"` would lead to e.g. 1.10.10 (not 1.10.0).
@DilumAluthge DilumAluthge added this to the v3 milestone Mar 5, 2026
@DilumAluthge
Copy link
Member Author

I might post about this on Discourse, to get feedback.

@tpapp
Copy link

tpapp commented Mar 5, 2026

Please link the topic here if you do, though I think this is fairly non-controversial, and more of a bugfix than a breaking change. I am not sure there is a use case for getting 1.x.0 instead of the latest 1.x.y, since the difference should just be bugfixes.

@DilumAluthge
Copy link
Member Author

@DilumAluthge DilumAluthge changed the title Breaking: Change min to return the latest patch Breaking: Change min to return the latest patch (but still the minimum major/minor) Mar 5, 2026
@DilumAluthge DilumAluthge changed the title Breaking: Change min to return the latest patch (but still the minimum major/minor) Breaking: Change min to return the latest patch (but still the minimum major/minor); also, add min-minor and min-patch Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

min, but get the latest patch?

2 participants