@clack/core
Advanced tools
Comparing version 0.4.0 to 0.4.1
# @clack/core | ||
## 0.4.1 | ||
### Patch Changes | ||
- 8093f3c: Adds `Error` support to the `validate` function | ||
- e5ba09a: Fixes a cursor display bug in terminals that do not support the "hidden" escape sequence. See [Issue #127](https://github.com/bombshell-dev/clack/issues/127). | ||
- 8cba8e3: Fixes a rendering bug with cursor positions for `TextPrompt` | ||
## 0.4.0 | ||
@@ -30,3 +38,2 @@ | ||
- a83d2f8: Updates default keybindings to support Vim motion shortcuts and map the `escape` key to cancel (`ctrl+c`). | ||
@@ -33,0 +40,0 @@ |
@@ -41,3 +41,3 @@ import { Readable, Writable } from 'node:stream'; | ||
initialValue?: any; | ||
validate?: ((value: any) => string | undefined) | undefined; | ||
validate?: ((value: any) => string | Error | undefined) | undefined; | ||
input?: Readable; | ||
@@ -193,3 +193,3 @@ output?: Writable; | ||
declare class TextPrompt extends Prompt { | ||
valueWithCursor: string; | ||
get valueWithCursor(): any; | ||
get cursor(): number; | ||
@@ -196,0 +196,0 @@ constructor(opts: TextOptions); |
{ | ||
"name": "@clack/core", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
290705
504