Skip to content

v0.1.8 - Fix version parsing panic

Compare
Choose a tag to compare
@sanity sanity released this 19 Jun 20:00
· 9 commits to main since this release

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 returns Result<Self, VersionError> instead of Self
  • 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