-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update dependency @inquirer/confirm to v5.1.19 #1361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential bug: Two versions of
@inquirer/coreare installed, causinginstanceofchecks for prompt errors to fail, leading to incorrect error handling.Description: The lockfile resolves two different versions of
@inquirer/core:10.2.2and10.3.0. When a user cancels aconfirmprompt, an error is thrown by a function using version10.3.0. However, the error handler insdk/cli/src/commands/index.tsusesinstanceofto check against error classes imported from version10.2.2. This check fails because the objects are from different package instances. As a result, legitimate cancellations are treated as unknown errors, causing the CLI to exit with code 1 instead of gracefully with code 0.Suggested fix: Update the
@inquirer/coredevDependency insdk/cli/package.jsonto match the version used by@inquirer/confirm(e.g.,^10.3.0). This will consolidate the dependency to a single version, ensuring thatinstanceofchecks for prompt errors work correctly across the application.severity: 0.75, confidence: 0.98
Did we get this right? 👍 / 👎 to inform future reviews.