Releases: livrasand/gitbrancher
v2.0.1
This patch release focuses on stability, robustness, and reliability improvements for the interactive HTML visualization and AI credit handling introduced in v2.0.0.
No new features are added; this release strictly improves correctness and resilience.
Fixes & Improvements
HTML Visualization Stability
- Fixed visualization crashes caused by special characters in diff content.
- Replaced inline
JSON.stringifyinjection with Base64-encoded graph data embedded via<script>tags. - Prevented JavaScript syntax errors when rendering complex diffs or file contents.
Cytoscape Selector Fixes
- Updated Cytoscape node selectors to use proper double-quote escaping.
- Resolved selector parsing issues that caused graphs to fail rendering in certain edge cases.
- Improved overall graph rendering reliability.
JavaScript Refactoring
- Refactored visualization scripts to avoid fragile string concatenation.
- Improved maintainability and readability of generated HTML/JS.
- Reduced risk of runtime errors during visualization rendering.
AI Credits Error Handling
- Enhanced error handling during AI credit consumption.
- Added detailed debugging output to make credit-related issues easier to diagnose.
- Improved feedback when credit validation or consumption fails.
Recommended Update
npm install -g @livrasand/gitbrancher@latestThanks for reporting issues and helping make GitBrancher more robust.
This release strengthens the foundation introduced in 2.0.0.
Full Changelog: v2.0.0...v2.0.1
v2.0.0
GitBrancher 2.0.0 marks a major leap in capabilities, user experience, and architecture.
This release introduces modern authentication with GitHub OAuth, AI-powered Pull Request analysis, advanced interactive visualization, and a more consistent and robust CLI experience.
This is a MAJOR release and includes significant behavioral changes.
Key New Features
AI-Powered Pull Request Analysis
-
New
pr analyzecommand with intelligent impact analysis. -
Support for:
--ai(standard analysis)--ai-full(in-depth analysis)
-
Detailed insights per file, affected dependencies, and change context.
-
Standardized and consistent analysis sections across CLI and HTML output.
Advanced Interactive Visualization
-
Automatic generation of interactive HTML visualizations.
-
Impact graph featuring:
- Automatic base branch detection (main/master).
- Inline diff with syntax highlighting and quick copy.
- Detailed view of affected files and dependencies with line numbers.
-
Additional export to Mermaid.
-
Modernized UI with a details panel, interactive legend, and improved navigation.
Modern Authentication with GitHub OAuth
-
Traditional email/password login has been removed.
-
New 100% GitHub OAuth authentication flow:
- Automatic browser launch.
- Local HTTP server to capture the OAuth callback.
- Automatic token capture (no copy/paste required).
-
New
--tokenparameter for manual or automated workflows. -
Styled success/error pages displayed during the login process.
AI Credits System
-
New
creditscommand to check the available balance. -
Automatic credit consumption when running AI analysis:
--ai→ 1 credit--ai-full→ 3 credits
-
Pre-validation of available credits before executing analysis.
-
Clear messaging showing before/after balances and upgrade suggestions for free-tier users.
More Consistent CLI Experience
-
Global replacement of emojis with text-based status indicators:
[SUCCESS],[ERROR],[WARNING],[AI],[NOTE], etc.
-
Output that is more compatible with all terminals, CI/CD environments, and logs.
-
Consistent behavior across commands (
login,register,info,credits,pr analyze, etc.).
Technical Changes and Internal Improvements
- Integrated local HTTP server for OAuth callbacks.
- Removal of legacy branch name validation test suite.
- Standardization of analysis headers and sections.
- Improved separation between CLI logic, visualization, and backend.
- Foundation prepared for plans, limits, and future AI extensions.
Breaking Changes
- Email/password authentication has been removed.
- AI-powered analysis requires authentication.
- Some commands now automatically open the browser.
- CLI output format has changed (emojis → text).
If you were using previous versions:
- You will need to sign in again with GitHub.
- Scripts that relied on emoji-based output may require updates.
Recommended Migration
-
Update GitBrancher:
npm install -g @livrasand/gitbrancher
-
Sign in again:
gitbrancher login
-
Check your credits:
gitbrancher credits
Thank you for using GitBrancher and being part of this new chapter.
Welcome to GitBrancher 2.0.0.
v1.2.0
Improvements
-
Improved Branching UX
The branch creation flow is now more forgiving and dynamic, preventing unnecessary errors that interrupted the user. -
Real-time Visual Limit
inquirer-maxlength-input-prompthas been integrated to clearly display the 50-character limit as the user types the descriptor. -
Automatic Segment Truncation
The segments of the branch name (alias, type, and descriptor) are automatically truncated to a maximum of 50 characters (MAX_SEGMENT_LENGTH) instead of throwing errors. -
More Robust Smart Suggestions
Automated suggestions from Azure DevOps are now pre-truncated to fit the recommended limit without affecting the flow. -
Centralized Configuration
The character limit (MAX_SEGMENT_LENGTH) has been centralized to facilitate maintenance and future improvements.
Dependencies
- Added
inquirer-maxlength-input-promptto improve the CLI's interactive experience.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
New Features
-
Secure Storage of Azure DevOps Credentials
-
Credentials are now securely stored using the operating system keychain.
-
Includes automatic migration from Configstore to avoid breaking existing configurations.
-
Non-interactive Branch Creation
-
New support for creating branches without prompts using:
-
--type -
--desc -
--no-interactive -
Ideal for scripts, automation, and CI/CD.
-
Option to Automatically Push to Remote
-
Added the option to push the branch to the remote immediately after creation.
-
New
infoCommand -
Displays detailed information about the current branch.
-
Validates whether the branch complies with the defined convention.
--
Validation and Logic Improvements
-
Advanced Branch Name Validation
-
Full format validation.
-
Verification of remote branch existence.
-
New tests and associated documentation.
-
Intelligent branch name generation
-
Use of
slugifySegmentto automatically format the base name from the work item title.
Robustness and Stability
-
Improved error handling in Azure DevOps
-
Stricter input validation.
-
Clearer error handling.
-
Retry mechanisms for API calls.
Documentation
-
Updated README
-
Clear installation instructions.
-
Informative badges for NPM and project status.
Notes
This release introduces significant changes focused on:
- Security 🔐
- Automation 🤖
- Workflow reliability with Azure DevOps
Upgrading is recommended to take advantage of all new capabilities.
Full Changelog: https://github.com/livrasand/gitbrancher/commits/v1.1.0