Skip to content

v0.3.0

Choose a tag to compare

@zfadhli zfadhli released this 20 Jun 12:29
· 3 commits to master since this release
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