Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<T: StackError> ([#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.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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]
Expand Down
64 changes: 64 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[changelog]
# changelog header
header = """
# Changelog\n
"""

body = """
{% if version %}\
{% 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 %}\

{% macro commit(commit) -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/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 = '<REPO>', 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 = "<!-- 0 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 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 = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
2 changes: 1 addition & 1 deletion n0-error-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading