diff --git a/.changeset/better-hats-start.md b/.changeset/better-hats-start.md deleted file mode 100644 index 94a741ee..00000000 --- a/.changeset/better-hats-start.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@clack/prompts": minor ---- - -Updates default formatter of `note()` to note dim lines anymore - -If you want the old behavior, provide a `format()` function: - -```diff -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) } -); -``` diff --git a/.changeset/calm-feet-lead.md b/.changeset/calm-feet-lead.md deleted file mode 100644 index 3d312945..00000000 --- a/.changeset/calm-feet-lead.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clack/prompts": minor ---- - -Add keyboard instruction footers to `select`, `multiselect`, and `groupMultiselect` in the active state, matching autocomplete. No option — always shown. diff --git a/.changeset/password-empty-submit.md b/.changeset/password-empty-submit.md deleted file mode 100644 index 967e323d..00000000 --- a/.changeset/password-empty-submit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clack/core": patch ---- - -Fix `password` prompt resolving to `undefined` on empty submit. It now normalizes an empty submission to `""`, matching the `text` prompt behavior and the documented `Promise` return type. diff --git a/.changeset/ten-vans-stand.md b/.changeset/ten-vans-stand.md deleted file mode 100644 index dd2df540..00000000 --- a/.changeset/ten-vans-stand.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@clack/core": patch ---- - -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 diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 24717431..773b6033 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,18 @@ # @clack/core +## 1.4.2 + +### Patch Changes + +- [#561](https://github.com/bombshell-dev/clack/pull/561) [`2f2b52f`](https://github.com/bombshell-dev/clack/commit/2f2b52f77cbfa9af618c6d929249ab8395fc37a1) Thanks [@avallete](https://github.com/avallete)! - Fix `password` prompt resolving to `undefined` on empty submit. It now normalizes an empty submission to `""`, matching the `text` prompt behavior and the documented `Promise` return type. + +- [#569](https://github.com/bombshell-dev/clack/pull/569) [`e1b6ee7`](https://github.com/bombshell-dev/clack/commit/e1b6ee71a76e17a3c33ba7ee6e5fb34e886233bb) Thanks [@43081j](https://github.com/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 + ## 1.4.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index b30ba3d8..11300b7c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@clack/core", - "version": "1.4.1", + "version": "1.4.2", "type": "module", "main": "./dist/index.mjs", "module": "./dist/index.mjs", diff --git a/packages/prompts/CHANGELOG.md b/packages/prompts/CHANGELOG.md index 2e959f11..7b0242d7 100644 --- a/packages/prompts/CHANGELOG.md +++ b/packages/prompts/CHANGELOG.md @@ -1,5 +1,31 @@ # @clack/prompts +## 1.6.0 + +### Minor Changes + +- [#568](https://github.com/bombshell-dev/clack/pull/568) [`f87933f`](https://github.com/bombshell-dev/clack/commit/f87933fb7b3f4c401b9e51a152b95cb8e7200fe5) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates default formatter of `note()` to note dim lines anymore + + If you want the old behavior, provide a `format()` function: + + ```diff + 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](https://github.com/bombshell-dev/clack/pull/567) [`cc6aab5`](https://github.com/bombshell-dev/clack/commit/cc6aab50186cff8a02dc98e9cfd3897c29a33b15) Thanks [@dreyfus92](https://github.com/dreyfus92)! - Add keyboard instruction footers to `select`, `multiselect`, and `groupMultiselect` in the active state, matching autocomplete. No option — always shown. + +### Patch Changes + +- Updated dependencies [[`2f2b52f`](https://github.com/bombshell-dev/clack/commit/2f2b52f77cbfa9af618c6d929249ab8395fc37a1), [`e1b6ee7`](https://github.com/bombshell-dev/clack/commit/e1b6ee71a76e17a3c33ba7ee6e5fb34e886233bb)]: + - @clack/core@1.4.2 + ## 1.5.1 ### Patch Changes diff --git a/packages/prompts/package.json b/packages/prompts/package.json index 431c01ad..bb050f16 100644 --- a/packages/prompts/package.json +++ b/packages/prompts/package.json @@ -1,6 +1,6 @@ { "name": "@clack/prompts", - "version": "1.5.1", + "version": "1.6.0", "type": "module", "main": "./dist/index.mjs", "module": "./dist/index.mjs",