build_section piped every changeset body through `tr '\n' ' '`. A multi-line changeset came out as one paragraph, so nested bullets rendered as inline " - " runs and a whole release read as a single unbroken block — v0.3.0 was one ~4 KB bullet. The renderer is now Ludic rather than a shell one-liner. A section is grouped by conventional-commit type (Features, Fixes, Performance, ...), each changeset is one bullet, and continuation lines are indented two spaces so nested lists and paragraphs stay inside their item. Bullets are sorted within a group, so cutting the same release twice produces the same text. Also: - `x release --dry-run` renders the pending section to stdout and touches nothing, so a release can be read before it is cut. - `x changelog-render` re-renders a section from a directory of changesets, and `x changelog-section` prints one release's section back out of CHANGELOG.md. - The v0.1.0 and v0.3.0 sections are re-rendered with the former, from the changesets recovered at each tag's parent commit; the bullet counts (6 and 25) and word multisets are unchanged. v0.2.0 is left alone: it carries a hand-written summary and topical subheadings, and regenerating it would have replaced curation with raw changeset dumps. The file header now says that a section may carry such a summary, since it previously claimed released sections are never hand-edited. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
14 lines
795 B
Markdown
14 lines
795 B
Markdown
bump: minor
|
|
type: fix
|
|
`x release` keeps a changeset's markdown intact. Bodies used to go through
|
|
`tr '\n' ' '`, which flattened every multi-line changeset into one paragraph —
|
|
nested bullets came out as inline `" - "` runs and a release read as a single
|
|
unbroken wall of text. A section is now grouped by change type (**Features**,
|
|
**Fixes**, **Performance**, …) with one bullet per changeset and continuation
|
|
lines indented to stay inside it.
|
|
|
|
- `x release --dry-run` renders the next section to stdout and writes nothing,
|
|
so a release can be read before it is cut.
|
|
- `x changelog-section <version>` prints one release's section from
|
|
`CHANGELOG.md`; `x changelog-render` re-renders a section from a directory of
|
|
changesets. The v0.1.0 and v0.3.0 sections were re-rendered with these.
|