Changelog Styles Worth Studying

Changelogs vary wildly between projects, from a single line per release to multi-page migration essays. There is no one right style, but there are styles that serve readers better than others. This showcase describes five recognisable approaches, each with a short illustrative excerpt we wrote for a hypothetical package, and notes on what makes it work or fail.

Style 1: the Keep a Changelog file

A CHANGELOG.md in the repository, newest release first, with changes grouped under fixed headings. The Keep a Changelog project documents the convention: Added, Changed, Deprecated, Removed, Fixed and Security, plus an Unreleased section at the top.

## [2.4.0] - YYYY-MM-DD
### Added
- `parse()` accepts an optional `strict` flag.
### Deprecated
- `parseLoose()`; use `parse(input, { strict: false })`. Removal planned for 3.0.0.
### Fixed
- Leap-day inputs no longer shift by one day in some time zones.

Why it works: readers can scan for the one heading they care about. A Deprecated section is a gift to anyone planning upgrades. Watch out for: entries copied from commit subjects that mean nothing to users.

Style 2: release notes on the forge

Notes attached to each tagged release on the hosting platform, often with links to pull requests and contributor handles. Readers arriving from a notification see them first.

Why it works: close to where people watch for releases, and links give depth on demand. Watch out for: notes that exist only on the forge and nowhere in the package, so users browsing offline or through a registry mirror never see them. Many projects keep both, generating one from the other.

Style 3: generated from commit messages

Projects that follow Conventional Commits can generate changelogs automatically: feat: commits become features, fix: becomes fixes, and a BREAKING CHANGE: footer is surfaced prominently.

feat(parser): add strict mode
fix(tz): correct leap-day offset
feat!: drop support for the legacy options object

BREAKING CHANGE: pass options as the second argument instead.

Why it works: nothing is forgotten, and version bumps can be derived from the commits. Watch out for: the output is only as good as the commit messages. A light human edit before each release makes a large difference.

Style 4: migration-first notes for majors

For a major release, some projects lead with a "How to upgrade" section before listing changes: what to search for in your code, what to replace it with, and what will fail loudly if you miss it.

Why it works: the reader's real question on a major release is "what do I have to do?", and this style answers it first. Watch out for: putting the migration guide in a blog post that later disappears; keep it in the repository or the documentation.

Style 5: the one-liner log

A single sentence per release. Fine for tiny packages with rare changes, and far better than nothing.

Comparing the styles

StyleEffort per releaseBest for
Keep a Changelog fileMediumMost libraries
Forge release notesLow to mediumProjects whose users follow releases on the forge
GeneratedLow, plus editingTeams with disciplined commit messages
Migration-firstHigh, majors onlyWidely used libraries with breaking changes
One-linerVery lowSmall, stable utilities

To write a single good entry, see how to write a changelog entry; for the commit side, the Conventional Commits Q&A.

Related pages