Releases: c4spar/deno-cliffy
Releases · c4spar/deno-cliffy
v0.25.4
v0.25.3
DEPRECATIONS
-
command: rename some types and deprecate old types (#474) (d56ad88)
The following types have been deprecated and renamed:
IArgument
->Argument
ICommandGlobalOption
->GlobalOptionOptions
ICommandOption
->OptionOptions
ICompleteOptions
->CompleteOptions
ICompletion
->Completion
IEnvVar
->EnvVar
IEnvVarOptions
->EnvVarOptions
IExample
->Example
IGlobalEnvVarOptions
->GlobalEnvVarOptions
IOption
->Option
IParseResult
->CommandResult
IType
->TypeDef
ITypeOptions
->TypeOptions
IAction
->ActionHandler
ICompleteHandler
->CompleteHandler
IDescription
->Description
IEnvVarValueHandler
->EnvVarValueHandler
IFlagValueHandler
->OptionValueHandler
IHelpHandler
->HelpHandler
IVersionHandler
->VersionHandler
TypeValue
->Type.infer
-
flags: rename some types and deprecate old types (#473) (7615ed7)
The following types have been deprecated and renamed:
IParseOptions
->ParseFlagsOptions
IFlagOptions
->FlagOptions
IFlagArgument
->ArgumentOptions
IDefaultValue
->DefaultValue
IFlagValueHandler
->ValueHandler
IFlagsResult
->ParseFlagsContext
ITypeInfo
->ArgumentValue
ITypeHandler
->TypeHandler
OptionType
->ArgumentType
Bug Fixes
- command: remove duplicate "Missing argument" in error message (#471) (ee52235)
- command: escape single quotes in command description for zsh completions (#467) (0b82722)
- command,flags: value gets ignored if value of an option with an equals sign starts with a dash (#477) (517795a)
- flags: value of combined short flags with equals sign is assigned to wrong option (#479) (dc29ab5)
- flags:
equalsSign
option not working withtype
option (#476) (08e7465)
Code Refactoring
- command: export
CommandType
andIntegerType
(#478) (22b8999) - command: use full names for generic parameters (#475) (d93d2e0)
- command,flags: rename errors (#470) (eb046b2)
- flags: refactor arguments parsing (#480) (273dd41)
Chore
- task: add MAX_PARALLEL env var to check:examples task (#472) (fd74ce1)
- upgrade: deno/[email protected] (#481) (1242ec9)
Documentation Updates
- update readme (3e96df1)
v0.25.2
Features
- command: re-implement support for passing global options before sub-commands (#444) (5ff1575)
- flags: add
dotted
option (#456) (cd8d73c) - flags: add
stopOnUnknown
option (#453) (b2700e5) - flags: return matched standalone option (#451) (6c5e27c)
- flags: implement parse context (#448) (5890402)
Bug Fixes
- switch from
Deno.setRaw
to newDeno.stdin.setRaw
(#459) (e5b9416) - command: fix type errors with typescript => 4.8 (#460) (9763bd4)
- command,flags: throw an error if an option without a value has a value (#443) (166101f)
- flags: don't throw
UnexpectedOptionValue
error if no flags are defined (#450) (ed50ca3)
Code Refactoring
- command: throw to many arguments error for global & none global option before a sub-command (#454) (78eec2d)
- flags: refactor stop early parsing (#449) (e48fc0f)
Chore
v0.25.1
v0.25.0
BREAKING CHANGES
-
command: flatten variadic arguments and fix types for variadic option arguments (#418) (bf5f15a)
Before:
new Command() .arguments("[arg1] [arg2] [...restArgs]") .action((_, arg1, arg2, restArgs) => {})
After:
new Command() .arguments("[arg1] [arg2] [...restArgs]") .action((_, arg1, arg2, ...restArgs) => {})
Features
- command: add
.noGlobals()
method (#403) (e37fb99) - table: allow undefined cell values and override them with row and col span (#427) (89fe0ca)
Bug Fixes
- command: required options with conflicting options should be optional (#435) (4c71af1)
- command: type error when trying to add a command instance with child commands (#386) (35fe1de)
- command: use instance properties for shouldThrowErrors and shouldExit check (#426) (21d7558)
- command: don't call
Deno.exit()
in help command when.noExit()
is called (#424) (41769ec) - command: ignore missing required env vars for global help option (#423) (0290828)
- command: ignore missing required env vars for help and version option (#415) (275b337)
- command: do not require full env permission (#416) (bc4c1bd)
- table: max call stack error thrown for large tables (#433) (f699178)
- table: error when first row is empty and colSpan is enabled (#432) (4d07eea)
- table: row doesn't inherit the table settings correctly (#428) (60a781c)
Code Refactoring
Chore
- ci: type-check and fix examples (#414) (63b6613)
- ci: run
deno test
with--parallel
flag (#412) (1186435) - deno: add snapshot task (#429) (607182d)
- deno: add
deno.jsonc
config and usedeno task
(#413) (5f28389) - upgrade: [email protected] and add update deps task (#420) (69e1ab5, 9af27da)
Documentation Updates
v0.24.3
Features
- command: support passing global options before sub-command (#388) (ecbbcc0)
- command: add support for list type in arguments (#402) (6dd3a6c)
- command: indicate required env vars in help text (#394) (8f51cca)
Bug Fixes
- command: all options should be optional if
.allowEmpty()
is called (#408) (2ba7386) - command: negatable option causes parsing issues when positioned before non-negatable options (#400) (751e1aa)
- command: explicitly scope fish variables in completion script (#397) (2048a1e)
- command: help text not always shown for validation error (#401) (e7bc0e8)
- command: error handling not working correctly (#389) (0d66e88)
Code Refactoring
Chore
- shellcheck: disable shellcheck warnings temporarily (#395) (f7cccc6)
- upgrade: [email protected] (#407) (41f3b69)
Documentation Updates
v0.24.2
v0.24.1
v0.24.0
BREAKING CHANGES
-
command: refactor handling of optional options defined with an equals sign (#369) (a51e230)
Options defined with an equal sign must now also be called with an equal sign:
--foo=bar
Options defined without an equal sign can be called with and without an equal sign as it was before:--foo bar
and--foo=bar