diff --git a/.dockerignore b/.dockerignore index 4cf045c0ce..56eea687a2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -15,3 +15,9 @@ LICENSE rustfmt.toml _config.yml .lycheeignore + +# Ignore rust toolchain files as they would needlessly fetch the toolchain. +# But the image already contains a sufficient toolchain. +# Ignore both the latest naming and the legacy naming +rust-toolchain.toml +rust-toolchain diff --git a/.envrc b/.envrc new file mode 100644 index 0000000000..fb9d00cc65 --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +use flake +dotenv_if_exists .env diff --git a/.github/ISSUE_TEMPLATE/github_integration.yml b/.github/ISSUE_TEMPLATE/integration.yml similarity index 88% rename from .github/ISSUE_TEMPLATE/github_integration.yml rename to .github/ISSUE_TEMPLATE/integration.yml index 134709266c..c93f63ebf8 100644 --- a/.github/ISSUE_TEMPLATE/github_integration.yml +++ b/.github/ISSUE_TEMPLATE/integration.yml @@ -1,14 +1,14 @@ -name: GitHub Integration ⚙️ -description: Report a bug or request a feature about GitHub integration -labels: ['github_integration'] -assignees: +name: Integration ⚙️ +description: Report a bug or request a feature about an integration (e.g GitHub/GitLab/Gitea/Bitbucket) +labels: ["integration"] +assignees: - orhun body: - type: markdown attributes: value: | Thanks for taking the time to fill out this bug report! - Please see https://git-cliff.org/docs/integration/github for more information about GitHub integration. + Please see https://git-cliff.org/docs/category/integration for more information about integrations. - type: checkboxes id: new-bug attributes: diff --git a/.github/actions/run-fixtures-test/action.yml b/.github/actions/run-fixtures-test/action.yml index d733fe7041..ad9774b1cb 100644 --- a/.github/actions/run-fixtures-test/action.yml +++ b/.github/actions/run-fixtures-test/action.yml @@ -21,7 +21,7 @@ runs: uses: dtolnay/rust-toolchain@nightly - name: Install git-cliff - run: cargo install --path git-cliff/ + run: cargo install --path git-cliff/ --profile dev shell: bash - name: Set git config diff --git a/.github/fixtures/new-fixture-template/cliff.toml b/.github/fixtures/new-fixture-template/cliff.toml index 9a9d380abc..b26308cde6 100644 --- a/.github/fixtures/new-fixture-template/cliff.toml +++ b/.github/fixtures/new-fixture-template/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-always-render-unreleased/cliff.toml b/.github/fixtures/test-always-render-unreleased/cliff.toml new file mode 100644 index 0000000000..abcdd994ec --- /dev/null +++ b/.github/fixtures/test-always-render-unreleased/cliff.toml @@ -0,0 +1,33 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %} + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %} + ## [unreleased] +{% endif %} + +{% if commits | length == 0 -%} +No significant changes. + +{% else -%} +{% for group, commits in commits | group_by(attribute="group") -%} + ### {{ group | upper_first }} + etc. +{% endfor %} +{%- endif %} +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true +# render body even when there are no releases to process +render_always = true diff --git a/.github/fixtures/test-always-render-unreleased/commit.sh b/.github/fixtures/test-always-render-unreleased/commit.sh new file mode 100755 index 0000000000..3dc1a2fc3f --- /dev/null +++ b/.github/fixtures/test-always-render-unreleased/commit.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 diff --git a/.github/fixtures/test-always-render-unreleased/expected.md b/.github/fixtures/test-always-render-unreleased/expected.md new file mode 100644 index 0000000000..e482232a72 --- /dev/null +++ b/.github/fixtures/test-always-render-unreleased/expected.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + + +## [unreleased] + + +No significant changes. + + diff --git a/.github/fixtures/test-always-render/cliff.toml b/.github/fixtures/test-always-render/cliff.toml new file mode 100644 index 0000000000..abcdd994ec --- /dev/null +++ b/.github/fixtures/test-always-render/cliff.toml @@ -0,0 +1,33 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %} + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %} + ## [unreleased] +{% endif %} + +{% if commits | length == 0 -%} +No significant changes. + +{% else -%} +{% for group, commits in commits | group_by(attribute="group") -%} + ### {{ group | upper_first }} + etc. +{% endfor %} +{%- endif %} +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true +# render body even when there are no releases to process +render_always = true diff --git a/.github/fixtures/test-always-render/commit.sh b/.github/fixtures/test-always-render/commit.sh new file mode 100755 index 0000000000..3dc1a2fc3f --- /dev/null +++ b/.github/fixtures/test-always-render/commit.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 diff --git a/.github/fixtures/test-always-render/expected.md b/.github/fixtures/test-always-render/expected.md new file mode 100644 index 0000000000..85de6b2e48 --- /dev/null +++ b/.github/fixtures/test-always-render/expected.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + + +## [0.2.0] - <> + + +No significant changes. + + diff --git a/.github/fixtures/test-bitbucket-integration/cliff.toml b/.github/fixtures/test-bitbucket-integration/cliff.toml new file mode 100644 index 0000000000..5d1a85f171 --- /dev/null +++ b/.github/fixtures/test-bitbucket-integration/cliff.toml @@ -0,0 +1,52 @@ +[remote.bitbucket] +owner = "mcwarman-playground" +repo = "git-cliff-readme-example" + +[changelog] +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{%- macro remote_url() -%} + https://bitbucket.org/{{ remote.bitbucket.owner }}/{{ remote.bitbucket.repo }} +{%- endmacro -%} + +## What's Changed +{%- if version %} in {{ version }}{%- endif -%} +{% for commit in commits %} + * {{ commit.message | split(pat="\n") | first | trim }}\ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in \ + [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull-requests/{{ commit.remote.pr_number }})\ + {%- endif %} +{%- endfor -%} + +{% if bitbucket.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + {% raw %}\n{% endraw -%} + ### New Contributors +{%- endif %}\ +{% for contributor in bitbucket.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull-requests/{{ contributor.pr_number }}) \ + {%- endif %} +{%- endfor -%} +{% raw %}\n\n{% endraw -%} +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """ + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = false +# filter out the commits that are not conventional +filter_unconventional = true +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false diff --git a/.github/fixtures/test-bitbucket-integration/commit.sh b/.github/fixtures/test-bitbucket-integration/commit.sh new file mode 100755 index 0000000000..7bed941a15 --- /dev/null +++ b/.github/fixtures/test-bitbucket-integration/commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +git remote add origin https://bitbucket.org/mcwarman-playground/git-cliff-readme-example +git pull origin master +git fetch --tags diff --git a/.github/fixtures/test-bitbucket-integration/expected.md b/.github/fixtures/test-bitbucket-integration/expected.md new file mode 100644 index 0000000000..2d32ecfe31 --- /dev/null +++ b/.github/fixtures/test-bitbucket-integration/expected.md @@ -0,0 +1,20 @@ +## What's Changed +* feat(config): support multiple file formats by @orhun +* feat(cache): use cache while fetching pages by @orhun +* feat(ci): add pipeline config by @mcwarman <7236500+mcwarman@users.noreply.github.com> in [#1](https://bitbucket.org/mcwarman-playground/git-cliff-readme-example/pull-requests/1) + +## What's Changed in v1.0.1 +* refactor(parser): expose string functions by @orhun +* chore(release): add release script by @orhun + +## What's Changed in v1.0.0 +* Initial commit by @orhun +* docs(project): add README.md by @orhun +* feat(parser): add ability to parse arrays by @orhun +* fix(args): rename help argument due to conflict by @orhun +* docs(example)!: add tested usage example by @orhun + +### New Contributors +* @orhun made their first contribution + + diff --git a/.github/fixtures/test-bump-initial-tag-cli-arg/cliff.toml b/.github/fixtures/test-bump-initial-tag-cli-arg/cliff.toml new file mode 100644 index 0000000000..8670e6d203 --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-cli-arg/cliff.toml @@ -0,0 +1,37 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] + +[bump] +initial_tag = "test" diff --git a/.github/fixtures/test-bump-initial-tag-cli-arg/commit.sh b/.github/fixtures/test-bump-initial-tag-cli-arg/commit.sh new file mode 100755 index 0000000000..8897f4d8ef --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-cli-arg/commit.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-bump-initial-tag-cli-arg/expected.md b/.github/fixtures/test-bump-initial-tag-cli-arg/expected.md new file mode 100644 index 0000000000..f7e325a493 --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-cli-arg/expected.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [2.1.1] + +### Test + +- Add tests + + diff --git a/.github/fixtures/test-bump-initial-tag-default/cliff.toml b/.github/fixtures/test-bump-initial-tag-default/cliff.toml new file mode 100644 index 0000000000..091fd6b8f5 --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-default/cliff.toml @@ -0,0 +1,34 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-bump-initial-tag-default/commit.sh b/.github/fixtures/test-bump-initial-tag-default/commit.sh new file mode 100755 index 0000000000..8897f4d8ef --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-default/commit.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-bump-initial-tag-default/expected.md b/.github/fixtures/test-bump-initial-tag-default/expected.md new file mode 100644 index 0000000000..8b2acf53ac --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag-default/expected.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.1.0] + +### Test + +- Add tests + + diff --git a/.github/fixtures/test-bump-initial-tag/cliff.toml b/.github/fixtures/test-bump-initial-tag/cliff.toml new file mode 100644 index 0000000000..e584e66ccf --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag/cliff.toml @@ -0,0 +1,37 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] + +[bump] +initial_tag = "1.15.5" \ No newline at end of file diff --git a/.github/fixtures/test-bump-initial-tag/commit.sh b/.github/fixtures/test-bump-initial-tag/commit.sh new file mode 100755 index 0000000000..8897f4d8ef --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag/commit.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-bump-initial-tag/expected.md b/.github/fixtures/test-bump-initial-tag/expected.md new file mode 100644 index 0000000000..d3b19c4381 --- /dev/null +++ b/.github/fixtures/test-bump-initial-tag/expected.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [1.15.5] + +### Test + +- Add tests + + diff --git a/.github/fixtures/test-bump-unreleased-with-tag-message-arg/cliff.toml b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/cliff.toml new file mode 100644 index 0000000000..9b43af3e3e --- /dev/null +++ b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/cliff.toml @@ -0,0 +1,37 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] + {% if message %} + {{ message }} + {% endif %}\ +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-bump-unreleased-with-tag-message-arg/commit.sh b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/commit.sh new file mode 100755 index 0000000000..7c6fe32718 --- /dev/null +++ b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/commit.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m "feat(gui): add feature 2" +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m "fix(gui): fix feature 2" +git tag v0.2.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-bump-unreleased-with-tag-message-arg/expected.md b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/expected.md new file mode 100644 index 0000000000..bcb74bdacd --- /dev/null +++ b/.github/fixtures/test-bump-unreleased-with-tag-message-arg/expected.md @@ -0,0 +1,13 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.2.1] + +Some text + +### Test + +- Add tests + + diff --git a/.github/fixtures/test-bump-version-custom-minor/cliff.toml b/.github/fixtures/test-bump-version-custom-minor/cliff.toml new file mode 100644 index 0000000000..b75904247f --- /dev/null +++ b/.github/fixtures/test-bump-version-custom-minor/cliff.toml @@ -0,0 +1,32 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[bump] +features_always_bump_minor = true +breaking_always_bump_major = true +custom_minor_increment_regex = "minor|more" diff --git a/.github/fixtures/test-bump-version-custom-minor/commit.sh b/.github/fixtures/test-bump-version-custom-minor/commit.sh new file mode 100755 index 0000000000..8d9f2776f6 --- /dev/null +++ b/.github/fixtures/test-bump-version-custom-minor/commit.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 2" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "minor: add minor" +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 2" diff --git a/.github/fixtures/test-bump-version-custom-minor/expected.md b/.github/fixtures/test-bump-version-custom-minor/expected.md new file mode 100644 index 0000000000..6705546123 --- /dev/null +++ b/.github/fixtures/test-bump-version-custom-minor/expected.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.2.0] + +### Fix + +- Fix feature 2 + +### Minor + +- Add minor + +## [0.1.0] + +### Feat + +- Add feature 1 +- Add feature 2 + + diff --git a/.github/fixtures/test-bump-version-keep-zerover/cliff.toml b/.github/fixtures/test-bump-version-keep-zerover/cliff.toml index 15414304ae..dad5dcf22e 100644 --- a/.github/fixtures/test-bump-version-keep-zerover/cliff.toml +++ b/.github/fixtures/test-bump-version-keep-zerover/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-bump-version-major/cliff.toml b/.github/fixtures/test-bump-version-major/cliff.toml new file mode 100644 index 0000000000..c48526d6f7 --- /dev/null +++ b/.github/fixtures/test-bump-version-major/cliff.toml @@ -0,0 +1,27 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true diff --git a/.github/fixtures/test-bump-version-major/commit.sh b/.github/fixtures/test-bump-version-major/commit.sh new file mode 100755 index 0000000000..3d7ef4718b --- /dev/null +++ b/.github/fixtures/test-bump-version-major/commit.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 2" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 2" diff --git a/.github/fixtures/test-bump-version-major/expected.md b/.github/fixtures/test-bump-version-major/expected.md new file mode 100644 index 0000000000..84bb0ad594 --- /dev/null +++ b/.github/fixtures/test-bump-version-major/expected.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [1.0.0] + +### Fix + +- Fix feature 1 +- Fix feature 2 + +## [0.1.0] + +### Feat + +- Add feature 1 +- Add feature 2 + + diff --git a/.github/fixtures/test-bump-version-minor/cliff.toml b/.github/fixtures/test-bump-version-minor/cliff.toml new file mode 100644 index 0000000000..c48526d6f7 --- /dev/null +++ b/.github/fixtures/test-bump-version-minor/cliff.toml @@ -0,0 +1,27 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true diff --git a/.github/fixtures/test-bump-version-minor/commit.sh b/.github/fixtures/test-bump-version-minor/commit.sh new file mode 100755 index 0000000000..0fd84c20f6 --- /dev/null +++ b/.github/fixtures/test-bump-version-minor/commit.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 2" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat!: add breaking feature" +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 2" diff --git a/.github/fixtures/test-bump-version-minor/expected.md b/.github/fixtures/test-bump-version-minor/expected.md new file mode 100644 index 0000000000..b222642be6 --- /dev/null +++ b/.github/fixtures/test-bump-version-minor/expected.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.2.0] + +### Feat + +- [**breaking**] Add breaking feature + +### Fix + +- Fix feature 2 + +## [0.1.0] + +### Feat + +- Add feature 1 +- Add feature 2 + + diff --git a/.github/fixtures/test-bump-version-patch/cliff.toml b/.github/fixtures/test-bump-version-patch/cliff.toml new file mode 100644 index 0000000000..c48526d6f7 --- /dev/null +++ b/.github/fixtures/test-bump-version-patch/cliff.toml @@ -0,0 +1,27 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true diff --git a/.github/fixtures/test-bump-version-patch/commit.sh b/.github/fixtures/test-bump-version-patch/commit.sh new file mode 100755 index 0000000000..0fd84c20f6 --- /dev/null +++ b/.github/fixtures/test-bump-version-patch/commit.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 2" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat!: add breaking feature" +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 2" diff --git a/.github/fixtures/test-bump-version-patch/expected.md b/.github/fixtures/test-bump-version-patch/expected.md new file mode 100644 index 0000000000..9a8c825495 --- /dev/null +++ b/.github/fixtures/test-bump-version-patch/expected.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.1.1] + +### Feat + +- [**breaking**] Add breaking feature + +### Fix + +- Fix feature 2 + +## [0.1.0] + +### Feat + +- Add feature 1 +- Add feature 2 + + diff --git a/.github/fixtures/test-bump-version/cliff.toml b/.github/fixtures/test-bump-version/cliff.toml index ec2fc39132..c48526d6f7 100644 --- a/.github/fixtures/test-bump-version/cliff.toml +++ b/.github/fixtures/test-bump-version/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-bumped-version/cliff.toml b/.github/fixtures/test-bumped-version/cliff.toml index ec2fc39132..c48526d6f7 100644 --- a/.github/fixtures/test-bumped-version/cliff.toml +++ b/.github/fixtures/test-bumped-version/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-cli-arg-ignore-tags/cliff.toml b/.github/fixtures/test-cli-arg-ignore-tags/cliff.toml new file mode 100644 index 0000000000..63a1308e48 --- /dev/null +++ b/.github/fixtures/test-cli-arg-ignore-tags/cliff.toml @@ -0,0 +1,33 @@ +[changelog] +# changelog header +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for skipping tags +skip_tags = "" +# regex for ignoring tags +ignore_tags = "" diff --git a/.github/fixtures/test-cli-arg-ignore-tags/commit.sh b/.github/fixtures/test-cli-arg-ignore-tags/commit.sh new file mode 100755 index 0000000000..4cc91676ac --- /dev/null +++ b/.github/fixtures/test-cli-arg-ignore-tags/commit.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add first beta feature" +git tag v1.0.0-beta.1 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat: add second beta feature" +git tag v1.0.0-beta.2 + +# WARNING: If we won't create this commit, 1.0.0 won't be created! +GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "chore: why do i need a commit here?" +git tag v1.0.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:49" git commit --allow-empty -m "fix: simple fix" +git tag v1.0.1 diff --git a/.github/fixtures/test-cli-arg-ignore-tags/expected.md b/.github/fixtures/test-cli-arg-ignore-tags/expected.md new file mode 100644 index 0000000000..c847179e2b --- /dev/null +++ b/.github/fixtures/test-cli-arg-ignore-tags/expected.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [1.0.1] - 2021-01-23 + +### Fix + +- Simple fix + +## [1.0.0] - 2021-01-23 + +### Chore + +- Why do i need a commit here? + +### Feat + +- Add first beta feature +- Add second beta feature + + diff --git a/.github/fixtures/test-commit-footers/cliff.toml b/.github/fixtures/test-commit-footers/cliff.toml index e143f3b6e9..94920a9a4f 100644 --- a/.github/fixtures/test-commit-footers/cliff.toml +++ b/.github/fixtures/test-commit-footers/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-commit-preprocessors/cliff.toml b/.github/fixtures/test-commit-preprocessors/cliff.toml index 2d86f4cd02..63f6af2da3 100644 --- a/.github/fixtures/test-commit-preprocessors/cliff.toml +++ b/.github/fixtures/test-commit-preprocessors/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-configure-from-cargo-toml/Cargo.toml b/.github/fixtures/test-configure-from-cargo-toml/Cargo.toml index d44e73bd9d..2cbf7a562b 100644 --- a/.github/fixtures/test-configure-from-cargo-toml/Cargo.toml +++ b/.github/fixtures/test-configure-from-cargo-toml/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [package.metadata.git-cliff.changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-conventional-commit/cliff.toml b/.github/fixtures/test-conventional-commit/cliff.toml new file mode 100644 index 0000000000..847a4cc86a --- /dev/null +++ b/.github/fixtures/test-conventional-commit/cliff.toml @@ -0,0 +1,35 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file. +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% for group, commits in commits | group_by(attribute="group") %} + ## {{ group | striptags | trim | upper_first }} + {% for commit in commits %} + {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ + {% if commit.breaking %}[**breaking**]: {{ commit.breaking_description }}{% endif %} + {{ commit.message }}: {{ commit.body }}\ + {% for footer in commit.footers %} + - {{ footer.token }}{{ footer.separator }} {{ footer.value }}\ + {% endfor %} + {% endfor %}\ +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# process each line of a commit as an individual commit +split_commits = false +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix" }, +] diff --git a/.github/fixtures/test-conventional-commit/commit.sh b/.github/fixtures/test-conventional-commit/commit.sh new file mode 100755 index 0000000000..b55c2524a3 --- /dev/null +++ b/.github/fixtures/test-conventional-commit/commit.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m \ + "feat(web): feature 1, breaking change in footer + +Body feature 1 + +BREAKING CHANGE: breaking change description feature 1 +Signed-off-by: user1 +Reviewed-by: user2 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m \ + "feat(web)!: feature 2, breaking chain in description + +Body feature 2 + +Signed-off-by: user3 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m \ + "feat!: feature 3, use default scope = app + +Body feature 2 + +Signed-off-by: user3 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m \ + "fix(scope): fix 1, use scope as group + +Body fix 1 + +Fix: #1 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m \ + "fix(front-end): fix 2, no footer + +Body fix 2 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:14" git commit --allow-empty -m \ + "fix(front-end): fix 3 and 4, no body but footer + +Fix: #3 +Fix: #4 +" + +git tag v0.1.0 diff --git a/.github/fixtures/test-conventional-commit/expected.md b/.github/fixtures/test-conventional-commit/expected.md new file mode 100644 index 0000000000..aefd3fa0c5 --- /dev/null +++ b/.github/fixtures/test-conventional-commit/expected.md @@ -0,0 +1,35 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## Features + +*(web)* [**breaking**]: breaking change description feature 1 +feature 1, breaking change in footer: Body feature 1 +- BREAKING CHANGE: breaking change description feature 1 +- Signed-off-by: user1 +- Reviewed-by: user2 + +*(web)* [**breaking**]: feature 2, breaking chain in description +feature 2, breaking chain in description: Body feature 2 +- Signed-off-by: user3 + +*(app)* [**breaking**]: feature 3, use default scope = app +feature 3, use default scope = app: Body feature 2 +- Signed-off-by: user3 + +## Fix + +*(scope)* +fix 1, use scope as group: Body fix 1 +- Fix: #1 + +*(front-end)* +fix 2, no footer: Body fix 2 + +*(front-end)* +fix 3 and 4, no body but footer: +- Fix: #3 +- Fix: #4 + + diff --git a/.github/fixtures/test-custom-remote-api-url/cliff.toml b/.github/fixtures/test-custom-remote-api-url/cliff.toml new file mode 100644 index 0000000000..4136d1fcb8 --- /dev/null +++ b/.github/fixtures/test-custom-remote-api-url/cliff.toml @@ -0,0 +1,55 @@ +[remote.gitlab] +owner = "archlinux" +repo = "arch-repro-status" +api_url = "https://gitlab.archlinux.org/api/v4" + +[changelog] +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +## What's Changed + +{%- if version %} in {{ version }}{%- endif -%} +{% for commit in commits %} + * {{ commit.message | split(pat="\n") | first | trim }}\ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %} +{%- endfor -%} + +{% if gitlab.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + {% raw %}\n{% endraw -%} + ### New Contributors +{%- endif %}\ +{% for contributor in gitlab.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} +{%- endfor -%} + +{% if version %} + {% if previous.version %} + **Full Changelog**: https://gitlab.com/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}/compare/{{ previous.version }}...{{ version }} + {% endif %} +{% else -%} + {% raw %}\n{% endraw %} +{% endif %} +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """ + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# filter out the commits that are not conventional +filter_unconventional = false +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false diff --git a/.github/fixtures/test-custom-remote-api-url/commit.sh b/.github/fixtures/test-custom-remote-api-url/commit.sh new file mode 100755 index 0000000000..fc3b7b7016 --- /dev/null +++ b/.github/fixtures/test-custom-remote-api-url/commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +git remote add origin https://gitlab.archlinux.org/archlinux/arch-repro-status +git fetch +git checkout 5fe2f324db566756ccaf066fe186100a09a87625 diff --git a/.github/fixtures/test-custom-remote-api-url/expected.md b/.github/fixtures/test-custom-remote-api-url/expected.md new file mode 100644 index 0000000000..d20126a97f --- /dev/null +++ b/.github/fixtures/test-custom-remote-api-url/expected.md @@ -0,0 +1,9 @@ +## What's Changed in v1.4.1 +* Update the copyright year in license by @Orhun Parmaksız +* bump dependencies by @Orhun Parmaksız +* update cargo-deny config by @Orhun Parmaksız +* prepare for 1.4.1 by @Orhun Parmaksız + +**Full Changelog**: https://gitlab.com/archlinux/arch-repro-status/compare/v1.4.0...v1.4.1 + + diff --git a/.github/fixtures/test-custom-scope/cliff.toml b/.github/fixtures/test-custom-scope/cliff.toml index fe30b9070c..d4dfdda55b 100644 --- a/.github/fixtures/test-custom-scope/cliff.toml +++ b/.github/fixtures/test-custom-scope/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-custom-tag-pattern/cliff.toml b/.github/fixtures/test-custom-tag-pattern/cliff.toml index fc3d5db2a2..a3d1e0f914 100644 --- a/.github/fixtures/test-custom-tag-pattern/cliff.toml +++ b/.github/fixtures/test-custom-tag-pattern/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-date-order/cliff.toml b/.github/fixtures/test-date-order/cliff.toml index 5504810e90..61d862d721 100644 --- a/.github/fixtures/test-date-order/cliff.toml +++ b/.github/fixtures/test-date-order/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-fixtures-locally.sh b/.github/fixtures/test-fixtures-locally.sh index 6287ba4667..45e2a9f023 100755 --- a/.github/fixtures/test-fixtures-locally.sh +++ b/.github/fixtures/test-fixtures-locally.sh @@ -12,11 +12,24 @@ export FIXTURES_DIR="$SCRIPT_DIR/$1" # Set up a temporary repository cd "$(mktemp -d)" -git init +git init >&2 # Commit "$FIXTURES_DIR/commit.sh" +# Check if we are running on Windows with MINGW64 and if cygpath is available +if [ -n "$MSYSTEM" ] && [ "$MSYSTEM" = "MINGW64" ]; then + echo "Running inside MINGW64 trying to convert paths to Windows format." + if command -v cygpath > /dev/null 2>&1; then + # Convert the path to Windows format + SCRIPT_DIR=$(cygpath -w "$SCRIPT_DIR") + FIXTURES_DIR=$(cygpath -w "$FIXTURES_DIR") + else + echo "WARNING: cygpath command not found in the PATH. The script may not work correctly on Windows." + exit 1 + fi +fi + # Show results -echo -e "\n---Run git-cliff---" +echo -e "\n---Run git-cliff---" >&2 cargo run --manifest-path "$SCRIPT_DIR/../../Cargo.toml" -- -vv --config "$FIXTURES_DIR/cliff.toml" "${@:2}" diff --git a/.github/fixtures/test-footer-filter/cliff.toml b/.github/fixtures/test-footer-filter/cliff.toml new file mode 100644 index 0000000000..392bb0a7b3 --- /dev/null +++ b/.github/fixtures/test-footer-filter/cliff.toml @@ -0,0 +1,39 @@ +[changelog] +# changelog header +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, + # Accept both separators, ": " and ":". + # Conventional commits require the separator to be ": ", but the reference implementation of the + # conventional commits parser currently does not adhere to the specification. See also: + # https://github.com/conventional-commits/parser/issues/47 + { footer = "^changelog: ?ignore", skip = true }, +] diff --git a/.github/fixtures/test-footer-filter/commit.sh b/.github/fixtures/test-footer-filter/commit.sh new file mode 100755 index 0000000000..61da0775e6 --- /dev/null +++ b/.github/fixtures/test-footer-filter/commit.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 00:00:00" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 00:10:00" git commit --allow-empty -m "feat: add feature 1" +git tag v0.1.0 +GIT_COMMITTER_DATE="2022-04-06 01:00:00" git commit --allow-empty -m "refactor: change feature 1" -m "BREAKING CHANGE: feature 1 is now different" +GIT_COMMITTER_DATE="2022-04-06 01:10:00" git commit --allow-empty -m "chore: upgrade dependencies" -m "changelog: ignore" +git tag v0.2.0 +GIT_COMMITTER_DATE="2022-04-06 02:00:00" git commit --allow-empty -m "test: add tests" -m "footer: some more info" +GIT_COMMITTER_DATE="2022-04-06 02:10:00" git commit --allow-empty -m "test: add more tests" -m "changelog: ignore" diff --git a/.github/fixtures/test-footer-filter/expected.md b/.github/fixtures/test-footer-filter/expected.md new file mode 100644 index 0000000000..df28a3db98 --- /dev/null +++ b/.github/fixtures/test-footer-filter/expected.md @@ -0,0 +1,23 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [unreleased] + +### Test + +- Add tests + +## [0.2.0] - 2022-04-06 + +### Refactor + +- Change feature 1 + +## [0.1.0] - 2022-04-06 + +### Features + +- Add feature 1 + + diff --git a/.github/fixtures/test-footer-template/cliff.toml b/.github/fixtures/test-footer-template/cliff.toml index ebfa371d5a..8b8de921e4 100644 --- a/.github/fixtures/test-footer-template/cliff.toml +++ b/.github/fixtures/test-footer-template/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-from-context-does-not-discard-fields/cliff.toml b/.github/fixtures/test-from-context-does-not-discard-fields/cliff.toml new file mode 100644 index 0000000000..847a4cc86a --- /dev/null +++ b/.github/fixtures/test-from-context-does-not-discard-fields/cliff.toml @@ -0,0 +1,35 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file. +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% for group, commits in commits | group_by(attribute="group") %} + ## {{ group | striptags | trim | upper_first }} + {% for commit in commits %} + {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ + {% if commit.breaking %}[**breaking**]: {{ commit.breaking_description }}{% endif %} + {{ commit.message }}: {{ commit.body }}\ + {% for footer in commit.footers %} + - {{ footer.token }}{{ footer.separator }} {{ footer.value }}\ + {% endfor %} + {% endfor %}\ +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# process each line of a commit as an individual commit +split_commits = false +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix" }, +] diff --git a/.github/fixtures/test-from-context-does-not-discard-fields/commit.sh b/.github/fixtures/test-from-context-does-not-discard-fields/commit.sh new file mode 100755 index 0000000000..b55c2524a3 --- /dev/null +++ b/.github/fixtures/test-from-context-does-not-discard-fields/commit.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m \ + "feat(web): feature 1, breaking change in footer + +Body feature 1 + +BREAKING CHANGE: breaking change description feature 1 +Signed-off-by: user1 +Reviewed-by: user2 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m \ + "feat(web)!: feature 2, breaking chain in description + +Body feature 2 + +Signed-off-by: user3 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m \ + "feat!: feature 3, use default scope = app + +Body feature 2 + +Signed-off-by: user3 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m \ + "fix(scope): fix 1, use scope as group + +Body fix 1 + +Fix: #1 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m \ + "fix(front-end): fix 2, no footer + +Body fix 2 +" + +GIT_COMMITTER_DATE="2022-04-06 01:25:14" git commit --allow-empty -m \ + "fix(front-end): fix 3 and 4, no body but footer + +Fix: #3 +Fix: #4 +" + +git tag v0.1.0 diff --git a/.github/fixtures/test-from-context-does-not-discard-fields/context.json b/.github/fixtures/test-from-context-does-not-discard-fields/context.json new file mode 100644 index 0000000000..e7750b3752 --- /dev/null +++ b/.github/fixtures/test-from-context-does-not-discard-fields/context.json @@ -0,0 +1,391 @@ +[ + { + "version": "v0.1.0", + "message": null, + "commits": [ + { + "id": "ab06a042344dbd1c4af974ef393049b44ad0ae28", + "message": "feature 1, breaking change in footer", + "body": "Body feature 1", + "footers": [ + { + "token": "BREAKING CHANGE", + "separator": ":", + "value": "breaking change description feature 1", + "breaking": true + }, + { + "token": "Signed-off-by", + "separator": ":", + "value": "user1 ", + "breaking": false + }, + { + "token": "Reviewed-by", + "separator": ":", + "value": "user2", + "breaking": false + } + ], + "group": "Features", + "breaking_description": "breaking change description feature 1", + "breaking": true, + "scope": "web", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175909 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "feat(web): feature 1, breaking change in footer\n\nBody feature 1\n\nBREAKING CHANGE: breaking change description feature 1\nSigned-off-by: user1 \nReviewed-by: user2" + }, + { + "id": "a87599e6ecaf05e80ac4d87edd9a852fd8cad189", + "message": "feature 2, breaking chain in description", + "body": "Body feature 2", + "footers": [ + { + "token": "Signed-off-by", + "separator": ":", + "value": "user3 ", + "breaking": false + } + ], + "group": "Features", + "breaking_description": "feature 2, breaking chain in description", + "breaking": true, + "scope": "web", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175910 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "feat(web)!: feature 2, breaking chain in description\n\nBody feature 2\n\nSigned-off-by: user3 " + }, + { + "id": "9d83e631a1c57eec825f724283041662edd9230b", + "message": "feature 3, use default scope = app", + "body": "Body feature 2", + "footers": [ + { + "token": "Signed-off-by", + "separator": ":", + "value": "user3 ", + "breaking": false + } + ], + "group": "Features", + "breaking_description": "feature 3, use default scope = app", + "breaking": true, + "scope": "app", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175911 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "feat!: feature 3, use default scope = app\n\nBody feature 2\n\nSigned-off-by: user3 " + }, + { + "id": "3bb5b6f741fd40cc71f09d3c6a339e4b5d0843cc", + "message": "fix 1, use scope as group", + "body": "Body fix 1", + "footers": [ + { "token": "Fix", "separator": ":", "value": "#1", "breaking": false } + ], + "group": "fix", + "breaking_description": null, + "breaking": false, + "scope": "scope", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175912 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "fix(scope): fix 1, use scope as group\n\nBody fix 1\n\nFix: #1" + }, + { + "id": "856472f0e5b238278fe331dcc151a96982c5bbad", + "message": "fix 2, no footer", + "body": "Body fix 2", + "footers": [], + "group": "fix", + "breaking_description": null, + "breaking": false, + "scope": "front-end", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175913 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "fix(front-end): fix 2, no footer\n\nBody fix 2" + }, + { + "id": "6e7a2b8e670a348ccfbae696fd850d8769c54360", + "message": "fix 3 and 4, no body but footer", + "body": null, + "footers": [ + { + "token": "Fix", + "separator": ":", + "value": "#3", + "breaking": false + }, + { "token": "Fix", "separator": ":", "value": "#4", "breaking": false } + ], + "group": "fix", + "breaking_description": null, + "breaking": false, + "scope": "front-end", + "links": [], + "author": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1728938297 + }, + "committer": { + "name": "github-actions[bot]", + "email": "github-actions[bot]@users.noreply.github.com", + "timestamp": 1649175914 + }, + "conventional": true, + "merge_commit": false, + "extra": null, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "raw_message": "fix(front-end): fix 3 and 4, no body but footer\n\nFix: #3\nFix: #4" + } + ], + "commit_id": "6e7a2b8e670a348ccfbae696fd850d8769c54360", + "timestamp": 1649175914, + "previous": { + "version": null, + "message": null, + "commits": [], + "commit_id": null, + "timestamp": 0, + "previous": null, + "repository": null, + "extra": null, + "github": { "contributors": [] }, + "gitlab": { "contributors": [] }, + "gitea": { "contributors": [] }, + "bitbucket": { "contributors": [] } + }, + "repository": "/path/to/repository", + "extra": null, + "github": { "contributors": [] }, + "gitlab": { "contributors": [] }, + "gitea": { "contributors": [] }, + "bitbucket": { "contributors": [] } + } +] diff --git a/.github/fixtures/test-from-context-does-not-discard-fields/expected.md b/.github/fixtures/test-from-context-does-not-discard-fields/expected.md new file mode 100644 index 0000000000..aefd3fa0c5 --- /dev/null +++ b/.github/fixtures/test-from-context-does-not-discard-fields/expected.md @@ -0,0 +1,35 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## Features + +*(web)* [**breaking**]: breaking change description feature 1 +feature 1, breaking change in footer: Body feature 1 +- BREAKING CHANGE: breaking change description feature 1 +- Signed-off-by: user1 +- Reviewed-by: user2 + +*(web)* [**breaking**]: feature 2, breaking chain in description +feature 2, breaking chain in description: Body feature 2 +- Signed-off-by: user3 + +*(app)* [**breaking**]: feature 3, use default scope = app +feature 3, use default scope = app: Body feature 2 +- Signed-off-by: user3 + +## Fix + +*(scope)* +fix 1, use scope as group: Body fix 1 +- Fix: #1 + +*(front-end)* +fix 2, no footer: Body fix 2 + +*(front-end)* +fix 3 and 4, no body but footer: +- Fix: #3 +- Fix: #4 + + diff --git a/.github/fixtures/test-from-context/cliff.toml b/.github/fixtures/test-from-context/cliff.toml new file mode 100644 index 0000000000..c533b79632 --- /dev/null +++ b/.github/fixtures/test-from-context/cliff.toml @@ -0,0 +1,34 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}{% if extra.note %} - {{ extra.note }}{% endif %} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}{% if commit.extra.note %} ({{ commit.extra.note }}){% endif %}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-from-context/commit.sh b/.github/fixtures/test-from-context/commit.sh new file mode 100755 index 0000000000..86dc2c57eb --- /dev/null +++ b/.github/fixtures/test-from-context/commit.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m "feat(gui): add feature 2" +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m "fix(gui): fix feature 2 SHOULD NOT BE IN THE CHANGELOG" +git tag v0.2.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-from-context/context.json b/.github/fixtures/test-from-context/context.json new file mode 100644 index 0000000000..5dee19a9f8 --- /dev/null +++ b/.github/fixtures/test-from-context/context.json @@ -0,0 +1,626 @@ +[ + { + "version": null, + "message": null, + "commits": [ + { + "id": "c7541276668616c136d12a9ccd87087314d66fb6", + "message": "add tests", + "body": null, + "footers": [], + "group": "test", + "breaking_description": null, + "breaking": false, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201113 + }, + "conventional": true, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + } + ], + "commit_id": null, + "timestamp": 0, + "previous": { + "version": "v0.2.0", + "message": null, + "commits": [ + { + "id": "ce8cecc9834e5cbdb5b4e79c8260cace3c0dd949", + "message": "feat(gui): add feature 2\n", + "group": null, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201111 + }, + "conventional": false, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + }, + { + "id": "5061081d6272b1da2146fab49d803c193db309d9", + "message": "fix(gui): fix feature 2\n", + "group": null, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201112 + }, + "conventional": false, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + } + ], + "commit_id": "5061081d6272b1da2146fab49d803c193db309d9", + "timestamp": 1649201112, + "previous": null, + "repository": "/home/johndoe/repo/", + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + }, + "repository": "/home/johndoe/repo/", + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + }, + { + "version": "v0.2.0", + "message": null, + "commits": [ + { + "id": "ce8cecc9834e5cbdb5b4e79c8260cace3c0dd949", + "message": "add feature 2", + "body": null, + "footers": [], + "group": "Features", + "breaking_description": null, + "breaking": false, + "scope": "gui", + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201111 + }, + "conventional": true, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + }, + { + "id": "5061081d6272b1da2146fab49d803c193db309d9", + "message": "fix feature 2", + "body": null, + "footers": [], + "group": "Bug Fixes", + "breaking_description": null, + "breaking": false, + "scope": "cli", + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201112 + }, + "conventional": true, + "merge_commit": false, + "extra": { + "note": "that was a tough one" + }, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + } + ], + "commit_id": "5061081d6272b1da2146fab49d803c193db309d9", + "timestamp": 1649201112, + "previous": { + "version": "v0.1.0", + "message": null, + "commits": [ + { + "id": "c6ba7fe73c3b639ff2f934f3f98e5f50350ab463", + "message": "Initial commit\n", + "group": null, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201108 + }, + "conventional": false, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + }, + { + "id": "9c10e506bf103998e303d8164c7b4a1a841e2471", + "message": "feat: add feature 1\n", + "group": null, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201109 + }, + "conventional": false, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + }, + { + "id": "98b1464c2f99a0c6812ce6d3ea4a5b953dd35fe2", + "message": "fix: fix feature 1\n", + "group": null, + "scope": null, + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201110 + }, + "conventional": false, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + } + ], + "commit_id": "98b1464c2f99a0c6812ce6d3ea4a5b953dd35fe2", + "timestamp": 1649201110, + "previous": null, + "repository": "/home/johndoe/repo/", + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + }, + "extra": { + "note": "This is so awesome!" + }, + "repository": "/home/johndoe/repo/", + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + }, + { + "version": "v0.1.0", + "message": null, + "commits": [ + { + "id": "9c10e506bf103998e303d8164c7b4a1a841e2471", + "message": "add feature 1", + "body": null, + "footers": [], + "group": "Features", + "breaking_description": null, + "breaking": false, + "scope": "app", + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201109 + }, + "conventional": true, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + }, + { + "id": "98b1464c2f99a0c6812ce6d3ea4a5b953dd35fe2", + "message": "fix feature 1", + "body": null, + "footers": [], + "group": "Bug Fixes", + "breaking_description": null, + "breaking": false, + "scope": "cli", + "links": [], + "author": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1723730666 + }, + "committer": { + "name": "John Doe", + "email": "john@doe.com", + "timestamp": 1649201110 + }, + "conventional": true, + "merge_commit": false, + "github": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitlab": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "gitea": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + }, + "bitbucket": { + "username": null, + "pr_title": null, + "pr_number": null, + "pr_labels": [], + "is_first_time": false + } + } + ], + "commit_id": "98b1464c2f99a0c6812ce6d3ea4a5b953dd35fe2", + "timestamp": 1649201110, + "previous": { + "version": null, + "message": null, + "commits": [], + "commit_id": null, + "timestamp": 0, + "previous": null, + "repository": null, + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + }, + "repository": "/home/johndoe/repo/", + "github": { + "contributors": [] + }, + "gitlab": { + "contributors": [] + }, + "gitea": { + "contributors": [] + }, + "bitbucket": { + "contributors": [] + } + } +] diff --git a/.github/fixtures/test-from-context/expected.md b/.github/fixtures/test-from-context/expected.md new file mode 100644 index 0000000000..5e0ff03ca1 --- /dev/null +++ b/.github/fixtures/test-from-context/expected.md @@ -0,0 +1,31 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [unreleased] + +### Test + +- Add tests + +## [0.2.0] - 2022-04-05 - This is so awesome! + +### Bug Fixes + +- Fix feature 2 (that was a tough one) + +### Features + +- Add feature 2 + +## [0.1.0] - 2022-04-05 + +### Bug Fixes + +- Fix feature 1 + +### Features + +- Add feature 1 + + diff --git a/.github/fixtures/test-gitea-integration/cliff.toml b/.github/fixtures/test-gitea-integration/cliff.toml new file mode 100644 index 0000000000..d869d2e4e6 --- /dev/null +++ b/.github/fixtures/test-gitea-integration/cliff.toml @@ -0,0 +1,46 @@ +[remote.gitea] +owner = "ThetaDev" +repo = "git-cliff-readme-example" + +[changelog] +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +## What's Changed +{%- if version %} in {{ version }}{%- endif -%} +{% for commit in commits %} + * {{ commit.message | split(pat="\n") | first | trim }}\ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %} +{%- endfor -%} + +{% if gitea.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + {% raw %}\n{% endraw -%} + ### New Contributors +{%- endif %}\ +{% for contributor in gitea.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} +{%- endfor -%} +{% raw %}\n\n{% endraw -%} +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """ + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = false +# filter out the commits that are not conventional +filter_unconventional = true +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false diff --git a/.github/fixtures/test-gitea-integration/commit.sh b/.github/fixtures/test-gitea-integration/commit.sh new file mode 100755 index 0000000000..d15ef150ec --- /dev/null +++ b/.github/fixtures/test-gitea-integration/commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +git remote add origin https://codeberg.org/ThetaDev/git-cliff-readme-example.git +git pull origin master +git fetch --tags diff --git a/.github/fixtures/test-gitea-integration/expected.md b/.github/fixtures/test-gitea-integration/expected.md new file mode 100644 index 0000000000..7c68ba4d14 --- /dev/null +++ b/.github/fixtures/test-gitea-integration/expected.md @@ -0,0 +1,15 @@ +## What's Changed +* Initial commit by @ThetaDev +* docs(project): add README.md by @ThetaDev +* feat(parser): add ability to parse arrays by @ThetaDev +* fix(args): rename help argument due to conflict by @ThetaDev +* docs(example)!: add tested usage example by @ThetaDev +* refactor(parser): expose string functions by @ThetaDev +* chore(release): add release script by @ThetaDev +* feat(config): support multiple file formats by @ThetaDev +* feat(cache): use cache while fetching pages by @ThetaDev + +### New Contributors +* @ThetaDev made their first contribution + + diff --git a/.github/fixtures/test-github-integration/cliff.toml b/.github/fixtures/test-github-integration/cliff.toml index fcddf67338..b1d07e7490 100644 --- a/.github/fixtures/test-github-integration/cliff.toml +++ b/.github/fixtures/test-github-integration/cliff.toml @@ -11,16 +11,19 @@ body = """ {%- if version %} in {{ version }}{%- endif -%} {% for commit in commits %} * {{ commit.message | split(pat="\n") | first | trim }}\ - {% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%} - {% if commit.github.pr_number %} in #{{ commit.github.pr_number }}{%- endif %} + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %} {%- endfor -%} {% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} {% raw %}\n{% endraw -%} - ## New Contributors + ### New Contributors {%- endif %}\ {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} - * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} {%- endfor -%} {% if version %} diff --git a/.github/fixtures/test-github-integration/expected.md b/.github/fixtures/test-github-integration/expected.md index 82c8ed1243..d8f27aa0d5 100644 --- a/.github/fixtures/test-github-integration/expected.md +++ b/.github/fixtures/test-github-integration/expected.md @@ -15,4 +15,7 @@ * fix(args): rename help argument due to conflict by @orhun * docs(example)!: add tested usage example by @orhun +### New Contributors +* @orhun made their first contribution + diff --git a/.github/fixtures/test-gitlab-integration/cliff.toml b/.github/fixtures/test-gitlab-integration/cliff.toml new file mode 100644 index 0000000000..dc72ccdf19 --- /dev/null +++ b/.github/fixtures/test-gitlab-integration/cliff.toml @@ -0,0 +1,54 @@ +[remote.gitlab] +owner = "dark0dave" +repo = "dotfiles" + +[changelog] +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +## What's Changed + +{%- if version %} in {{ version }}{%- endif -%} +{% for commit in commits %} + * {{ commit.message | split(pat="\n") | first | trim }}\ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %} +{%- endfor -%} + +{% if gitlab.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + {% raw %}\n{% endraw -%} + ### New Contributors +{%- endif %}\ +{% for contributor in gitlab.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} +{%- endfor -%} + +{% if version %} + {% if previous.version %} + **Full Changelog**: https://gitlab.com/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}/compare/{{ previous.version }}...{{ version }} + {% endif %} +{% else -%} + {% raw %}\n{% endraw %} +{% endif %} +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """\n + +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = false +# filter out the commits that are not conventional +filter_unconventional = true +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false diff --git a/.github/fixtures/test-gitlab-integration/commit.sh b/.github/fixtures/test-gitlab-integration/commit.sh new file mode 100755 index 0000000000..8cbedcad3a --- /dev/null +++ b/.github/fixtures/test-gitlab-integration/commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +git remote add origin https://gitlab.com/dark0dave/dotfiles +git fetch +git checkout 3c048a1b6a32e6d1076581225b06dd41ee5a02ff diff --git a/.github/fixtures/test-gitlab-integration/expected.md b/.github/fixtures/test-gitlab-integration/expected.md new file mode 100644 index 0000000000..a4e593d0b6 --- /dev/null +++ b/.github/fixtures/test-gitlab-integration/expected.md @@ -0,0 +1,18 @@ +## What's Changed +* Initial commit by @dark0dave +* Added tmux files by @dark0dave +* Updated readme by @dark0dave +* Updated readme and added zshrc files by @dark0dave +* Added python files by @dark0dave +* Added curl files by @dark0dave +* Zsh update by @dark0dave +* Update README.md by @dark0dave +* Fix for path by @dark0dave +* Update README.md by @dark0dave +* Started setup files by @dark0dave +* Updated tmux to be a little nicer by @dark0dave +* Merge branch 'feature/tmux-improvements' into 'master' by @dark0dave in #2 + + + + diff --git a/.github/fixtures/test-header-template/cliff.toml b/.github/fixtures/test-header-template/cliff.toml new file mode 100644 index 0000000000..91a9f81c0a --- /dev/null +++ b/.github/fixtures/test-header-template/cliff.toml @@ -0,0 +1,31 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog +{% for release in releases %}\ + {% if release.version %}\ + {% if release.previous.version %}\ + + {% endif %}\ + {% else %}\ + + {% endif %}\ +{% endfor %}\ +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# remove the leading and trailing whitespace from the templates +trim = true diff --git a/.github/fixtures/test-header-template/commit.sh b/.github/fixtures/test-header-template/commit.sh new file mode 100644 index 0000000000..ed35b19af4 --- /dev/null +++ b/.github/fixtures/test-header-template/commit.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add feature 2" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "fix: fix feature 2" +git tag v0.2.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "feat: add footer" +git tag v3.0.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "test: footer" +GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "perf: footer" diff --git a/.github/fixtures/test-header-template/expected.md b/.github/fixtures/test-header-template/expected.md new file mode 100644 index 0000000000..f9b52bfa64 --- /dev/null +++ b/.github/fixtures/test-header-template/expected.md @@ -0,0 +1,33 @@ +# Changelog + + + +## [unreleased] + +### Perf + +- Footer + +### Test + +- Footer + +## [3.0.0] + +### Feat + +- Add footer + +## [0.2.0] + +### Fix + +- Fix feature 1 +- Fix feature 2 + +## [0.1.0] + +### Feat + +- Add feature 1 +- Add feature 2 diff --git a/.github/fixtures/test-ignore-tags/cliff.toml b/.github/fixtures/test-ignore-tags/cliff.toml index 62a656124d..705f8fc2a3 100644 --- a/.github/fixtures/test-ignore-tags/cliff.toml +++ b/.github/fixtures/test-ignore-tags/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-invert-ignore-tags/cliff.toml b/.github/fixtures/test-invert-ignore-tags/cliff.toml new file mode 100644 index 0000000000..bc7fee5670 --- /dev/null +++ b/.github/fixtures/test-invert-ignore-tags/cliff.toml @@ -0,0 +1,34 @@ +[changelog] +# changelog header +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for skipping tags +skip_tags = "v0.1.0-beta.1" +# regex for ignoring tags +ignore_tags = "v.*-beta.*" +count_tags = "v0.2.0" diff --git a/.github/fixtures/test-invert-ignore-tags/commit.sh b/.github/fixtures/test-invert-ignore-tags/commit.sh new file mode 100755 index 0000000000..fa448ec4ea --- /dev/null +++ b/.github/fixtures/test-invert-ignore-tags/commit.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add skip feature" +git tag v0.1.0-beta.1 + +GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "feat: fix feature 1" +git tag v0.1.0 + +GIT_COMMITTER_DATE="2021-01-23 01:23:48" git commit --allow-empty -m "feat: add feature 2" +git tag v0.2.0-beta.1 + +GIT_COMMITTER_DATE="2021-01-23 01:23:49" git commit --allow-empty -m "feat: add feature 3" +git tag v0.2.0 diff --git a/.github/fixtures/test-invert-ignore-tags/expected.md b/.github/fixtures/test-invert-ignore-tags/expected.md new file mode 100644 index 0000000000..0b152c22d2 --- /dev/null +++ b/.github/fixtures/test-invert-ignore-tags/expected.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.2.0] - 2021-01-23 + +### Feat + +- Add feature 1 +- Fix feature 1 +- Add feature 2 +- Add feature 3 + + diff --git a/.github/fixtures/test-keep-a-changelog-links-current-arg/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-current-arg/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-current-arg/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-current-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-latest-arg/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-latest-arg/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-latest-arg/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-latest-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-no-tags/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-no-tags/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-no-tags/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-no-tags/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-one-tag-bump-arg/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-one-tag-bump-arg/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-one-tag-bump-arg/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-one-tag-bump-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-one-tag/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-one-tag/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-one-tag/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-one-tag/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-tag-arg/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-tag-arg/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-tag-arg/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-tag-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links-unreleased-arg/cliff.toml b/.github/fixtures/test-keep-a-changelog-links-unreleased-arg/cliff.toml index c96c37331f..e6d5eaf844 100644 --- a/.github/fixtures/test-keep-a-changelog-links-unreleased-arg/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links-unreleased-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-keep-a-changelog-links/cliff.toml b/.github/fixtures/test-keep-a-changelog-links/cliff.toml index 59ef355cf0..f02b8cba2c 100644 --- a/.github/fixtures/test-keep-a-changelog-links/cliff.toml +++ b/.github/fixtures/test-keep-a-changelog-links/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file. diff --git a/.github/fixtures/test-latest-with-one-tag/cliff.toml b/.github/fixtures/test-latest-with-one-tag/cliff.toml index 5504810e90..61d862d721 100644 --- a/.github/fixtures/test-latest-with-one-tag/cliff.toml +++ b/.github/fixtures/test-latest-with-one-tag/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-latest-with-one-tag/commit.sh b/.github/fixtures/test-latest-with-one-tag/commit.sh index 6c5c90caaf..361943d085 100755 --- a/.github/fixtures/test-latest-with-one-tag/commit.sh +++ b/.github/fixtures/test-latest-with-one-tag/commit.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: initial commit" GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat: add feature 1" git tag v0.1.0 diff --git a/.github/fixtures/test-latest-with-one-tag/expected.md b/.github/fixtures/test-latest-with-one-tag/expected.md index 1b15d95c46..e7fdd52b94 100644 --- a/.github/fixtures/test-latest-with-one-tag/expected.md +++ b/.github/fixtures/test-latest-with-one-tag/expected.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. ### Feat +- Initial commit - Add feature 1 diff --git a/.github/fixtures/test-limit-commits/cliff.toml b/.github/fixtures/test-limit-commits/cliff.toml index f053d363b3..bac91dc629 100644 --- a/.github/fixtures/test-limit-commits/cliff.toml +++ b/.github/fixtures/test-limit-commits/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-monorepo-include-path/cliff.toml b/.github/fixtures/test-monorepo-include-path/cliff.toml new file mode 100644 index 0000000000..b26308cde6 --- /dev/null +++ b/.github/fixtures/test-monorepo-include-path/cliff.toml @@ -0,0 +1,34 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-monorepo-include-path/commit.sh b/.github/fixtures/test-monorepo-include-path/commit.sh new file mode 100755 index 0000000000..641a2f761e --- /dev/null +++ b/.github/fixtures/test-monorepo-include-path/commit.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +git remote add origin https://github.com/orhun/git-cliff +git fetch +mv cliff.toml cliff.toml.bak +git checkout 076feb74b4d8c8634669f57d4e2765c39490d80e +mv cliff.toml.bak cliff.toml diff --git a/.github/fixtures/test-monorepo-include-path/expected.md b/.github/fixtures/test-monorepo-include-path/expected.md new file mode 100644 index 0000000000..3f7e907445 --- /dev/null +++ b/.github/fixtures/test-monorepo-include-path/expected.md @@ -0,0 +1,18 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [unreleased] + +### Bug Fixes + +- Include the root commit when `--latest` is used with one tag (#901) +- Match PR and release metadata correctly (#907) +- Fix missing commit fields in context (#837) (#920) +- Preserve first time contributors (#925) + +### Features + +- Allow overriding the remote API URL via config (#896) + + diff --git a/.github/fixtures/test-no-exec/cliff.toml b/.github/fixtures/test-no-exec/cliff.toml index 7a8024d7a1..fd7d92d848 100644 --- a/.github/fixtures/test-no-exec/cliff.toml +++ b/.github/fixtures/test-no-exec/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-regex-label-grouping/cliff.toml b/.github/fixtures/test-regex-label-grouping/cliff.toml new file mode 100644 index 0000000000..49ce37f2a1 --- /dev/null +++ b/.github/fixtures/test-regex-label-grouping/cliff.toml @@ -0,0 +1,25 @@ +[changelog] +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +body = """ +### What's changed +{% for group, commits in commits | group_by(attribute="group") %} + #### {{ group }} + {% for commit in commits -%} + - {{ commit.message }} + {% endfor -%}\n +{% endfor %}\n +""" +footer = """ + +""" +trim = true + +[git] +commit_parsers = [ + { field = "author.name", pattern = "testa", group = "TEST A" }, + { field = "author.name", pattern = "testb", group = "TEST B" }, + { field = "author.name", pattern = "testc", group = "TEST C" }, +] diff --git a/.github/fixtures/test-regex-label-grouping/commit.sh b/.github/fixtures/test-regex-label-grouping/commit.sh new file mode 100755 index 0000000000..3a190fd5b4 --- /dev/null +++ b/.github/fixtures/test-regex-label-grouping/commit.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty --author="testa " -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty --author="testa " -m "feat: add feature 2" +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty --author="testb " -m "feat: add feature 3" +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty --author="testb " -m "feat: add feature 4" +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty --author="testc " -m "feat: add feature 5" +GIT_COMMITTER_DATE="2022-04-06 01:25:14" git commit --allow-empty --author="testc " -m "feat: add feature 6" diff --git a/.github/fixtures/test-regex-label-grouping/expected.md b/.github/fixtures/test-regex-label-grouping/expected.md new file mode 100644 index 0000000000..9320ce2f94 --- /dev/null +++ b/.github/fixtures/test-regex-label-grouping/expected.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +### What's changed + +#### TEST A +- add feature 1 +- add feature 2 + +#### TEST B +- add feature 3 +- add feature 4 + +#### TEST C +- add feature 5 +- add feature 6 + + \ No newline at end of file diff --git a/.github/fixtures/test-regex-replace-parser/cliff.toml b/.github/fixtures/test-regex-replace-parser/cliff.toml index b464addd34..8b05dbfba1 100644 --- a/.github/fixtures/test-regex-replace-parser/cliff.toml +++ b/.github/fixtures/test-regex-replace-parser/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-skip-breaking-changes/cliff.toml b/.github/fixtures/test-skip-breaking-changes/cliff.toml index d0574838ca..fdf5144b26 100644 --- a/.github/fixtures/test-skip-breaking-changes/cliff.toml +++ b/.github/fixtures/test-skip-breaking-changes/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-skip-commits/cliff.toml b/.github/fixtures/test-skip-commits/cliff.toml index 9a9d380abc..b26308cde6 100644 --- a/.github/fixtures/test-skip-commits/cliff.toml +++ b/.github/fixtures/test-skip-commits/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-split-commits/cliff.toml b/.github/fixtures/test-split-commits/cliff.toml index ec20df871c..08d2919052 100644 --- a/.github/fixtures/test-split-commits/cliff.toml +++ b/.github/fixtures/test-split-commits/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-tag-message/cliff.toml b/.github/fixtures/test-tag-message/cliff.toml new file mode 100644 index 0000000000..1f2be1c0eb --- /dev/null +++ b/.github/fixtures/test-tag-message/cliff.toml @@ -0,0 +1,37 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + {% if message %} + {{ message }} + {% endif %}\ +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-tag-message/commit.sh b/.github/fixtures/test-tag-message/commit.sh new file mode 100755 index 0000000000..f2ec2b9ca0 --- /dev/null +++ b/.github/fixtures/test-tag-message/commit.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 -m "Some text" +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m "feat(gui): add feature 2" +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m "fix(gui): fix feature 2" +git tag v0.2.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:13" git commit --allow-empty -m "test: add tests" diff --git a/.github/fixtures/test-tag-message/expected.md b/.github/fixtures/test-tag-message/expected.md new file mode 100644 index 0000000000..afcaca4dd9 --- /dev/null +++ b/.github/fixtures/test-tag-message/expected.md @@ -0,0 +1,33 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [unreleased] + +### Test + +- Add tests + +## [0.2.0] - 2022-04-06 + +### Bug Fixes + +- Fix feature 2 + +### Features + +- Add feature 2 + +## [0.1.0] - 2022-04-06 + +Some text + +### Bug Fixes + +- Fix feature 1 + +### Features + +- Add feature 1 + + diff --git a/.github/fixtures/test-topo-order-arg/cliff.toml b/.github/fixtures/test-topo-order-arg/cliff.toml index 5504810e90..61d862d721 100644 --- a/.github/fixtures/test-topo-order-arg/cliff.toml +++ b/.github/fixtures/test-topo-order-arg/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-topo-order/cliff.toml b/.github/fixtures/test-topo-order/cliff.toml index f4bbb0a47b..28911d28be 100644 --- a/.github/fixtures/test-topo-order/cliff.toml +++ b/.github/fixtures/test-topo-order/cliff.toml @@ -1,5 +1,5 @@ [changelog] -# changelog header +# template for the changelog footer header = """ # Changelog\n All notable changes to this project will be documented in this file.\n diff --git a/.github/fixtures/test-unchanged-tag-date/cliff.toml b/.github/fixtures/test-unchanged-tag-date/cliff.toml new file mode 100644 index 0000000000..b26308cde6 --- /dev/null +++ b/.github/fixtures/test-unchanged-tag-date/cliff.toml @@ -0,0 +1,34 @@ +[changelog] +# template for the changelog footer +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +# template for the changelog body +# https://keats.github.io/tera/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features", default_scope = "app" }, + { message = "^fix", group = "Bug Fixes", scope = "cli" }, +] diff --git a/.github/fixtures/test-unchanged-tag-date/commit.sh b/.github/fixtures/test-unchanged-tag-date/commit.sh new file mode 100755 index 0000000000..9a42410d96 --- /dev/null +++ b/.github/fixtures/test-unchanged-tag-date/commit.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +GIT_COMMITTER_DATE="2022-04-06 01:25:08" git commit --allow-empty -m "Initial commit" +GIT_COMMITTER_DATE="2022-04-06 01:25:09" git commit --allow-empty -m "feat: add feature 1" +GIT_COMMITTER_DATE="2022-04-06 01:25:10" git commit --allow-empty -m "fix: fix feature 1" +git tag v0.1.0 +GIT_COMMITTER_DATE="2022-04-06 01:25:11" git commit --allow-empty -m "feat(gui): add feature 2" +GIT_COMMITTER_DATE="2022-04-06 01:25:12" git commit --allow-empty -m "fix(gui): fix feature 2" +git tag v0.2.0 diff --git a/.github/fixtures/test-unchanged-tag-date/expected.md b/.github/fixtures/test-unchanged-tag-date/expected.md new file mode 100644 index 0000000000..9fb4d735f7 --- /dev/null +++ b/.github/fixtures/test-unchanged-tag-date/expected.md @@ -0,0 +1,25 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.2.0] - 2022-04-06 + +### Bug Fixes + +- Fix feature 2 + +### Features + +- Add feature 2 + +## [0.1.0] - 2022-04-06 + +### Bug Fixes + +- Fix feature 1 + +### Features + +- Add feature 1 + + diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 00d5752106..cf6adec443 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -22,8 +22,6 @@ jobs: with: config: cliff.toml args: -vv --latest --no-exec --github-repo ${{ github.repository }} - env: - OUTPUT: CHANGES.md publish-binaries: name: Publish binaries @@ -87,7 +85,7 @@ jobs: TOOLCHAIN: stable, TARGET: x86_64-pc-windows-gnu, NPM_PUBLISH: false, - PYPI_PUBLISH: true, + PYPI_PUBLISH: false, } - { NAME: win32-x64-msvc, @@ -115,7 +113,7 @@ jobs: } - { NAME: darwin-x64, - OS: macos-12, + OS: macos-14, TOOLCHAIN: stable, TARGET: x86_64-apple-darwin, NPM_PUBLISH: true, @@ -123,7 +121,7 @@ jobs: } - { NAME: darwin-arm64, - OS: macos-12, + OS: macos-14, TOOLCHAIN: stable, TARGET: aarch64-apple-darwin, NPM_PUBLISH: true, @@ -189,7 +187,7 @@ jobs: > git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.build.TARGET }}.tar.gz.sha512 fi - name: Sign the release - if: matrix.build.OS == 'ubuntu-22.04' || matrix.build.OS == 'macos-12' + if: matrix.build.OS == 'ubuntu-22.04' || matrix.build.OS == 'macos-14' run: | echo "${{ secrets.GPG_RELEASE_KEY }}" | base64 --decode > private.key echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --pinentry-mode=loopback \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d3dfd2351..a4f8bee898 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: cargo tarpaulin --out xml --verbose --all-features \ -- --skip "repo::test::git_upstream_remote" - name: Upload reports to codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: name: code-coverage-report file: cobertura.xml @@ -94,6 +94,11 @@ jobs: with: command: clippy args: --tests --verbose -- -D warnings + - name: Check the pedantic lints + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-targets --verbose -- -W clippy::pedantic rustfmt: name: Formatting @@ -111,6 +116,22 @@ jobs: command: fmt args: --all -- --check --verbose + doctest: + name: Doctests + runs-on: ubuntu-22.04 + steps: + - name: Install toolchain + uses: dtolnay/rust-toolchain@nightly + with: + components: rustfmt + - name: Checkout + uses: actions/checkout@v4 + - name: Check the formatting + uses: actions-rs/cargo@v1 + with: + command: test + args: --doc + lychee: name: Links runs-on: ubuntu-22.04 @@ -118,7 +139,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Check the links - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 with: args: -v --max-concurrency 1 *.md website/docs/* website/blog/* fail: true @@ -183,3 +204,42 @@ jobs: exit 1 fi done + + profiler: + name: Run profiler + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run profiler + run: cargo run --profile bench --features profiler -- --no-exec + - name: Upload report + uses: actions/upload-artifact@v4 + with: + name: git-cliff.${{ github.run_id }}-profiler-report + path: git-cliff.**.flamegraph.svg + + nix-flake: + name: Build Nix flake + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: nixbuild/nix-quick-install-action@v29 + + - name: Restore and cache Nix store + uses: nix-community/cache-nix-action@v5 + with: + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }} + restore-prefixes-first-match: nix-${{ runner.os }}- + gc-max-store-size-linux: 1073741824 + purge: false + + - name: Check Nix flake + run: nix flake check --all-systems -Lv --show-trace diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fbbd628b76..b00e6d74a3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -69,7 +69,7 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: ./ file: ./Dockerfile diff --git a/.github/workflows/test-fixtures.yml b/.github/workflows/test-fixtures.yml index 2e35cf7010..9df1326e80 100644 --- a/.github/workflows/test-fixtures.yml +++ b/.github/workflows/test-fixtures.yml @@ -18,7 +18,11 @@ jobs: include: - fixtures-name: new-fixture-template - fixtures-name: test-github-integration + - fixtures-name: test-gitlab-integration + - fixtures-name: test-gitea-integration + - fixtures-name: test-bitbucket-integration - fixtures-name: test-ignore-tags + - fixtures-name: test-invert-ignore-tags - fixtures-name: test-topo-order command: --latest - fixtures-name: test-date-order @@ -29,12 +33,21 @@ jobs: command: --latest - fixtures-name: test-commit-footers - fixtures-name: test-commit-preprocessors + - fixtures-name: test-conventional-commit - fixtures-name: test-custom-scope - fixtures-name: test-limit-commits - fixtures-name: test-skip-breaking-changes - fixtures-name: test-split-commits - fixtures-name: test-bump-version command: --bump + - fixtures-name: test-bump-version-major + command: --bump major + - fixtures-name: test-bump-version-minor + command: --bump minor + - fixtures-name: test-bump-version-patch + command: --bump patch + - fixtures-name: test-bump-version-custom-minor + command: --bump - fixtures-name: test-bumped-version command: --bumped-version - fixtures-name: test-footer-template @@ -68,6 +81,32 @@ jobs: - fixtures-name: test-custom-tag-pattern command: --tag-pattern "alpha.*" - fixtures-name: test-configure-from-cargo-toml + - fixtures-name: test-bump-initial-tag + command: --bump + - fixtures-name: test-bump-initial-tag-default + command: --bump + - fixtures-name: test-bump-initial-tag-cli-arg + command: --bump --tag=2.1.1 + - fixtures-name: test-cli-arg-ignore-tags + command: --ignore-tags ".*beta" + - fixtures-name: test-tag-message + - fixtures-name: test-bump-unreleased-with-tag-message-arg + command: --bump --unreleased --with-tag-message "Some text" + - fixtures-name: test-from-context + command: --from-context context.json + - fixtures-name: test-from-context-does-not-discard-fields + command: --from-context context.json + - fixtures-name: test-always-render-unreleased + command: --unreleased + - fixtures-name: test-always-render + command: --unreleased --tag v0.2.0 + - fixtures-name: test-unchanged-tag-date + command: --tag v0.2.0 + - fixtures-name: test-custom-remote-api-url + command: v1.4.0..v1.4.1 + - fixtures-name: test-monorepo-include-path + command: v2.6.1..v2.7.0 --include-path .github/fixtures/ + steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.gitignore b/.gitignore index 8a219191a1..9413d8de49 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,12 @@ # Backup files generated by rustfmt **/*.rs.bk + +*.flamegraph.svg + +# direnv +/.direnv/ + +# Potential Nix stuff +/result +/result-* diff --git a/.lycheeignore b/.lycheeignore index 42a11b6394..43b08ba68f 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -6,3 +6,4 @@ https://github.com/cocogitto/cocogitto pypi.org https://console.substack.com git-cliff/commit/ +patreon diff --git a/.well-known/funding-manifest-urls b/.well-known/funding-manifest-urls new file mode 100644 index 0000000000..5b1ad48e68 --- /dev/null +++ b/.well-known/funding-manifest-urls @@ -0,0 +1 @@ +https://orhun.dev/funding.json diff --git a/CHANGELOG.md b/CHANGELOG.md index c6b1535120..c31247ea84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,366 @@ [![animation](https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff-anim.gif)](https://git-cliff.org) +## [2.8.0](https://github.com/orhun/git-cliff/compare/v2.7.0..v2.8.0) - 2025-01-24 + +### ⛰️ Features + +- *(cli)* Support initializing config with a custom filename ([#992](https://github.com/orhun/git-cliff/issues/992)) - ([76bf9cf](https://github.com/orhun/git-cliff/commit/76bf9cf7aa26b58f2ae68edd007c9885b02af616)) +- *(config)* Discover the configuration file when run in a sub directory - ([a23eeb4](https://github.com/orhun/git-cliff/commit/a23eeb480961cd2b252acb7e1e6dc38807458e57)) +- *(git)* Improve the set commit range error ([#990](https://github.com/orhun/git-cliff/issues/990)) - ([f29e815](https://github.com/orhun/git-cliff/commit/f29e8150a8166d7364ed71b24675136d2e9bd382)) +- *(monorepo)* Automatically set include-path for current directory - ([ceda1f7](https://github.com/orhun/git-cliff/commit/ceda1f753adc3459b88417ae363410d2586a33af)) +- *(remote)* Support enabling native TLS ([#1021](https://github.com/orhun/git-cliff/issues/1021)) - ([fe7c464](https://github.com/orhun/git-cliff/commit/fe7c464c3bdbfd4e49f596615d6736ea441a4d16)) +- *(repo)* Allow running from sub directories ([#975](https://github.com/orhun/git-cliff/issues/975)) - ([98453b3](https://github.com/orhun/git-cliff/commit/98453b3eee754e1ffe08b685d84c039b17ac8e5e)) + +### 🐛 Bug Fixes + +- *(config)* Allow environment overwrites when using builtin config ([#961](https://github.com/orhun/git-cliff/issues/961)) - ([7ba3b55](https://github.com/orhun/git-cliff/commit/7ba3b55448bdbf7a4a475df2081b6d7c2e2ceb34)) +- *(docker)* Use the correct Debian runner - ([36ad993](https://github.com/orhun/git-cliff/commit/36ad993d5956270c0df8c12d201068c1b4d7c580)) +- *(fixtures)* Update the arguments for custom GitLab API fixture test - ([e522f8d](https://github.com/orhun/git-cliff/commit/e522f8d9f1efddc43a15120e52a2f1b426468b56)) +- *(monorepo)* Do not set include-path if workdir is set ([#1022](https://github.com/orhun/git-cliff/issues/1022)) - ([20483be](https://github.com/orhun/git-cliff/commit/20483be93fbcd33eae3b7b54f625e53796281aff)) +- *(remote)* Fix detection of GitLab merge request sha ([#968](https://github.com/orhun/git-cliff/issues/968)) - ([1297655](https://github.com/orhun/git-cliff/commit/12976550d35bad8d535518010046bd136875736b)) + +### 🚜 Refactor + +- *(lib)* Add changelog modifier callback to run function ([#922](https://github.com/orhun/git-cliff/issues/922)) - ([2321882](https://github.com/orhun/git-cliff/commit/2321882b12cc6aae03fbd4f7ea3e131fc8763631)) +- *(lint)* Use a shared lint config for the workspace - ([bfc1d4f](https://github.com/orhun/git-cliff/commit/bfc1d4fb8f8bd8faa350ec217f4d09d57c20b12d)) +- *(lint)* Apply clippy suggestions - ([299a1c7](https://github.com/orhun/git-cliff/commit/299a1c74b28ac41015bc436de6d37b5ef5d59b04)) + +### 📚 Documentation + +- *(docker)* Fix typo in comment ([#959](https://github.com/orhun/git-cliff/issues/959)) - ([dbda091](https://github.com/orhun/git-cliff/commit/dbda091aa15806523c2be371ec8a31fbba4ccdc7)) +- *(highlights)* Add link to the Nix flake - ([c449229](https://github.com/orhun/git-cliff/commit/c449229513da7444ea02fe275f410e4b2048c9ff)) +- *(jujutsu)* Update links to the upstream documentation - ([ed6b646](https://github.com/orhun/git-cliff/commit/ed6b64628f4bfd21b32021b3decf842ae14c9f51)) +- *(lib)* Allow doc lint - ([62a6d3e](https://github.com/orhun/git-cliff/commit/62a6d3e20cf72c8e2dcc7938894c5c65278e6c4e)) +- *(license)* Update copyright years - ([8178c9b](https://github.com/orhun/git-cliff/commit/8178c9b2ca41fb0b974d3387e07b3067256bdb0b)) +- *(tips)* Extend the merge commit filter example ([#963](https://github.com/orhun/git-cliff/issues/963)) - ([09c0f90](https://github.com/orhun/git-cliff/commit/09c0f905d8b20b585b0bc8183f14250d1a381ca0)) +- *(website)* Add highlights for 2.8.0 ([#1023](https://github.com/orhun/git-cliff/issues/1023)) - ([32dc15e](https://github.com/orhun/git-cliff/commit/32dc15efe5ea8be8f1691fbc16d9e5aaa1c5ebdc)) + +### 🧪 Testing + +- *(fixture)* Add fixture for include-path - ([e85888f](https://github.com/orhun/git-cliff/commit/e85888f5d8dbd4db0674613c4c354416a9be84d1)) + +### ⚙️ Miscellaneous Tasks + +- *(build)* Bump MSRV to 1.83.0 - ([37598c2](https://github.com/orhun/git-cliff/commit/37598c2d417a1646ec90590ab2a1f6d9da66296c)) +- *(docker)* Bump the Rust version in Docker image - ([729f433](https://github.com/orhun/git-cliff/commit/729f4336d169e9fc5cdefdb201208638eee17995)) +- *(funding)* Add wellKnown directory - ([8704518](https://github.com/orhun/git-cliff/commit/8704518fb71b88fa8985c660e67f77d9a33431c8)) +- *(lint)* Allow false positive lint - ([1b779a6](https://github.com/orhun/git-cliff/commit/1b779a698f845cb449da0640aeac45d53c6c43b9)) +- *(nix)* Update flakes - ([22fbe9d](https://github.com/orhun/git-cliff/commit/22fbe9dafbbeaa4bd68082787ea8231dbe12c9ae)) + +## New Contributors ❤️ + +* @xsadia made their first contribution in [#992](https://github.com/orhun/git-cliff/pull/992) +* @chenrui333 made their first contribution in [#1002](https://github.com/orhun/git-cliff/pull/1002) +* @hackenbergstefan made their first contribution in [#968](https://github.com/orhun/git-cliff/pull/968) +* @paul-uz made their first contribution in [#963](https://github.com/orhun/git-cliff/pull/963) +* @jmartens made their first contribution in [#959](https://github.com/orhun/git-cliff/pull/959) + +## [2.7.0](https://github.com/orhun/git-cliff/compare/v2.6.1..v2.7.0) - 2024-11-20 + +### ⛰️ Features + +- *(args)* Add color to the help text ([#897](https://github.com/orhun/git-cliff/issues/897)) - ([f423484](https://github.com/orhun/git-cliff/commit/f4234844bf66da3de8d5d6e1d6fd7a414d2e059a)) +- *(ci)* Add Nix CI ([#939](https://github.com/orhun/git-cliff/issues/939)) - ([d0848ff](https://github.com/orhun/git-cliff/commit/d0848ff04099a287157fbd22935f870e0636139d)) +- *(config)* Allow overriding the remote API URL via config ([#896](https://github.com/orhun/git-cliff/issues/896)) - ([6d86e2c](https://github.com/orhun/git-cliff/commit/6d86e2c9426f7f68207c2ea389629e67eca54277)) +- *(docker)* Build arm64 images again ([#879](https://github.com/orhun/git-cliff/issues/879)) ([#919](https://github.com/orhun/git-cliff/issues/919)) - ([84771f6](https://github.com/orhun/git-cliff/commit/84771f63d04bafec8023a7e9fd4694da6e4d9a25)) +- *(jujutsu)* Add jujustu support ([#930](https://github.com/orhun/git-cliff/issues/930)) - ([ab95626](https://github.com/orhun/git-cliff/commit/ab956263945798ec07214a5234ba6fafa8171ff7)) +- *(nix)* Add a basic Nix environment ([#918](https://github.com/orhun/git-cliff/issues/918)) - ([6b17736](https://github.com/orhun/git-cliff/commit/6b1773685f09a5e091b10f709b3a4f63b63c47b9)) +- *(website)* Add user testimonials ([#895](https://github.com/orhun/git-cliff/issues/895)) - ([ef2374c](https://github.com/orhun/git-cliff/commit/ef2374cab17e896b38b12bfe7d6b011f45e9f840)) + +### 🐛 Bug Fixes + +- *(bitbucket)* Match PR and release metadata correctly ([#907](https://github.com/orhun/git-cliff/issues/907)) - ([e936ed5](https://github.com/orhun/git-cliff/commit/e936ed571533ea6c41a1dd2b1a29d085c8dbada5)) +- *(changelog)* Fix missing commit fields in context ([#837](https://github.com/orhun/git-cliff/issues/837)) ([#920](https://github.com/orhun/git-cliff/issues/920)) - ([f8641ee](https://github.com/orhun/git-cliff/commit/f8641ee8f75da74637ab1f0d3d7c11bfcda8acf9)) +- *(changelog)* Include the root commit when `--latest` is used with one tag ([#901](https://github.com/orhun/git-cliff/issues/901)) - ([508a97e](https://github.com/orhun/git-cliff/commit/508a97edb088f77d01f232676d1e3c7f129071b2)) +- *(remote)* Preserve first time contributors ([#925](https://github.com/orhun/git-cliff/issues/925)) - ([99b78b5](https://github.com/orhun/git-cliff/commit/99b78b52f2d81484fa4e5ea7a66de6e9bea2b3df)) + +### 📚 Documentation + +- *(git)* Improve docs for commit_preprocessors and commit_parsers ([#928](https://github.com/orhun/git-cliff/issues/928)) - ([c1f1215](https://github.com/orhun/git-cliff/commit/c1f12154e7efa75f19ce632dc3052dae390c9211)) +- *(readme)* Add blog post about git-cliff - ([82b10ac](https://github.com/orhun/git-cliff/commit/82b10ac22c657113f8f7f215bdc1bee68ebe1e55)) +- *(website)* Add highlights for 2.7.0 ([#955](https://github.com/orhun/git-cliff/issues/955)) - ([b6b5449](https://github.com/orhun/git-cliff/commit/b6b544949d7763056fb87686f533ed814395f253)) +- *(website)* Add more testimonials - ([bfe9beb](https://github.com/orhun/git-cliff/commit/bfe9beb093df42badf762945cf04548fbe75949a)) +- *(website)* Update sourcehut ([#894](https://github.com/orhun/git-cliff/issues/894)) - ([bcc32ca](https://github.com/orhun/git-cliff/commit/bcc32ca5d1cc157902e04018655c5445237d1407)) + +### ⚡ Performance + +- *(test)* Don't create regex inside a loop ([#937](https://github.com/orhun/git-cliff/issues/937)) - ([0fabf22](https://github.com/orhun/git-cliff/commit/0fabf22c526e1d4b8cb7c718dd0a5d0af99950f8)) + +### 🧪 Testing + +- *(git)* Find upstream remote when using ssh ([#926](https://github.com/orhun/git-cliff/issues/926)) - ([2e65a72](https://github.com/orhun/git-cliff/commit/2e65a72bb044bad94f2568c491e4907f92331a56)) +- *(repo)* Expand unit tests of the repo module ([#909](https://github.com/orhun/git-cliff/issues/909)) - ([da1cb61](https://github.com/orhun/git-cliff/commit/da1cb61c9147631c9a2ba6598e3105132b41c2c3)) + +### ⚙️ Miscellaneous Tasks + +- *(config)* Add the 'other' parser to the default config - ([12cb1df](https://github.com/orhun/git-cliff/commit/12cb1df561cde39a9a0d0f719156a000f3f4d61b)) +- *(docker)* Upgrade Rust and libc version in Dockerfile - ([8bd0607](https://github.com/orhun/git-cliff/commit/8bd0607e231e219f9b60eb4c7f0d8353ef4462e0)) +- *(docker)* Bump the Rust version in Docker image - ([c28121c](https://github.com/orhun/git-cliff/commit/c28121c1aa427c3169df218a9803d838172f7c24)) +- *(integration)* Remove experimental feature disclaimer - ([237c327](https://github.com/orhun/git-cliff/commit/237c327839aa12672abe4255a62ce3c85737bd2c)) +- *(log)* Add trace log about which command is being run - ([a9b2690](https://github.com/orhun/git-cliff/commit/a9b26901e38aa3d3b1042d3bc10d2fe7c6c06565)) +- *(nix)* Update flakes - ([7654e67](https://github.com/orhun/git-cliff/commit/7654e67d971b795e238220dfabe894b2a1b23992)) +- *(website)* Add new testimonials - ([0c207d6](https://github.com/orhun/git-cliff/commit/0c207d606e5a65b4dca3287f2aa2b3c6d624f83d)) + +### ◀️ Revert + +- *(docker)* Bump the Rust version in Docker image - ([fc142e4](https://github.com/orhun/git-cliff/commit/fc142e4b9d4b5b54bc8a0fca6e336345951c9c7b)) + +## New Contributors ❤️ + +* @pauliyobo made their first contribution in [#896](https://github.com/orhun/git-cliff/pull/896) +* @blackheaven made their first contribution in [#939](https://github.com/orhun/git-cliff/pull/939) +* @Muhammad-Owais-Warsi made their first contribution in [#928](https://github.com/orhun/git-cliff/pull/928) +* @kemitix made their first contribution in [#930](https://github.com/orhun/git-cliff/pull/930) +* @mcwarman made their first contribution in [#925](https://github.com/orhun/git-cliff/pull/925) +* @LtdSauce made their first contribution in [#919](https://github.com/orhun/git-cliff/pull/919) +* @dqkqd made their first contribution in [#920](https://github.com/orhun/git-cliff/pull/920) +* @gsquire made their first contribution in [#909](https://github.com/orhun/git-cliff/pull/909) +* @rarescosma made their first contribution in [#901](https://github.com/orhun/git-cliff/pull/901) +* @vsn4ik made their first contribution in [#894](https://github.com/orhun/git-cliff/pull/894) + +## [2.6.1](https://github.com/orhun/git-cliff/compare/v2.6.0..v2.6.1) - 2024-09-27 + +### 🐛 Bug Fixes + +- *(npm)* Add missing `--use-branch-tags` flag to TS options ([#874](https://github.com/orhun/git-cliff/issues/874)) - ([e21fb1d](https://github.com/orhun/git-cliff/commit/e21fb1d3895d893fd6a371ecd48aa4632cf4231d)) +- *(remote)* Avoid setting multiple remotes ([#885](https://github.com/orhun/git-cliff/issues/885)) - ([a344c68](https://github.com/orhun/git-cliff/commit/a344c68238cf3bb87d4f7eb9be46e97cc964eed9)) + +### 📚 Documentation + +- *(website)* Add conversion to pdf to tips-and-tricks ([#889](https://github.com/orhun/git-cliff/issues/889)) - ([58dc108](https://github.com/orhun/git-cliff/commit/58dc1087ed86794c2f678707f2fbb8199167b0c3)) +- *(website)* Add get_env filter example for GitLab CI - ([dfe4459](https://github.com/orhun/git-cliff/commit/dfe4459c5cadd465dec4ea860580ecf82b2b8860)) + +### ⚙️ Miscellaneous Tasks + +- *(ci)* Update pedantic lint command ([#890](https://github.com/orhun/git-cliff/issues/890)) - ([8d10edb](https://github.com/orhun/git-cliff/commit/8d10edb7450aaf189fbce5f78a72274739f73ba9)) +- *(docker)* Disable building arm64 docker images temporarily ([#879](https://github.com/orhun/git-cliff/issues/879)) - ([cde2a8e](https://github.com/orhun/git-cliff/commit/cde2a8e3222f5e8f8bdd9ae841fd0e5c42f68846)) +- *(fixtures)* Build binaries using dev profile ([#886](https://github.com/orhun/git-cliff/issues/886)) - ([a394f88](https://github.com/orhun/git-cliff/commit/a394f88f1d1742dfa3d30887bcb387361de306bc)) + +## New Contributors ❤️ + +* @ckrenslehner made their first contribution in [#889](https://github.com/orhun/git-cliff/pull/889) + +## [2.6.0](https://github.com/orhun/git-cliff/compare/v2.5.0..v2.6.0) - 2024-09-22 + +### ⛰️ Features + +- *(changelog)* Support generating changelog for different branches ([#808](https://github.com/orhun/git-cliff/issues/808)) - ([2a581a8](https://github.com/orhun/git-cliff/commit/2a581a82bbdee057eff8051b261edc9a8c7f4491)) +- *(config)* Add changelog.render_always option ([#859](https://github.com/orhun/git-cliff/issues/859)) - ([ad039d5](https://github.com/orhun/git-cliff/commit/ad039d56b66563cc0299035650582a0518e94679)) +- *(config)* Allow configuring output file from config ([#829](https://github.com/orhun/git-cliff/issues/829)) - ([c2db791](https://github.com/orhun/git-cliff/commit/c2db791a6e2891b5eb46f40d43a490fc6923d038)) +- *(core)* Add `remote` to commit and deprecate fields ([#822](https://github.com/orhun/git-cliff/issues/822)) - ([87e2c1d](https://github.com/orhun/git-cliff/commit/87e2c1d0dd251c81796f607699d2c85ee12584ac)) +- *(npm)* Add missing options and document all options with tsdoc comments - ([2eae2f1](https://github.com/orhun/git-cliff/commit/2eae2f1f1f258b6c270e544d12fae1b150fb2610)) +- *(npm)* Add possibility for `skipCommit` to take an array of values - ([a6e3b78](https://github.com/orhun/git-cliff/commit/a6e3b78948a730aae18f156b2fb787b7ff26bb64)) + +### 🐛 Bug Fixes + +- *(args)* Support using use_branch_tags from both config and args ([#848](https://github.com/orhun/git-cliff/issues/848)) - ([35b7fd8](https://github.com/orhun/git-cliff/commit/35b7fd8007e781b65ef6c3112a349bfd8c8fda15)) +- *(bump)* Suppress template warning when `--bumped-version` is used ([#855](https://github.com/orhun/git-cliff/issues/855)) - ([8bebbf9](https://github.com/orhun/git-cliff/commit/8bebbf9f575e6e3f1bc50332e5703fde9dd1b55f)) +- *(changelog)* Do not change the tag date if tag already exists ([#861](https://github.com/orhun/git-cliff/issues/861)) - ([fbb643b](https://github.com/orhun/git-cliff/commit/fbb643b2e1096ac74a6ea9e9881ed4fd8161d3be)) +- *(changelog)* Correctly set the tag message for the latest release ([#854](https://github.com/orhun/git-cliff/issues/854)) - ([e41e8dd](https://github.com/orhun/git-cliff/commit/e41e8dd4a2e5ed12149078492cf6fd6eedebd0fa)) +- *(changelog)* Don't change the context when provided via `--from-context` ([#820](https://github.com/orhun/git-cliff/issues/820)) - ([ff72406](https://github.com/orhun/git-cliff/commit/ff7240633fcb46e6190dfed22150cbf8d3012df5)) +- *(commit)* Trim the trailing newline for git2 commits ([#872](https://github.com/orhun/git-cliff/issues/872)) - ([1cdbbf6](https://github.com/orhun/git-cliff/commit/1cdbbf604c27c8a597f72985b1d15359244e5186)) +- *(core)* Avoid the unnecessary loop when no remote feature is activated - ([1d8a2fe](https://github.com/orhun/git-cliff/commit/1d8a2fe84917d7bc7c0cb26afc559198ad806184)) +- *(template)* Resolve parsing issues with `raw`/`endraw` in Jinja ([#824](https://github.com/orhun/git-cliff/issues/824)) - ([63bf5b7](https://github.com/orhun/git-cliff/commit/63bf5b7438e2660d410ca825c63b1982fd4d43f5)) + +### 🚜 Refactor + +- *(template)* [**breaking**] Add name parameter to the constructor - ([e577113](https://github.com/orhun/git-cliff/commit/e577113bd69147936e391976c8b06cba76764eec)) + +### 📚 Documentation + +- *(args)* Fix copy-paste mistake where gitea mentioned gitlab - ([c41eacb](https://github.com/orhun/git-cliff/commit/c41eacb0b8181a26d95744e26965272cc105f629)) +- *(contributing)* Mention fetching the tags for running tests successfully ([#850](https://github.com/orhun/git-cliff/issues/850)) - ([a82dac3](https://github.com/orhun/git-cliff/commit/a82dac3cb15490f5b4e543d2f404e54a5126395c)) +- *(website)* Add highlights for 2.6.0 ([#873](https://github.com/orhun/git-cliff/issues/873)) - ([050fb55](https://github.com/orhun/git-cliff/commit/050fb55e86fd2f33fccd5760ddd4913602d5a552)) +- *(website)* Clarify comment about tag argument - ([e56cd8d](https://github.com/orhun/git-cliff/commit/e56cd8de17f08461dcff4ff88518872577fb73fb)) + +### ⚙️ Miscellaneous Tasks + +- *(ci)* Check pedantic lints ([#853](https://github.com/orhun/git-cliff/issues/853)) - ([c77420c](https://github.com/orhun/git-cliff/commit/c77420cf5a35e2658125030b6d9aee97a1e1bd57)) +- *(examples)* Improve example templates ([#835](https://github.com/orhun/git-cliff/issues/835)) - ([08e761c](https://github.com/orhun/git-cliff/commit/08e761c20fb98730249aef2047da02a7dfca86ad)) +- *(lib)* Fix typos in code comments - ([81854d2](https://github.com/orhun/git-cliff/commit/81854d2166fc265168effde50fa892265b83efdf)) +- *(npm)* Bump dev dependencies - ([61b86f1](https://github.com/orhun/git-cliff/commit/61b86f162bee28fffb3b3b06f19261d568fbf60b)) + +## New Contributors ❤️ + +* @nejcgalof made their first contribution in [#853](https://github.com/orhun/git-cliff/pull/853) +* @pplmx made their first contribution in [#824](https://github.com/orhun/git-cliff/pull/824) + +## [2.5.0](https://github.com/orhun/git-cliff/compare/v2.4.0..v2.5.0) - 2024-08-24 + +### ⛰️ Features + +- *(args)* Allow GitLab groups with `--gitlab-repo` ([#807](https://github.com/orhun/git-cliff/issues/807)) - ([6fbfdb5](https://github.com/orhun/git-cliff/commit/6fbfdb5963ad7d39a389001b660df5bf7f38dd37)) +- *(bump)* Support bumping to a specific semver type ([#744](https://github.com/orhun/git-cliff/issues/744)) - ([9dbf47b](https://github.com/orhun/git-cliff/commit/9dbf47bac596be7bacc335e8afa3cdc383dc8ebb)) +- *(changelog)* Support count_tags option ([#599](https://github.com/orhun/git-cliff/issues/599)) - ([b8045e9](https://github.com/orhun/git-cliff/commit/b8045e97ed2b50eee68cb29d5fd28e350c6ca745)) +- *(changelog)* Skip ssh and x509 signatures in tag messages ([#748](https://github.com/orhun/git-cliff/issues/748)) - ([ecbabbf](https://github.com/orhun/git-cliff/commit/ecbabbfb39b986e8445d2feb3189bab4307fd854)) +- *(cli)* Generate changelog from JSON context ([#784](https://github.com/orhun/git-cliff/issues/784)) - ([3b6156d](https://github.com/orhun/git-cliff/commit/3b6156ddd66a256a89e12da98b5cbc611a394c72)) +- *(parser)* Allow whole commit context to be used in commit parsers ([#758](https://github.com/orhun/git-cliff/issues/758)) - ([ccf2ab7](https://github.com/orhun/git-cliff/commit/ccf2ab769aef9fc6d9bbaebc02c41fe4105da24c)) +- *(profiler)* Support performance profiling via pprof ([#768](https://github.com/orhun/git-cliff/issues/768)) - ([35dc1e4](https://github.com/orhun/git-cliff/commit/35dc1e46fd57c32dc475ac545a86013a5c3258c8)) +- *(remote)* Activate integration if remote is set manually ([#782](https://github.com/orhun/git-cliff/issues/782)) - ([4b33e7e](https://github.com/orhun/git-cliff/commit/4b33e7e9869bde035d70ae9525c917340ff90bc3)) + +### 🐛 Bug Fixes + +- *(changelog)* Allow using `--bumped-version` without conventional commits ([#806](https://github.com/orhun/git-cliff/issues/806)) - ([e74080c](https://github.com/orhun/git-cliff/commit/e74080cec4283a45f0f81b1b656af466ae4bd693)) +- *(config)* Allow using environment variables without config file present ([#783](https://github.com/orhun/git-cliff/issues/783)) - ([2471745](https://github.com/orhun/git-cliff/commit/2471745e110955be49310afe11e24719ab79b658)) +- *(fixture)* Fix fetching repository for gitlab integration test - ([72847c6](https://github.com/orhun/git-cliff/commit/72847c6c7e71bf8f5b452f4943f0ddfc99cf6cb5)) +- *(gitlab)* URL-encode the owner in remote requests for GitLab ([#742](https://github.com/orhun/git-cliff/issues/742)) - ([e3e7c07](https://github.com/orhun/git-cliff/commit/e3e7c0794082e418a78f99e7d9c09161f4d14d5f)) +- *(template)* Include for-loop arguments in template variables ([#812](https://github.com/orhun/git-cliff/issues/812)) - ([9a6430b](https://github.com/orhun/git-cliff/commit/9a6430bc5142d356d16df2ce96869f7a0af05493)) + +### 🚜 Refactor + +- *(config)* Make example templates more user-friendly - ([6f8ea19](https://github.com/orhun/git-cliff/commit/6f8ea19baafea2718a00a046b74f0cbbfacc8d46)) +- *(gitlab)* Clean up url encoding for GitLab - ([c791418](https://github.com/orhun/git-cliff/commit/c791418c7e86def636ed2e0aac8d7cc30ef88791)) +- *(lib)* Clean up some code ([#709](https://github.com/orhun/git-cliff/issues/709)) - ([4b0c0eb](https://github.com/orhun/git-cliff/commit/4b0c0eb09abf1264b5cc92bf40f75c8e05e17da6)) + +### 📚 Documentation + +- *(config)* Fix typo in comment of default config file ([#776](https://github.com/orhun/git-cliff/issues/776)) - ([e2fb043](https://github.com/orhun/git-cliff/commit/e2fb0430786c1f746a7eb2a1b299f8491df2c584)) +- *(readme)* Remove underscored spaces between badges ([#809](https://github.com/orhun/git-cliff/issues/809)) - ([1956c83](https://github.com/orhun/git-cliff/commit/1956c8321e4ef2c5ceb46631e5370fbb66a999b2)) +- *(readme)* Add git-changelog to similar projects section ([#774](https://github.com/orhun/git-cliff/issues/774)) - ([c208a97](https://github.com/orhun/git-cliff/commit/c208a9791e3899668d48947f59757613f4e5fba1)) +- *(readme)* Add KaiCode Open Source Festival link - ([58b729c](https://github.com/orhun/git-cliff/commit/58b729c71f7255589fa6645163d355309a04dd7a)) +- *(website)* Add highlights for 2.5.0 ([#815](https://github.com/orhun/git-cliff/issues/815)) - ([49df8cb](https://github.com/orhun/git-cliff/commit/49df8cb0d6880e5a1ef806d17b066070c7492f3a)) +- *(website)* Clarify authentication with GitHub token ([#787](https://github.com/orhun/git-cliff/issues/787)) - ([85bfa95](https://github.com/orhun/git-cliff/commit/85bfa952e48108dbdcfa49105d072b3170d08a0f)) +- *(website)* Correct inverted consequences of configuration value ([#760](https://github.com/orhun/git-cliff/issues/760)) - ([dc144dd](https://github.com/orhun/git-cliff/commit/dc144dd9d0451ec5240efa36d83c187720a17323)) +- *(website)* Add header to 2.4.0 blog post - ([227a307](https://github.com/orhun/git-cliff/commit/227a307d8563e942f4d1e97b53e21953148395f6)) + +### ⚡ Performance + +- *(changelog)* Cache commit retain checks (258 times faster generation) ([#772](https://github.com/orhun/git-cliff/issues/772)) - ([8430c5c](https://github.com/orhun/git-cliff/commit/8430c5c539a8de34f465e33fe43aed560cd581ca)) + +### ⚙️ Miscellaneous Tasks + +- *(cd)* Remove unnecessary git-cliff-action output file ([#738](https://github.com/orhun/git-cliff/issues/738)) - ([9f39bcb](https://github.com/orhun/git-cliff/commit/9f39bcb8bf87ede149c11be0eb913583ded191c5)) +- *(config)* Include new contributors in repository changelog - ([5474978](https://github.com/orhun/git-cliff/commit/5474978f8aa72112595e342864138b9b14fb6366)) +- *(config)* Check for null commit_id in detailed template ([#786](https://github.com/orhun/git-cliff/issues/786)) - ([388b007](https://github.com/orhun/git-cliff/commit/388b007b0f7a6beb66e045a6007f17c1642953e1)) +- *(config)* Fix comment for changelog header template - ([35b886e](https://github.com/orhun/git-cliff/commit/35b886e50dd13e85436b36d9b1280a88eafdccf8)) +- *(config)* Update keepachangelog.toml comment ([#779](https://github.com/orhun/git-cliff/issues/779)) - ([f9e500e](https://github.com/orhun/git-cliff/commit/f9e500e27c543807e28132aa6c34244cd3c4238b)) +- *(website)* Remove v2 announcement - ([a71649b](https://github.com/orhun/git-cliff/commit/a71649b6cd5a72c2a6b20c08dc1b8dfa37c19a6b)) +- *(website)* Add discord button to navbar - ([565b9c8](https://github.com/orhun/git-cliff/commit/565b9c8df0e1a3eb3b5a4415cadfcae065743a40)) + +## New Contributors ❤️ + +* @weichweich made their first contribution in [#807](https://github.com/orhun/git-cliff/pull/807) +* @janbuchar made their first contribution in [#784](https://github.com/orhun/git-cliff/pull/784) +* @oberrich made their first contribution in [#809](https://github.com/orhun/git-cliff/pull/809) +* @tisonkun made their first contribution in [#599](https://github.com/orhun/git-cliff/pull/599) +* @DerTiedemann made their first contribution in [#758](https://github.com/orhun/git-cliff/pull/758) +* @DaniPopes made their first contribution in [#709](https://github.com/orhun/git-cliff/pull/709) +* @artrz made their first contribution in [#779](https://github.com/orhun/git-cliff/pull/779) +* @braineo made their first contribution in [#744](https://github.com/orhun/git-cliff/pull/744) +* @myl7 made their first contribution in [#776](https://github.com/orhun/git-cliff/pull/776) +* @pawamoy made their first contribution in [#774](https://github.com/orhun/git-cliff/pull/774) +* @tonybutt made their first contribution in [#742](https://github.com/orhun/git-cliff/pull/742) +* @PigeonF made their first contribution in [#748](https://github.com/orhun/git-cliff/pull/748) + +## [2.4.0](https://github.com/orhun/git-cliff/compare/v2.3.0..v2.4.0) - 2024-06-26 + +### ⛰️ Features + +- *(args)* Add `--ignore-tags` argument ([#696](https://github.com/orhun/git-cliff/issues/696)) - ([94891c2](https://github.com/orhun/git-cliff/commit/94891c2c27b1f46cb840fbea1e167c161609cbcd)) +- *(bump)* Support bumping based on configurable custom pattern ([#725](https://github.com/orhun/git-cliff/issues/725)) - ([8e03356](https://github.com/orhun/git-cliff/commit/8e03356706c8aa89eac80953bc2a01ed3f93bb52)) +- *(bump)* Support setting the `initial_tag` ([#701](https://github.com/orhun/git-cliff/issues/701)) - ([7341500](https://github.com/orhun/git-cliff/commit/734150020e1e2763eaac7aa10acf80f82169b60e)) +- *(changelog)* Add tag message to release context ([#713](https://github.com/orhun/git-cliff/issues/713)) - ([3eb828e](https://github.com/orhun/git-cliff/commit/3eb828e69ad3a5b94833f67dfe287e7d8b31a274)) +- *(changelog)* Make `changelog.header` a template ([#698](https://github.com/orhun/git-cliff/issues/698)) - ([9fc12bb](https://github.com/orhun/git-cliff/commit/9fc12bb90cac732d8621446e4d4de775e7f0ba9a)) +- *(changelog)* Support parsing commits by footer ([#569](https://github.com/orhun/git-cliff/issues/569)) - ([50c240c](https://github.com/orhun/git-cliff/commit/50c240c25b632c670b23e0bac943ff94eeb3dfb7)) +- *(changelog)* Make remote data available in context ([#703](https://github.com/orhun/git-cliff/issues/703)) - ([d14774a](https://github.com/orhun/git-cliff/commit/d14774ae4afb086819d9669dfc050fac1c237de8)) +- *(codeberg)* Add Gitea support ([#680](https://github.com/orhun/git-cliff/issues/680)) - ([403d3dc](https://github.com/orhun/git-cliff/commit/403d3dcd32246fba5c1e1c50bc1f95410e3ee5e4)) +- *(context)* Add repository path to template context ([#721](https://github.com/orhun/git-cliff/issues/721)) - ([e7807e1](https://github.com/orhun/git-cliff/commit/e7807e13c4b38aaa4a735ff05b69fdd6b57a7a85)) + +### 🐛 Bug Fixes + +- *(fixture)* Support running fixtures on mingw64 ([#708](https://github.com/orhun/git-cliff/issues/708)) - ([dabe716](https://github.com/orhun/git-cliff/commit/dabe716c201fedf3021d89c5a8564794bda07f2a)) +- *(website)* Update dependencies to fix search issue - ([8a9f9f4](https://github.com/orhun/git-cliff/commit/8a9f9f48da42ec95f47a169370c6c5cdf2a0b327)) + +### 🚜 Refactor + +- *(bump)* Add documentation and simplify implementation - ([bea4916](https://github.com/orhun/git-cliff/commit/bea49161e9bd9bc999889aca22ed4c0f18f53ca1)) + +### 📚 Documentation + +- *(website)* Add highlights for 2.4.0 ([#729](https://github.com/orhun/git-cliff/issues/729)) - ([5558cc5](https://github.com/orhun/git-cliff/commit/5558cc51b17cbc9c09bf9a2938ed227f1d1bda11)) +- *(website)* Add more context about `ignore_tags` matching commits ([#710](https://github.com/orhun/git-cliff/issues/710)) - ([854b411](https://github.com/orhun/git-cliff/commit/854b411e474b21c870afb0636512b471bf737c4c)) +- *(website)* Fix link to github-keepachangelog template ([#694](https://github.com/orhun/git-cliff/issues/694)) - ([eac2195](https://github.com/orhun/git-cliff/commit/eac2195963e1688cd865969a01cc944d6a4af7b4)) +- *(website)* Add information about `--bump` with `tag prefixes` ([#695](https://github.com/orhun/git-cliff/issues/695)) - ([4cd18c2](https://github.com/orhun/git-cliff/commit/4cd18c2bcdb2ce21234776364598d42261df004d)) + +### 🎨 Styling + +- *(lint)* Fix formatting - ([5b58a37](https://github.com/orhun/git-cliff/commit/5b58a3771d056a95b9ec93ff4a7d0d5bf49b8473)) +- *(lint)* Fix formatting ([#702](https://github.com/orhun/git-cliff/issues/702)) - ([b7e323f](https://github.com/orhun/git-cliff/commit/b7e323f8ec948f7ab9d2f821e0da77e4d936475d)) + +### 🧪 Testing + +- *(template)* Add tests ([#674](https://github.com/orhun/git-cliff/issues/674)) - ([a51422d](https://github.com/orhun/git-cliff/commit/a51422dda9431a3f24b4b061ab055ac97fa018de)) + +## New Contributors ❤️ + +* @bukowa made their first contribution in [#710](https://github.com/orhun/git-cliff/pull/710) +* @MeitarR made their first contribution in [#713](https://github.com/orhun/git-cliff/pull/713) +* @Cyclonit made their first contribution in [#698](https://github.com/orhun/git-cliff/pull/698) +* @jan-ferdinand made their first contribution in [#569](https://github.com/orhun/git-cliff/pull/569) +* @Theta-Dev made their first contribution in [#680](https://github.com/orhun/git-cliff/pull/680) +* @tcarmet made their first contribution in [#694](https://github.com/orhun/git-cliff/pull/694) + +## [2.3.0](https://github.com/orhun/git-cliff/compare/v2.2.2..v2.3.0) - 2024-06-03 + +### ⛰️ Features + +- *(bitbucket)* Add Bitbucket support ([#663](https://github.com/orhun/git-cliff/issues/663)) - ([8ffc054](https://github.com/orhun/git-cliff/commit/8ffc0548fe0fd8930627412fecb9bc08a7879504)) +- *(gitlab)* [**breaking**] Add GitLab support ([#654](https://github.com/orhun/git-cliff/issues/654)) - ([b490f2a](https://github.com/orhun/git-cliff/commit/b490f2a24e3ebeb6ee54382ce9aa642ecff17b01)) +- *(output)* Support using stdout via dash (`-o -`) ([#644](https://github.com/orhun/git-cliff/issues/644)) - ([df81f63](https://github.com/orhun/git-cliff/commit/df81f636f53e63d305d06944ff014a21612cb666)) + +### 🐛 Bug Fixes + +- *(args)* Allow -o and -p together if they point to different files ([#653](https://github.com/orhun/git-cliff/issues/653)) - ([076f859](https://github.com/orhun/git-cliff/commit/076f85915386c4769c838ca9a359d216249d2a97)) + +### 📚 Documentation + +- *(nix)* Add installation instructions for Nix ([#669](https://github.com/orhun/git-cliff/issues/669)) - ([63c8ad4](https://github.com/orhun/git-cliff/commit/63c8ad43e9ecaa825ef1f0a67164265497f3a1dd)) +- *(website)* Add highlights for 2.3.0 ([#670](https://github.com/orhun/git-cliff/issues/670)) - ([1338703](https://github.com/orhun/git-cliff/commit/1338703a2aedb4116dcae849ada4941432f57e74)) +- *(website)* Clean up Nix docs - ([2c2a300](https://github.com/orhun/git-cliff/commit/2c2a300616fa151b91858a2a7d88bdc9b9dae497)) +- *(website)* Add more git range examples ([#655](https://github.com/orhun/git-cliff/issues/655)) - ([d451252](https://github.com/orhun/git-cliff/commit/d4512521fbcfb971c94aa7794d78bced1ddec7a1)) + +### ⚙️ Miscellaneous Tasks + +- *(cd)* Use macos-14 runner - ([22c94ed](https://github.com/orhun/git-cliff/commit/22c94ed8355d71a5fe99d8c1e9c8a3824338debf)) +- *(example)* Allow using github template without github variables ([#672](https://github.com/orhun/git-cliff/issues/672)) - ([6a9feba](https://github.com/orhun/git-cliff/commit/6a9feba98f36de1980bab313f6b0a861f5009d71)) +- *(links)* Ignore patreon links - ([bfe2774](https://github.com/orhun/git-cliff/commit/bfe27744701296185d2f1d37dba7cfb48bd70519)) + +## New Contributors ❤️ + +* @R11baka made their first contribution in [#672](https://github.com/orhun/git-cliff/pull/672) +* @0x61nas made their first contribution in [#669](https://github.com/orhun/git-cliff/pull/669) +* @dark0dave made their first contribution in [#663](https://github.com/orhun/git-cliff/pull/663) +* @antonengelhardt made their first contribution in [#653](https://github.com/orhun/git-cliff/pull/653) + +## [2.2.2](https://github.com/orhun/git-cliff/compare/v2.2.1..v2.2.2) - 2024-05-11 + +### ⛰️ Features + +- *(changelog)* Allow adding custom context ([#613](https://github.com/orhun/git-cliff/issues/613)) - ([522bd53](https://github.com/orhun/git-cliff/commit/522bd536a4ad63dfbfbaebcac8a92202b32b202f)) + +### 🐛 Bug Fixes + +- *(changelog)* Ignore empty lines when using `split_commits` ([#608](https://github.com/orhun/git-cliff/issues/608)) - ([b8fb852](https://github.com/orhun/git-cliff/commit/b8fb85220e86138ad8b129ebf1e0599ce8aa5938)) +- *(parser)* Allow matching empty commit body ([#605](https://github.com/orhun/git-cliff/issues/605)) - ([1d1b3b8](https://github.com/orhun/git-cliff/commit/1d1b3b80e163baf34113456f24e3fbbc203e355d)) + +### 📚 Documentation + +- *(readme)* Add social media badges - ([d53b905](https://github.com/orhun/git-cliff/commit/d53b9051840b46f41ccaeca6de3c37c1379a6e5a)) +- *(website)* Add note about supported platforms for NPM - ([4e4d7cd](https://github.com/orhun/git-cliff/commit/4e4d7cdbfced3618bdfaf392dbe0a3f4bbbba799)) +- *(website)* Add SourceHut builds example ([#617](https://github.com/orhun/git-cliff/issues/617)) - ([f636cfc](https://github.com/orhun/git-cliff/commit/f636cfc5ce0fdbe07d9010c1690876abcc017d29)) + +### ⚙️ Miscellaneous Tasks + +- *(npm)* Add minimum supported Node versions ([#621](https://github.com/orhun/git-cliff/issues/621)) - ([95bdf2d](https://github.com/orhun/git-cliff/commit/95bdf2db3724715f76a7b649367541ace5ca9d1f)) +- *(pypi)* Disable PyPi builds for x86_64-pc-windows-gnu - ([f675b0b](https://github.com/orhun/git-cliff/commit/f675b0b5bdbe57437e39dbe4c0b78e7c4f373936)) +- *(tests)* Don't check last commit ([#619](https://github.com/orhun/git-cliff/issues/619)) - ([68b9839](https://github.com/orhun/git-cliff/commit/68b98393e72d4a38a2e9166477784a9e1a55c9cf)) + +## New Contributors ❤️ + +* @lanesawyer made their first contribution in [#621](https://github.com/orhun/git-cliff/pull/621) +* @timharek made their first contribution in [#617](https://github.com/orhun/git-cliff/pull/617) +* @AntoineGS made their first contribution in [#608](https://github.com/orhun/git-cliff/pull/608) + ## [2.2.1](https://github.com/orhun/git-cliff/compare/v2.2.0..v2.2.1) - 2024-04-10 ### 🐛 Bug Fixes @@ -16,6 +377,11 @@ - *(ci)* Remove audit check - ([6ba6809](https://github.com/orhun/git-cliff/commit/6ba6809ea1ff9b34f192b387e77da06cf0570606)) +## New Contributors ❤️ + +* @clementnuss made their first contribution in [#597](https://github.com/orhun/git-cliff/pull/597) +* @tomasbjerre made their first contribution in [#589](https://github.com/orhun/git-cliff/pull/589) + ## [2.2.0](https://github.com/orhun/git-cliff/compare/v2.1.2..v2.2.0) - 2024-03-30 ### ⛰️ Features @@ -54,6 +420,13 @@ - *(website)* Allow deploying website manually - ([0b64bc0](https://github.com/orhun/git-cliff/commit/0b64bc032523f6565e47352cccd0d92f8bf9eae9)) - *(website)* Only deploy website when there is a new release - ([8651832](https://github.com/orhun/git-cliff/commit/8651832926afa83dac4b9cbb5d298bbea5e7af6d)) +## New Contributors ❤️ + +* @aminya made their first contribution in [#567](https://github.com/orhun/git-cliff/pull/567) +* @jsurkont made their first contribution in [#530](https://github.com/orhun/git-cliff/pull/530) +* @dupuy made their first contribution in [#535](https://github.com/orhun/git-cliff/pull/535) +* @daniel-carr-3000 made their first contribution in [#532](https://github.com/orhun/git-cliff/pull/532) + ## [2.1.2](https://github.com/orhun/git-cliff/compare/v2.0.4..v2.1.2) - 2024-03-03 ### ⛰️ Features @@ -92,6 +465,10 @@ - *(ci)* Check semver violations via CI - ([a25a114](https://github.com/orhun/git-cliff/commit/a25a1148d92ee07402c9069eaad74574e392339c)) - *(fixtures)* Enable verbose logging for output - ([2927231](https://github.com/orhun/git-cliff/commit/292723109f328f96b84a629d61fd38b02ceef4e8)) +## New Contributors ❤️ + +* @lloydjatkinson made their first contribution in [#520](https://github.com/orhun/git-cliff/pull/520) + ## [2.0.4](https://github.com/orhun/git-cliff/compare/v2.0.2..v2.0.4) - 2024-02-22 ### ⛰️ Features @@ -113,18 +490,21 @@ - *(website)* Bump the version of git-cliff-action - ([f255ad3](https://github.com/orhun/git-cliff/commit/f255ad38b2640b3f42a40eda3b76cddb6c06d2ff)) - *(website)* Add announcement bar for the new release - ([1d32a14](https://github.com/orhun/git-cliff/commit/1d32a14175355ef83dbaa0dd80f17a9c2493e7de)) + ## [2.0.2](https://github.com/orhun/git-cliff/compare/v2.0.1..v2.0.2) - 2024-02-19 ### 📚 Documentation - *(release)* Add note about GitHub variables - ([54e21de](https://github.com/orhun/git-cliff/commit/54e21de5eebe61f23328e92c6fb8f8de7fd900fd)) + ## [2.0.1](https://github.com/orhun/git-cliff/compare/v2.0.0..v2.0.1) - 2024-02-19 ### ⚙️ Miscellaneous Tasks - *(cd)* Disable PyPI builds for linux-x86-glibc - ([30d8e41](https://github.com/orhun/git-cliff/commit/30d8e41b06e2b277e700731fe193906e49e2509a)) + ## [2.0.0](https://github.com/orhun/git-cliff/compare/v1.4.0..v2.0.0) - 2024-02-19 ### ⛰️ Features @@ -227,6 +607,14 @@ - *(config)* Use postprocessors for checking the typos - ([5212cc9](https://github.com/orhun/git-cliff/commit/5212cc9446bc1389274516ed3d7eb7b334b1b606)) +## New Contributors ❤️ + +* @welpo made their first contribution in [#486](https://github.com/orhun/git-cliff/pull/486) +* @bobrik made their first contribution in [#415](https://github.com/orhun/git-cliff/pull/415) +* @vbx made their first contribution in [#403](https://github.com/orhun/git-cliff/pull/403) +* @nappa85 made their first contribution in [#362](https://github.com/orhun/git-cliff/pull/362) +* @sh-cho made their first contribution in [#357](https://github.com/orhun/git-cliff/pull/357) + ## [1.4.0](https://github.com/orhun/git-cliff/compare/v1.3.1..v1.4.0) - 2023-10-29 ### ⛰️ Features @@ -260,6 +648,13 @@ - *(release)* Update cargo-deb usage - ([213f383](https://github.com/orhun/git-cliff/commit/213f383b54c9a40a351f341c28bbdf03b73f701d)) - *(website)* Update the tracking link - ([eb9f8e9](https://github.com/orhun/git-cliff/commit/eb9f8e970d2adcb6c6f512b20ca8a9f77d09ff54)) +## New Contributors ❤️ + +* @woshilapin made their first contribution in [#318](https://github.com/orhun/git-cliff/pull/318) +* @debghs made their first contribution in [#329](https://github.com/orhun/git-cliff/pull/329) +* @dpecos made their first contribution in [#312](https://github.com/orhun/git-cliff/pull/312) +* @eki3z made their first contribution in [#307](https://github.com/orhun/git-cliff/pull/307) + ## [1.3.1](https://github.com/orhun/git-cliff/compare/v1.3.0..v1.3.1) - 2023-09-30 ### ⛰️ Features @@ -290,6 +685,11 @@ - *(args)* Update clap and clap extras to v4 ([#137](https://github.com/orhun/git-cliff/issues/137)) ([#292](https://github.com/orhun/git-cliff/issues/292)) - ([fb4c733](https://github.com/orhun/git-cliff/commit/fb4c733a70a4dbc25060481ee5f3c644bb0bb83b)) +## New Contributors ❤️ + +* @joshka made their first contribution in [#293](https://github.com/orhun/git-cliff/pull/293) +* @dnaka91 made their first contribution in [#272](https://github.com/orhun/git-cliff/pull/272) + ## [1.3.0](https://github.com/orhun/git-cliff/compare/v1.2.0..v1.3.0) - 2023-08-31 ### ⛰️ Features @@ -347,6 +747,14 @@ - *(pypi)* Publish `git-cliff` on PyPI ([#158](https://github.com/orhun/git-cliff/issues/158)) - ([2b7a1ef](https://github.com/orhun/git-cliff/commit/2b7a1efaafca017c4a21f1af25c6047347119e8d)) - Check without default features - ([e323621](https://github.com/orhun/git-cliff/commit/e323621094141acaab360d6fa42990c7cdd4bac4)) +## New Contributors ❤️ + +* @alexfertel made their first contribution in [#253](https://github.com/orhun/git-cliff/pull/253) +* @tvcsantos made their first contribution +* @beeb made their first contribution in [#167](https://github.com/orhun/git-cliff/pull/167) +* @PSeitz made their first contribution in [#155](https://github.com/orhun/git-cliff/pull/155) +* @alerque made their first contribution in [#142](https://github.com/orhun/git-cliff/pull/142) + ## [1.2.0](https://github.com/orhun/git-cliff/compare/v1.1.2..v1.2.0) - 2023-04-28 ### ⛰️ Features @@ -432,6 +840,17 @@ - *(website)* Move website to website folder - ([5644d10](https://github.com/orhun/git-cliff/commit/5644d1036508ffb420e12503adb671708e087cd9)) - *(website)* Move website to docs for GitHub pages deployment - ([b6e52e1](https://github.com/orhun/git-cliff/commit/b6e52e128e7a105682adf885850d14deefdff3ec)) +## New Contributors ❤️ + +* @bors[bot] made their first contribution in [#161](https://github.com/orhun/git-cliff/pull/161) +* @dependabot[bot] made their first contribution +* @mackness made their first contribution in [#157](https://github.com/orhun/git-cliff/pull/157) +* @jackton1 made their first contribution in [#152](https://github.com/orhun/git-cliff/pull/152) +* @radusuciu made their first contribution in [#147](https://github.com/orhun/git-cliff/pull/147) +* @lbowenwest made their first contribution in [#137](https://github.com/orhun/git-cliff/pull/137) +* @jankatins made their first contribution in [#141](https://github.com/orhun/git-cliff/pull/141) +* @saidsay-so made their first contribution in [#140](https://github.com/orhun/git-cliff/pull/140) + ## [1.1.2](https://github.com/orhun/git-cliff/compare/v1.1.1..v1.1.2) - 2023-01-20 ### 🐛 Bug Fixes @@ -453,6 +872,7 @@ - *(git)* Use timestamp for deriving the tag order ([#139](https://github.com/orhun/git-cliff/issues/139)) - ([accfb0f](https://github.com/orhun/git-cliff/commit/accfb0fcdd06c66d3e9d98f8848cbb9ab0944d09)) + ## [1.1.1](https://github.com/orhun/git-cliff/compare/v1.1.0..v1.1.1) - 2023-01-09 ### 🐛 Bug Fixes @@ -472,6 +892,7 @@ - *(npm)* Add more keywords to the base NPM package - ([abe68a2](https://github.com/orhun/git-cliff/commit/abe68a28847ec9d444337fb1adec522fca7aac1b)) - *(npm)* Package `git-cliff` for npm ([#133](https://github.com/orhun/git-cliff/issues/133)) - ([b7dd592](https://github.com/orhun/git-cliff/commit/b7dd592653a722a764609a3eacff5e1eee58c07e)) + ## [1.1.0](https://github.com/orhun/git-cliff/compare/v1.0.0..v1.1.0) - 2023-01-08 ### ⛰️ Features @@ -496,6 +917,7 @@ - *(github)* Add Jekyll theme configuration for GitHub pages - ([81e5720](https://github.com/orhun/git-cliff/commit/81e5720376346a2b0d3ef5a3ef4408507044f6e0)) - *(release)* Improve the release script with additional messages - ([09ab59f](https://github.com/orhun/git-cliff/commit/09ab59f12e8d295e607966f295b39d3ad2457fd0)) + ## [1.0.0](https://github.com/orhun/git-cliff/compare/v0.10.0..v1.0.0) - 2022-12-25 ### ⛰️ Features @@ -525,6 +947,7 @@ - *(config)* Comment out custom commit preprocessor ([#112](https://github.com/orhun/git-cliff/issues/112)) - ([8f77caf](https://github.com/orhun/git-cliff/commit/8f77caf86a1e5dd23eda1b9e9b5a7a6606642b8a)) - *(fixtures)* Run all test fixtures - ([53c1c50](https://github.com/orhun/git-cliff/commit/53c1c50a1e1a66c684bb1319c0bf48648ed01eab)) + ## [0.10.0](https://github.com/orhun/git-cliff/compare/v0.9.2..v0.10.0) - 2022-11-20 ### ⛰️ Features @@ -553,6 +976,12 @@ - *(docker)* Update versions in Dockerfile - ([02e2b8e](https://github.com/orhun/git-cliff/commit/02e2b8e58e0e4a518fe5318be2bec6d1360ad34e)) +## New Contributors ❤️ + +* @FlrnFrmm made their first contribution in [#116](https://github.com/orhun/git-cliff/pull/116) +* @sbmueller made their first contribution in [#114](https://github.com/orhun/git-cliff/pull/114) +* @herbygillot made their first contribution in [#111](https://github.com/orhun/git-cliff/pull/111) + ## [0.9.2](https://github.com/orhun/git-cliff/compare/v0.9.1..v0.9.2) - 2022-09-24 ### 🐛 Bug Fixes @@ -564,6 +993,7 @@ - *(audit)* Remove cargo-audit config - ([078bdc3](https://github.com/orhun/git-cliff/commit/078bdc3f7a482e752bb983fad057a37f15528698)) - *(ci)* Switch to cargo-tarpaulin for measuring code coverage ([#110](https://github.com/orhun/git-cliff/issues/110)) - ([17f3a09](https://github.com/orhun/git-cliff/commit/17f3a0994d85022650170ff3a9fef942aa414303)) + ## [0.9.1](https://github.com/orhun/git-cliff/compare/v0.9.0..v0.9.1) - 2022-09-20 ### 🐛 Bug Fixes @@ -574,6 +1004,7 @@ - *(readme)* Update styling for with-commit example - ([8247301](https://github.com/orhun/git-cliff/commit/82473017ca627a8d736099a928f03cfb56c895dc)) + ## [0.9.0](https://github.com/orhun/git-cliff/compare/v0.8.1..v0.9.0) - 2022-08-16 ### ⛰️ Features @@ -601,6 +1032,10 @@ - *(funding)* Add GitHub Sponsors option for funding - ([f3fada7](https://github.com/orhun/git-cliff/commit/f3fada723d680dab4f0cd435dc0430425a7fe995)) - *(project)* Update MSRV to 1.60.0 - ([b55e678](https://github.com/orhun/git-cliff/commit/b55e678a4ea669e195d0adae0694a340ab724c31)) +## New Contributors ❤️ + +* @AaronFriel made their first contribution in [#101](https://github.com/orhun/git-cliff/pull/101) + ## [0.8.1](https://github.com/orhun/git-cliff/compare/v0.8.0..v0.8.1) - 2022-07-12 ### 🐛 Bug Fixes @@ -611,6 +1046,7 @@ - *(cd)* Update windows runners to windows-2022 - ([8621a59](https://github.com/orhun/git-cliff/commit/8621a59d47b9e13dd449e6c781e847086e501153)) + ## [0.8.0](https://github.com/orhun/git-cliff/compare/v0.7.0..v0.8.0) - 2022-07-12 ### ⛰️ Features @@ -633,6 +1069,12 @@ - *(docker)* Disable building arm64 docker images temporarily - ([175f7d7](https://github.com/orhun/git-cliff/commit/175f7d70559c642721c0c82215224cfba2cb0221)) - *(project)* Set MSRV to 1.58.1 ([#87](https://github.com/orhun/git-cliff/issues/87)) - ([bfcd0d9](https://github.com/orhun/git-cliff/commit/bfcd0d97ba2fc2271e754f6c9ecb834edf7f1190)) +## New Contributors ❤️ + +* @hawkw made their first contribution in [#97](https://github.com/orhun/git-cliff/pull/97) +* @7596ff made their first contribution in [#99](https://github.com/orhun/git-cliff/pull/99) +* @ofsahof made their first contribution in [#94](https://github.com/orhun/git-cliff/pull/94) + ## [0.7.0](https://github.com/orhun/git-cliff/compare/v0.6.1..v0.7.0) - 2022-04-24 ### ⛰️ Features @@ -678,6 +1120,13 @@ - *(docker)* Build Docker images for arm64 - ([8475e1f](https://github.com/orhun/git-cliff/commit/8475e1fd63b89bb56c2cf68de62dbb4d9e66b4bb)) - *(docker)* Upgrade versions in Dockerfile - ([3aa9a1a](https://github.com/orhun/git-cliff/commit/3aa9a1a059f876b66ce03bc1a4a7735a2c27e146)) +## New Contributors ❤️ + +* @favna made their first contribution in [#83](https://github.com/orhun/git-cliff/pull/83) +* @kaushalmodi made their first contribution in [#80](https://github.com/orhun/git-cliff/pull/80) +* @uyha made their first contribution in [#76](https://github.com/orhun/git-cliff/pull/76) +* @mgrachev made their first contribution in [#73](https://github.com/orhun/git-cliff/pull/73) + ## [0.6.1](https://github.com/orhun/git-cliff/compare/v0.6.0..v0.6.1) - 2022-03-13 ### 🐛 Bug Fixes @@ -692,6 +1141,10 @@ - *(core)* Document timestamp format of `Release` struct ([#67](https://github.com/orhun/git-cliff/issues/67)) - ([d68eb12](https://github.com/orhun/git-cliff/commit/d68eb120c0a0a98bc1e7264a3aede17b5f5c54be)) - *(readme)* Add another option of GitHub Actions ([#64](https://github.com/orhun/git-cliff/issues/64)) - ([db7edf5](https://github.com/orhun/git-cliff/commit/db7edf5707f2bfdf49c749026969fd1833530ed7)) +## New Contributors ❤️ + +* @marcoieni made their first contribution in [#67](https://github.com/orhun/git-cliff/pull/67) + ## [0.6.0](https://github.com/orhun/git-cliff/compare/v0.5.0..v0.6.0) - 2022-02-12 ### ⛰️ Features @@ -737,6 +1190,11 @@ - *(ci)* Run cargo-audit for checking vulnerabilities - ([cfe41fe](https://github.com/orhun/git-cliff/commit/cfe41fe56eddb38c109e178e02d3567d10ad78ff)) - *(docker)* Bump the Rust version in Dockerfile - ([d4cbb85](https://github.com/orhun/git-cliff/commit/d4cbb857388f8d5686715fcba62f8adaeb92230a)) +## New Contributors ❤️ + +* @tranzystorekk made their first contribution in [#57](https://github.com/orhun/git-cliff/pull/57) +* @bachp made their first contribution in [#42](https://github.com/orhun/git-cliff/pull/42) + ## [0.5.0](https://github.com/orhun/git-cliff/compare/v0.4.2..v0.5.0) - 2021-12-15 ### ⛰️ Features @@ -780,12 +1238,17 @@ - *(fixtures)* Run test fixtures on ubuntu-latest - ([dea65f2](https://github.com/orhun/git-cliff/commit/dea65f235e2091001d8de41794bf3c98a7223917)) - *(fixtures)* Improve the workflow for test fixtures - ([92a54d6](https://github.com/orhun/git-cliff/commit/92a54d67b825b53b6993a769ea9d5cf37ea2e43e)) +## New Contributors ❤️ + +* @kenji-miyake made their first contribution in [#40](https://github.com/orhun/git-cliff/pull/40) + ## [0.4.2](https://github.com/orhun/git-cliff/compare/v0.4.1..v0.4.2) - 2021-10-22 ### 🐛 Bug Fixes - *(cd)* Install the Rust toolchain explicitly for crates.io releases - ([2cee3bf](https://github.com/orhun/git-cliff/commit/2cee3bf9ecc00e21b871e88a34a949fbca6b646b)) + ## [0.4.1](https://github.com/orhun/git-cliff/compare/v0.4.0..v0.4.1) - 2021-10-22 ### 🐛 Bug Fixes @@ -808,6 +1271,11 @@ - *(project)* Migrate to Rust 2021 edition - ([0000000](https://github.com/orhun/git-cliff/commit/0000000ef0e2d0710f4c1294408da2639f6f3217)) - *(project)* Remove unnecessary Cargo.lock entry from .gitignore - ([481713c](https://github.com/orhun/git-cliff/commit/481713cbb74fc2bce4a46ab6f8d4649b03d96fc2)) +## New Contributors ❤️ + +* @pataar made their first contribution in [#26](https://github.com/orhun/git-cliff/pull/26) +* @alteregoart made their first contribution in [#24](https://github.com/orhun/git-cliff/pull/24) + ## [0.4.0](https://github.com/orhun/git-cliff/compare/v0.3.0..v0.4.0) - 2021-10-01 ### ⛰️ Features @@ -844,6 +1312,10 @@ - *(workflow)* Update the runner to ubuntu-20.04 - ([5069594](https://github.com/orhun/git-cliff/commit/5069594f1800e409665609224995b25dcb9df438)) - *(workflow)* Set a version for the checkout action - ([b323e60](https://github.com/orhun/git-cliff/commit/b323e60996595976fbe8261b5f8c4a9f67d2a8f8)) +## New Contributors ❤️ + +* @FoxxMD made their first contribution in [#16](https://github.com/orhun/git-cliff/pull/16) + ## [0.3.0](https://github.com/orhun/git-cliff/compare/v0.2.6..v0.3.0) - 2021-09-10 ### ⛰️ Features @@ -862,6 +1334,10 @@ - *(readme)* Add badge for joining the Matrix chat - ([b5edfc2](https://github.com/orhun/git-cliff/commit/b5edfc279d0290fecaacab469ecccdadf63eb3ab)) - *(readme)* Update installation instructions for Arch Linux - ([8fb18b7](https://github.com/orhun/git-cliff/commit/8fb18b784808222fdf3c4328ac9c871b93524fee)) +## New Contributors ❤️ + +* @Groxx made their first contribution in [#7](https://github.com/orhun/git-cliff/pull/7) + ## [0.2.6](https://github.com/orhun/git-cliff/compare/v0.2.5..v0.2.6) - 2021-09-04 ### 🐛 Bug Fixes @@ -876,6 +1352,7 @@ - *(docker)* Bump cargo-chef version in Dockerfile - ([612192b](https://github.com/orhun/git-cliff/commit/612192b3aa638be9ccd38ecda27bdee6b6ff6655)) + ## [0.2.5](https://github.com/orhun/git-cliff/compare/v0.2.4..v0.2.5) - 2021-08-20 ### ⛰️ Features @@ -891,30 +1368,35 @@ - *(release)* Show the committed changes before creating a tag - ([59ffe53](https://github.com/orhun/git-cliff/commit/59ffe53a7cb4791e4877a74f2e14d15139d2aca9)) + ## [0.2.4](https://github.com/orhun/git-cliff/compare/v0.2.3..v0.2.4) - 2021-08-20 ### 🐛 Bug Fixes - *(cd)* Change the config file location for crates.io release - ([a9b286c](https://github.com/orhun/git-cliff/commit/a9b286cf023148da0800c2a0408d87571c239847)) + ## [0.2.3](https://github.com/orhun/git-cliff/compare/v0.2.2..v0.2.3) - 2021-08-18 ### 🐛 Bug Fixes - *(cd)* Fetch the dependencies before copying the file to embed - ([9e29c95](https://github.com/orhun/git-cliff/commit/9e29c95319abd1747fbf6fd1e205d414617b0447)) + ## [0.2.2](https://github.com/orhun/git-cliff/compare/v0.2.1..v0.2.2) - 2021-08-18 ### 🐛 Bug Fixes - *(cd)* Copy the config file into registry to resolve it for embed - ([48ea157](https://github.com/orhun/git-cliff/commit/48ea1578b5ecc17f5cc9a4249fb7b38610028fc6)) + ## [0.2.1](https://github.com/orhun/git-cliff/compare/v0.2.0..v0.2.1) - 2021-08-18 ### 🐛 Bug Fixes - *(cd)* Copy the configuration file to embed into package - ([68dda36](https://github.com/orhun/git-cliff/commit/68dda364278870df84891495a3ff546ddbcae6a1)) + ## [0.2.0](https://github.com/orhun/git-cliff/compare/v0.1.2..v0.2.0) - 2021-08-18 ### ⛰️ Features @@ -944,6 +1426,7 @@ - *(config)* Move `cliff.toml` to config/ - ([acda195](https://github.com/orhun/git-cliff/commit/acda1954dc192a3b706c21a48821f75e5a8e0d22)) + ## [0.1.2](https://github.com/orhun/git-cliff/compare/v0.1.1..v0.1.2) - 2021-08-14 ### 🐛 Bug Fixes @@ -954,6 +1437,7 @@ - *(completions)* Update the example completion command - ([f1fd88a](https://github.com/orhun/git-cliff/commit/f1fd88af8f7fdfb021109ed9a24bd3d43045d534)) + ## [0.1.1](https://github.com/orhun/git-cliff/compare/v0.1.0..v0.1.1) - 2021-08-14 ### 🐛 Bug Fixes @@ -973,6 +1457,7 @@ - *(project)* Rename the shell completions binary - ([718f535](https://github.com/orhun/git-cliff/commit/718f53573b9f48a60ad1930cd9555063414f8b96)) + ## [0.1.0] - 2021-08-12 ### ⛰️ Features @@ -1079,4 +1564,5 @@ - Chore(config): update template to include commit ids - ([f95fca9](https://github.com/orhun/git-cliff/commit/f95fca966bacb520e958fe783e239f98dfe026bc)) + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dc749ac6c5..a2024c9d55 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,6 +15,14 @@ Note that we have a [Code of Conduct](./CODE_OF_CONDUCT.md), please follow it in ```sh git clone https://github.com/{username}/git-cliff && cd git-cliff +# OR +git clone git@github.com:{username}/git-cliff && cd git-cliff +``` + +To ensure the successful execution of the tests, it is essential to fetch the tags as follows: + +```sh +git fetch --tags https://github.com/orhun/git-cliff ``` 3. Make sure that you have [Rust](https://www.rust-lang.org/) `1.64.0` or later installed and build the project. @@ -31,7 +39,13 @@ cargo build cargo test ``` -6. Make sure [rustfmt](https://github.com/rust-lang/rustfmt) and [clippy](https://github.com/rust-lang/rust-clippy) don't complain about your changes. +6. If needed, update the snapshot tests (i.e. tests using `expect_test`): + +```sh +env UPDATE_EXPECT=1 cargo test +``` + +7. Make sure [rustfmt](https://github.com/rust-lang/rustfmt) and [clippy](https://github.com/rust-lang/rust-clippy) don't complain about your changes. We use the `nightly` channel for `rustfmt` so please set the appropriate settings for your editor/IDE for that. diff --git a/Cargo.lock b/Cargo.lock index 089b80a569..d2908bb427 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,21 +1,21 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" -version = "0.21.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] [[package]] -name = "adler" -version = "1.0.2" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "adler32" @@ -23,6 +23,19 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "getrandom", + "once_cell", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.3" @@ -32,6 +45,21 @@ dependencies = [ "memchr", ] +[[package]] +name = "aligned-vec" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e0966165eaf052580bd70eb1b32cb3d6245774c0104d1b2793e9650bf83b52a" +dependencies = [ + "equator", +] + +[[package]] +name = "allocator-api2" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" + [[package]] name = "android-tzdata" version = "0.1.1" @@ -49,88 +77,115 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.13" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", + "is_terminal_polyfill", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.6" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.3" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.2" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.2" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.82" +version = "1.0.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" + +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "async-compression" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" +checksum = "df895a515f70646414f4b45c0b79082783b80552b373a68283012928df56f522" +dependencies = [ + "futures-core", + "memchr", + "pin-project-lite", + "tokio", + "zstd", + "zstd-safe", +] [[package]] name = "async-trait" -version = "0.1.79" +version = "0.1.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" +checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "autocfg" -version = "1.2.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" -version = "0.3.71" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ "addr2line", - "cc", "cfg-if", "libc", "miniz_oxide", "object", "rustc-demangle", + "windows-targets 0.52.6", ] [[package]] @@ -139,6 +194,12 @@ version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + [[package]] name = "bincode" version = "1.3.3" @@ -148,6 +209,25 @@ dependencies = [ "serde", ] +[[package]] +name = "bincode" +version = "2.0.0-rc.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f11ea1a0346b94ef188834a65c068a03aec181c94896d481d7a0a40d85b0ce95" +dependencies = [ + "bincode_derive", + "serde", +] + +[[package]] +name = "bincode_derive" +version = "2.0.0-rc.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e30759b3b99a1b802a7a3aa21c85c3ded5c28e1c83170d82d70f08bbf7f3e4c" +dependencies = [ + "virtue", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -156,9 +236,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.5.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" [[package]] name = "block-buffer" @@ -171,9 +251,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.9.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" +checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" dependencies = [ "memchr", "serde", @@ -185,24 +265,36 @@ version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +[[package]] +name = "bytemuck" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94bbb0ad554ad961ddc5da507a12a29b14e4ae5bda06b19f575a3e6079d2e2ae" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "bytes" -version = "1.6.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cacache" -version = "12.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "142316461ed3a3dfcba10417317472da5bfd0461e4d276bf7c07b330766d9490" +checksum = "a61ff12b19d89c752c213316b87fdb4a587f073d219b893cc56974b8c9f39bf7" dependencies = [ "digest", "either", "futures", "hex", "libc", - "memmap2", + "memmap2 0.5.10", "miette", "reflink-copy", "serde", @@ -212,7 +304,7 @@ dependencies = [ "sha2", "ssri", "tempfile", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "walkdir", @@ -220,12 +312,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.92" +version = "1.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41" +checksum = "13208fcbb66eaeffe09b99fffbe1af420f00a7b35aa99ad683dfc1aa76145229" dependencies = [ "jobserver", "libc", + "shlex", ] [[package]] @@ -234,23 +327,29 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", "num-traits", - "windows-targets 0.52.4", + "windows-targets 0.52.6", ] [[package]] name = "chrono-tz" -version = "0.8.6" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59ae0466b83e838b81a54256c39d5d7c20b9d7daa10510a242d9b75abd5936e" +checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" dependencies = [ "chrono", "chrono-tz-build", @@ -259,9 +358,9 @@ dependencies = [ [[package]] name = "chrono-tz-build" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433e39f13c9a060046954e0592a8d0a4bcb1040125cbf91cb8ee58964cfb350f" +checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" dependencies = [ "parse-zoneinfo", "phf", @@ -270,9 +369,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.4" +version = "4.5.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" +checksum = "769b0145982b4b48713e01ec42d61614425f27b7058bda7180a3a41f30104796" dependencies = [ "clap_builder", "clap_derive", @@ -280,9 +379,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.2" +version = "4.5.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" +checksum = "1b26884eb4b57140e4d2d93652abfa49498b938b3c9179f9fc487b0acc3edad7" dependencies = [ "anstream", "anstyle", @@ -293,36 +392,36 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.2" +version = "4.5.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79504325bf38b10165b02e89b4347300f855f273c4cb30c4a3209e6583275e" +checksum = "33a7e468e750fa4b6be660e8b5651ad47372e8fb114030b594c2d75d48c5ffd0" dependencies = [ "clap", ] [[package]] name = "clap_derive" -version = "4.5.4" +version = "4.5.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" +checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c" dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "clap_lex" -version = "0.7.0" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "clap_mangen" -version = "0.2.20" +version = "0.2.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1dd95b5ebb5c1c54581dd6346f3ed6a79a3eef95dd372fc2ac13d535535300e" +checksum = "724842fa9b144f9b89b3f3d371a89f3455eea660361d13a554f68f8ae5d6c13a" dependencies = [ "clap", "roff", @@ -330,22 +429,21 @@ dependencies = [ [[package]] name = "colorchoice" -version = "1.0.0" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "config" -version = "0.14.0" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7328b20597b53c2454f0b1919720c25c7339051c02b72b7e05409e00b14132be" +checksum = "e329294a796e9b22329669c1f433a746983f9e324e07f4ef135be81bb2262de4" dependencies = [ - "lazy_static", - "nom", "pathdiff", "serde", "toml", - "yaml-rust", + "winnow", + "yaml-rust2", ] [[package]] @@ -357,7 +455,7 @@ dependencies = [ "encode_unicode", "lazy_static", "libc", - "unicode-width", + "unicode-width 0.1.14", "windows-sys 0.52.0", ] @@ -373,9 +471,9 @@ dependencies = [ [[package]] name = "core-foundation" -version = "0.9.4" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63" dependencies = [ "core-foundation-sys", "libc", @@ -383,24 +481,42 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core2" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505" +dependencies = [ + "memchr", +] + +[[package]] +name = "cpp_demangle" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96e58d342ad113c2b878f16d5d034c03be492ae460cdbc02b7f0f2284d310c7d" +dependencies = [ + "cfg-if", +] [[package]] name = "cpufeatures" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" +checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" dependencies = [ "libc", ] [[package]] name = "crc32fast" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] @@ -426,9 +542,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crypto-common" @@ -440,6 +556,21 @@ dependencies = [ "typenum", ] +[[package]] +name = "dary_heap" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7762d17f1241643615821a8455a0b2c3e803784b058693d990b11f2dce25a0ca" + +[[package]] +name = "debugid" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" +dependencies = [ + "uuid", +] + [[package]] name = "deranged" version = "0.3.11" @@ -451,9 +582,9 @@ dependencies = [ [[package]] name = "deunicode" -version = "1.4.3" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e854126756c496b8c81dec88f9a706b15b875c5849d4097a3854476b9fdf94" +checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00" [[package]] name = "diff" @@ -471,15 +602,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "directories" -version = "5.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" -dependencies = [ - "dirs-sys", -] - [[package]] name = "dirs" version = "5.0.1" @@ -501,6 +623,23 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dissimilar" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59f8e79d1fbf76bdfbde321e902714bf6c49df88a7dda6fc682fc2979226962d" + [[package]] name = "doc-comment" version = "0.3.3" @@ -509,18 +648,24 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "document-features" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef5282ad69563b5fc40319526ba27e0e7363d552a896f0297d54f767717f9b95" +checksum = "cb6969eaabd2421f8a2775cfd2471a2b634372b4a25d41e3bd647b79912850a0" dependencies = [ "litrs", ] +[[package]] +name = "dyn-clone" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" + [[package]] name = "either" -version = "1.10.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "encode_unicode" @@ -550,6 +695,26 @@ dependencies = [ "termcolor", ] +[[package]] +name = "equator" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c35da53b5a021d2484a7cc49b2ac7f2d840f8236a286f84202369bd338d761ea" +dependencies = [ + "equator-macro", +] + +[[package]] +name = "equator-macro" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bf679796c0322556351f287a51b49e48f7c4986e727b5dd78c972d30e2e16cc" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "equivalent" version = "1.0.1" @@ -558,25 +723,58 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.8" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", +] + +[[package]] +name = "etcetera" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943" +dependencies = [ + "cfg-if", + "home", + "windows-sys 0.48.0", +] + +[[package]] +name = "expect-test" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63af43ff4431e848fb47472a920f14fa71c24de13255a5692e93d4e90302acb0" +dependencies = [ + "dissimilar", + "once_cell", ] [[package]] name = "fastrand" -version = "2.0.2" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" + +[[package]] +name = "findshlibs" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" +checksum = "40b9e59cd0f7e0806cca4be089683ecb6434e602038df21fe6bf6711b2f07f64" +dependencies = [ + "cc", + "lazy_static", + "libc", + "winapi", +] [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", "miniz_oxide", @@ -599,9 +797,9 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -614,9 +812,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -624,15 +822,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -641,38 +839,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -698,24 +896,26 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] name = "gimli" -version = "0.28.1" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "git-cliff" -version = "2.2.1" +version = "2.8.0" dependencies = [ "clap", "clap_complete", @@ -727,20 +927,28 @@ dependencies = [ "indicatif", "lazy_static", "log", + "pathdiff", + "pprof", "pretty_assertions", + "rand", "regex", "secrecy", "shellexpand", "update-informer", + "url", ] [[package]] name = "git-cliff-core" -version = "2.2.1" +version = "2.8.0" dependencies = [ + "bincode 2.0.0-rc.3", + "cacache", "config", "dirs", "document-features", + "dyn-clone", + "expect-test", "futures", "git-conventional", "git2", @@ -761,18 +969,21 @@ dependencies = [ "serde", "serde_json", "serde_regex", + "temp-dir", "tera", - "thiserror", + "thiserror 2.0.11", + "time", "tokio", "toml", "url", + "urlencoding", ] [[package]] name = "git-conventional" -version = "0.12.6" +version = "0.12.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8035f7561b84cc80e8ec1c2c18dd14113c8b6e07206db72212403e9a25d2e72d" +checksum = "8066dc2ef3bd0e2bfb84b4a2b0b04f216ffb97390e09fab0752bf0ba943dacc6" dependencies = [ "doc-comment", "serde", @@ -782,11 +993,11 @@ dependencies = [ [[package]] name = "git2" -version = "0.18.3" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "232e6a7bfe35766bf715e55a88b39a700596c0ccfd88cd3680b4cdb40d66ef70" +checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.8.0", "libc", "libgit2-sys", "log", @@ -795,15 +1006,15 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "globset" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" +checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19" dependencies = [ "aho-corasick", "bstr", @@ -814,39 +1025,39 @@ dependencies = [ [[package]] name = "globwalk" -version = "0.8.1" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93e3af942408868f6934a7b85134a3230832b9977cf66125df2f9edcfce4ddcc" +checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.8.0", "ignore", "walkdir", ] [[package]] -name = "h2" -version = "0.3.26" +name = "hashbrown" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", + "ahash", + "allocator-api2", ] [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" + +[[package]] +name = "hashlink" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" +dependencies = [ + "hashbrown 0.14.5", +] [[package]] name = "heck" @@ -856,9 +1067,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.3.9" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" +checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" [[package]] name = "hex" @@ -866,11 +1077,20 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "home" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "http" -version = "0.2.12" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" dependencies = [ "bytes", "fnv", @@ -879,23 +1099,35 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.6" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", + "futures-util", "http", + "http-body", "pin-project-lite", ] [[package]] name = "http-cache" -version = "0.18.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b5ab65432bbdfe8490dfde21d0366353a8d39f2bc24aca0146889f931b0b4b5" +checksum = "33b65cd1687caf2c7fff496741a2f264c26f54e6d6cec03dac8f276fa4e5430e" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "cacache", "http", "http-cache-semantics", @@ -906,9 +1138,9 @@ dependencies = [ [[package]] name = "http-cache-reqwest" -version = "0.13.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8285341ce7e709c56a0f259ff1c789c70edfbaa88acd69d27e4d63980b92dc" +checksum = "735586904a5ce0c13877c57cb4eb8195eb7c11ec1ffd64d4db053fb8559ca62e" dependencies = [ "anyhow", "async-trait", @@ -918,15 +1150,14 @@ dependencies = [ "reqwest", "reqwest-middleware", "serde", - "task-local-extensions", "url", ] [[package]] name = "http-cache-semantics" -version = "1.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aec9f678bca3f4a15194b980f20ed9bfe0dd38e8d298c65c559a93dfbd6380a" +checksum = "92baf25cf0b8c9246baecf3a444546360a97b569168fdf92563ee6a47829920c" dependencies = [ "http", "http-serde", @@ -936,9 +1167,9 @@ dependencies = [ [[package]] name = "http-serde" -version = "1.1.3" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f560b665ad9f1572cfcaf034f7fb84338a7ce945216d64a90fd81f046a3caee" +checksum = "0f056c8559e3757392c8d091e796416e4649d8e49e88b8d76df6c002f05027fd" dependencies = [ "http", "serde", @@ -946,9 +1177,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.8.0" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "httpdate" @@ -973,47 +1204,66 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.28" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" +checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" dependencies = [ "bytes", "futures-channel", - "futures-core", "futures-util", - "h2", "http", "http-body", "httparse", - "httpdate", "itoa", "pin-project-lite", - "socket2", + "smallvec", "tokio", - "tower-service", - "tracing", "want", ] [[package]] name = "hyper-rustls" -version = "0.24.2" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" +checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", "http", "hyper", - "rustls 0.21.10", + "hyper-util", + "rustls", + "rustls-native-certs", + "rustls-pki-types", "tokio", "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-util" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", ] [[package]] name = "iana-time-zone" -version = "0.1.60" +version = "0.1.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -1033,23 +1283,152 @@ dependencies = [ ] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", ] [[package]] -name = "ignore" -version = "0.4.22" +name = "icu_locid" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" dependencies = [ - "crossbeam-deque", - "globset", + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "ignore" +version = "0.4.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" +dependencies = [ + "crossbeam-deque", + "globset", "log", "memchr", "regex-automata", @@ -1060,116 +1439,121 @@ dependencies = [ [[package]] name = "include-flate" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e11569346406931d20276cc460215ee2826e7cad43aa986999cb244dd7adb0" +checksum = "df49c16750695486c1f34de05da5b7438096156466e7f76c38fcdf285cf0113e" dependencies = [ - "include-flate-codegen-exports", + "include-flate-codegen", "lazy_static", "libflate", ] [[package]] name = "include-flate-codegen" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a7d6e1419fa3129eb0802b4c99603c0d425c79fb5d76191d5a20d0ab0d664e8" +checksum = "8c5b246c6261be723b85c61ecf87804e8ea4a35cb68be0ff282ed84b95ffe7d7" dependencies = [ "libflate", - "proc-macro-hack", "proc-macro2", "quote", - "syn 1.0.109", -] - -[[package]] -name = "include-flate-codegen-exports" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75657043ffe3d8280f1cb8aef0f505532b392ed7758e0baeac22edadcee31a03" -dependencies = [ - "include-flate-codegen", - "proc-macro-hack", + "syn", ] [[package]] name = "indexmap" -version = "2.2.6" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.15.1", ] [[package]] name = "indicatif" -version = "0.17.8" +version = "0.17.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" +checksum = "cbf675b85ed934d3c67b5c5469701eec7db22689d0a2139d856e0925fa28b281" dependencies = [ "console", - "instant", "number_prefix", "portable-atomic", - "unicode-width", + "unicode-width 0.2.0", + "web-time", ] [[package]] -name = "instant" -version = "0.1.12" +name = "inferno" +version = "0.11.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ - "cfg-if", + "ahash", + "indexmap", + "is-terminal", + "itoa", + "log", + "num-format", + "once_cell", + "quick-xml", + "rgb", + "str_stack", ] [[package]] name = "ipnet" -version = "2.9.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "is-terminal" -version = "0.4.12" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" +checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" dependencies = [ "hermit-abi", "libc", "windows-sys 0.52.0", ] +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "jobserver" -version = "0.1.28" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.69" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ + "once_cell", "wasm-bindgen", ] [[package]] name = "lazy-regex" -version = "3.1.0" +version = "3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d12be4595afdf58bd19e4a9f4e24187da2a66700786ff660a418e9059937a4c" +checksum = "60c7310b93682b36b98fa7ea4de998d3463ccbebd94d935d6b48ba5b6ffa7126" dependencies = [ "lazy-regex-proc_macros", "once_cell", @@ -1178,53 +1562,57 @@ dependencies = [ [[package]] name = "lazy-regex-proc_macros" -version = "3.1.0" +version = "3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bcd58e6c97a7fcbaffcdc95728b393b8d98933bfadad49ed4097845b57ef0b" +checksum = "4ba01db5ef81e17eb10a5e0f2109d1b3a3e29bac3070fdbd7d156bf7dbd206a1" dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.58", + "syn", ] [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.153" +version = "0.2.169" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" [[package]] name = "libflate" -version = "1.4.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ff4ae71b685bbad2f2f391fe74f6b7659a34871c08b210fdc039e43bee07d18" +checksum = "45d9dfdc14ea4ef0900c1cddbc8dcd553fbaacd8a4a282cf4018ae9dd04fb21e" dependencies = [ "adler32", + "core2", "crc32fast", + "dary_heap", "libflate_lz77", ] [[package]] name = "libflate_lz77" -version = "1.2.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a52d3a8bfc85f250440e4424db7d857e241a3aebbbe301f3eb606ab15c39acbf" +checksum = "e6e0d73b369f386f1c44abd9c570d5318f55ccde816ff4b562fa452e5182863d" dependencies = [ + "core2", + "hashbrown 0.14.5", "rle-decode-fast", ] [[package]] name = "libgit2-sys" -version = "0.16.2+1.7.2" +version = "0.18.0+1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee4126d8b4ee5c9d9ea891dd875cfdc1e9d0950437179104b183d7d8a74d24e8" +checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec" dependencies = [ "cc", "libc", @@ -1244,15 +1632,15 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.8.0", "libc", ] [[package]] name = "libz-sys" -version = "1.1.16" +version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e143b5e666b2695d28f6bca6497720813f699c9602dd7f5cac91008b8ada7f9" +checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472" dependencies = [ "cc", "libc", @@ -1261,16 +1649,16 @@ dependencies = [ ] [[package]] -name = "linked-hash-map" -version = "0.5.6" +name = "linux-raw-sys" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] -name = "linux-raw-sys" -version = "0.4.13" +name = "litemap" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" [[package]] name = "litrs" @@ -1278,17 +1666,27 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4ce301924b7887e9d637144fdade93f9dfff9b60981d4ac161db09720d39aa5" +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + [[package]] name = "log" -version = "0.4.21" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" [[package]] name = "memchr" -version = "2.7.2" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memmap2" @@ -1299,6 +1697,15 @@ dependencies = [ "libc", ] +[[package]] +name = "memmap2" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" +dependencies = [ + "libc", +] + [[package]] name = "miette" version = "5.10.0" @@ -1307,8 +1714,8 @@ checksum = "59bb584eaeeab6bd0226ccf3509a69d7936d148cf3d036ad350abe35e8c6856e" dependencies = [ "miette-derive", "once_cell", - "thiserror", - "unicode-width", + "thiserror 1.0.69", + "unicode-width 0.1.14", ] [[package]] @@ -1319,7 +1726,7 @@ checksum = "49e7bc1560b95a3c4a25d03de42fe76ca718ab92d1a22a55b9b4cf67b3ae635c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] @@ -1328,60 +1735,46 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" -[[package]] -name = "mime_guess" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" -dependencies = [ - "mime", - "unicase", -] - -[[package]] -name = "minimal-lexical" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" - [[package]] name = "miniz_oxide" -version = "0.7.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" +checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924" dependencies = [ - "adler", + "adler2", ] [[package]] name = "mio" -version = "0.8.11" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", "wasi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "next_version" -version = "0.2.15" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0b8566ec538405d0feb0a7bb8262daa997f4cee2a9f9a9b7ab81f1262110d59" +checksum = "ac10cbb9ea44ccdaf522542f25c6139266b2c0d9165148cc6e1d9970f2d2eb32" dependencies = [ "conventional_commit_parser", + "regex", "semver", ] [[package]] -name = "nom" -version = "7.1.3" +name = "nix" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" dependencies = [ - "memchr", - "minimal-lexical", + "bitflags 1.3.2", + "cfg-if", + "libc", ] [[package]] @@ -1391,22 +1784,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] -name = "num-traits" -version = "0.2.18" +name = "num-format" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "autocfg", + "arrayvec", + "itoa", ] [[package]] -name = "num_cpus" -version = "1.16.0" +name = "num-traits" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ - "hermit-abi", - "libc", + "autocfg", ] [[package]] @@ -1417,18 +1810,24 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "object" -version = "0.32.2" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "openssl-probe" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "option-ext" @@ -1436,20 +1835,43 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets 0.52.6", +] + [[package]] name = "parse-zoneinfo" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41" +checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" dependencies = [ "regex", ] [[package]] name = "pathdiff" -version = "0.2.1" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" [[package]] name = "percent-encoding" @@ -1459,20 +1881,20 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.9" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "311fb059dee1a7b802f036316d790138c613a4e8b180c822e3925a662e9f0c95" +checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" dependencies = [ "memchr", - "thiserror", + "thiserror 1.0.69", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.7.9" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f73541b156d32197eecda1a4014d7f868fd2bcb3c550d5386087cfba442bf69c" +checksum = "4d3a6e3394ec80feb3b6393c725571754c6188490265c61aaf260810d6b95aa0" dependencies = [ "pest", "pest_generator", @@ -1480,22 +1902,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.9" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c35eeed0a3fab112f75165fdc026b3913f4183133f19b49be773ac9ea966e8bd" +checksum = "94429506bde1ca69d1b5601962c73f4172ab4726571a59ea95931218cb0e930e" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "pest_meta" -version = "2.7.9" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2adbf29bb9776f28caece835398781ab24435585fe0d4dc1374a61db5accedca" +checksum = "ac8a071862e93690b6e34e9a5fb8e33ff3734473ac0245b27232222c4906a33f" dependencies = [ "once_cell", "pest", @@ -1542,9 +1964,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -1554,15 +1976,15 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "d30538d42559de6b034bc76fd6dd4c38961b1ee5c6c56e3808c50128fdbc22ce" [[package]] name = "powerfmt" @@ -1570,42 +1992,122 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" +[[package]] +name = "pprof" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebbe2f8898beba44815fdc9e5a4ae9c929e21c5dc29b0c774a15555f7f58d6d0" +dependencies = [ + "aligned-vec", + "backtrace", + "cfg-if", + "findshlibs", + "inferno", + "libc", + "log", + "nix", + "once_cell", + "parking_lot", + "smallvec", + "symbolic-demangle", + "tempfile", + "thiserror 1.0.69", +] + [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "pretty_assertions" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" +checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" dependencies = [ "diff", "yansi", ] [[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" +name = "proc-macro2" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" +dependencies = [ + "unicode-ident", +] [[package]] -name = "proc-macro2" -version = "1.0.79" +name = "quick-xml" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" dependencies = [ - "unicode-ident", + "memchr", +] + +[[package]] +name = "quinn" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror 2.0.11", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" +dependencies = [ + "bytes", + "getrandom", + "rand", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.11", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" dependencies = [ "proc-macro2", ] @@ -1640,22 +2142,31 @@ dependencies = [ "getrandom", ] +[[package]] +name = "redox_syscall" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853" +dependencies = [ + "bitflags 2.8.0", +] + [[package]] name = "redox_users" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "reflink-copy" -version = "0.1.15" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52b1349400e2ffd64a9fb5ed9008e33c0b8ef86bd5bae8f73080839c7082f1d5" +checksum = "dc31414597d1cd7fdd2422798b7652a6329dda0fe0219e6335a13d5bcaa9aeb6" dependencies = [ "cfg-if", "rustix", @@ -1664,9 +2175,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -1676,9 +2187,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", @@ -1687,65 +2198,79 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" -version = "0.11.27" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" +checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" dependencies = [ - "base64", + "async-compression", + "base64 0.22.1", "bytes", - "encoding_rs", + "futures-channel", "futures-core", "futures-util", - "h2", "http", "http-body", + "http-body-util", "hyper", "hyper-rustls", + "hyper-util", "ipnet", "js-sys", "log", "mime", - "mime_guess", "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.10", + "quinn", + "rustls", + "rustls-native-certs", "rustls-pemfile", + "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", - "system-configuration", "tokio", "tokio-rustls", + "tokio-util", + "tower", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "webpki-roots 0.25.4", - "winreg", + "webpki-roots", + "windows-registry", ] [[package]] name = "reqwest-middleware" -version = "0.2.5" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a735987236a8e238bf0296c7e351b999c188ccc11477f311b82b55c93984216" +checksum = "d1ccd3b55e711f91a9885a2fa6fbbb2e39db1776420b062efc058c6410f7e5e3" dependencies = [ "anyhow", "async-trait", "http", "reqwest", "serde", - "task-local-extensions", - "thiserror", + "thiserror 1.0.69", + "tower-service", +] + +[[package]] +name = "rgb" +version = "0.8.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57397d16646700483b67d2dd6511d79318f9d057fdbd21a4066aeac8b41d310a" +dependencies = [ + "bytemuck", ] [[package]] @@ -1771,15 +2296,15 @@ checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422" [[package]] name = "roff" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b833d8d034ea094b1ea68aa6d5c740e0d04bad9d16568d08ba6f76823a114316" +checksum = "88f8660c1ff60292143c98d08fc6e2f654d722db50410e3f3797d40baaf9d8f3" [[package]] name = "rust-embed" -version = "8.3.0" +version = "8.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb78f46d0066053d16d4ca7b898e9343bc3530f71c61d5ad84cd404ada068745" +checksum = "fa66af4a4fdd5e7ebc276f115e895611a34739a9c1c01028383d612d550953c0" dependencies = [ "include-flate", "rust-embed-impl", @@ -1789,22 +2314,22 @@ dependencies = [ [[package]] name = "rust-embed-impl" -version = "8.3.0" +version = "8.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91ac2a3c6c0520a3fb3dd89321177c3c692937c4eb21893378219da10c44fc8" +checksum = "6125dbc8867951125eec87294137f4e9c2c96566e61bf72c45095a7c77761478" dependencies = [ "proc-macro2", "quote", "rust-embed-utils", - "syn 2.0.58", + "syn", "walkdir", ] [[package]] name = "rust-embed-utils" -version = "8.3.0" +version = "8.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f69089032567ffff4eada41c573fc43ff466c7db7c5688b2e7969584345581" +checksum = "2e5347777e9aacb56039b0e1f28785929a8a3b709e87482e7442c72e7c12529d" dependencies = [ "sha2", "walkdir", @@ -1812,90 +2337,96 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "rustix" -version = "0.38.32" +version = "0.38.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" +checksum = "a78891ee6bf2340288408954ac787aa063d8e8817e9f53abb37c695c6d834ef6" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.8.0", "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "rustls" -version = "0.21.10" +version = "0.23.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" +checksum = "8f287924602bf649d949c63dc8ac8b235fa5387d394020705b80c4eb597ce5b8" dependencies = [ "log", + "once_cell", "ring", - "rustls-webpki 0.101.7", - "sct", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", ] [[package]] -name = "rustls" -version = "0.22.3" +name = "rustls-native-certs" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99008d7ad0bbbea527ec27bddbc0e432c5b87d8175178cee68d2eec9c4a1813c" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" dependencies = [ - "log", - "ring", + "openssl-probe", "rustls-pki-types", - "rustls-webpki 0.102.2", - "subtle", - "zeroize", + "schannel", + "security-framework", ] [[package]] name = "rustls-pemfile" -version = "1.0.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" dependencies = [ - "base64", + "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.4.1" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" - -[[package]] -name = "rustls-webpki" -version = "0.101.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" dependencies = [ - "ring", - "untrusted", + "web-time", ] [[package]] name = "rustls-webpki" -version = "0.102.2" +version = "0.102.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ "ring", "rustls-pki-types", "untrusted", ] +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + [[package]] name = "ryu" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "same-file" @@ -1907,15 +2438,20 @@ dependencies = [ ] [[package]] -name = "sct" -version = "0.7.1" +name = "schannel" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ - "ring", - "untrusted", + "windows-sys 0.59.0", ] +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + [[package]] name = "secrecy" version = "0.8.0" @@ -1926,39 +2462,63 @@ dependencies = [ "zeroize", ] +[[package]] +name = "security-framework" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" +dependencies = [ + "bitflags 2.8.0", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "semver" -version = "1.0.22" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" [[package]] name = "serde" -version = "1.0.197" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.197" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "serde_json" -version = "1.0.115" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" +checksum = "930cfb6e6abf99298aaad7d29abbef7a9999a9a8806a40088f55f0dcec03146b" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] @@ -1975,9 +2535,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.5" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" dependencies = [ "serde", ] @@ -2036,6 +2596,12 @@ dependencies = [ "dirs", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "siphasher" version = "0.3.11" @@ -2053,19 +2619,25 @@ dependencies = [ [[package]] name = "slug" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bd94acec9c8da640005f8e135a39fc0372e74535e6b368b7a04b875f784c8c4" +checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724" dependencies = [ "deunicode", "wasm-bindgen", ] +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + [[package]] name = "socket2" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", "windows-sys 0.52.0", @@ -2083,17 +2655,29 @@ version = "9.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da7a2b3c2bc9693bcb40870c4e9b5bf0d79f9cb46273321bf855ec513e919082" dependencies = [ - "base64", + "base64 0.21.7", "digest", "hex", "miette", "serde", "sha-1", "sha2", - "thiserror", + "thiserror 1.0.69", "xxhash-rust", ] +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "str_stack" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9091b6114800a5f2141aee1d1b9d6ca3592ac062dc5decb3764ec5895a47b4eb" + [[package]] name = "strsim" version = "0.11.1" @@ -2102,26 +2686,38 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subtle" -version = "2.5.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] -name = "syn" -version = "1.0.109" +name = "symbolic-common" +version = "12.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +checksum = "9fdf97c441f18a4f92425b896a4ec7a27e03631a0b1047ec4e34e9916a9a167e" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "debugid", + "memmap2 0.9.5", + "stable_deref_trait", + "uuid", +] + +[[package]] +name = "symbolic-demangle" +version = "12.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc8ece6b129e97e53d1fbb3f61d33a6a9e5369b11d01228c068094d6d134eaea" +dependencies = [ + "cpp_demangle", + "rustc-demangle", + "symbolic-common", ] [[package]] name = "syn" -version = "2.0.58" +version = "2.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" +checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80" dependencies = [ "proc-macro2", "quote", @@ -2130,57 +2726,48 @@ dependencies = [ [[package]] name = "sync_wrapper" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" - -[[package]] -name = "system-configuration" -version = "0.5.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" dependencies = [ - "bitflags 1.3.2", - "core-foundation", - "system-configuration-sys", + "futures-core", ] [[package]] -name = "system-configuration-sys" -version = "0.5.0" +name = "synstructure" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ - "core-foundation-sys", - "libc", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "task-local-extensions" -version = "0.1.4" +name = "temp-dir" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba323866e5d033818e3240feeb9f7db2c4296674e4d9e16b97b7bf8f490434e8" -dependencies = [ - "pin-utils", -] +checksum = "bc1ee6eef34f12f765cb94725905c6312b6610ab2b0940889cfe58dae7bc3c72" [[package]] name = "tempfile" -version = "3.10.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if", "fastrand", + "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "tera" -version = "1.19.1" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "970dff17c11e884a4a09bc76e3a17ef71e01bb13447a11e85226e254fe6d10b8" +checksum = "ab9d851b45e865f178319da0abdbfe6acbc4328759ff18dafc3a41c16b4cd2ee" dependencies = [ "chrono", "chrono-tz", @@ -2209,39 +2796,59 @@ dependencies = [ [[package]] name = "terminal_size" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" +checksum = "5352447f921fda68cf61b4101566c0bdb5104eff6804d0678e5227580ab6a4e9" dependencies = [ "rustix", - "windows-sys 0.48.0", + "windows-sys 0.59.0", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", ] [[package]] name = "thiserror" -version = "1.0.58" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" +dependencies = [ + "thiserror-impl 2.0.11", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ - "thiserror-impl", + "proc-macro2", + "quote", + "syn", ] [[package]] name = "thiserror-impl" -version = "1.0.58" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "time" -version = "0.3.35" +version = "0.3.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef89ece63debf11bc32d1ed8d078ac870cbeb44da02afb02a9ff135ae7ca0582" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" dependencies = [ "deranged", "itoa", @@ -2260,19 +2867,29 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" +checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de" dependencies = [ "num-conv", "time-core", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" -version = "1.6.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" dependencies = [ "tinyvec_macros", ] @@ -2285,47 +2902,46 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.37.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" dependencies = [ "backtrace", "bytes", "libc", "mio", - "num_cpus", "pin-project-lite", "socket2", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", ] [[package]] name = "tokio-rustls" -version = "0.24.1" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" dependencies = [ - "rustls 0.21.10", + "rustls", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.15" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" +checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" dependencies = [ "futures-core", "pin-project-lite", @@ -2334,23 +2950,22 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.10" +version = "0.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", - "tracing", ] [[package]] name = "toml" -version = "0.8.12" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" dependencies = [ "serde", "serde_spanned", @@ -2360,18 +2975,18 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.22.9" +version = "0.22.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" +checksum = "3b072cee73c449a636ffd6f32bd8de3a9f7119139aff882f44943ce2986dc5cf" dependencies = [ "indexmap", "serde", @@ -2380,17 +2995,38 @@ dependencies = [ "winnow", ] +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-core", @@ -2398,9 +3034,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", ] @@ -2482,32 +3118,23 @@ dependencies = [ "version_check", ] -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" - [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] -name = "unicode-normalization" -version = "0.1.23" +name = "unicode-width" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" -dependencies = [ - "tinyvec", -] +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" [[package]] name = "untrusted" @@ -2517,11 +3144,11 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "update-informer" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f8811797a24ff123db3c6e1087aa42551d03d772b3724be421ad063da1f5f3f" +checksum = "53813bf5d5f0d8430794f8cc48e99521cc9e298066958d16383ccb8b39d182a7" dependencies = [ - "directories", + "etcetera", "reqwest", "semver", "serde", @@ -2531,28 +3158,27 @@ dependencies = [ [[package]] name = "ureq" -version = "2.9.6" +version = "2.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11f214ce18d8b2cbe84ed3aa6486ed3f5b285cf8d8fbdbce9f3f767a724adc35" +checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d" dependencies = [ - "base64", + "base64 0.22.1", "flate2", "log", "once_cell", - "rustls 0.22.3", + "rustls", "rustls-pki-types", - "rustls-webpki 0.102.2", "serde", "serde_json", "url", - "webpki-roots 0.26.1", + "webpki-roots", ] [[package]] name = "url" -version = "2.5.0" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -2560,11 +3186,35 @@ dependencies = [ "serde", ] +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" -version = "0.2.1" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" [[package]] name = "vcpkg" @@ -2574,9 +3224,15 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "virtue" +version = "0.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "9dcc60c0624df774c82a0ef104151231d37da4962957d691c011c852b2473314" [[package]] name = "walkdir" @@ -2605,46 +3261,48 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", + "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 2.0.58", + "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.42" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2652,44 +3310,51 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] -name = "webpki-roots" -version = "0.25.4" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] [[package]] name = "webpki-roots" -version = "0.26.1" +version = "0.26.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3de34ae270483955a94f4b21bdaaeb83d508bb84a01435f393818edb0012009" +checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" dependencies = [ "rustls-pki-types", ] @@ -2712,11 +3377,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.6" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "winapi", + "windows-sys 0.59.0", ] [[package]] @@ -2727,12 +3392,12 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.54.0" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" dependencies = [ - "windows-core 0.54.0", - "windows-targets 0.52.4", + "windows-core 0.58.0", + "windows-targets 0.52.6", ] [[package]] @@ -2741,26 +3406,72 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.6", ] [[package]] name = "windows-core" -version = "0.54.0" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-result", + "windows-strings", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-registry" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65" +checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" dependencies = [ "windows-result", - "windows-targets 0.52.4", + "windows-strings", + "windows-targets 0.52.6", ] [[package]] name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd19df78e5168dfb0aedc343d1d1b8d422ab2db6756d2dc3fef75035402a3f64" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" dependencies = [ - "windows-targets 0.52.4", + "windows-result", + "windows-targets 0.52.6", ] [[package]] @@ -2778,7 +3489,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -2798,17 +3518,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.4", - "windows_aarch64_msvc 0.52.4", - "windows_i686_gnu 0.52.4", - "windows_i686_msvc 0.52.4", - "windows_x86_64_gnu 0.52.4", - "windows_x86_64_gnullvm 0.52.4", - "windows_x86_64_msvc 0.52.4", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -2819,9 +3540,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -2831,9 +3552,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -2843,9 +3564,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.4" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -2855,9 +3582,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -2867,9 +3594,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -2879,9 +3606,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -2891,52 +3618,172 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.4" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.5" +version = "0.6.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +checksum = "39281189af81c07ec09db316b302a3e67bf9bd7cbf6c820b50e35fee9c2fa980" dependencies = [ "memchr", ] [[package]] -name = "winreg" -version = "0.50.0" +name = "write16" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "xxhash-rust" -version = "0.8.10" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927da81e25be1e1a2901d59b81b37dd2efd1fc9c9345a55007f09bf5a2d3ee03" +checksum = "6a5cbf750400958819fb6178eaa83bee5cd9c29a26a40cc241df8c70fdd46984" [[package]] -name = "yaml-rust" -version = "0.4.5" +name = "yaml-rust2" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" +checksum = "2a1a1c0bc9823338a3bdf8c61f994f23ac004c6fa32c08cd152984499b445e8d" dependencies = [ - "linked-hash-map", + "arraydeque", + "encoding_rs", + "hashlink", ] [[package]] name = "yansi" -version = "0.5.1" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" + +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zstd" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.13+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/Cargo.toml b/Cargo.toml index d48ac12bcf..939a7b4f04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,13 @@ resolver = "2" members = ["git-cliff-core", "git-cliff"] [workspace.dependencies] -regex = "1.10.4" -glob = "0.3.1" +regex = "1.11.1" +glob = "0.3.2" log = "0.4.21" secrecy = { version = "0.8.0", features = ["serde"] } -lazy_static = "1.4.0" +lazy_static = "1.5.0" dirs = "5.0.1" +url = "2.5.3" [profile.dev] opt-level = 0 @@ -29,4 +30,26 @@ strip = true [profile.bench] opt-level = 3 -debug = false +debug = true # used by the profiler +strip = false # keep symbols for the profiler + +[workspace.lints.clippy] +literal_string_with_formatting_args = "allow" +tabs_in_doc_comments = "allow" +needless_raw_string_hashes = "allow" +unreadable_literal = "allow" +redundant_else = "allow" +items_after_statements = "allow" +missing_errors_doc = "allow" +module_name_repetitions = "allow" +uninlined_format_args = "allow" +manual_string_new = "allow" +must_use_candidate = "allow" +too_many_lines = "allow" +wildcard_imports = "allow" +missing_panics_doc = "allow" +inefficient_to_string = "allow" +redundant_closure_for_method_calls = "allow" +map_unwrap_or = "allow" +struct_excessive_bools = "allow" +unnecessary_wraps = "allow" diff --git a/Dockerfile b/Dockerfile index d6365d1738..8e2d83c4e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.4.3-labs -FROM lukemathwalker/cargo-chef:0.1.63-rust-1.76-slim-buster AS chef +FROM lukemathwalker/cargo-chef:0.1.70-rust-1.84.0-slim AS chef WORKDIR app FROM chef AS planner @@ -11,10 +11,10 @@ COPY --from=planner /app/recipe.json recipe.json ENV CARGO_NET_GIT_FETCH_WITH_CLI=true RUN cargo chef cook --release --recipe-path recipe.json COPY . . -RUN cargo build --release --locked --no-default-features --features github +RUN cargo build --release --locked --no-default-features --features github --features gitlab --features bitbucket RUN rm -f target/release/deps/git_cliff* -FROM debian:buster-slim as runner +FROM debian:bookworm-slim as runner # Everything inside this container will be explicitly mounted by the end user, # so we can sidestep some Git security restrictions. This app recommends @@ -25,7 +25,7 @@ RUN echo '[safe]\n\tdirectory = *' > /etc/gitconfig COPY --from=builder /app/target/release/git-cliff /usr/local/bin WORKDIR app -# Even if the repository as marked as safe, GitHub Actions and some other +# Even if the repository is marked as safe, GitHub Actions and some other # environments insist on running the entrypoint as root inside the container # even when being run by a non privileged user on their own files. Here we # check the ownership of the workdir (which may or may not be /app) and change diff --git a/LICENSE-MIT b/LICENSE-MIT index 7fae078370..64855cde3d 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,7 +1,7 @@ The MIT License (MIT) -Copyright (c) 2021-2024 Orhun Parmaksız -Copyright (c) 2021-2024 git-cliff contributors +Copyright (c) 2021-2025 Orhun Parmaksız +Copyright (c) 2021-2025 git-cliff contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index fa6761a1cd..16f674094b 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,23 @@

