diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..935e89e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +# Changelog + +## [0.1.1](https://github.com/n0-computer/n0-error/compare/v0.1.0..0.1.1) - 2025-11-12 + +### โ›ฐ๏ธ Features + +- Impl StackError for Arc ([#15](https://github.com/n0-computer/n0-error/issues/15)) - ([e094af6](https://github.com/n0-computer/n0-error/commit/e094af6171657f65103979116a2978ca8898aa60)) +- Impl StackError for anyhow:::Error ([#14](https://github.com/n0-computer/n0-error/issues/14)) - ([b11a365](https://github.com/n0-computer/n0-error/commit/b11a365e971ca2bd3cce7d59b128176f9fdb3fc8)) + +### Deps + +- Remove derive_more and heck ([#17](https://github.com/n0-computer/n0-error/issues/17)) - ([f27edc5](https://github.com/n0-computer/n0-error/commit/f27edc5d27ace51734cdf3cf353a5f2a1a3df855)) + +## [0.1.0] - 2025-10-31 + +Initial release. diff --git a/Cargo.lock b/Cargo.lock index ed1669d..d03c037 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "n0-error" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "n0-error-macros", @@ -19,7 +19,7 @@ dependencies = [ [[package]] name = "n0-error-macros" -version = "0.1.0" +version = "0.1.1" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index ddd3bee..963e2d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "n0-error" -version = "0.1.0" +version = "0.1.1" edition = "2024" readme = "README.md" description = "ergonomic errors with call-site location" @@ -11,7 +11,7 @@ keywords = ["error", "location", "ergonomic"] [dependencies] anyhow = { version = "1.0.100", optional = true } -n0-error-macros = { path = "n0-error-macros", version = "0.1.0" } +n0-error-macros = { path = "n0-error-macros", version = "0.1.1" } spez = "0.1.2" [dev-dependencies] diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..f0fe670 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,64 @@ +[changelog] +# changelog header +header = """ +# Changelog\n +""" + +body = """ +{% if version %}\ + {% if previous.version %}\ + ## [{{ version | trim_start_matches(pat="v") }}](/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 %}\ + +{% macro commit(commit) -%} + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}\ + {{ commit.message | upper_first }} - ([{{ commit.id | truncate(length=7, end="") }}](/commit/{{ commit.id }}))\ +{% endmacro -%} + +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits + | filter(attribute="scope") + | sort(attribute="scope") %} + {{ self::commit(commit=commit) }} + {%- endfor -%} + {% raw %}\n{% endraw %}\ + {%- for commit in commits %} + {%- if not commit.scope -%} + {{ self::commit(commit=commit) }} + {% endif -%} + {% endfor -%} +{% endfor %}\n +""" + +footer = "" +postprocessors = [ + { pattern = '', replace = "https://github.com/n0-computer/n0-error" }, + { pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/n0-computer/n0-error/issues/${1}))"} +] + + +[git] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "โ›ฐ๏ธ Features" }, + { message = "^fix", group = "๐Ÿ› Bug Fixes" }, + { message = "^doc", group = "๐Ÿ“š Documentation" }, + { message = "^perf", group = "โšก Performance" }, + { message = "^refactor", group = "๐Ÿšœ Refactor" }, + { message = "^style", group = "๐ŸŽจ Styling" }, + { message = "^test", group = "๐Ÿงช Testing" }, + { message = "^chore: Release", skip = true }, + { message = "^chore\\(release\\)", skip = true }, + { message = "^chore\\(deps\\)", skip = true }, + { message = "^chore\\(pr\\)", skip = true }, + { message = "^chore\\(pull\\)", skip = true }, + { message = "^chore|ci", group = "โš™๏ธ Miscellaneous Tasks" }, + { body = ".*security", group = "๐Ÿ›ก๏ธ Security" }, + { message = "^revert", group = "โ—€๏ธ Revert" }, +] diff --git a/n0-error-macros/Cargo.toml b/n0-error-macros/Cargo.toml index 2b604e1..9fc3992 100644 --- a/n0-error-macros/Cargo.toml +++ b/n0-error-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "n0-error-macros" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "macros for n0-error" license = "MIT OR Apache-2.0"