···11# @clack/core
2233+## 1.0.0-alpha.0
44+55+### Major Changes
66+77+- c713fd5: The package is now distributed as ESM-only. In `v0` releases, the package was dual-published as CJS and ESM.
88+99+ For existing CJS projects using Node v20+, please see Node's guide on [Loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
1010+1111+### Minor Changes
1212+1313+- 729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the `updateSettings` function to support multilingual CLIs.
1414+1515+ This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
1616+1717+ ```ts
1818+ // Per-instance customization
1919+ const spinner = prompts.spinner({
2020+ cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
2121+ errorMessage: "Se produjo un error", // "An error occurred" in Spanish
2222+ });
2323+2424+ // Global customization via updateSettings
2525+ prompts.updateSettings({
2626+ messages: {
2727+ cancel: "Operación cancelada", // "Operation cancelled" in Spanish
2828+ error: "Se produjo un error", // "An error occurred" in Spanish
2929+ },
3030+ });
3131+3232+ // Settings can now be accessed directly
3333+ console.log(prompts.settings.messages.cancel); // "Operación cancelada"
3434+3535+ // Direct options take priority over global settings
3636+ const spinner = prompts.spinner({
3737+ cancelMessage: "Cancelled", // This will be used instead of the global setting
3838+ });
3939+ ```
4040+4141+- f2c2b89: Adds `AutocompletePrompt` to core with comprehensive tests and implement both `autocomplete` and `autocomplete-multiselect` components in prompts package.
4242+4343+### Patch Changes
4444+4545+- 6868c1c: Adds a new `selectableGroups` boolean to the group multi-select prompt. Using `selectableGroups: false` will disable the ability to select a top-level group, but still allow every child to be selected individually.
4646+- a4f5034: Fixes an edge case for placeholder values. Previously, when pressing `enter` on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
4747+- a36292b: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.
4848+349## 0.4.1
450551### Patch Changes
···11# @clack/prompts
2233+## 1.0.0-alpha.0
44+55+### Major Changes
66+77+- c713fd5: The package is now distributed as ESM-only. In `v0` releases, the package was dual-published as CJS and ESM.
88+99+ For existing CJS projects using Node v20+, please see Node's guide on [Loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
1010+1111+### Minor Changes
1212+1313+- 99c3530: Adds `format` option to the note prompt to allow formatting of individual lines
1414+- 0aaee4c: Added new `taskLog` prompt for log output which is cleared on success
1515+- 729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the `updateSettings` function to support multilingual CLIs.
1616+1717+ This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
1818+1919+ ```ts
2020+ // Per-instance customization
2121+ const spinner = prompts.spinner({
2222+ cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
2323+ errorMessage: "Se produjo un error", // "An error occurred" in Spanish
2424+ });
2525+2626+ // Global customization via updateSettings
2727+ prompts.updateSettings({
2828+ messages: {
2929+ cancel: "Operación cancelada", // "Operation cancelled" in Spanish
3030+ error: "Se produjo un error", // "An error occurred" in Spanish
3131+ },
3232+ });
3333+3434+ // Settings can now be accessed directly
3535+ console.log(prompts.settings.messages.cancel); // "Operación cancelada"
3636+3737+ // Direct options take priority over global settings
3838+ const spinner = prompts.spinner({
3939+ cancelMessage: "Cancelled", // This will be used instead of the global setting
4040+ });
4141+ ```
4242+4343+- 44df9af: Adds a new `groupSpacing` option to grouped multi-select prompts. If set to an integer greater than 0, it will add that number of new lines between each group.
4444+- f2c2b89: Adds `AutocompletePrompt` to core with comprehensive tests and implement both `autocomplete` and `autocomplete-multiselect` components in prompts package.
4545+- c45b9fb: Adds support for detecting spinner cancellation via CTRL+C. This allows for graceful handling of user interruptions during long-running operations.
4646+- 9a09318: Adds new `progress` prompt to display a progess-bar
4747+- 19558b9: Added support for custom frames in spinner prompt
4848+4949+### Patch Changes
5050+5151+- 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.
5252+- 17342d2: Exposes a new `SpinnerResult` type to describe the return type of `spinner`
5353+- 6868c1c: Adds a new `selectableGroups` boolean to the group multi-select prompt. Using `selectableGroups: false` will disable the ability to select a top-level group, but still allow every child to be selected individually.
5454+- 7a556ad: Updates all prompts to accept a custom `output` and `input` stream
5555+- 7cc8a55: Messages passed to the `stop` method of a spinner no longer have dots stripped.
5656+- 2048eb1: Fix spinner's dots behavior with custom frames
5757+- Updated dependencies [729bbb6]
5858+- Updated dependencies [6868c1c]
5959+- Updated dependencies [a4f5034]
6060+- Updated dependencies [c713fd5]
6161+- Updated dependencies [a36292b]
6262+- Updated dependencies [f2c2b89]
6363+ - @clack/core@1.0.0-alpha.0
6464+365## 0.10.0
466567### Minor Changes