chore(deps): update dependency @clack/prompts to v1 #30940
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.
This PR contains the following updates:
^0.11.0→^1.0.0Release Notes
bombshell-dev/clack (@clack/prompts)
v1.0.0Compare Source
Major Changes
c713fd5: The package is now distributed as ESM-only. Inv0releases, the package was dual-published as CJS and ESM.For existing CJS projects using Node v20+, please see Node's guide on Loading ECMAScript modules using
require().Minor Changes
415410b: This adds a custom filter function to autocompleteMultiselect. It could be used, for example, to support fuzzy searching logic.7bc3301: Prompts now have auserInputstored separately from theirvalue.8409f2c: feat: add styleFrame option for spinner2837845: Adds suggestion and path prompts99c3530: Addsformatoption to the note prompt to allow formatting of individual lines0aaee4c: Added newtaskLogprompt for log output which is cleared on success729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via theupdateSettingsfunction to support multilingual CLIs.This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
44df9af: Adds a newgroupSpacingoption to grouped multi-select prompts. If set to an integer greater than 0, it will add that number of new lines between each group.55645c2: Support wrapping autocomplete and select prompts.9e5bc6c: Add support for signals in prompts, allowing them to be aborted.f2c2b89: AddsAutocompletePromptto core with comprehensive tests and implement bothautocompleteandautocomplete-multiselectcomponents in prompts package.38019c7: Updates the API for stopping spinners and progress bars to be clearerPreviously, both the spinner and progress bar components used a single
stopmethod that accepted a code to indicate success, cancellation, or error. This update separates these into distinct methods:stop(),cancel(), anderror():As before, you can pass a message to each method to customize the output displayed:
c45b9fb: Adds support for detecting spinner cancellation via CTRL+C. This allows for graceful handling of user interruptions during long-running operations.f10071e: Using thegroupmethod, task logs can now have groups which themselves can have scrolling windows of logs.df4eea1: Removesuggestionprompt and changepathprompt to be an autocomplete prompt.76fd17f: Added newboxprompt for rendering boxed text, similar a note.9a09318: Adds newprogressprompt to display a progess-bar1604f97: AddclearOnErroroption to password prompt to automatically clear input when validation fails9bd8072: Add arequiredoption to autocomplete multiselect.19558b9: Added support for custom frames in spinner promptPatch Changes
46dc0a4: Fixes multiselect only shows hints on the first item in the options list. Now correctly shows hints for all selected options with hint property.aea4573: Clamp scrolling windows to 5 rows.bfe0dd3: Prevents placeholder from being used as input value in text prompts55eb280: Fix placeholder rendering when using autocomplete.4d1d83b: Fixes rendering of multi-line messages and options in select prompt.6176ced: Add withGuide support to note prompt7b009df: Fix spinner clearing too many lines upwards when non-wrapping.43aed55: Change styling of disabled multi-select options to have strikethrough.17342d2: Exposes a newSpinnerResulttype to describe the return type ofspinner282b39e: Wrap spinner output to allow for multi-line/wrapped messages.2feaebb: Fix duplicated logs when scrolling through options with multiline messages by calculatingrowPaddingdynamically based on actual rendered lines instead of using a hardcoded value.69681ea: Strip destructive ANSI codes from task log messages.b0fa7d8: Add support for wrapped messages in multi line prompts9999adf: fix note component overflow bug6868c1c: Adds a newselectableGroupsboolean to the group multi-select prompt. UsingselectableGroups: falsewill disable the ability to select a top-level group, but still allow every child to be selected individually.7df841d: Removed all trailing space in prompt output and fixed various padding rendering bugs.2839c66: fix(note): hard wrap text to column limit7a556ad: Updates all prompts to accept a customoutputandinputstream17d3650: Use a default import for picocolors to avoid run time errors in some environments.7cc8a55: Messages passed to thestopmethod of a spinner no longer have dots stripped.b103ad3: Allow disabled options in multi-select and select prompts.71b5029: Add missing nullish checks around values.1a45f93: Switched from wrap-ansi to fast-wrap-ansif952592: Fixes missing guide when rendering empty log lines.372b526: Addclearmethod to spinner for stopping and clearing.d25f6d0: fix(note, box): handle CJK correctly94fee2a: Changesplaceholderto be a visual hint rather than a tabbable value.7530af0: Fixes wrapping of cancelled and success messages of select prompt4c89dd7: chore: use more accurate type to replace any in group select0b852e1: Handlestopcalls on spinners which have not yet been started.42adff8: fix: add missing guide line in autocomplete-multiselect8e2e30a: fix: fix autocomplete bar color when validate2048eb1: Fix spinner's dots behavior with custom framesacc4c3a: Add a newwithGuideoption to all prompts to disable the default clack border9b92161: Show symbol when withGuide is true for log messages68dbf9b: select-key: Fixed wrapping and added newcaseSensitiveoption09e596c: refactor(progress): remove unnecessary return statement in start function2310b43: Allow custom writables as output stream.ae84dd0: Update key binding text to show tab/space when navigating, and tab otherwise.@clack/coreto1.0.0Configuration
📅 Schedule: Branch creation - "every weekday before 11am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, 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.