Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Feb 17:48
· 10 commits to release since this release
ebc88c6

Changes

New Features

add `wrap_with_path` helper to `Failure` ebc88c6

Convenience method for the common pattern of wrapping an error with
only path context, reducing boilerplate in map_err calls.

add `Failure` diagnostic error type behind `miette` feature b3c3791

Add Failure<T> wrapper implementing miette::Diagnostic for rich error
reporting with support for help text, URLs, codes, severity, and related
diagnostics. Additional context is displayed in the help section using
▷ prefix for visual distinction from the error chain.

  • Add wrap and wrap_with helpers for ergonomic map_err usage
  • Make miette an optional dependency behind miette feature flag
  • Remove unused serde_yaml dependency
  • Update CI to test with --all-features and align caching with flat_db

Dependencies

update dependencies 6143453

update colored to v3.0.0 7fc8551

Documentation

add missing docs and fix incorrect defaults dc3d60e
  • Add module doc to src/errors/mod.rs
  • Add docs to from_level and to_level_filter in Verbosity
  • Fix log_time_format default: utc → local
  • Remove unused type Error from Colors trait

add documentation to all public items 354ebe0

Refactor

Warning

Breaking Change: make `log` and `colored` dependencies optional behind `log` feature 8ba96f1

Move logging-related code into src/logging/ module gated behind
the log feature. Move error code into src/errors/ module.
When the log feature is disabled, only the Error type is available.
When enabled (default), full logging functionality with Logger,
LoggerBuilder, Verbosity, TimeFormat, and Colors is available.

Tests

expand test coverage from 7 to 34 tests with insta snapshots 5df6ba9
  • Add tests for builder, colors, logger, options, time_format, verbosity
  • Use insta for snapshot testing of serialization and color output
  • Move tests to src/tests/ module structure
  • Force truecolor mode in tests for consistent ANSI codes across environments

CI

align workflow with gazelle_api conventions 91c80db
  • Pin runner to ubuntu-24.04
  • Rename artifact to release-notes.md (lowercase)
  • Simplify if: condition syntax
  • Add git-tag job for pre-release versions
  • Simplify github-release to only run for stable releases