Releases: MetaMask/auto-changelog
Releases · MetaMask/auto-changelog
5.3.0
Added
- Add
--requirePrNumbersflag toauto-changelog updateCLI command for generation-time filtering (#253)- When enabled, commits without PR numbers are filtered out from the changelog
- Disabled by default for backward compatibility
- The
updateChangelogfunction also supports this option via therequirePrNumbersparameter
5.2.0
Added
- Deduplicate commits with no PR number in subject (#254)
- For commits with no PR number in the subject (non-"Squash & Merge" commits), deduplication now checks if exact description text already exists in changelog
- Merge commits are deduplicated using commit body instead of the generic merge subject
5.1.0
Added
- Add
--useChangelogEntrytoauto-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-changeloglabel is present on the PR) - Note that
GITHUB_TOKENmust be set in order to use this option - The
updateChangelogfunction also supports this option
- This will read the PR referenced in each commit message, look for
- Add
--useShortPrLinktoauto-changelog update(#247)- This will generate short references to PRs, e.g.
#123instead of[#123](https://some/repo) - The
updateChangelogfunction also supports this option
- This will generate short references to PRs, e.g.
Changed
- Update
auto-changelog update --autoCategorizeto 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:
stylerefactortestbuildcirelease
- If commit messages have the following phrases they will not be automatically added to the changelog:
Bump main version tochangelogcherry-pickcp-e2eflaky testINFRA-mergeNew 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-linksto the CLI, or passensureValidPrLinksPresenttovalidateChangelogto enable this behavior, ideally in yourlintpackage script or CI workflow
- Pass
- Add an optional
shouldExtractPrLinksoption 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.getReleaseChangesbelow for more
Changed
- BREAKING:
Changelog.getReleaseChangesnow returns an object whose values are objects of shape{ description: string; prNumbers: string[] }rather than simplystring(the description) (#222)- This affects
parseChangelogas 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-changelogand@metamask/auto-changelog/package.json
- You may now only import
4.1.0
Added
- Add
--autoCategorizeflag toupdatecommand (#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.