Version 3.0.0 introduced breaking changes:
mix.exsis no longer part of defaultfilesFor the same behavior as before addmix.exstofilesin config
config :versioce,
files: ["mix.exs", "README.md"]- Default message for
tag_message_templateconfiguration changed. For the same behavior as before
config :versioce, :git,
tag_message_template: "Release version to {version}"Version 2.0.0 added a breaking change to changelog generation behaviors.
Should implement get_versions/1 instead of get_data/1.
Should implement get_version/1 that will grab data for one specific version.
For implementation details check out Versioce.Changelog.DataGrabber.Git
Should implement version_to_str/1 which will format single Versioce.Changelog.DataGrabber.Version.t() to string.
For implementation details check out Versioce.Changelog.Formatter.Keepachangelog
Version 1.0.0 added a breaking change in terms of hook running.
Hooks changed their signature. Now they should follow the general {:ok, params} | {:error, reason} tuples pattern.
Ex.:
defmodule MyProj.PreHook do
use Versioce.PreHook
def run(params) do
{:ok, params}
end
endNote: All hooks should still pass on parameters they recieved in an
:oktuple. If one of the hooks fails and returns:errortuple, bumping stops andreasonwill be shown.
git_cli is no longer a mandatory dependency. If you don't use Versioce git hooks, you can drop it.