Skip to content

Phantom v2.0.0

Choose a tag to compare

@aku11i aku11i released this 22 Jun 12:52
· 661 commits to main since this release
1a4c23c

🚀 What's New in v2.0.0

This is a major release with a breaking change in the worktree naming convention for GitHub checkout functionality.

⚠️ Breaking Changes

New Worktree Naming Convention for GitHub Checkout (#199)

The naming pattern for worktrees created from GitHub issues/PRs has changed to improve clarity and align with GitHub's URL structure:

  • Previous format: pr-123 or issue-456
  • New format: pulls/123 or issues/456

This change creates a directory-like structure that matches GitHub's URL patterns and makes worktree organization more intuitive.

✨ New Features

PreDelete Hook Functionality (#193) - Thanks @daikw!

Introduces preDelete hooks that execute commands before worktree deletion, enabling proper cleanup while files are still accessible:

{
  "preDelete": {
    "commands": [
      "docker compose down",
      "npm run cleanup",
      "rm -rf temp-files"
    ]
  }
}

This feature is perfect for cleaning up Docker containers, temporary files, or running any cleanup scripts that need access to worktree files.

🐛 Bug Fixes

  • Fixed "refusing to fetch into branch" error (#203) - Resolved an issue when re-checking out a PR that prevented proper branch updates

🛠️ Improvements

  • Generate PhantomConfig Type from Zod Schema (#198) - TypeScript users can now benefit from auto-generated types for the phantom configuration
  • Added engines field to package.json (#202) - npm now properly displays Node.js version requirements badge
  • Restructured preDelete to match postCreate architecture (#197) - Internal consistency improvements for better maintainability

🙏 New Contributors

Welcome to our new contributor!

  • @daikw - Implemented the preDelete hook functionality (#193)

Installation/Upgrade:

npm install -g @aku11i/phantom@latest
# or
brew update && brew upgrade phantom

Full Changelog: v1.3.0...v2.0.0