Repository navigation
Releases
@clack/[email protected]
Minor Changes
-
#596
cbeefcbThanks @dreyfus92! - Add accessible mode tospinner: when enabled via theaccessibleoption, the global setting, or theACCESSIBLEenv var, the spinner emits static, append-only, screen-reader friendly output, a plain start line, a "still working" heartbeat every 30 seconds, and a plain final line. Instead of animated in-place repaints. -
#614
5ac9e73Thanks @btea! - Allowmultiselectto accept readonly option arrays, e.g. options declared withas const. TheValuetype parameter is now inferred as a literal union ('a' | 'b') from such arrays, andinitialValuesalso accepts readonly arrays. -
#622
1835f41Thanks @btea! - Add support for disabledselectKeyoptions: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value.
Patch Changes
-
#610
be35482Thanks @43081j! - Update sisteransi to 2.x (ESM only). -
#618
3e0bffdThanks @btea! - Use an explicit undefined check when forwarding autocomplete initialValue so 0, false, and empty strings remain selectable instead of falling back to the first option. -
#631
9053625Thanks @43081j! - Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly. -
#616
f325a53Thanks @btea! - Fix that isCancelled returned after calling cancel and start methods in progress does not refresh. -
#627
34976a7Thanks @b84330808! - Fix thepathprompt indirectorymode on Windows: typing a trailing\after a directory now lists its children instead of showing no matches. -
#628
85f6affThanks @imharjot! - Render falsy primitive options through thelimitOptionsstyle callback instead of leaving blank rows. -
Updated dependencies [
be35482,9053625,f2bc46b,f325a53,5ac9e73,e66ab12,1835f41]:- @clack/[email protected]
@clack/[email protected]
Minor Changes
- #622
1835f41Thanks @btea! - Add support for disabledselectKeyoptions: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value.
Patch Changes
-
#610
be35482Thanks @43081j! - Update sisteransi to 2.x (ESM only). -
#631
9053625Thanks @43081j! - Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly. -
#608
f2bc46bThanks @kai-natori! - Treat an ideographic space (U+3000) committed by IMEs (e.g. Japanese or Chinese input) as space when toggling options in multi-select prompts. -
#616
f325a53Thanks @btea! - Fix that isCancelled returned after calling cancel and start methods in progress does not refresh. -
#614
5ac9e73Thanks @btea! - Allowmultiselectto accept readonly option arrays, e.g. options declared withas const. TheValuetype parameter is now inferred as a literal union ('a' | 'b') from such arrays, andinitialValuesalso accepts readonly arrays. -
#630
e66ab12Thanks @imharjot! - Use the configured output stream's width when wrapping and clearing prompt frames, including prompts written to stderr while stdout is redirected.
@clack/[email protected]
Patch Changes
-
8bd9129Thanks @gameroman! - Return type for prompts now correctly specifiesCANCEL_SYMBOLinstead ofsymbol -
Updated dependencies [
8bd9129]:- @clack/[email protected]
@clack/[email protected]
Patch Changes
8bd9129Thanks @gameroman! - Return type for prompts now correctly specifiesCANCEL_SYMBOLinstead ofsymbol
@clack/[email protected]
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/[email protected]
@clack/[email protected]
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/[email protected]
Minor Changes
- #574
8f1c380Thanks @dreyfus92! - AddshowInstructionsoption toselect,multiselect, andgroupMultiselect. Keyboard hints remain shown by default; passshowInstructions: falseto hide them.
Patch Changes
-
#582
4b24953Thanks @43081j! - Handle empty arrays in various prompts and utilities. -
Updated dependencies [
4b24953]:- @clack/[email protected]
@clack/[email protected]
@clack/[email protected]
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
- Updated dependencies [
2f2b52f,e1b6ee7]:- @clack/[email protected]
@clack/[email protected]
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