Skip to content

Commit 64c1373

Browse files
chore(deps): update dependency @clack/prompts to ^0.9.0 (#30098)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@clack/prompts](https://redirect.github.com/natemoo-re/clack/tree/main/packages/prompts#readme) ([source](https://redirect.github.com/natemoo-re/clack/tree/HEAD/packages/prompts)) | [`^0.8.0` -> `^0.9.0`](https://renovatebot.com/diffs/npm/@clack%2fprompts/0.8.1/0.9.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@clack%2fprompts/0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@clack%2fprompts/0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@clack%2fprompts/0.8.1/0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@clack%2fprompts/0.8.1/0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>natemoo-re/clack (@&#8203;clack/prompts)</summary> ### [`v0.9.0`](https://redirect.github.com/natemoo-re/clack/blob/HEAD/packages/prompts/CHANGELOG.md#090) [Compare Source](https://redirect.github.com/natemoo-re/clack/compare/@clack/[email protected]...@clack/[email protected]) ##### Minor Changes - [`a83d2f8`](https://redirect.github.com/natemoo-re/clack/commit/a83d2f8): Adds a new `updateSettings()` function to support new global keybindings. `updateSettings()` accepts an `aliases` object that maps custom keys to an action (`up | down | left | right | space | enter | cancel`). ```ts import { updateSettings } from "@&#8203;clack/prompts"; // Support custom keybindings updateSettings({ aliases: { w: "up", a: "left", s: "down", d: "right", }, }); ``` > \[!WARNING] > In order to enforce consistent, user-friendly defaults across the ecosystem, `updateSettings` does not support disabling Clack's default keybindings. - [`801246b`](https://redirect.github.com/natemoo-re/clack/commit/801246b): Adds a new `signal` option to support programmatic prompt cancellation with an [abort controller](https://kettanaito.com/blog/dont-sleep-on-abort-controller). One example use case is automatically cancelling a prompt after a timeout. ```ts const shouldContinue = await confirm({ message: "This message will self destruct in 5 seconds", signal: AbortSignal.timeout(5000), }); ``` Another use case is racing a long running task with a manual prompt. ```ts const abortController = new AbortController(); const projectType = await Promise.race([ detectProjectType({ signal: abortController.signal, }), select({ message: "Pick a project type.", options: [ { value: "ts", label: "TypeScript" }, { value: "js", label: "JavaScript" }, { value: "coffee", label: "CoffeeScript", hint: "oh no" }, ], signal: abortController.signal, }), ]); abortController.abort(); ``` - [`a83d2f8`](https://redirect.github.com/natemoo-re/clack/commit/a83d2f8): Updates default keybindings to support Vim motion shortcuts and map the `escape` key to cancel (`ctrl+c`). | alias | action | | ----- | ------ | | `k` | up | | `l` | right | | `j` | down | | `h` | left | | `esc` | cancel | ##### Patch Changes - [`f9f139d`](https://redirect.github.com/natemoo-re/clack/commit/f9f139d): Adapts `spinner` output for static CI environments - Updated dependencies \[[`a83d2f8`](https://redirect.github.com/natemoo-re/clack/commit/a83d2f8)] - Updated dependencies \[[`801246b`](https://redirect.github.com/natemoo-re/clack/commit/801246b)] - Updated dependencies \[[`a83d2f8`](https://redirect.github.com/natemoo-re/clack/commit/a83d2f8)] - Updated dependencies \[[`51e12bc`](https://redirect.github.com/natemoo-re/clack/commit/51e12bc)] - [@&#8203;clack/core](https://redirect.github.com/clack/core)[@&#8203;0](https://redirect.github.com/0).4.0 ### [`v0.8.2`](https://redirect.github.com/natemoo-re/clack/blob/HEAD/packages/prompts/CHANGELOG.md#082) [Compare Source](https://redirect.github.com/natemoo-re/clack/compare/@clack/[email protected]...@clack/[email protected]) ##### Patch Changes - Updated dependencies \[[`4845f4f`](https://redirect.github.com/natemoo-re/clack/commit/4845f4f)] - Updated dependencies \[[`d7b2fb9`](https://redirect.github.com/natemoo-re/clack/commit/d7b2fb9)] - [@&#8203;clack/core](https://redirect.github.com/clack/core)[@&#8203;0](https://redirect.github.com/0).3.5 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekday before 11am" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/ionic-team/ionic-framework). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 01917ee commit 64c1373

File tree

2 files changed

+16
-40
lines changed

2 files changed

+16
-40
lines changed

core/package-lock.json

+15-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@capacitor/haptics": "^6.0.0",
4242
"@capacitor/keyboard": "^6.0.0",
4343
"@capacitor/status-bar": "^6.0.0",
44-
"@clack/prompts": "^0.8.0",
44+
"@clack/prompts": "^0.9.0",
4545
"@ionic/eslint-config": "^0.3.0",
4646
"@ionic/prettier-config": "^2.0.0",
4747
"@playwright/test": "^1.46.1",

0 commit comments

Comments
 (0)