Releases: mtkennerly/dunamai
v1.23.0 (2024-11-17)
- Added:
{major}
,{minor}
, and{patch}
format placeholders.
v1.22.0 (2024-08-07)
- Fixed: The
--ignore-untracked
CLI flag was ignored. - Added:
--commit-length
option.
v1.21.2 (2024-06-26)
- Fixed: Some timestamps could fail to parse on Python 3.5 and 3.6.
v1.21.1 (2024-05-03)
- Fixed: Distance was calculated inconsistently for Git when there were some tags and none matched the version pattern.
v1.21.0 (2024-04-29)
-
Generally, when Dunamai can detect the VCS in use, but there's no version set yet, then Dunamai uses 0.0.0 as a fallback, unless strict mode is enabled. This is useful for new projects that do not yet have a release.
However, if there were some tags and none matched the version pattern, then Dunamai would yield an error. That wouldn't be helpful for a new project with some non-version tag, and it could be incorrect for a monorepo with different tags for different packages.
Now, Dunamai will use 0.0.0 in this case as well, unless strict mode is enabled.
-
You can now specify a pattern prefix. For example,
--pattern default --pattern-prefix some-package-
would match tags likesome-package-v1.2.3
. This is useful if you just want a custom prefix without writing a whole pattern. -
Added
--ignore-untracked
option to control checking whether the repository is dirty.
v1.20.0 (2024-04-12)
- Updated
Version.bump()
to add asmart
argument, which only bumps whendistance != 0
. This will also makeVersion.serialize()
use pre-release formatting automatically, like callingVersion.serialize(bump=True)
.
v1.19.2 (2024-02-16)
- Fixed an exception when a Git repository had a broken ref. Git would print a warning that Dunamai failed to parse.
v1.19.1 (2024-02-07)
- Relaxed Python bounds from
^3.5
to>=3.5
since Python does not follow Semantic Versioning. - Fixed some
git log
commands that did not include-c log.showsignature=false
. (Contributed by pdecat)
v1.19.0 (2023-10-04)
- Added a
--path
option to inspect a directory other than the current one. TheVersion.from_*
methods now also take apath
argument.
v1.18.1 (2023-09-22)
- For Git 2.16+,
--decorate-refs=refs/tags/
is now specified forgit log
in case you've configuredlog.excludeDecoration=refs/tags/
.