- +
- - + - - + - - +
- - + - - + - - + - - +
- - - - - -

@@ -55,6 +42,8 @@ Learn how to use **git-cliff** from the [documentation](https://git-cliff.org/do - [Turning Git commits into changelog with git-cliff](https://www.youtube.com/watch?v=RWh8qbiLRts) - RustLab 2023 (Talk) - [An Interview with Orhun of git-cliff](https://console.substack.com/p/console-141) - Console #141 (Newsletter) +- [KaiCode Open Source Festival 2024](https://www.kaicode.org/2024.html) (Second place winner) +- [git-cliff: The Smart Way to Handle Changelogs](https://medium.com/@toniomasotti/git-cliff-96449950db48) (Blog post) ## Editor Support @@ -71,6 +60,7 @@ Learn how to use **git-cliff** from the [documentation](https://git-cliff.org/do to semantically bump a NodeJS package and generate a git-cliff powered changelog. - [release-plz](https://github.com/MarcoIeni/release-plz) - Release Rust packages from CI. - [git-changelog-command-line](https://github.com/tomasbjerre/git-changelog-command-line) - Generate changelog and determine next version with conventional commits. +- [git-changelog](https://github.com/pawamoy/git-changelog): Automatic Changelog generator using Jinja2 templates. ## Contributors @@ -82,10 +72,24 @@ Thanks goes to these wonderful people ✨ Made with [contrib.rocks](https://contrib.rocks). +## Socials + + + +
+ + + + + + + + + ## License Licensed under either of [Apache License Version 2.0](./LICENSE-APACHE) or [The MIT License](./LICENSE-MIT) at your option. ## Copyright -Copyright © 2021-2024, [git-cliff contributors](mailto:git-cliff@protonmail.com) +Copyright © 2021-2025, [git-cliff contributors](mailto:git-cliff@protonmail.com) diff --git a/cliff.toml b/cliff.toml index 8c677a67fd..bc3607598d 100644 --- a/cliff.toml +++ b/cliff.toml @@ -5,8 +5,12 @@ # Configuration options are organized into tables and keys. # See documentation for more information on available options. +[remote.github] +owner = "orhun" +repo = "git-cliff" + [changelog] -# changelog header +# template for the changelog header header = """ [![animation](https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff-anim.gif)](https://git-cliff.org)\n """ @@ -41,14 +45,26 @@ body = """ | filter(attribute="scope") | sort(attribute="scope") %} {{ self::print_commit(commit=commit) }} - {%- endfor -%} - {% raw %}\n{% endraw %}\ - {%- for commit in commits %} + {%- endfor %} + {% for commit in commits %} {%- if not commit.scope -%} {{ self::print_commit(commit=commit) }} {% endif -%} {% endfor -%} -{% endfor %}\n +{% endfor -%} +{%- if github -%} +{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + ## New Contributors ❤️ +{% endif %}\ +{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} +{%- endfor -%} +{%- endif %} + + """ # template for the changelog footer footer = """ @@ -89,6 +105,7 @@ commit_parsers = [ { message = "^chore\\(deps.*\\)", skip = true }, { message = "^chore\\(pr\\)", skip = true }, { message = "^chore\\(pull\\)", skip = true }, + { message = "^chore\\(npm\\).*yarn\\.lock", skip = true }, { message = "^chore|^ci", group = "⚙️ Miscellaneous Tasks" }, { body = ".*security", group = "🛡️ Security" }, { message = "^revert", group = "◀️ Revert" }, diff --git a/config/cliff.toml b/config/cliff.toml index b0f88b2362..8656d82b23 100644 --- a/config/cliff.toml +++ b/config/cliff.toml @@ -6,7 +6,7 @@ # See documentation for more information on available options. [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file.\n @@ -38,6 +38,10 @@ trim = true postprocessors = [ # { pattern = '', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL ] +# render body even when there are no releases to process +# render_always = true +# output file path +# output = "test.md" [git] # parse the commits based on https://www.conventionalcommits.org @@ -70,20 +74,11 @@ commit_parsers = [ { message = "^chore|^ci", group = "⚙️ Miscellaneous Tasks" }, { body = ".*security", group = "🛡️ Security" }, { message = "^revert", group = "◀️ Revert" }, + { message = ".*", group = "💼 Other" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -# tag_pattern = "v[0-9].*" -# regex for skipping tags -# skip_tags = "" -# regex for ignoring tags -# ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order sort_commits = "oldest" -# limit the number of commits included in the changelog. -# limit_commits = 42 diff --git a/examples/cocogitto.toml b/examples/cocogitto.toml index d6f47d6f36..9a9a1b2379 100644 --- a/examples/cocogitto.toml +++ b/examples/cocogitto.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.\n @@ -74,19 +74,9 @@ commit_parsers = [ { message = "^chore", group = "Miscellaneous Chores" }, { body = ".*security", group = "Security" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order sort_commits = "oldest" -# limit the number of commits included in the changelog. -# limit_commits = 42 diff --git a/examples/detailed.toml b/examples/detailed.toml index 7648691440..e3cdf77a83 100644 --- a/examples/detailed.toml +++ b/examples/detailed.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file.\n @@ -11,12 +11,12 @@ All notable changes to this project will be documented in this file.\n # https://keats.github.io/tera/docs/#introduction body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ - ## [unreleased] + ## Unreleased {% endif %}\ {% if previous %}\ - {% if previous.commit_id %} + {% if previous.commit_id and commit_id %} [{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\ [{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }}) {% endif %}\ @@ -24,7 +24,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\ + - {{ commit.message | split(pat="\n") | first | upper_first | trim }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\ {% for footer in commit.footers -%} , {{ footer.token }}{{ footer.separator }}{{ footer.value }}\ {% endfor %}\ @@ -42,9 +42,7 @@ trim = true # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that are not conventional -filter_unconventional = true -# process each line of a commit as an individual commit -split_commits = false +filter_unconventional = false # regex for parsing and grouping commits commit_parsers = [ { message = "^feat", group = "Features" }, @@ -61,16 +59,8 @@ commit_parsers = [ { message = "^chore|^ci", group = "Miscellaneous Tasks" }, { body = ".*security", group = "Security" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order diff --git a/examples/github-keepachangelog.toml b/examples/github-keepachangelog.toml index c50807f57b..1a8f2f2885 100644 --- a/examples/github-keepachangelog.toml +++ b/examples/github-keepachangelog.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file. @@ -23,15 +23,13 @@ body = """ ## [Unreleased] {% endif -%} -### Details\ - {% for group, commits in commits | group_by(attribute="group") %} - #### {{ group | upper_first }} + ### {{ group | upper_first }} {%- for commit in commits %} - - {{ commit.message | upper_first | trim }}\ - {% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%} - {% if commit.github.pr_number %} in \ - [#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \ + - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in \ + [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \ {%- endif -%} {% endfor %} {% endfor %} @@ -72,9 +70,7 @@ trim = true # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that are not conventional -filter_unconventional = true -# process each line of a commit as an individual commit -split_commits = false +filter_unconventional = false # regex for preprocessing the commit messages commit_preprocessors = [ # remove issue numbers from commits @@ -82,6 +78,9 @@ commit_preprocessors = [ ] # regex for parsing and grouping commits commit_parsers = [ + { message = "^[a|A]dd", group = "Added" }, + { message = "^[s|S]upport", group = "Added" }, + { message = "^[r|R]emove", group = "Removed" }, { message = "^.*: add", group = "Added" }, { message = "^.*: support", group = "Added" }, { message = "^.*: remove", group = "Removed" }, @@ -91,17 +90,9 @@ commit_parsers = [ { message = "^.*: fix", group = "Fixed" }, { message = "^.*", group = "Changed" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers -filter_commits = true -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" +filter_commits = false # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order -sort_commits = "oldest" +sort_commits = "newest" diff --git a/examples/github.toml b/examples/github.toml index e71507fd7a..9ec3e91916 100644 --- a/examples/github.toml +++ b/examples/github.toml @@ -14,18 +14,19 @@ body = """ {%- if version %} in {{ version }}{%- endif -%} {% for commit in commits %} - {% if commit.github.pr_title -%} - {%- set commit_message = commit.github.pr_title -%} + {% if commit.remote.pr_title -%} + {%- set commit_message = commit.remote.pr_title -%} {%- else -%} {%- set commit_message = commit.message -%} {%- endif -%} * {{ commit_message | split(pat="\n") | first | trim }}\ - {% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%} - {% if commit.github.pr_number %} in \ - [#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \ + {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%} + {% if commit.remote.pr_number %} in \ + [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \ {%- endif %} {%- endfor -%} +{%- if github -%} {% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} {% raw %}\n{% endraw -%} ## New Contributors @@ -36,6 +37,7 @@ body = """ [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ {%- endif %} {%- endfor -%} +{%- endif -%} {% if version %} {% if previous.version %} @@ -51,7 +53,7 @@ body = """ """ # remove the leading and trailing whitespace from the template trim = true -# changelog footer +# template for the changelog footer footer = """ """ @@ -70,16 +72,8 @@ commit_preprocessors = [ # remove issue numbers from commits { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "beta|alpha" -# regex for ignoring tags -ignore_tags = "rc" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order diff --git a/examples/keepachangelog.toml b/examples/keepachangelog.toml index fdcbea2f99..230819302c 100644 --- a/examples/keepachangelog.toml +++ b/examples/keepachangelog.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file. @@ -21,7 +21,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - {{ commit.message | upper_first }}\ + - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\ {% endfor %} {% endfor %}\n """ @@ -48,31 +48,24 @@ trim = true # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that are not conventional -filter_unconventional = true -# process each line of a commit as an individual commit -split_commits = false +filter_unconventional = false # regex for parsing and grouping commits commit_parsers = [ - { message = "^.*: add", group = "Added" }, - { message = "^.*: support", group = "Added" }, - { message = "^.*: remove", group = "Removed" }, - { message = "^.*: delete", group = "Removed" }, - { message = "^test", group = "Fixed" }, - { message = "^fix", group = "Fixed" }, - { message = "^.*: fix", group = "Fixed" }, - { message = "^.*", group = "Changed" }, + { message = "^[a|A]dd", group = "Added" }, + { message = "^[s|S]upport", group = "Added" }, + { message = "^[r|R]emove", group = "Removed" }, + { message = "^.*: add", group = "Added" }, + { message = "^.*: support", group = "Added" }, + { message = "^.*: remove", group = "Removed" }, + { message = "^.*: delete", group = "Removed" }, + { message = "^test", group = "Fixed" }, + { message = "^fix", group = "Fixed" }, + { message = "^.*: fix", group = "Fixed" }, + { message = "^.*", group = "Changed" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers -filter_commits = true -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" +filter_commits = false # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order -sort_commits = "oldest" +sort_commits = "newest" diff --git a/examples/minimal.toml b/examples/minimal.toml index 05c62b9f01..54d8ffcffb 100644 --- a/examples/minimal.toml +++ b/examples/minimal.toml @@ -6,9 +6,9 @@ # https://keats.github.io/tera/docs/#introduction body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}\ + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}\ {% else %}\ - ## [unreleased]\ + ## Unreleased\ {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} diff --git a/examples/scoped.toml b/examples/scoped.toml index 46c06e37d7..7c34b50036 100644 --- a/examples/scoped.toml +++ b/examples/scoped.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file.\n @@ -11,9 +11,9 @@ All notable changes to this project will be documented in this file.\n # https://keats.github.io/tera/docs/#introduction body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ - ## [unreleased] + ## Unreleased {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} @@ -52,16 +52,8 @@ commit_parsers = [ { message = "^chore", group = "Miscellaneous Tasks" }, { body = ".*security", group = "Security" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order diff --git a/examples/scopesorted.toml b/examples/scopesorted.toml index ce13531c08..2b8a6b30ae 100644 --- a/examples/scopesorted.toml +++ b/examples/scopesorted.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file.\n @@ -11,9 +11,9 @@ All notable changes to this project will be documented in this file.\n # https://keats.github.io/tera/docs/#introduction body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ - ## [unreleased] + ## Unreleased {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} @@ -51,8 +51,6 @@ trim = true conventional_commits = true # filter out the commits that are not conventional filter_unconventional = true -# process each line of a commit as an individual commit -split_commits = false # regex for parsing and grouping commits commit_parsers = [ { message = "^feat", group = "Features" }, @@ -66,16 +64,8 @@ commit_parsers = [ { message = "^chore", group = "Miscellaneous Tasks" }, { body = ".*security", group = "Security" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order diff --git a/examples/unconventional.toml b/examples/unconventional.toml index 0a255cf488..f385dc1f2a 100644 --- a/examples/unconventional.toml +++ b/examples/unconventional.toml @@ -2,7 +2,7 @@ # https://git-cliff.org/docs/configuration [changelog] -# changelog header +# template for the changelog header header = """ # Changelog\n All notable changes to this project will be documented in this file.\n @@ -11,14 +11,14 @@ All notable changes to this project will be documented in this file.\n # https://keats.github.io/tera/docs/#introduction body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ - ## [unreleased] + ## Unreleased {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - {{ commit.message | upper_first | trim_end }} {% if commit.conventional %}✔️{% else %}❌{% endif %}\ + - {{ commit.message | split(pat="\n") | first | trim_end }}\ {% endfor %} {% endfor %}\n """ @@ -32,7 +32,7 @@ trim = true [git] # parse the commits based on https://www.conventionalcommits.org -conventional_commits = true +conventional_commits = false # filter out the commits that are not conventional filter_unconventional = false # process each line of a commit as an individual commit @@ -51,16 +51,8 @@ commit_parsers = [ { body = ".*security", group = "Security" }, { body = ".*", group = "Other (unconventional)" }, ] -# protect breaking changes from being skipped due to matching a skipping commit_parser -protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false -# regex for matching git tags -tag_pattern = "v[0-9].*" -# regex for skipping tags -skip_tags = "v0.1.0-beta.1" -# regex for ignoring tags -ignore_tags = "" # sort the tags topologically topo_order = false # sort the commits inside sections by oldest/newest order diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000000..8673ad89ed --- /dev/null +++ b/flake.lock @@ -0,0 +1,96 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1737469691, + "narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1736320768, + "narHash": "sha256-nIYdTAiKIGnFNugbomgBJR+Xv5F1ZQU+HfaBqJKroC0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4bc9c909d9ac828a039f288cf872d16d38185db8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "rust-overlay": "rust-overlay" + } + }, + "rust-overlay": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1737512878, + "narHash": "sha256-dgF6htdmfNnZzVInifks6npnCAyVsIHWSpWNs10RSW0=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "06b8ed0eee289fe94c66f1202ced9a6a2c59a14c", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000000..f30afd7ade --- /dev/null +++ b/flake.nix @@ -0,0 +1,62 @@ +{ + description = "git-cliff"; + + inputs = { + nixpkgs.url = + "github:nixos/nixpkgs/nixos-unstable"; # We want to use packages from the binary cache + flake-utils.url = "github:numtide/flake-utils"; + rust-overlay.url = "github:oxalica/rust-overlay"; + }; + + outputs = inputs@{ self, nixpkgs, flake-utils, ... }: + flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ inputs.rust-overlay.overlays.rust-overlay ]; + }; + base-git-cliff = { buildType }: pkgs.rustPlatform.buildRustPackage { + name = "git-cliff"; + src = ./.; + cargoLock = { + lockFile = ./Cargo.lock; + }; + checkType = "debug"; + inherit buildType; + checkFlags = [ + "--skip=command" + "--skip=repo" + ]; + meta = with pkgs.lib; { + description = "A highly customizable Changelog Generator that follows Conventional Commit specifications"; + homepage = "https://git-cliff.org/"; + license = [ licenses.mit licenses.asl20 ]; + }; + }; + in rec { + packages = rec { + git-cliff = base-git-cliff { buildType = "release"; }; + git-cliff-debug = base-git-cliff { buildType = "debug"; }; + default = git-cliff; + }; + + devShell = pkgs.mkShell { + CARGO_INSTALL_ROOT = "${toString ./.}/.cargo"; + + buildInputs = with pkgs; [ + pkg-config + openssl + cargo-binutils + cargo-watch + lld + (rust-bin.fromRustupToolchain { + channel = "stable"; + components = + [ "rust-analyzer" "rust-src" "rustfmt" "rustc" "cargo" "clippy" ]; + }) + ]; + }; + + checks.check = packages.git-cliff-debug; + }); +} diff --git a/git-cliff-core/Cargo.toml b/git-cliff-core/Cargo.toml index 7d87d461bc..3a0e3ee922 100644 --- a/git-cliff-core/Cargo.toml +++ b/git-cliff-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "git-cliff-core" -version = "2.2.1" # managed by release.sh +version = "2.8.0" # managed by release.sh description = "Core library of git-cliff" authors = ["git-cliff contributors "] license = "MIT OR Apache-2.0" @@ -9,77 +9,103 @@ homepage = "https://github.com/orhun/git-cliff" repository = "https://github.com/orhun/git-cliff" keywords = ["changelog", "generator", "conventional", "commit"] edition = "2021" -rust-version = "1.73.0" +rust-version = "1.83.0" [features] default = ["repo"] ## Enable parsing commits from a git repository. ## You can turn this off if you already have the commits to put in the ## changelog and you don't need `git-cliff` to parse them. -repo = ["dep:git2", "dep:glob", "dep:indexmap"] -## Enable integration with GitHub. -## You can turn this off if you don't use GitHub and don't want -## to make network requests to the GitHub API. -github = [ +repo = ["dep:git2", "dep:indexmap"] +# Enable integration with remote repositories. +remote = [ "dep:reqwest", "dep:http-cache-reqwest", "dep:reqwest-middleware", "dep:tokio", "dep:futures", ] +## Enable integration with GitHub. +## You can turn this off if you don't use GitHub and don't want +## to make network requests to the GitHub API. +github = ["remote"] +## Enable integration with GitLab. +## You can turn this off if you don't use GitLab and don't want +## to make network requests to the GitLab API. +gitlab = ["remote"] +## Enable integration with Bitbucket. +## You can turn this off if you don't use Bitbucket and don't want +## to make network requests to the Bitbucket API. +bitbucket = ["remote"] +## Enable integration with Gitea. +## You can turn this off if you don't use Gitea and don't want +## to make network requests to the Gitea API. +gitea = ["remote"] [dependencies] -glob = { workspace = true, optional = true } +glob.workspace = true regex.workspace = true log.workspace = true secrecy.workspace = true dirs.workspace = true lazy_static.workspace = true -thiserror = "1.0.58" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +thiserror = "2.0.11" +serde = { version = "1.0.217", features = ["derive"] } +serde_json = "1.0.137" +bincode = "2.0.0-rc.3" serde_regex = "1.1.0" -tera = "1.19.1" -indexmap = { version = "2.2.6", optional = true } -toml = "0.8.12" -lazy-regex = "3.1.0" -next_version = "0.2.15" -semver = "1.0.22" -document-features = { version = "0.2.8", optional = true } -reqwest = { version = "0.11.27", default-features = false, features = [ +tera = "1.20.0" +indexmap = { version = "2.7.1", optional = true } +toml = "0.8.19" +lazy-regex = "3.4.1" +next_version = "0.2.21" +semver = "1.0.25" +document-features = { version = "0.2.10", optional = true } +reqwest = { version = "0.12.12", default-features = false, features = [ "rustls-tls", + "rustls-tls-native-roots", "json", + "zstd", ], optional = true } -http-cache-reqwest = { version = "0.13.0", optional = true } -reqwest-middleware = { version = "0.2.5", optional = true } -tokio = { version = "1.37.0", features = [ +http-cache-reqwest = { version = "0.15.0", optional = true } +reqwest-middleware = { version = "0.4.0", optional = true } +tokio = { version = "1.43.0", features = [ "rt-multi-thread", "macros", ], optional = true } -futures = { version = "0.3.30", optional = true } -url = "2.5.0" +futures = { version = "0.3.31", optional = true } +url.workspace = true +dyn-clone = "1.0.17" +urlencoding = "2.1.3" +cacache = { version = "=13.0.0", features = ["mmap"], default-features = false } +time = "0.3.37" [dependencies.git2] -version = "0.18.3" +version = "0.20.0" default-features = false optional = true [dependencies.config] -version = "0.14.0" +version = "0.15.6" default-features = false features = ["toml", "yaml"] [dependencies.git-conventional] -version = "0.12.6" +version = "0.12.7" features = ["serde"] [dependencies.rust-embed] -version = "8.3.0" +version = "8.5.0" features = ["debug-embed", "compression"] [dev-dependencies] -pretty_assertions = "1.4.0" +pretty_assertions = "1.4.1" +expect-test = "1.5.1" +temp-dir = "0.1.14" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] + +[lints] +workspace = true diff --git a/git-cliff-core/src/changelog.rs b/git-cliff-core/src/changelog.rs index 4014c95b47..ead53b267b 100644 --- a/git-cliff-core/src/changelog.rs +++ b/git-cliff-core/src/changelog.rs @@ -4,21 +4,24 @@ use crate::config::{ GitConfig, }; use crate::error::Result; -#[cfg(feature = "github")] -use crate::github::{ - GitHubClient, - GitHubCommit, - GitHubPullRequest, - FINISHED_FETCHING_MSG, - START_FETCHING_MSG, -}; use crate::release::{ Release, Releases, }; +#[cfg(feature = "bitbucket")] +use crate::remote::bitbucket::BitbucketClient; +#[cfg(feature = "gitea")] +use crate::remote::gitea::GiteaClient; +#[cfg(feature = "github")] +use crate::remote::github::GitHubClient; +#[cfg(feature = "gitlab")] +use crate::remote::gitlab::GitLabClient; use crate::template::Template; use std::collections::HashMap; -use std::io::Write; +use std::io::{ + Read, + Write, +}; use std::time::{ SystemTime, UNIX_EPOCH, @@ -28,41 +31,72 @@ use std::time::{ #[derive(Debug)] pub struct Changelog<'a> { /// Releases that the changelog will contain. - pub releases: Vec>, - body_template: Template, - footer_template: Option