Releases: MetaMask/auto-changelog
Releases · MetaMask/auto-changelog
5.1.0
Added
- Add
--useChangelogEntry
toauto-changelog update
(#247)- This will read the PR referenced in each commit message, look for
CHANGELOG entry:
in the PR description, and use this as the new changelog entry in the changelog (or skip if theno-changelog
label is present on the PR) - Note that
GITHUB_TOKEN
must be set in order to use this option - The
updateChangelog
function also supports this option
- This will read the PR referenced in each commit message, look for
- Add
--useShortPrLink
toauto-changelog update
(#247)- This will generate short references to PRs, e.g.
#123
instead of[#123](https://some/repo)
- The
updateChangelog
function also supports this option
- This will generate short references to PRs, e.g.
Changed
- Update
auto-changelog update --autoCategorize
to exclude entries with certain phrases or Conventional Commit prefixes (#247)- If commit messages have the following prefixes they will not be automatically added to the changelog:
style
refactor
test
build
ci
release
- If commit messages have the following phrases they will not be automatically added to the changelog:
Bump main version to
changelog
cherry-pick
cp-
e2e
flaky test
INFRA-
merge
New Crowdin translations
- If commit messages have the following prefixes they will not be automatically added to the changelog:
5.0.2
5.0.1
5.0.0
Added
- JavaScript sources and TypeScript declarations are now available in both CommonJS- and ESM-compatible variants (#226)
- Add option to changelog validation to ensure that each entry in the changelog links to one or more originating PRs (#222)
- Pass
--pr-links
to the CLI, or passensureValidPrLinksPresent
tovalidateChangelog
to enable this behavior, ideally in yourlint
package script or CI workflow
- Pass
- Add an optional
shouldExtractPrLinks
option toparseChangelog
(#222)- When true, this will extract pull request links from the text of each entry, identify the pull numbers, and keep them in a separate array
- See note on
Changelog.getReleaseChanges
below for more
Changed
- BREAKING:
Changelog.getReleaseChanges
now returns an object whose values are objects of shape{ description: string; prNumbers: string[] }
rather than simplystring
(the description) (#222)- This affects
parseChangelog
as well, since it returns an instance ofChangelog
- This affects
- BREAKING: Bump minimum Node version to 18.20 (#227)
- BREAKING: Custom subpath imports are no longer supported (#226)
- You may now only import
@metamask/auto-changelog
and@metamask/auto-changelog/package.json
- You may now only import
4.1.0
Added
- Add
--autoCategorize
flag toupdate
command (#212)- When populating the Unreleased section, the tool will look for Conventional Commits prefixes in commit message subjects and place matching commits in corresponding categories automatically.
- Supported prefixes are
feat
(which routes to "Added") andfix
(which routes to "Fixed").
4.0.0
Changed
- BREAKING: Drop support for Node.js <18.18 (#203)
- BREAKING: Require
prettier@>=3.0.0
(#202)- Prettier is now a peer dependency of this package.
- BREAKING: Enable Prettier formatting by default (#204)
- Changelogs are now formatted with Prettier by default when using the CLI.
- You can opt-out of this change by specifying
--no-prettier
.