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)
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).
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)
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).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps dunamai from 1.19.2 to 1.21.0.
Release notes
Sourced from dunamai's releases.
Changelog
Sourced from dunamai's changelog.
Commits
e6d28dd
Release v1.21.0027598c
Add note to README about --pattern-prefixa366db8
#82: Add --ignore-untrackedf223462
Add --pattern-prefix42828f5
#83: Fall back to 0.0.0 when there are tags but none matchc42b85b
Release v1.20.022484d5
#79: Add 'smart' argument to 'Version.bump'f5cb5b7
Update GitHub Actions for Node.js 16 deprecationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show