change
A Changelog manipulation library. Read/modify/write your CHANGELOG.md. Inspired by keepachangelog.com.
0.7.5
40K downloads/mo
#1631 most downloaded on pub.dev
f3ath/change
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
30 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
30 releases · Oct 2018 to Dec 2024Releases
latest 30-
0.7.518 Dec 2024 -
0.7.424 Sep 2024 -
0.7.305 Feb 2024 -
0.7.211 Oct 2023 -
0.7.112 Jun 2023Release notes
Open source →Added
- The `printChanges() function to print changes only and skip the header part
-
0.7.012 Jun 2023Release notes
Open source →Added
- Keep freetext directly under release headings
Changed
- Min SDK version is 3.0.0
-
0.6.015 Feb 2023Release notes
Open source →0.6.0 - 2023-02-14
Added
- You may pass an instance of markdown
Documentto theparseChangelog()to have fine-grained control over parsing, e.g. whether to encode HTML entities - Support for [YANKED] releases
Changed
- Bumped
markdownto 7.0.0 - Bumped
markerto 0.5.0 - HTML entities (ampersands, quotes, etc) are NOT encoded by default
Release notes
Open source →Added
- You may pass an instance of markdown
Documentto theparseChangelog()to have fine-grained control over parsing, e.g. whether to encode HTML entities - Support for [YANKED] releases
Changed
- Bumped
markdownto 7.0.0 - Bumped
markerto 0.5.0 - HTML entities (ampersands, quotes, etc) are NOT encoded by default
- You may pass an instance of markdown
-
0.5.007 Dec 2022 -
0.4.010 May 2022Release notes
Open source →Changed
- Bumped the versions of dependencies: markdown to 5.0.0, marker to 0.3.0, pub_semver to 2.1.1
- Bumped the SDK version to 2.16.2
-
0.3.128 Dec 2021 -
0.3.011 Apr 2021Release notes
Open source →Changed
- Release date is now required for each version.
- Change types are not limited by the ones listed by semver.
- Parsing and printing moved to standalone functions.
Removed
- Dependency on
maybe_just_nothing. - Dependency on
dart:io. - Markdown-related parts of the API.
- The
Changelog.release()method. This logic will be added directly to Cider.
Release notes
Open source →Added
- RU translation from [@aishek].
- pt-BR translation from [@tallesl].
- es-ES translation from [@ZeliosAriex].
-
0.3.0-dev.224 Mar 2021 pre-releaseNothing published for this version
-
0.3.0-dev.123 Mar 2021 pre-releaseNothing published for this version
-
0.3.0-dev.023 Mar 2021 pre-releaseNothing published for this version
-
0.2.022 Mar 2021Release notes
Open source →Changed
- Migrated to null safety
- The "Unreleased" section is hidden when empty
Release notes
Open source →Changed
- Remove exclusionary mentions of "open source" since this project can benefit both "open" and "closed" source projects equally.
-
0.1.119 Oct 2020 -
0.1.027 Jul 2020Release notes
Open source →Added
- Answer "Should you ever rewrite a change log?".
Changed
- Improve argument against commit logs.
- Start following [SemVer] properly.
-
0.0.1324 Jul 2020 -
0.0.1224 Jul 2020 -
0.0.1121 Jul 2020 -
0.0.1019 Jul 2020 -
0.0.918 Jul 2020 -
0.0.818 Jul 2020Release notes
Open source →Changed
- Update year to match in every README example.
- Reluctantly stop making fun of Brits only, since most of the world writes dates in a strange way.
Fixed
- Fix typos in recent README changes.
- Update outdated unreleased diff link.
-
0.0.712 Jul 2020Release notes
Open source →Added
- Link, and make it obvious that date format is ISO 8601.
Changed
- Clarified the section on "Is there a standard change log format?".
Fixed
- Fix Markdown links to tag comparison URL with footnote-style links.
-
0.0.609 Jul 2020 -
0.0.505 Jul 2020Release notes
Open source →Added
- Markdown links to version tags on release headings.
- Unreleased section to gather unreleased changes and encourage note keeping prior to releases.
-
0.0.425 Jun 2020Release notes
Open source →Added
- Better explanation of the difference between the file ("CHANGELOG") and its function "the change log".
Changed
- Refer to a "change log" instead of a "CHANGELOG" throughout the site to differentiate between the file and the purpose of the file — the logging of changes.
Removed
- Remove empty sections from CHANGELOG, they occupy too much space and create too much noise in the file. People will have to assume that the missing sections were intentionally left out because they contained no notable changes.
-
0.0.324 Jun 2020Release notes
Open source →Added
- Console app
- Changelog model
Changed
- BREAKING Total rework of the package
-
0.0.219 Oct 2018Release notes
Open source →Added
- Explanation of the recommended reverse chronological release ordering.
-
0.0.118 Oct 2018Release notes
Open source →Added
- This CHANGELOG file to hopefully serve as an evolving example of a standardized open source project CHANGELOG.
- CNAME file to enable GitHub Pages custom domain.
- README now contains answers to common questions about CHANGELOGs.
- Good examples and basic guidelines, including proper date formatting.
- Counter-examples: "What makes unicorns cry?".
What is a changelog?
A changelog is a file which contains a curated, chronologically ordered list of notable changes for each version of a project.
Why keep a changelog?
To make it easier for users and contributors to see precisely what notable changes have been made between each release (or version) of the project.
Who needs a changelog?
People do. Whether consumers or developers, the end users of software are human beings who care about what's in the software. When the software changes, people want to know why and how.
How do I make a good changelog?
Guiding Principles
-
Changelogs are for humans , not machines.
-
There should be an entry for every single version.
-
The same types of changes should be grouped.
-
Versions and sections should be linkable.
-
The latest version comes first.
-
The release date of each version is displayed.
-
Mention whether you follow Semantic Versioning .
Types of changes
-
Added for new features.
-
Changed for changes in existing functionality.
-
Deprecated for soon-to-be removed features.
-
Removed for now removed features.
-
Fixed for any bug fixes.
-
Security in case of vulnerabilities.
How can I reduce the effort required to maintain a changelog?
Keep an Unreleased section at the top to track upcoming changes.
This serves two purposes:
-
People can see what changes they might expect in upcoming releases
-
At release time, you can move the Unreleased section changes into a new release version section.
Can changelogs be bad?
Yes. Here are a few ways they can be less than useful.
Commit log diffs
Using commit log diffs as changelogs is a bad idea: they're full of noise. Things like merge commits, commits with obscure titles, documentation changes, etc.
The purpose of a commit is to document a step in the evolution of the source code. Some projects clean up commits, some don't.
The purpose of a changelog entry is to document the noteworthy difference, often across multiple commits, to communicate them clearly to end users.
Ignoring Deprecations
When people upgrade from one version to another, it should be painfully clear when something will break. It should be possible to upgrade to a version that lists deprecations, remove what's deprecated, then upgrade to the version where the deprecations become removals.
If you do nothing else, list deprecations, removals, and any breaking changes in your changelog.
Confusing Dates
Regional date formats vary throughout the world and it's often difficult to find a human-friendly date format that feels intuitive to everyone. The advantage of dates formatted like 2017-07-17 is that they follow the order of largest to smallest units: year, month, and day. This format also doesn't overlap in ambiguous ways with other date formats, unlike some regional formats that switch the position of month and day numbers. These reasons, and the fact this date format is an ISO standard , are why it is the recommended date format for changelog entries. There’s more. Help me collect these antipatterns by opening an issue or a pull request.
Frequently Asked Questions
Is there a standard changelog format?
Not really. There's the GNU changelog style guide , or the two-paragraph-long GNU NEWS file "guideline". Both are inadequate or insufficient.
This project aims to be a better changelog convention. It comes from observing good practices in the open source community and gathering them.
Healthy criticism, discussion and suggestions for improvements are welcome.
What should the changelog file be named?
Call it CHANGELOG.md . Some projects use HISTORY , NEWS or RELEASES .
While it's easy to think that the name of your changelog file doesn't matter that much, why make it harder for your end users to consistently find notable changes?
What about GitHub Releases?
It's a great initiative. Releases can be used to turn simple git tags (for example a tag named v1.0.0 ) into rich release notes by manually adding release notes or it can pull annotated git tag messages and turn them into notes.
GitHub Releases create a non-portable changelog that can only be displayed to users within the context of GitHub. It's possible to make them look very much like the Keep a Changelog format, but it tends to be a bit more involved.
The current version of GitHub releases is also arguably not very discoverable by end-users, unlike the typical uppercase files ( README , CONTRIBUTING , etc.). Another minor issue is that the interface doesn't currently offer links to commit logs between each release.
Can changelogs be automatically parsed?
It’s difficult, because people follow wildly different formats and file names.
Vandamme is a Ruby gem created by the Gemnasium team and which parses many (but not all) open source project changelogs.
What about yanked releases?
Yanked releases are versions that had to be pulled because of a serious bug or security issue. Often these versions don't even appear in change logs. They should. This is how you should display them: