Repository navigation
Releases
@clack/prompts@1.8.1
Patch Changes
-
8bd9129Thanks @gameroman! - Return type for prompts now correctly specifiesCANCEL_SYMBOLinstead ofsymbol -
Updated dependencies [
8bd9129]:- @clack/core@1.5.1
@clack/core@1.5.1
Patch Changes
8bd9129Thanks @gameroman! - Return type for prompts now correctly specifiesCANCEL_SYMBOLinstead ofsymbol
@clack/prompts@1.8.0
Minor Changes
-
#592
caa32e8Thanks @gameroman! - ExportCANCEL_SYMBOLconstant from@clack/coreand@clack/prompts -
#594
37fca4eThanks @dreyfus92! - Add tab-completion to thepathprompt: pressing Tab fills the input with the focused suggestion, so you can quickly descend into deep directories (type/and Tab again). Powered by a new opt-incompleteOnTaboption onautocomplete, which also shows aTab: completehint in the instructions footer. Defaultautocompletebehavior is unchanged. -
#583
ae636ddThanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts.
Patch Changes
-
#588
6506135Thanks @danielroe! - Style the guide bar rendered bybox({ withGuide: true })in grey so it matches the gutter drawn bylog,noteand the spinner -
#599
0547d6fThanks @43081j! - Fixes a withGuide rendering issue leaving extra spaces in text prompts. -
Updated dependencies [
227583e,caa32e8,37fca4e,ae636dd,b20fa2b]:- @clack/core@1.5.0
@clack/core@1.5.0
Minor Changes
-
#595
227583eThanks @dreyfus92! - Add anaccessibleoption to the sharedPromptOptionsand a resolvedaccessiblegetter on the basePrompt, so any prompt can opt into accessible mode individually. Resolution order: per-prompt option >updateSettings({ accessible })> theACCESSIBLEenvironment variable. -
#592
caa32e8Thanks @gameroman! - ExportCANCEL_SYMBOLconstant from@clack/coreand@clack/prompts -
#594
37fca4eThanks @dreyfus92! - Add tab-completion to thepathprompt: pressing Tab fills the input with the focused suggestion, so you can quickly descend into deep directories (type/and Tab again). Powered by a new opt-incompleteOnTaboption onautocomplete, which also shows aTab: completehint in the instructions footer. Defaultautocompletebehavior is unchanged. -
#583
ae636ddThanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts. -
#593
b20fa2bThanks @dreyfus92! - AddisAccessible()and anaccessiblesetting as the foundation for accessible mode. Resolution order: per-call option >updateSettings({ accessible })> theACCESSIBLEenvironment variable (any non-empty value enables it, except0andfalse).
@clack/prompts@1.7.0
Minor Changes
- #574
8f1c380Thanks @dreyfus92! - AddshowInstructionsoption toselect,multiselect, andgroupMultiselect. Keyboard hints remain shown by default; passshowInstructions: falseto hide them.
Patch Changes
@clack/core@1.4.3
@clack/prompts@1.6.0
Minor Changes
-
#568
f87933fThanks @florian-lefebvre! - Updates default formatter ofnote()to note dim lines anymoreIf you want the old behavior, provide a
format()function:import { note } from '@clack/prompts'; +import { styleText } from 'node:util'; note( 'You can edit the file src/index.jsx', 'Next steps.' + { format: (text) => styleText('dim', text) } ); -
#567
cc6aab5Thanks @dreyfus92! - Add keyboard instruction footers toselect,multiselect, andgroupMultiselectin the active state, matching autocomplete. No option — always shown.
Patch Changes
@clack/core@1.4.2
Patch Changes
-
#561
2f2b52fThanks @avallete! - Fixpasswordprompt resolving toundefinedon empty submit. It now normalizes an empty submission to"", matching thetextprompt behavior and the documentedPromise<string | symbol>return type. -
#569
e1b6ee7Thanks @43081j! - fix: only submit multi-line prompt when double-return happens at end of input.Also fixes two minor things:
- Initial value is used as initial user input for multi-line prompts
- Cursor is placed at the end when there is initial input