citty
0.2.2 · 1 Apr 2026MIT51.4M / weekRepositoryHomepagenpmAtom feed
Upgrading citty From 0.1.0 to 0.2.2
9 releases in betweenevery note read
Reading releases, release notes and advisories…
- 5
- changes to make
- 0
- advisories fixed
- 14
- new
- 16
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.2.0
- Breaking0.2.0
- Breaking0.2.0
- Breaking0.2.0
- Breaking0.1.1
Release by release
- New
Support subcommand aliases
- New
Add plugin system
- New
Support default sub command
- Fixed
main: Allow user-defined
-h,--help,-v,--versionargs - Fixed
Resolve alias value over default
- Fixed
Subcommand resolution incorrectly consumes flag values
- Fixed
Coerce parsed arg values to match declared types
- New
- Fixed
Propagate
--no-negation to aliases and main option
- Fixed
- Breaking
⚠️ Parsed optionals and enum type safety
- Breaking
⚠️ Conditionally print negative boolean argument usage
- Breaking
⚠️ Use
node:util.parseArgsfor arg parsing - Breaking
⚠️ ESM-only dist
- Breaking
- Fixed
usage: Render valueHint for positional args
- Fixed
- New
command: Return result of run command
- New
runMain: Support custom
showUsageoption
- New
- New
Support cleanup hook
- New
Add
createMainutility - New
Support
--version - Fixed
Do not throw an error when no subcommand is specified but the main has
run
- New
- Fixed
Allow string in arg signature
- Fixed
- New
usage: Resolve sub commands for meta description
- New
Use consola for output formatting
- New
runCommand: Allow passing custom
data - Fixed
Fix generic type issues
- Fixed
Handle
required: falsefor positional arguments
- New
24 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.