From fc10f22c05fd5aea221b48fcb1ce7e45c2eb4efa Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 19 Dec 2024 14:23:50 -0600 Subject: [PATCH] Update packages/core/CHANGELOG.md --- packages/core/CHANGELOG.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ee1909c..cdfbda0 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -27,37 +27,6 @@ - 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: Updates default keybindings to support Vim motion shortcuts and map the `escape` key to cancel (`ctrl+c`).