Skip to content

Releases: fetchTe/stain

v1.4.2

11 Jan 19:33

Choose a tag to compare

v1.4.2- 2026-01-11

▎Changed

  • devDependencies bump eslint, typescript, esbuild, and type definitions
  • eslint.config.mjs adjust @stylistic multi-spaces/annotations per devDependencies update

v1.4.1

31 Oct 18:53

Choose a tag to compare

v1.4.1 - 2025-10-31

▎Fixed

  • main stain noColor flag logic

v1.4.0

12 Oct 22:11

Choose a tag to compare

v1.4.0 - 2025-10-12

▎Changed

  • getColorSpace util:
    • Add isTTY parameter to explicitly set or override TTY
    • Add default values for argv, env, and globalThis
    • Fix QuickJS handling where it previously always returned 0; isTTY must now be set for correct color space detection

v1.3.0

08 Oct 17:41

Choose a tag to compare

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

v1.2.0

28 Sep 21:18

Choose a tag to compare

v1.2.0 - 2025-09-28

▎Added

  • Export constants.ts helpers: ANSI, ESC, RESET, XTERM, COLOR_SPACE

▎Fixed

  • Force color in tests for .github CI workflow actions
  • Makefile release target to exit non-zero on test failure
  • Non-POSIX == inside a single-bracket [ Makefile

v1.0.0

28 Sep 19:21

Choose a tag to compare

v1.0.0 - 2025-09-28

▎BREAKING

  • Change export default from createStain to stain

▎Added

  • Documentation, examples, and all that jazz
  • Tests with printed output
  • .github workflows