A CHANGELOG.md Template for Packages
This is a starting file, not a tutorial. Copy the blank version into the root of your repository, commit it, and from then on add lines to the Unreleased section as changes merge. The structure follows the headings popularised by Keep a Changelog, which many readers already recognise, so they can find "what broke" without learning your format.
The blank template
# Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project
adheres to Semantic Versioning.
## [Unreleased]
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
[Unreleased]: <compare link from the last tag to HEAD>
Delete any empty headings when you cut a release. Keep them in the Unreleased section while you work, because a visible empty "Deprecated" heading is a small prompt to ask whether anything should be in it.
The same file after two releases (illustrative)
Below is how the file might look for a hypothetical Package E. The version numbers, dates and changes are invented for the example.
# Changelog
## [Unreleased]
### Fixed
- `format()` no longer drops trailing zeros when `precision` is 0.
## [3.0.0] - 2026-10-14
### Removed
- **Breaking:** the `legacy` option of `parse()` has been removed.
It was deprecated in 2.6.0. Pass `{ mode: "strict" }` instead.
- **Breaking:** Node.js 18 is no longer supported; the minimum is now 20.
### Added
- `parseStream()` for incremental input.
## [2.6.0] - 2026-07-02
### Deprecated
- The `legacy` option of `parse()`. It still works and prints a
one-time warning; it will be removed in 3.0.0.
### Added
- `mode` option for `parse()`, accepting "strict" or "loose".
[Unreleased]: <compare 3.0.0...HEAD>
[3.0.0]: <compare 2.6.0...3.0.0>
[2.6.0]: <compare 2.5.1...2.6.0>
Notes on using it
- Newest first. Readers arrive wanting the latest change; do not make them scroll.
- Dates in ISO format (year-month-day) avoid the ambiguity of regional formats.
- Mark breaking items inline as well as by heading. Removals are obviously breaking; a breaking item under "Changed" is easy to miss without the label.
- Link deprecations to their removal. The 2.6.0 entry above says when the option goes away, and the 3.0.0 entry points back to when it was deprecated. That pair is what makes a deprecation policy visible.
- Compare links at the bottom let readers jump to the diff between tags. Fill in your hosting platform's compare URL format.
- Security entries should name the advisory identifier once it is public, so people scanning for it can find it.
Adapting the template
In a monorepo, keep one changelog per published package rather than one for the whole repository; users of one package should not have to filter out changes to another. If you generate entries from commits or change files, use this file as the target layout so generated and hand-written sections look the same. The changelog tooling comparison covers those options, and how to write a changelog entry covers the wording of each line.