Changes
Stability & Performance Release - Friend management cleanup and database optimization
Overview
Enhanced friend management system with automatic cleanup of removed friends and improved database operations for better data consistency and performance.
Key Updates
Critical Bug Fixes
- Friend cleanup automation: Automatically removes users who are no longer friends from database
- Data consistency protection: Prevents accidental deletion of primary token user during cleanup
- Timing optimization: Ensures token users are updated before friend cleanup to handle username changes
Database Improvements
- New user deletion methods: Added single and bulk user deletion with cascade support
- Enhanced error handling: Improved logging and error tracking for PostgreSQL and SQLite
- Failed operation tracking: Better visibility into which operations succeed or fail
Technical Changes
Database Schema Operations
- CASCADE deletion: Automatic cleanup of watchlist items when users are removed
- Bulk operations: Efficient multi-user deletion with detailed success/failure reporting
- Database-specific optimizations: Tailored behavior for PostgreSQL vs SQLite limitations
Friend Management System
- Automated pruning: Removes orphaned friend data when users are unfriended
- Primary user protection: Safeguards against accidental deletion of token owner
- Username change handling: Proper synchronization when Plex usernames are updated
Performance Improvements
- Reduced database bloat: Cleanup of stale friend data prevents unnecessary storage
- Optimized queries: Efficient bulk operations for large friend lists
- Memory usage: Better handling of large user datasets
Migration & Compatibility
No user action required - database operations are handled automatically during friend synchronization.
Full Changelog: v0.5.13...v0.5.14
Docker Image: lakker/pulsarr:latest
Upgrade Path: Standard Docker image update
- fix: implement automatic cleanup of removed friends from databas (#577) @jamcalli
- Fix/properly prune removed friends (#576) @jamcalli
🔄 Dependencies
- chore(deps): lock file maintenance (#575) @renovate[bot]
- fix(deps): update dependency lucide-react to ^0.544.0 (#574) @renovate[bot]
- fix(deps): update react (#573) @renovate[bot]
- chore(deps): update dependency @types/node to v22.18.3 (#571) @renovate[bot]
- fix(deps): update dependency @scalar/fastify-api-reference to v1.35.5 (#572) @renovate[bot]
Docker
docker pull lakker/pulsarr:0.5.14
Contributors
@actions-user, @jamcalli, @renovate[bot] and renovate[bot]