Skip to content

v10.0.0

Compare
Choose a tag to compare
@adierkens adierkens released this 29 Oct 18:16
· 1435 commits to main since this release

Release Notes

From #1609

This release simplifies some of the hooks arguements to allow for easier future extensibility.

The following hooks have had their second argument converted to an object that takes a "context" of pertinent information:

  • afterShipIt
  • onCreateChangelog
  • publish
  • next

Please consult the docs or plugin implementations for further detail.

From #1604

Previously a lot of the hooks would not run during a dry run and auto would try to guess what they would do. This lead to the output versions of some commands to be off.

With the release of v10 auto will call to the plugins for various hooks so they can control that.

From #1607

We were implementing the renderChangelogLine in a way that was more complex than needed

Previously the hook took a tuple and had to return a tuple

auto.hooks.onCreateChangelog.tapPromise('Stars', changelog =>
  changelog.hooks.renderChangelogLine.tapPromise(
    'Stars',
    async ([commit, line]) =>
      [commit, `${line.replace('-', ':star:')}\n`]
  );
);

Now it can just return the rendered changelog line

auto.hooks.onCreateChangelog.tapPromise('Stars', changelog =>
  changelog.hooks.renderChangelogLine.tapPromise(
    'Stars',
    async (line, commit) => `${line.replace('-', ':star:')}\n`
  );
);

💥 Breaking Change

  • @auto-it/core, @auto-it/cocoapods, @auto-it/crates, @auto-it/docker, @auto-it/exec, @auto-it/first-time-contributor, @auto-it/gem, @auto-it/git-tag, @auto-it/jira, @auto-it/maven, @auto-it/npm, @auto-it/omit-release-notes
  • @auto-it/core, @auto-it/brew, @auto-it/chrome, @auto-it/cocoapods, @auto-it/crates, @auto-it/docker, @auto-it/exec, @auto-it/gem, @auto-it/git-tag, @auto-it/gradle, @auto-it/maven, @auto-it/npm
  • @auto-it/core, @auto-it/jira, @auto-it/npm
  • @auto-it/core, @auto-it/all-contributors

🐛 Bug Fix

🔩 Dependency Updates

Authors: 2