From 64c1373f53be97ce377b68f523654569ef55d9cc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:27:28 -0500 Subject: [PATCH] chore(deps): update dependency @clack/prompts to ^0.9.0 (#30098) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
natemoo-re/clack (@​clack/prompts) ### [`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/prompts@0.8.2...@clack/prompts@0.9.0) ##### 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 "@​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)] - [@​clack/core](https://redirect.github.com/clack/core)[@​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/prompts@0.8.1...@clack/prompts@0.8.2) ##### 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)] - [@​clack/core](https://redirect.github.com/clack/core)[@​0](https://redirect.github.com/0).3.5
--- ### 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. --- - [ ] 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). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- core/package-lock.json | 54 ++++++++++++------------------------------ core/package.json | 2 +- 2 files changed, 16 insertions(+), 40 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index a09df68591..553727e5c4 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -19,7 +19,7 @@ "@capacitor/haptics": "^6.0.0", "@capacitor/keyboard": "^6.0.0", "@capacitor/status-bar": "^6.0.0", - "@clack/prompts": "^0.8.0", + "@clack/prompts": "^0.9.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^2.0.0", "@playwright/test": "^1.46.1", @@ -697,9 +697,9 @@ } }, "node_modules/@clack/core": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@clack/core/-/core-0.3.4.tgz", - "integrity": "sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-0.4.0.tgz", + "integrity": "sha512-YJCYBsyJfNDaTbvDUVSJ3SgSuPrcujarRgkJ5NLjexDZKvaOiVVJvAQYx8lIgG0qRT8ff0fPgqyBCVivanIZ+A==", "dev": true, "dependencies": { "picocolors": "^1.0.0", @@ -707,32 +707,16 @@ } }, "node_modules/@clack/prompts": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-0.8.1.tgz", - "integrity": "sha512-I263nEUNbX4lPTX93trl1fkIvGrGlz6nUYkqOddF0ZmjqcxUgUlXmpUIUqfapirRKJrFddvwF+qdZgg8cSqF7g==", - "bundleDependencies": [ - "is-unicode-supported" - ], + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-0.9.0.tgz", + "integrity": "sha512-nGsytiExgUr4FL0pR/LeqxA28nz3E0cW7eLTSh3Iod9TGrbBt8Y7BHbV3mmkNC4G0evdYyQ3ZsbiBkk7ektArA==", "dev": true, "dependencies": { - "@clack/core": "0.3.4", - "is-unicode-supported": "*", + "@clack/core": "0.4.0", "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, - "node_modules/@clack/prompts/node_modules/is-unicode-supported": { - "version": "1.3.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -10786,9 +10770,9 @@ "requires": {} }, "@clack/core": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@clack/core/-/core-0.3.4.tgz", - "integrity": "sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-0.4.0.tgz", + "integrity": "sha512-YJCYBsyJfNDaTbvDUVSJ3SgSuPrcujarRgkJ5NLjexDZKvaOiVVJvAQYx8lIgG0qRT8ff0fPgqyBCVivanIZ+A==", "dev": true, "requires": { "picocolors": "^1.0.0", @@ -10796,22 +10780,14 @@ } }, "@clack/prompts": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-0.8.1.tgz", - "integrity": "sha512-I263nEUNbX4lPTX93trl1fkIvGrGlz6nUYkqOddF0ZmjqcxUgUlXmpUIUqfapirRKJrFddvwF+qdZgg8cSqF7g==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-0.9.0.tgz", + "integrity": "sha512-nGsytiExgUr4FL0pR/LeqxA28nz3E0cW7eLTSh3Iod9TGrbBt8Y7BHbV3mmkNC4G0evdYyQ3ZsbiBkk7ektArA==", "dev": true, "requires": { - "@clack/core": "0.3.4", - "is-unicode-supported": "*", + "@clack/core": "0.4.0", "picocolors": "^1.0.0", "sisteransi": "^1.0.5" - }, - "dependencies": { - "is-unicode-supported": { - "version": "1.3.0", - "bundled": true, - "dev": true - } } }, "@eslint-community/eslint-utils": { diff --git a/core/package.json b/core/package.json index 7e48a7be03..72c96addb0 100644 --- a/core/package.json +++ b/core/package.json @@ -41,7 +41,7 @@ "@capacitor/haptics": "^6.0.0", "@capacitor/keyboard": "^6.0.0", "@capacitor/status-bar": "^6.0.0", - "@clack/prompts": "^0.8.0", + "@clack/prompts": "^0.9.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^2.0.0", "@playwright/test": "^1.46.1",