v3.2.2
π kport v3.2.2 β Release Notes
Release Date: June 2026
Branch: refactor
Previous Version: 3.2.1
Overview
kport 3.2.2 is a maintenance and refinement release focusing on CLI robustness, improved error handling, and streamlined release automation. This release enhances the user experience with better error messages and improved timeout handling while maintaining full backward compatibility with 3.2.1.
π New Features
π Enhanced CLI Error Handling
Improved command-line parser with better error messages and warnings for unused subcommands:
- Custom Error Parser: Provides more informative error messages when invalid arguments are passed
- Unused Subcommand Warnings: Alerts users when they attempt to use unrecognized subcommands
- Better guidance on correct command usage and available options
Example:
kport invalid-command # Now shows helpful error message with suggestionsπ§ Improvements
β±οΈ Graceful Timeout Handling
Enhanced graceful timeout handling in CLI commands for more reliable process termination:
- Improved timeout logic for
kport killoperations - More predictable behavior during graceful shutdown attempts
- Better handling of edge cases in timeout scenarios
- Enhanced code readability in timeout-related functions
π Streamlined Release Automation
Major refactoring of release.py for improved maintainability:
- Removed deprecated functions and redundant code
- Simplified version handling logic
- Cleaner build process integration
- Better separation of concerns in release workflows
- Reduced code complexity (454 lines β 190 lines of functional code)
π§ͺ Testing
The existing test suite in tests/test_cli.py continues to cover:
- CLI command parsing and execution
- Safety Shield functionality
- Port inspection and management
- Error handling scenarios
Run all tests:
python run_tests.py
# or
pytest tests/ -vπ Bug Fixes & Quality Improvements
- Fixed CLI parser error handling to provide clearer feedback to users
- Improved graceful timeout reliability in port killing operations
- Removed deprecated code paths from release automation
- Enhanced code maintainability in core CLI module
β¬οΈ Upgrade Notes
- No breaking changes from v3.2.1
- All existing commands and configuration options remain unchanged
- No new dependencies added
π Full Changelog
- Enhanced CLI error handling with custom parser
- Added warning for unused subcommands
- Improved graceful timeout handling in kill operations
- Refactored
release.pyfor better maintainability - Simplified release script version handling
- Removed deprecated functions from build automation
π Resources
- GitHub Repository: port-killer
- Installation: See INSTALL.md
- Quick Start: See QUICKSTART.md
- Contributing: See CONTRIBUTING.md