Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Dec 20:14

0.2.0 (2025-12-16)

Introduces error codes, improved documentation, and expanded test coverage.

Features

  • Error Code Support:
    • Added .code property to both Ok and Err classes.
    • Default codes: 0 for Ok, 1 for Err.
    • Custom error codes can be provided when constructing Err.

Documentation

  • Updated README with:
    • Project status, version, and license badges.
    • Examples showing how to use error codes in pattern matching.
    • Clearer explanation of unwrap_value and unwrap_error.

Tests

  • Added unit tests for .code property:
    • Ensures default values (0 for Ok, 1 for Err).
    • Validates custom error codes.
  • Expanded test coverage for unwrap_value and unwrap_error.

Chores

  • Removed commit message generation instructions.
  • Bumped version to 0.2.0.

Breaking Changes

  • None identified. Existing functionality remains compatible, with new features added.