Skip to content

chore(release): date 0.5.0 - #32

Merged
jonyoder merged 1 commit into
mainfrom
release/0.5.0
Aug 10, 2026
Merged

jonyoder merged 1 commit into
mainfrom
release/0.5.0

Conversation

@jonyoder

Copy link
Copy Markdown
Collaborator

Dates [Unreleased] as 0.5.0 and prepares the tag. Changelog only, no code.

Why 0.5.0 and not 0.4.1

0.5.0 carries Breaking changes, and while the major version is 0 this module ships breaking changes in a minor bump. The headline is a correctness fix to v0.4.0 itself.

What this release contains

Three merged PRs:

⚠️ v0.4.0 shipped a padding bug. This fixes it.

Anyone on v0.4.0 should upgrade. Its padVersion zero-padding loops used for i := 0; i < len(left)-len(right); i++, whose bound shrinks as the slice grows, so they appended ⌈gap/2⌉ zeros instead of gap. Measured against pypa/packaging 26.2 over an 82-row oracle sweeping gaps of 1–4 in both directions: v0.4.0 diverges on 30 of 82 cases; this release on 0.

Two consequences worth stating plainly:

  • !=7.0.0.* matched 7, where the reference excludes it — a repository server would serve a version pip refuses.
  • v0.4.0 also introduced a regression: ==0.0.0.* matched 1!1.0 where the previous release correctly did not, because versionSplit did not prepend the epoch the way upstream's _version_split does. v0.4.0's notes described those cases as a pre-existing epoch divergence "merely exposed"; that was wrong, and the entry in this release corrects it.

The bug survived because ⌈1/2⌉ == 1, so a one-segment gap is correct by accident — and every test case written for it used a one-segment gap.

Verification

Full suite green on main at c4ebad6; conformance is 2,105 subtests with 0 failing. gofmt clean under both the CI-pinned Go 1.25 and local 1.26. golangci-lint clean from the module root.

[Unreleased] contents were confirmed genuinely unreleased before dating, by diffing v0.4.0..main over CHANGELOG.md — it adds exactly the nine subheadings now dated as 0.5.0, so nothing already-tagged is re-dated.

The Previously undocumented, shipped in 0.1.0 subsection stays inside 0.5.0 deliberately: v0.1.0 is tagged and immutable, so the documentation of those two changes ships now, which is what the date records.

🤖 Generated with Claude Code

Dates `[Unreleased]` as `0.5.0` and adds its compare link. Verified against
`git diff v0.4.0..main -- CHANGELOG.md` that the section contains exactly the
nine subheadings added since that tag, so no already-published content is
re-dated.

Breaking, because the release corrects a padding defect in v0.4.0 itself:
30 of 82 oracle cases diverged from pypa/packaging 26.2, now 0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jonyoder
jonyoder merged commit f51585e into main Aug 10, 2026
2 checks passed
@jonyoder
jonyoder deleted the release/0.5.0 branch August 10, 2026 18:30
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