@clack/prompts
Advanced tools
Comparing version 0.4.5 to 0.5.0
# @clack/prompts | ||
## 0.5.0 | ||
### Minor Changes | ||
- d74dd05: Adds a `selectKey` prompt type | ||
- 54c1bc3: **Breaking Change** `multiselect` has renamed `initialValue` to `initialValues` | ||
### Patch Changes | ||
- Updated dependencies [d74dd05] | ||
- Updated dependencies [54c1bc3] | ||
- @clack/core@0.2.0 | ||
## 0.4.5 | ||
@@ -4,0 +17,0 @@ |
@@ -36,6 +36,7 @@ export { isCancel } from '@clack/core'; | ||
declare const select: <Options extends Option<Value>[], Value extends Primitive>(opts: SelectOptions<Options, Value>) => Promise<symbol | Options[number]["value"]>; | ||
declare const selectKey: <Options extends Option<Value>[], Value extends string>(opts: SelectOptions<Options, Value>) => Promise<symbol | Options[number]["value"]>; | ||
interface MultiSelectOptions<Options extends Option<Value>[], Value extends Primitive> { | ||
message: string; | ||
options: Options; | ||
initialValue?: Options[number]['value'][]; | ||
initialValues?: Options[number]['value'][]; | ||
required?: boolean; | ||
@@ -76,2 +77,2 @@ cursorAt?: Options[number]['value']; | ||
export { ConfirmOptions, MultiSelectOptions, PasswordOptions, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectOptions, TextOptions, cancel, confirm, group, intro, multiselect, note, outro, password, select, spinner, text }; | ||
export { ConfirmOptions, MultiSelectOptions, PasswordOptions, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectOptions, TextOptions, cancel, confirm, group, intro, multiselect, note, outro, password, select, selectKey, spinner, text }; |
{ | ||
"name": "@clack/prompts", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"type": "module", | ||
@@ -52,3 +52,3 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@clack/core": "^0.1.9", | ||
"@clack/core": "^0.2.0", | ||
"picocolors": "^1.0.0", | ||
@@ -55,0 +55,0 @@ "sisteransi": "^1.0.5" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
35301
251
+ Added@clack/core@0.2.1(transitive)
- Removed@clack/core@0.1.9(transitive)
Updated@clack/core@^0.2.0