Skip to content

Phantom v0.4.0

Choose a tag to compare

@aku11i aku11i released this 03 Jun 13:35
· 760 commits to main since this release

πŸš€ What's New in v0.4.0

✨ New Features

  • Enhanced phantom create command - Added --exec (-x) option to execute commands immediately after creating a worktree
    phantom create feature --exec "code ." # open in VSCode!!
  • Short flags support - You can now use short flags for convenience:
    • -s for --shell
    • -x for --exec
    • -f for --force
  • Better CLI experience - Options can now be placed anywhere in the command (e.g., phantom create --shell feature works!)

πŸ› Bug Fixes

  • Fixed branch deletion - The phantom delete command now correctly deletes branches (previously failed due to incorrect branch naming)
  • Security fix - Fixed command injection vulnerability by using safer command execution methods

πŸ› οΈ Improvements

  • Robust argument parsing - Switched to Node.js built-in parseArgs for better command-line handling
  • Better error messages - Improved error reporting, especially for branch deletion failures
  • Type safety - Introduced Result type pattern for better error handling throughout the codebase
  • Performance - Migrated build system from TypeScript compiler to TypeScript-go for faster builds

πŸ“š Documentation

  • Enhanced README with clearer examples and use cases
  • Added comprehensive tests for new features

πŸ”§ Developer Experience

  • Restructured codebase following Single Responsibility Principle
  • Added extensive unit tests for core modules
  • Improved project architecture for better maintainability

Full Changelog: v0.3.0...v0.4.0

Contributors

  • @aku11i - All changes in this release