Skip to content

v10.0.0-next.1

Pre-release
Pre-release

Choose a tag to compare

@adierkens adierkens released this 26 Oct 23:34
7ffc7df

Release Notes

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/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

Authors: 1