From 8e66dbd3e72f691a82ddd229d21c26f035d89e16 Mon Sep 17 00:00:00 2001 From: Paul Valladares <85648028+dreyfus92@users.noreply.github.com> Date: Sun, 15 Nov 2026 14:42:25 -0600 Subject: [PATCH] chore(deps): bump clack to 1.9.0 and core to 1.6.0 --- package.json | 4 +-- pnpm-lock.yaml | 35 ++++++++++++++++++--- src/content/docs/clack/packages/prompts.mdx | 4 +-- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 049d846..df98e39 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "@bomb.sh/args": "^0.3.1", "@bomb.sh/router": "^0.8.0", "@bomb.sh/tty": "^0.9.0", - "@clack/core": "^1.5.1", - "@clack/prompts": "^1.8.1", + "@clack/core": "^1.6.0", + "@clack/prompts": "^1.9.0", "@fontsource-variable/inter": "^5.3.0", "@types/node": "^22.19.3", "@webcontainer/api": "^1.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e98d42a..35ccd77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,11 +21,11 @@ importers: specifier: ^0.9.0 version: 0.9.0 '@clack/core': - specifier: ^1.5.1 - version: 1.5.1 + specifier: ^1.6.0 + version: 1.6.0 '@clack/prompts': - specifier: ^1.8.1 - version: 1.8.1 + specifier: ^1.9.0 + version: 1.9.0 '@fontsource-variable/inter': specifier: ^5.3.0 version: 5.3.0 @@ -317,10 +317,18 @@ packages: resolution: {integrity: sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==} engines: {node: '>= 20.12.0'} + '@clack/core@1.6.0': + resolution: {integrity: sha512-4GZynIB2IIe431odxesswvWTCP6orvqd6e2b07b3VFWBQRqUqIHc/EPIZwFoKS692QBp+ooPuXKaJV8g4kXuYA==} + engines: {node: '>= 20.12.0'} + '@clack/prompts@1.8.1': resolution: {integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==} engines: {node: '>= 20.12.0'} + '@clack/prompts@1.9.0': + resolution: {integrity: sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ==} + engines: {node: '>= 20.12.0'} + '@cloudflare/kv-asset-handler@0.4.2': resolution: {integrity: sha512-SIOD2DxrRRwQ+jgzlXCqoEFiKOFqaPjhnNTGKXSRLvp1HiOvapLaFG2kEr9dYQTYe8rKrd9uvDUzmAITeNyaHQ==} engines: {node: '>=18.0.0'} @@ -2961,6 +2969,10 @@ packages: sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + sisteransi@2.0.0: + resolution: {integrity: sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==} + engines: {node: '>=20'} + sitemap@9.0.1: resolution: {integrity: sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ==} engines: {node: '>=20.19.5', npm: '>=10.8.2'} @@ -3586,6 +3598,12 @@ snapshots: fast-wrap-ansi: 0.2.0 sisteransi: 1.0.5 + '@clack/core@1.6.0': + dependencies: + fast-string-width: 3.0.2 + fast-wrap-ansi: 0.2.0 + sisteransi: 2.0.0 + '@clack/prompts@1.8.1': dependencies: '@clack/core': 1.5.1 @@ -3593,6 +3611,13 @@ snapshots: fast-wrap-ansi: 0.2.0 sisteransi: 1.0.5 + '@clack/prompts@1.9.0': + dependencies: + '@clack/core': 1.6.0 + fast-string-width: 3.0.2 + fast-wrap-ansi: 0.2.0 + sisteransi: 2.0.0 + '@cloudflare/kv-asset-handler@0.4.2': {} '@cloudflare/kv-asset-handler@0.5.0': {} @@ -6566,6 +6591,8 @@ snapshots: sisteransi@1.0.5: {} + sisteransi@2.0.0: {} + sitemap@9.0.1: dependencies: '@types/node': 24.19.2 diff --git a/src/content/docs/clack/packages/prompts.mdx b/src/content/docs/clack/packages/prompts.mdx index 209adec..988fe52 100644 --- a/src/content/docs/clack/packages/prompts.mdx +++ b/src/content/docs/clack/packages/prompts.mdx @@ -1343,7 +1343,7 @@ const name = await new TextPrompt({ return [ title, `${S_BAR} ${this.userInputWithCursor}`, - ...formatInstructionFooter(['Enter: submit'], true), + ...formatInstructionFooter(undefined, ['Enter: submit'], true), ].join('\n'); }, }).prompt(); @@ -1360,7 +1360,7 @@ if (isCancel(name)) process.exit(0); | --- | --- | | `symbol(state)` | The colored step symbol for a prompt state: cyan `◆` while active, dim `◆` while validating, green `◇` on submit, red `■` on cancel, and yellow `▲` on error. | | `symbolBar(state)` | The guide bar `│` in the same color. Returns `undefined` while validating. | -| `formatInstructionFooter(instructions, hasGuide)` | Joins keyboard hints with ` • ` and returns the footer lines. With `hasGuide`, it adds a cyan `│` prefix and a closing `└` line. | +| `formatInstructionFooter(output, instructions, hasGuide)` | Joins keyboard hints with ` • `, wraps them to the width of the `output` stream (stdout when `undefined`), and returns the footer lines. With `hasGuide`, it adds a cyan `│` prefix and a closing `└` line. | | `SELECT_INSTRUCTIONS` | The hints `select` shows: `↑/↓ to navigate` and `Enter: confirm`. | | `MULTISELECT_INSTRUCTIONS` | The hints `multiselect` shows, which add `Space: select`. | | `unicode` | `true` when the terminal supports Unicode. |