fix(deps): update module github.com/charmbracelet/huh to v2#67
fix(deps): update module github.com/charmbracelet/huh to v2#67renovate[bot] wants to merge 1 commit intomainfrom
Conversation
|
|
Claude finished @renovate[bot]'s task in 1m 10s —— View job Code Review: fix(deps): update module github.com/charmbracelet/huh to v2Tasks
SummaryDo not merge this PR. Renovate itself flagged it as broken, and the analysis below confirms it. Upgrading Critical Issues1. Wrong module path in
|
| Usage | Line | Status |
|---|---|---|
huh.NewInput() |
68 | Likely compatible, verify |
huh.ErrUserAborted |
74 | Verify still exported in v2 |
The v2 release notes mention accessible mode is form-level only now, but this file uses huh in standalone field mode (.Run()), so that may require verification too.
What Needs to Happen
A proper v2 upgrade requires:
- Change
go.modrequire fromgithub.com/charmbracelet/huh/v2→charm.land/huh/v2 - Update
internal/prompt/prompt.goimport fromgithub.com/charmbracelet/huh→charm.land/huh/v2 - Run
go mod tidyto resolve all transitive dependencies (bubbletea v2, lipgloss v2, etc.) - Verify the
huh.ErrUserAbortedandhuh.NewInput().Run()API still works as expected under v2 - Run tests to confirm nothing regressed
This PR should be closed. A fresh branch with all of these changes made together would be the right approach.
Fix this →%20Change%20go.mod%20require%20entry%20from%20github.com%2Fcharmbracelet%2Fhuh%2Fv2%20to%20charm.land%2Fhuh%2Fv2%202)%20Update%20internal%2Fprompt%2Fprompt.go%20import%20from%20github.com%2Fcharmbracelet%2Fhuh%20to%20charm.land%2Fhuh%2Fv2%203)%20Run%20go%20mod%20tidy%20to%20update%20all%20transitive%20deps%20(bubbletea%20v2%2C%20lipgloss%20v2%2C%20etc.)%204)%20Verify%20huh.ErrUserAborted%20and%20huh.NewInput().Run()%20still%20work%20under%20v2%20API&repo=boneskull/gh-stack)
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This PR contains the following updates:
v1.0.0→v2.0.3Release Notes
charmbracelet/huh (github.com/charmbracelet/huh)
v2.0.3Compare Source
This patch release fixes two UX issues where multiline options might get cutoff when navigating, and the other is related to ensuring the viewport width is updated after a resize.
Changelog
Fixed
3c0116c: fix(select): ensure cursor visibility when navigating multiline options (#749) (@aymanbagabas)ec53694: fix(select): recompute viewport width on WithWidth (#747) (@SergioChan)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v2.0.2Compare Source
Paste Paste Paste
This patch release fixes an issue where sometimes, a paste event, might get triggered multiple times. Enjoy!
Changelog
Fixed
8ccc9e1: fix: Prevent double paste in focused field (#746) (@ConnorsApps)35e08d4: fix: use keypress events instead of key events to avoid release events (@aymanbagabas)Docs
28dc68f: docs(license): update copyright date (@meowgorithm)4b802ae: docs(readme): update footer (@meowgorithm)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v2.0.1Compare Source
This patch release includes upgrading the minimum Go version, upgrade our Bubble Tea and Lip Gloss libraries to use that latest and greatest patches. Enjoy!
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v2.0.0Compare Source
Huh? v2?
We're thrilled to announce the second major release of Huh!
❤️ Charm Land Import Path
We've updated our import paths to use vanity domains and use our domain to import Go packages.
🍵 Bubble Tea v2 & Lip Gloss v2
Huh v2 is built on the all-new Bubble Tea v2 and Lip Gloss v2, bringing all their improvements along for the ride:
All these improvements come for free. Just upgrade and enjoy the performance and stability benefits.
🎨 Simpler Theming
Themes are now passed by value instead of pointer. This makes theme handling more straightforward and predictable.
All built-in themes now take a
boolparameter to indicate whether the terminal has a dark background. Huh will automatically detect your terminal's background color, but you can also provide your own custom theme function:🔍 View Hooks
Want to modify your form's view before it hits the screen? Now you can with
WithViewHook:This is perfect for dynamically controlling terminal features, applying custom view transformations, or integrating Huh forms with larger Bubble Tea applications.
♿ Simplified Accessible Mode
The separate
accessibilitypackage is gone. Accessible mode is now built directly into Huh and controlled exclusively at the form level:This makes accessible mode simpler and more consistent — one setting controls the entire form.
🗂️ Better Model Handling
The internal
Modeltype is now exposed, making it easier to work with Huh forms in Bubble Tea applications. This improves type safety and makes composition patterns more natural.🧹 Cleaner Dependencies
Huh v2 benefits from the simplified dependency tree of Bubble Tea v2 and Lip Gloss v2. This means faster builds, smaller binaries, and fewer potential version conflicts.
🌈 More on Huh v2
Ready to migrate? Head over to the Upgrade Guide for the full migration checklist.
Changelog
New!
Fixed
Docs
Other stuff
Feedback
Have thoughts on Huh v2? We'd love to hear about it. Let us know on…
Part of Charm.
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.