Skip to content

Releases: MetaMask/auto-changelog

5.0.0

28 Mar 16:32
e65c485
Compare
Choose a tag to compare

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 pass ensureValidPrLinksPresent to validateChangelog to enable this behavior, ideally in your lint package script or CI workflow
  • Add an optional shouldExtractPrLinks option to parseChangelog (#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 simply string (the description) (#222)
    • This affects parseChangelog as well, since it returns an instance of Changelog
  • 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

4.1.0

27 Jan 19:30
0b03d75
Compare
Choose a tag to compare

Added

  • Add --autoCategorize flag to update 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") and fix (which routes to "Fixed").

4.0.0

23 Sep 15:41
ef3e86e
Compare
Choose a tag to compare

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.

3.4.4

19 Dec 20:15
80c5ced
Compare
Choose a tag to compare

Added

  • Retain tag history on update command for renamed packages with new options (#182)

    • Introduced --version-before-package-rename and --tag-prefix-before-package-rename options for update command.

3.4.3

06 Nov 21:29
f65c16b
Compare
Choose a tag to compare

Changed

  • Place this library under the MIT / Apache 2.0 dual license (#175)

3.4.2

24 Oct 19:38
4574a31
Compare
Choose a tag to compare

Fixed

  • Remove circular dependency on @metamask/utils (#170)

3.4.1

23 Oct 10:59
0116b48
Compare
Choose a tag to compare

Fixed

  • Add missing dependency @metamask/utils (#168)

3.4.0

19 Oct 11:18
320f359
Compare
Choose a tag to compare

Added

  • Retain tag history for renamed packages with new validation options (#157)

    • Introduced --version-before-package-rename and --tag-prefix-before-package-rename options for validate command.

3.3.0

27 Sep 22:43
e8df1ec
Compare
Choose a tag to compare

Added

  • Add --prettier option for Prettier-formatted changelogs (#155)

3.2.0

14 Jul 10:47
9159de5
Compare
Choose a tag to compare

Added

  • Add --fix option to validate command (#148)