Skip to content

Releases: zfadhli/koko-cli

v0.4.0

Choose a tag to compare

@zfadhli zfadhli released this 04 Jul 09:19
b0aea20

0.4.0 — 2026-07-04

Changed

  • Replaced picocolors with node:util.styleText — color API is now zero-dependency,
    using Node.js built-in ANSI styling. The color object is now a chainable chalk-like
    proxy: color.bold.green('success'), color.red.bold.underline('urgent').

Added

  • Format type union — typed list of all ~60 valid format names (text colors, bright
    colors, background colors, text styles) accepted by node:util.styleText, exported for
    consumers.
  • kaler type — replaces Chalk as the type for the chainable color object. Exported
    for typing CommandContext.color and custom color wrappers.
  • Background color formatters — 16 bg* formatters (color.bgRed, color.bgBlue,
    etc.) now available for free via styleText.

Removed

  • picocolors dependency — dropped from package.json. No more third-party color lib.
  • ColorName / StyleName types — replaced by Format.

v0.3.0

Choose a tag to compare

@zfadhli zfadhli released this 20 Jun 12:29
7a30251

Changed

  • Migrated dev toolchain from Bun to nub.js — switched to nub runtime for running scripts, vitest replaces bun:test for testing. lock.yaml replaces bun.lock. CI updated to nubjs/setup-nub.
  • Simplified CLI API surface — removed BannerOption, CLIOptions, and OptionConfig types (inlined into their usage sites). Consumers using these types for annotations should switch to inline types or string | boolean.
  • Added sideEffects: false to package.json — enables tree-shaking for bundler consumers.
  • Added lefthook pre-commit hooks — Biome lint + tsc --noEmit run before every commit.

Fixed

  • Spinner invalid-style error — createSpinner() now throws CliToolkitError with a descriptive message listing available styles, instead of a raw TypeError.

Added

  • Test coverage for CAC error wrapping — createCLI.parse() error handling path now tested.
  • Test coverage for CliToolkitError and icon constants — two new test files covering public API basics.
  • process.exit mock hygiene — banner tests wrap mocked globals in try/finally to prevent cascading failures.

What's Changed

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@zfadhli zfadhli released this 16 Jun 11:39
7b102d5

What's Changed

  • fix(createProgress): pass payload through start() to fix first render by @zfadhli in #6
  • Release v0.2.1 by @zfadhli in #7

Full Changelog: v0.2.0...v0.2.1

What's Changed

  • fix(createProgress): pass payload through start() to fix first render by @zfadhli in #6
  • Release v0.2.1 by @zfadhli in #7

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@zfadhli zfadhli released this 15 Jun 01:07
a85208d

Added

  • Auto banner — createCLI(name, version?) now prints a styled name v{version} banner (bold cyan + yellow) to stderr before every command action. Customize with .banner("Custom {name} {version}") or disable with .banner(false) / { banner: false } option.
  • .banner() method on CLIBuilder — configure or suppress the startup banner
  • BannerOption / CLIOptions types — exported for TypeScript consumers

What's Changed

Full Changelog: 0.1.1...v0.2.0

0.1.1

Choose a tag to compare

@zfadhli zfadhli released this 09 Jun 06:50
ce719ff

What's Changed

  • chore: rename to @zfadhli/koko-cli, update publish workflow and README by @zfadhli in #3
  • Release 0.1.1 by @zfadhli in #4

Full Changelog: 0.1.0...0.1.1

0.1.0

Choose a tag to compare

@zfadhli zfadhli released this 09 Jun 06:37
eeaf209

What's Changed

  • chore: add README, LICENSE, fix package.json exports by @zfadhli in #1
  • Release 0.1.0 by @zfadhli in #2

New Contributors

Full Changelog: https://github.com/zfadhli/koko-cli/commits/0.1.0