Optique 0.8.0: Conditional parsing, pass-through options, and LogTape integration

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

Optique 0.8.0 enhances TypeScript CLI development with new functional parsing primitives that prioritize type safety and expressiveness. A new conditional combinator brings first-class support for discriminated union patterns, enabling developers to define mutually exclusive option sets that activate based on specific discriminator values. For those building proxy or wrapper tools, the pass-through parser efficiently captures unrecognized arguments in various formats without triggering validation errors. Integration with the LogTape ecosystem arrives via a dedicated package, allowing for streamlined logging configuration through verbosity flags and output destination parameters. The release also includes a key bug fix for the integer value parser, which now correctly accepts negative values to ensure consistency across numeric types. These additions strengthen the ability to compose complex CLI logic while maintaining full type inference and backward compatibility. This update provides essential tools for developers looking to build robust, professional-grade command-line applications with minimal boilerplate and maximum reliability.

Read more →
5

Please pay attention to random failures.

An intersectionalist, feminist, and socialist living in Seoul (UTC+09:00). @tokolovesme금강토's spouse. Who's behind @fedifyFedify: ActivityPub server framework, @holloHollo :hollo:, and @botkitBotKit by Fedify :botkit:. Write some free software in , , , & . They/them.

서울에 사는 交叉女性主義者이자 社會主義者. 金剛兔(@tokolovesme금강토)의 配偶者. @fedifyFedify: ActivityPub server framework, @holloHollo :hollo:, @botkitBotKit by Fedify :botkit: 메인테이너. , , , 等으로 自由 소프트웨어 만듦.

()