Skip to content

Releases: freenet/freenet-stdlib

v0.1.9 - Add missing NodeQuery APIs with panic fix

19 Jun 20:24
Compare
Choose a tag to compare

What's Changed

🚀 Features

  • Added NodeQuery enum with ConnectedPeers and SubscriptionInfo variants
  • Added SubscriptionInfo struct for tracking contract subscriptions
  • Added NetworkDebugInfo struct for network debugging information
  • Added QueryResponse::NetworkDebug variant for debugging responses

🐛 Bug Fixes (from v0.1.8)

  • Fixed panic in APIVersion::from_u64() when encountering unsupported version numbers
  • Now returns proper error instead of panicking

📝 Notes

  • These APIs were present in published v0.1.7 but missing from main branch
  • This release combines the panic fix from v0.1.8 with the restored APIs from v0.1.7
  • Required by freenet-core v0.1.13+ for network debugging functionality

Full Changelog: v0.1.8...v0.1.9

v0.1.8 - Fix version parsing panic

19 Jun 20:00
Compare
Choose a tag to compare

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