js-component-bindgen 1.13.0

JS component bindgen for transpiling WebAssembly components into JavaScript
# https://git-cliff.org/docs/configuration

[changelog]
header = """
# Changelog\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
    ## [{{ version | trim_start_matches(pat="js-component-bindgen-v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
    ## [unreleased]
{% endif %}\
{% 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**] {% endif %}\
          {{ 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 %}
{% endfor %}\n

{%- if github -%}
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
  {% raw %}\n{% endraw -%}
  ## 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 -%}
{% raw %}\n{% endraw -%}
{% raw %}\n{% endraw -%}
{% raw %}\n{% endraw -%}
{%- endif -%}

{%- macro remote_url() -%}
  https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
# remove the leading and trailing spaces
trim = true

[git]
# parse the commits based on https://www.conventionalcommits.org

# regex for parsing and grouping commits
commit_parsers = [
  { message = '^feat\(bindgen\)', group = '<!-- 0 -->๐Ÿš€ Features' },
  { message = '^fix\(bindgen\)', group = '<!-- 1 -->๐Ÿ› Bug Fixes' },
  { message = '^doc\(bindgen\)', group = '<!-- 3 -->๐Ÿ“š Documentation' },
  { message = '^perf\(bindgen\)', group = '<!-- 4 -->โšก Performance' },
  { message = '^refactor\(bindgen\)', group = '<!-- 2 -->๐Ÿšœ Refactor' },
  { message = '^style\(bindgen\)', group = '<!-- 5 -->๐ŸŽจ Styling' },
  { message = '^test\(bindgen\)', group = '<!-- 6 -->๐Ÿงช Testing' },
  { message = '^release', skip = true },
  { message = '^chore\(bindgen\)', group = '<!-- 7 -->โš™๏ธ Miscellaneous Tasks' },
]

# filter out the commits that are not matched by commit parsers
filter_commits = true

filter = { exclude = { scopes = ["ci", "infra", "ops"] } }

# sort the tags topologically
topo_order = false

# sort the commits inside sections by oldest/newest order
sort_commits = "newest"

# glob pattern for matching git tags
tag_pattern = "^js-component-bindgen-v[0-9]+.[0-9]+.[0-9]+(-beta|-rc|-alpha)?"

link_parsers = [
    { pattern = "\\(#(\\d+)\\)$", href = "https://github.com/bytecodealliance/jco/pull/$1" },
]