v0.1.8 - Fix version parsing panic
What's Changed
π Bug Fixes
- Fixed panic in
APIVersion::from_u64()
when encountering unsupported version numbers- Now returns proper error instead of panicking
- Prevents server crashes when loading contracts with invalid version data
- Critical fix for River invitation bug where requests would hang indefinitely
π₯ Breaking Changes
APIVersion::from_u64()
now returnsResult<Self, VersionError>
instead ofSelf
- Added
VersionError
enum for better error handling
π§ Technical Details
This release addresses a critical issue where the stdlib would panic when loading contracts with unsupported version numbers. This was causing the Freenet node to crash when processing certain contract operations, leading to hanging WebSocket connections in applications like River.
Full Changelog: v0.1.7...v0.1.8