Releases: fetchTe/stain
Releases · fetchTe/stain
Release list
v1.4.2
v1.4.1
v1.4.0
v1.4.0 - 2025-10-12
▎Changed
getColorSpaceutil:- Add
isTTYparameter to explicitly set or override TTY - Add default values for
argv,env, andglobalThis - Fix QuickJS handling where it previously always returned
0;isTTYmust now be set for correct color space detection
- Add
v1.3.0
v1.3.0 - 2025-10-08
▎Added
- 8-bit to 4-bit color space detection and conversion utilities
getColorSpaceto detect 16-, 256-, and true-color supportxtermTo4Bitutility for accurate 256-color (8-bit) to 4-bit mapping
colorSpaceoption tocreateStainfor configurable ANSI output:0: no color output1: convert xterm (256-color) to nearest 4-bit equivalent2: enable true xterm (256-color) output
▎Changed
- Dynamically apply color conversion if
xtermandcolorSpaceis1 - Refractor/move color space logic to
utils.tsand types intotypes.ts
v1.2.0
v1.2.0 - 2025-09-28
▎Added
- Export
constants.tshelpers:ANSI,ESC,RESET,XTERM,COLOR_SPACE
▎Fixed
- Force color in tests for
.githubCI workflow actions - Makefile
releasetarget to exit non-zero on test failure - Non-POSIX
==inside a single-bracket[Makefile
v1.0.0
v1.0.0 - 2025-09-28
▎BREAKING
- Change
export defaultfromcreateStaintostain
▎Added
- Documentation, examples, and all that jazz
- Tests with printed output
.githubworkflows