@clack/core
1.6.0 · 9 Nov 2026MIT48.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @clack/core From 0.1.0 to 1.6.0
34 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 49
- new
- 38
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.4.1
- Breaking1.0.0
- Breaking0.2.0
Release by release
- New
Add support for disabled
selectKeyoptions: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value. - New
Allow
multiselectto 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. - Fixed
Update sisteransi to 2.x (ESM only).
- Fixed
Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly.
- Fixed
Treat an ideographic space (U+3000) committed by IMEs (e.g. Japanese or Chinese input) as space when toggling options in multi-select prompts.
- Fixed
Fix that isCancelled returned after calling cancel and start methods in progress does not refresh.
- Fixed
Use the configured output stream's width when wrapping and clearing prompt frames, including prompts written to stderr while stdout is redirected.
- New
- Fixed
Return type for prompts now correctly specifies
CANCEL_SYMBOLinstead ofsymbol
- Fixed
- New
Add an
accessibleoption 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. - New
Export
CANCEL_SYMBOLconstant from@clack/coreand@clack/prompts - New
Add tab-completion to the
pathprompt: 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. - New
Add async validation support to prompts, and validation state rendering to text prompts.
- New
Add
isAccessible()and anaccessiblesetting as the foundation for accessible mode. Resolution order: per-call option >updateSettings({ accessible })> theACCESSIBLEenvironment variable (any non-empty value enables it, except0andfalse).
- New
- Fixed
Handle empty arrays in various prompts and utilities.
- Fixed
- Fixed
Fix
passwordprompt resolving toundefinedon empty submit. It now normalizes an empty submission to"", matching thetextprompt behavior and the documentedPromise<string | symbol>return type. - Fixed
Only submit multi-line prompt when double-return happens at end of input.
- Fixed
- Breaking
Remove sourcemaps and enable pretty-ish build output.
- Breaking
- New
Adds support for Standard Schema validation
- Fixed
Fixed spaces and uppercase characters in multiline prompt
- New
- Fixed
Fix line wrapping and overflow computation in group multi-select and other list-like prompts.
- Fixed
9 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.