0.2.0 (2025-12-16)
Introduces error codes, improved documentation, and expanded test coverage.
Features
- Error Code Support:
- Added
.codeproperty to bothOkandErrclasses. - Default codes:
0forOk,1forErr. - Custom error codes can be provided when constructing
Err.
- Added
Documentation
- Updated README with:
- Project status, version, and license badges.
- Examples showing how to use error codes in pattern matching.
- Clearer explanation of
unwrap_valueandunwrap_error.
Tests
- Added unit tests for
.codeproperty:- Ensures default values (
0forOk,1forErr). - Validates custom error codes.
- Ensures default values (
- Expanded test coverage for
unwrap_valueandunwrap_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.