docs(changelog): merge three orphaned [Unreleased] sections into their releases - #158
Conversation
…r releases scripts/release.sh refuses to run while more than one '## [Unreleased]' heading exists, and there were three — at v0.8.26, v0.8.19 and v0.8.18. None was live: the file is newest-first from v0.20.0 and every one of them sat buried in history, directly beneath the release it described. Each was the curated half of a release whose generated half already had a heading. v0.8.19's version section reads "feat: add data-lvt-target ... (#53)" and the orphan below it reads "`data-lvt-target` attribute for cross-element targeting" — the same change, written twice, under two headings. So the fix is to drop the stray heading rather than retitle it. Retitling produced a second '## [v0.8.19]' in the same file, which is worse than the problem. Nothing was moved, reworded or reattributed; three heading lines were deleted and the content now sits under the version it always belonged to. Attribution checked before touching anything: the orphan above v0.8.18 predicts its content shipped in v0.8.19, and `git tag --contains` on the commit that introduced data-lvt-target returns v0.8.19 as the earliest tag. The duplicate '## [v0.7.0]' heading is pre-existing and left alone. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0166MK1arBYbVZq6wfm8EsQZ
|
Reviewed the diff — it's a clean, low-risk change: 3 deletions, 0 additions, only touching Looks correct:
One gap worth closing before merge: Nit (non-blocking): a couple of the hunks leave 4 consecutive blank lines where there used to be 3 blank lines + heading + 1 blank line. Purely cosmetic (renders the same in Markdown), not worth blocking on. |
scripts/release.shrefuses to run while more than one## [Unreleased]heading exists — a guard added in #154. There were three, and they blocked the release.They were all stale
The file is newest-first from v0.20.0. None of the three was the live section; each sat buried in history at v0.8.26, v0.8.19 and v0.8.18, directly beneath the release it described.
Each was the curated half of a release whose generated half already had a heading. v0.8.19 reads:
The same change, written twice, under two headings.
Why delete the heading rather than retitle it
I tried retitling first. It produces a second
## [v0.8.19]in the same file, which is worse than the problem — so the stray heading goes and the content lands under the version it always belonged to.Nothing was moved, reworded or reattributed. Three heading lines deleted.
Attribution checked, not assumed
The orphan above
[v0.8.18]predicts its content shipped in v0.8.19.git tag --containson the commit that introduceddata-lvt-targetreturns v0.8.19 as the earliest tag. The position rule and the tags agree.The duplicate
## [v0.7.0]heading is pre-existing and left alone — it isn't[Unreleased], so it doesn't block anything.Verification
grep -c '^## \[Unreleased\]'→ 0, and no new duplicate version headings. The pre-commit hook ran lint, 824 jest tests and the browser build.🤖 Generated with Claude Code
https://claude.ai/code/session_0166MK1arBYbVZq6wfm8EsQZ