Optique 0.9.0 pre-release is ready for testing!
The big new feature: sync/async mode support. You can now build CLI parsers with async value parsing and suggestions—perfect for shell completions that need to run commands (like listing Git branches/tags).
The API automatically propagates async mode through combinators, so you only decide sync vs async at the leaf level.
Try it:
npm add @optique/core@0.9.0-dev.212 @optique/run@0.9.0-dev.212
deno add --jsr @optique/core@0.9.0-dev.212 @optique/run@0.9.0-dev.212
I'd love feedback before merging! Especially interested in:
API ergonomics
Edge cases I might have missed
TypeScript inference issues
Docs:
Async value parsers
Async parser execution
PR: https://github.com/dahlia/optique/pull/70