github lnp2pBot/bot v0.13.0

latest releases: v0.13.3, v0.13.2, v0.13.1...
2 months ago

What's New in v0.13.0

🔧 Major Improvements

Timeout Handling & Error Recovery (#667)

  • Enhanced Lightning Network error handling with specific timeout detection
  • Made pathfinding and bot handler timeouts configurable via environment variables
  • Implemented exponential backoff retry strategy for failed payments
  • Added timeout monitoring and structured logging for better debugging
  • Enhanced PendingPayment model with error tracking and retry scheduling
  • Fixes 60-second timeout issues that were causing bot unresponsiveness

TypeScript Strict Mode (#665)

  • Enabled TypeScript strict mode for better type safety
  • Improved code quality and reduced potential runtime errors

Lightning Network Conversion (#646)

  • Converted Lightning Network modules to TypeScript
  • Better type safety for Lightning Network operations

🐛 Bug Fixes & Enhancements

UI/UX Improvements

  • Reduced QR code image size in invoices for better readability (#660)
  • Fixed ticket #654 related issues (#664)

Security & Access Control

  • Blocked direct exchanges between same users (A to B scenario) (#630)
  • Enhanced user access control mechanisms

Dependencies

  • Updated tar-fs from 2.1.2 to 2.1.3 for security improvements (#661)

⚙️ New Configuration Options

Environment variables now available:

  • LN_PATHFINDING_TIMEOUT - Lightning Network pathfinding timeout (default: 60000ms)
  • BOT_HANDLER_TIMEOUT - Telegram bot handler timeout (default: 60000ms)

📊 Enhanced Monitoring

  • Added structured logging for timeout events (TIMEOUT_MONITOR)
  • Operation duration tracking (OPERATION_DURATION, SLOW_OPERATION)
  • Enhanced error categorization for better debugging
  • Better visibility into Lightning Network operation performance

🔄 Breaking Changes

  • TypeScript strict mode may require environment updates
  • New database fields added to PendingPayment model

This release significantly improves bot reliability, performance, and maintainability. The timeout
handling improvements should resolve most bot unresponsiveness issues under network stress.

New Contributors

Full Changelog: v0.12.4...v0.13.0

Don't miss a new bot release

NewReleases is sending notifications on new releases.