From f64f3da420b836d7bcc0381275c26e3b28153c59 Mon Sep 17 00:00:00 2001 From: oyvindln Date: Sat, 3 Feb 2024 23:00:52 +0100 Subject: [PATCH] chore(release): prepare for 0.7.2 update version and changelog --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ cliff.toml | 39 ++++++++++++++++++++++++++++++--------- miniz_oxide/Cargo.toml | 2 +- 3 files changed, 59 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 186e18ae..548f192d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +--- +## [0.7.2](https://github.com/Frommi/miniz_oxide/compare/0.7.1..0.7.2) - 2024-02-03 + +### Bug Fixes + +- **(inflate)** Return MZError::Buf when calling inflate with MZFlush::Finish in line with orig miniz and zlib - ([0f50464](https://github.com/Frommi/miniz_oxide/commit/0f50464c6f7eebdf50942d575db4fbf159436167)) - oyvindln +- **(miniz_oxide)** fix tests when with-alloc is not enabled (running with --no-default-features) and make add test run of it to ci - ([4fd32da](https://github.com/Frommi/miniz_oxide/commit/4fd32da7faa624bfdd47c12e5a0a8587824f65bb)) - oyvindln +- **(miniz_oxide)** fix compiler and clippy warnings - ([657c5b2](https://github.com/Frommi/miniz_oxide/commit/657c5b25760a65cdebe0f66e885d813b488ecd6f)) - oyvindln + +### Documentation + +- fix typo ([#142](https://github.com/Frommi/miniz_oxide/issues/142)) - ([6e3e813](https://github.com/Frommi/miniz_oxide/commit/6e3e8135895c41e1841c32338d2e0170b80a7e88)) - Brian Donovan + +### Performance + +- Code size reduction from panic reduction ([#145](https://github.com/Frommi/miniz_oxide/issues/145)) - ([201ef39](https://github.com/Frommi/miniz_oxide/commit/201ef393a84c858c78567a304b18439b3db9279c)) - Kornel +- Optimize match_len == 3 ([#146](https://github.com/Frommi/miniz_oxide/issues/146)) - ([10ff5a0](https://github.com/Frommi/miniz_oxide/commit/10ff5a0824a800d2df688894c904ebfc1b2a2dce)) - Kornel + +### Other + +- Add a roundtrip fuzz target ([#138](https://github.com/Frommi/miniz_oxide/issues/138)) - ([ee29e37](https://github.com/Frommi/miniz_oxide/commit/ee29e371237b01ddbadd4c0709f2d30447f2430c)) - Sergey "Shnatsel" Davidoff + + + ### 0.7.1 (2023-02-02) * **inflate:** diff --git a/cliff.toml b/cliff.toml index 9b8cdf20..cfc0c5b2 100644 --- a/cliff.toml +++ b/cliff.toml @@ -6,23 +6,43 @@ header = """ # Changelog\n All notable changes to this project will be documented in this file.\n """ -# template for the changelog body -# https://tera.netlify.app/docs/#introduction body = """ +--- {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + {% if previous.version %}\ + ## [{{ version | trim_start_matches(pat="v") }}]($REPO/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} + {% else %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + {% endif %}\ {% 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 %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits + | filter(attribute="scope") + | sort(attribute="scope") %} + - **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \ + {{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }})) - {{ commit.author.name }} + {%- endfor -%} + {% raw %}\n{% endraw %}\ + {%- for commit in commits %} + {%- if commit.scope -%} + {% else -%} + - {% if commit.breaking %} [**breaking**]{% endif %}\ + {{ commit.message | split(pat="\n") | first }} - ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }})) - {{ commit.author.name }} + {% endif -%} + {% endfor -%} {% endfor %}\n """ # remove the leading and trailing whitespace from the template trim = true + +# postprocessors +postprocessors = [ + { pattern = '\$REPO', replace = "https://github.com/Frommi/miniz_oxide" }, # replace repository URL +] + # changelog footer footer = """ @@ -37,7 +57,7 @@ filter_unconventional = false split_commits = false # regex for preprocessing the commit messages commit_preprocessors = [ - { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"}, + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/Frommi/miniz_oxide/issues/${2}))"}, ] # regex for parsing and grouping commits commit_parsers = [ @@ -51,13 +71,14 @@ commit_parsers = [ { message = "^chore\\(release\\): prepare for", skip = true}, { message = "^chore", group = "Miscellaneous Tasks"}, { body = ".*security", group = "Security"}, + { message = "", group = "other"}, ] # filter out the commits that are not matched by commit parsers filter_commits = false # glob pattern for matching git tags tag_pattern = "[0-9]*" # regex for skipping tags -skip_tags = "v0.1.0-beta.1" +# skip_tags = "v0.1.0-beta.1" # regex for ignoring tags ignore_tags = "" # sort the tags chronologically diff --git a/miniz_oxide/Cargo.toml b/miniz_oxide/Cargo.toml index bb9894d7..f104ef22 100644 --- a/miniz_oxide/Cargo.toml +++ b/miniz_oxide/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "miniz_oxide" authors = ["Frommi ", "oyvindln "] -version = "0.7.1" +version = "0.7.2" license = "MIT OR Zlib OR Apache-2.0" readme = "Readme.md" keywords = ["zlib", "miniz", "deflate", "encoding"]