Skip to content

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 17:41
· 39 commits to master since this release

v1.3.0 - 2025-10-08

▎Added

  • 8-bit to 4-bit color space detection and conversion utilities
    • getColorSpace to detect 16-, 256-, and true-color support
    • xtermTo4Bit utility for accurate 256-color (8-bit) to 4-bit mapping
  • colorSpace option to createStain for configurable ANSI output:
    • 0: no color output
    • 1: convert xterm (256-color) to nearest 4-bit equivalent
    • 2: enable true xterm (256-color) output

▎Changed

  • Dynamically apply color conversion if xterm and colorSpace is 1
  • Refractor/move color space logic to utils.ts and types into types.ts