Skip to content

fix(release): tidy up auto-generated changelog items#195

Merged
line-o merged 1 commit into
eXist-db:masterfrom
joewiz:fix/changelog-formatting
May 28, 2026
Merged

fix(release): tidy up auto-generated changelog items#195
line-o merged 1 commit into
eXist-db:masterfrom
joewiz:fix/changelog-formatting

Conversation

@joewiz
Copy link
Copy Markdown
Member

@joewiz joewiz commented May 27, 2026

[This PR was co-authored with Claude Code. -Joe]

Three cosmetic bugs surfaced in v3.0.0's bundled repo.xml changelog (visible to users browsing the package's Changelog tab in Dashboard > Package Manager):

  1. Scope rendered awkwardly. fix(documentation): add ngram-index... came out as Fix: documentation: add ngram-index... (double colon, repeated noise). Now: Fix (documentation): add ngram-index....
  2. Hard-wrapped commit bodies broke mid-sentence. A BREAKING CHANGE: footer split across two source lines rendered with a literal newline inside the <li>. Now collapsed to a single space.
  3. Backslash-escapes leaked through. Bodies authored via shell heredocs sometimes carry literal \` pairs from <<'EOF' heredoc handling; stripped now since they're meaningless once they reach HTML.

Verified by re-running update-repo-changelog.js --version=3.0.1 --prev-tag=2.1.1 against the actual v3.0.0..master commit history; the generated <change version="3.0.1"> entry now reads cleanly:

<change version="3.0.1">
    <ul xmlns="http://www.w3.org/1999/xhtml">
        <li>Breaking change: builds now require Node.js (lts/*) instead of Maven. Use `npm ci &amp;&amp; npm run build` to produce the XAR.</li>
        <li>Fix (documentation): add ngram-index to the list of indexes</li>
    </ul>
</change>

(&amp;&amp; is the XML-escaped form; the in-app changelog renders it as the literal &&.)

When this merges, semantic-release will tag v3.0.1 (the fix: prefix triggers a patch bump). Since master already has the README update from #192, v3.0.1's .xar will pick that up automatically — bundled changelog and bundled README will both be current, ready to publish to exist-db.org public-repo.

Three small cleanups in scripts/update-repo-changelog.js after seeing
how the v3.0.0 changelog rendered:

- Render scope as a parenthesised qualifier on the prefix
  (e.g. "Fix (documentation): add ngram-index...") instead of the
  awkward double-colon "Fix: documentation: add ngram-index..."
- Collapse hard-wrapped newlines from commit bodies into single spaces
  so a BREAKING CHANGE footer doesn't render with a line break in the
  middle of the sentence inside an <li>
- Strip backslash-escapes that immediately precede backticks. Commit
  bodies authored via shell heredocs sometimes carry literal `\`` pairs
  that are meaningless once the text lands in an HTML list item

Closes #TBD-followup-of-v3.0.0-release
@joewiz joewiz force-pushed the fix/changelog-formatting branch from ca1b722 to a3fe260 Compare May 27, 2026 13:19
@line-o line-o merged commit 3631977 into eXist-db:master May 28, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants