Skip to content

Releases: mtkennerly/dunamai

v1.21.1 (2024-05-03)

04 May 02:34
924f7a6
Compare
Choose a tag to compare
  • Fixed: Distance was calculated inconsistently for Git when there were some tags and none matched the version pattern.

v1.21.0 (2024-04-29)

29 Apr 23:23
e6d28dd
Compare
Choose a tag to compare
  • 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 like some-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)

12 Apr 14:04
c42b85b
Compare
Choose a tag to compare
  • Updated Version.bump() to add a smart argument, which only bumps when distance != 0. This will also make Version.serialize() use pre-release formatting automatically, like calling Version.serialize(bump=True).

v1.19.2 (2024-02-16)

16 Feb 19:54
99112cd
Compare
Choose a tag to compare
  • 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)

07 Feb 11:42
0869c66
Compare
Choose a tag to compare
  • 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)

04 Oct 02:26
8301b9a
Compare
Choose a tag to compare
  • Added a --path option to inspect a directory other than the current one. The Version.from_* methods now also take a path argument.

v1.18.1 (2023-09-22)

22 Sep 13:18
686f236
Compare
Choose a tag to compare
  • For Git 2.16+, --decorate-refs=refs/tags/ is now specified for git log in case you've configured log.excludeDecoration=refs/tags/.

v1.18.0 (2023-07-10)

10 Jul 13:03
8dec48c
Compare
Choose a tag to compare
  • Added a vcs attribute to Version to indicate which VCS was detected.

v1.17.0 (2023-05-19)

19 May 09:24
3e00ba3
Compare
Choose a tag to compare
  • The from command will print a warning for shallow Git repositories. This becomes an error with --strict.
  • The Version class has a new concerns field to indicate warnings with the version. Right now, the only possibility is Concern.ShallowRepository.

v1.16.1 (2023-05-13)

13 May 15:29
d3b583c
Compare
Choose a tag to compare
  • Fixed outdated reference to pkg_resources in the docstring for get_version.
  • CHANGELOG.md and tests are now included in sdists.